Lines Matching refs:chosen_node
186 static void remove_ima_buffer(void *fdt, int chosen_node) in remove_ima_buffer() argument
196 prop = fdt_getprop(fdt, chosen_node, "linux,ima-kexec-buffer", &len); in remove_ima_buffer()
201 fdt_delprop(fdt, chosen_node, "linux,ima-kexec-buffer"); in remove_ima_buffer()
220 int chosen_node) in setup_ima_buffer() argument
227 ret = fdt_appendprop_addrrange(fdt, 0, chosen_node, in setup_ima_buffer()
246 int chosen_node) in setup_ima_buffer() argument
270 int ret, chosen_node; in of_kexec_alloc_and_setup_fdt() local
296 chosen_node = fdt_path_offset(fdt, "/chosen"); in of_kexec_alloc_and_setup_fdt()
297 if (chosen_node == -FDT_ERR_NOTFOUND) in of_kexec_alloc_and_setup_fdt()
298 chosen_node = fdt_add_subnode(fdt, fdt_path_offset(fdt, "/"), in of_kexec_alloc_and_setup_fdt()
300 if (chosen_node < 0) { in of_kexec_alloc_and_setup_fdt()
301 ret = chosen_node; in of_kexec_alloc_and_setup_fdt()
305 ret = fdt_delprop(fdt, chosen_node, "linux,elfcorehdr"); in of_kexec_alloc_and_setup_fdt()
308 ret = fdt_delprop(fdt, chosen_node, "linux,usable-memory-range"); in of_kexec_alloc_and_setup_fdt()
313 prop = fdt_getprop(fdt, chosen_node, "linux,initrd-start", NULL); in of_kexec_alloc_and_setup_fdt()
319 prop = fdt_getprop(fdt, chosen_node, "linux,initrd-end", NULL); in of_kexec_alloc_and_setup_fdt()
342 ret = fdt_setprop_u64(fdt, chosen_node, "linux,initrd-start", in of_kexec_alloc_and_setup_fdt()
347 ret = fdt_setprop_u64(fdt, chosen_node, "linux,initrd-end", in of_kexec_alloc_and_setup_fdt()
357 ret = fdt_delprop(fdt, chosen_node, "linux,initrd-start"); in of_kexec_alloc_and_setup_fdt()
361 ret = fdt_delprop(fdt, chosen_node, "linux,initrd-end"); in of_kexec_alloc_and_setup_fdt()
368 ret = fdt_appendprop_addrrange(fdt, 0, chosen_node, in of_kexec_alloc_and_setup_fdt()
384 ret = fdt_appendprop_addrrange(fdt, 0, chosen_node, in of_kexec_alloc_and_setup_fdt()
393 ret = fdt_setprop_string(fdt, chosen_node, "bootargs", cmdline); in of_kexec_alloc_and_setup_fdt()
397 ret = fdt_delprop(fdt, chosen_node, "bootargs"); in of_kexec_alloc_and_setup_fdt()
403 ret = fdt_delprop(fdt, chosen_node, "kaslr-seed"); in of_kexec_alloc_and_setup_fdt()
412 ret = fdt_setprop_u64(fdt, chosen_node, "kaslr-seed", seed); in of_kexec_alloc_and_setup_fdt()
424 ret = fdt_setprop_placeholder(fdt, chosen_node, "rng-seed", in of_kexec_alloc_and_setup_fdt()
434 ret = fdt_setprop(fdt, chosen_node, "linux,booted-from-kexec", NULL, 0); in of_kexec_alloc_and_setup_fdt()
438 remove_ima_buffer(fdt, chosen_node); in of_kexec_alloc_and_setup_fdt()