Lines Matching refs:mem_end
132 unsigned long *mem_end)
147 dt_push_token(OF_DT_PROP, mem_end);
148 dt_push_token(size, mem_end);
149 dt_push_token(soff, mem_end);
153 memcpy((void *)*mem_end, data, size);
154 *mem_end = ALIGN(*mem_end + size, 4);
159 unsigned long *mem_end)
163 bootx_dt_add_prop("linux,bootx", NULL, 0, mem_end);
168 bootx_dt_add_prop("bootargs", args, strlen(args) + 1, mem_end);
172 bootx_dt_add_prop("linux,initrd-start", &val, 4, mem_end);
174 bootx_dt_add_prop("linux,initrd-end", &val, 4, mem_end);
178 strlen(bootx_disp_path) + 1, mem_end);
182 unsigned long *mem_end,
189 bootx_dt_add_prop("linux,boot-display", NULL, 0, mem_end);
190 bootx_dt_add_prop("linux,opened", NULL, 0, mem_end);
192 bootx_dt_add_prop("linux,bootx-noscreen", NULL, 0, mem_end);
195 bootx_dt_add_prop("linux,bootx-depth", &tmp, 4, mem_end);
197 bootx_dt_add_prop("linux,bootx-width", &tmp, 4, mem_end);
199 bootx_dt_add_prop("linux,bootx-height", &tmp, 4, mem_end);
201 bootx_dt_add_prop("linux,bootx-linebytes", &tmp, 4, mem_end);
207 bootx_dt_add_prop("linux,bootx-addr", &tmp, 4, mem_end);
210 static void __init bootx_dt_add_string(char *s, unsigned long *mem_end)
213 memcpy((void *)*mem_end, s, l);
214 bootx_dt_strend = *mem_end = *mem_end + l;
219 unsigned long *mem_end)
236 bootx_dt_add_string("linux,bootx", mem_end);
237 bootx_dt_add_string("linux,stdout-path", mem_end);
238 bootx_dt_add_string("linux,initrd-start", mem_end);
239 bootx_dt_add_string("linux,initrd-end", mem_end);
240 bootx_dt_add_string("bootargs", mem_end);
245 bootx_dt_add_string("linux,boot-display", mem_end);
246 bootx_dt_add_string("linux,opened", mem_end);
261 bootx_dt_add_string(namep, mem_end);
270 bootx_scan_dt_build_strings(base, *cpp, mem_end);
277 unsigned long *mem_end)
284 dt_push_token(OF_DT_BEGIN_NODE, mem_end);
298 memcpy((void *)*mem_end, namep, l + 1);
299 namep = (char *)*mem_end;
307 *mem_end = ALIGN((unsigned long)lp + 1, 4);
325 pp->length, mem_end);
331 bootx_add_chosen_props(base, mem_end);
333 bootx_add_display_props(base, mem_end, 0);
336 bootx_add_display_props(base, mem_end, 1);
342 bootx_scan_dt_build_struct(base, *cpp, mem_end);
346 dt_push_token(OF_DT_END_NODE, mem_end);
352 unsigned long mem_start, mem_end;
360 mem_start = mem_end = ALIGN(((unsigned long)bi) + start, 4);
363 mem_end += sizeof(struct boot_param_header);
364 rsvmap = (u64 *)(ALIGN(mem_end, 8));
366 mem_end = ((unsigned long)rsvmap) + 8 * sizeof(u64);
372 DBG("Building string array at: %x\n", mem_end);
374 bootx_dt_strbase = mem_end;
375 mem_end += 4;
376 bootx_dt_strend = mem_end;
377 bootx_scan_dt_build_strings(base, 4, &mem_end);
379 bootx_dt_add_string("linux,bootx-noscreen", &mem_end);
380 bootx_dt_add_string("linux,bootx-depth", &mem_end);
381 bootx_dt_add_string("linux,bootx-width", &mem_end);
382 bootx_dt_add_string("linux,bootx-height", &mem_end);
383 bootx_dt_add_string("linux,bootx-linebytes", &mem_end);
384 bootx_dt_add_string("linux,bootx-addr", &mem_end);
390 mem_end = ALIGN(mem_end, 16);
391 DBG("Building device tree structure at: %x\n", mem_end);
392 hdr->off_dt_struct = mem_end - mem_start;
393 bootx_scan_dt_build_struct(base, 4, &mem_end);
394 dt_push_token(OF_DT_END, &mem_end);
399 hdr->totalsize = mem_end - mem_start;
408 mem_end = ALIGN(mem_end, PAGE_SIZE);
409 DBG("End of boot params: %x\n", mem_end);
411 rsvmap[1] = mem_end;