Lines Matching refs:chosen_node
159 int ret, chosen_node; in setup_new_fdt() local
170 chosen_node = fdt_path_offset(fdt, "/chosen"); in setup_new_fdt()
171 if (chosen_node == -FDT_ERR_NOTFOUND) { in setup_new_fdt()
172 chosen_node = fdt_add_subnode(fdt, fdt_path_offset(fdt, "/"), in setup_new_fdt()
174 if (chosen_node < 0) { in setup_new_fdt()
178 } else if (chosen_node < 0) { in setup_new_fdt()
184 prop = fdt_getprop(fdt, chosen_node, "linux,initrd-start", NULL); in setup_new_fdt()
190 prop = fdt_getprop(fdt, chosen_node, "linux,initrd-end", NULL); in setup_new_fdt()
213 ret = fdt_delprop(fdt, chosen_node, in setup_new_fdt()
220 ret = fdt_delprop(fdt, chosen_node, "linux,initrd-end"); in setup_new_fdt()
229 ret = fdt_setprop_u64(fdt, chosen_node, in setup_new_fdt()
236 ret = fdt_setprop_u64(fdt, chosen_node, "linux,initrd-end", in setup_new_fdt()
250 ret = fdt_setprop_string(fdt, chosen_node, "bootargs", cmdline); in setup_new_fdt()
254 ret = fdt_delprop(fdt, chosen_node, "bootargs"); in setup_new_fdt()
275 ret = setup_ima_buffer(image, fdt, chosen_node); in setup_new_fdt()
281 ret = fdt_setprop(fdt, chosen_node, "linux,booted-from-kexec", NULL, 0); in setup_new_fdt()