Lines Matching refs:chosen
101 static struct addr_range prep_initrd(struct addr_range vmlinux, void *chosen, in prep_initrd() argument
143 setprop_val(chosen, "linux,initrd-start", (u32)(initrd_addr)); in prep_initrd()
144 setprop_val(chosen, "linux,initrd-end", (u32)(initrd_addr+initrd_size)); in prep_initrd()
150 static void prep_esm_blob(struct addr_range vmlinux, void *chosen) in prep_esm_blob() argument
182 setprop_val(chosen, "linux,esm-blob-start", (u32)(esm_blob_addr)); in prep_esm_blob()
183 setprop_val(chosen, "linux,esm-blob-end", (u32)(esm_blob_addr + esm_blob_size)); in prep_esm_blob()
186 static inline void prep_esm_blob(struct addr_range vmlinux, void *chosen) { } in prep_esm_blob() argument
196 static void prep_cmdline(void *chosen) in prep_cmdline() argument
203 n = getprop(chosen, "linux,cmdline-timeout", &v, sizeof(v)); in prep_cmdline()
208 getprop(chosen, "bootargs", cmdline, BOOT_COMMAND_LINE_SIZE-1); in prep_cmdline()
219 setprop_str(chosen, "bootargs", cmdline); in prep_cmdline()
232 void *chosen; in start() local
250 chosen = finddevice("/chosen"); in start()
251 if (!chosen) in start()
252 chosen = create_node(NULL, "chosen"); in start()
255 initrd = prep_initrd(vmlinux, chosen, in start()
257 prep_esm_blob(vmlinux, chosen); in start()
258 prep_cmdline(chosen); in start()