Lines Matching refs:chosen_node

192 static void remove_ima_buffer(void *fdt, int chosen_node)  in remove_ima_buffer()  argument
202 prop = fdt_getprop(fdt, chosen_node, "linux,ima-kexec-buffer", &len); in remove_ima_buffer()
207 fdt_delprop(fdt, chosen_node, "linux,ima-kexec-buffer"); in remove_ima_buffer()
226 int chosen_node) in setup_ima_buffer() argument
233 ret = fdt_appendprop_addrrange(fdt, 0, chosen_node, in setup_ima_buffer()
252 int chosen_node) in setup_ima_buffer() argument
258 static int kho_add_chosen(const struct kimage *image, void *fdt, int chosen_node) in kho_add_chosen() argument
267 ret = fdt_delprop(fdt, chosen_node, "linux,kho-fdt"); in kho_add_chosen()
270 ret = fdt_delprop(fdt, chosen_node, "linux,kho-scratch"); in kho_add_chosen()
284 ret = fdt_appendprop_addrrange(fdt, 0, chosen_node, "linux,kho-fdt", in kho_add_chosen()
288 ret = fdt_appendprop_addrrange(fdt, 0, chosen_node, "linux,kho-scratch", in kho_add_chosen()
313 int ret, chosen_node, len; in of_kexec_alloc_and_setup_fdt() local
339 chosen_node = fdt_path_offset(fdt, "/chosen"); in of_kexec_alloc_and_setup_fdt()
340 if (chosen_node == -FDT_ERR_NOTFOUND) in of_kexec_alloc_and_setup_fdt()
341 chosen_node = fdt_add_subnode(fdt, fdt_path_offset(fdt, "/"), in of_kexec_alloc_and_setup_fdt()
343 if (chosen_node < 0) { in of_kexec_alloc_and_setup_fdt()
344 ret = chosen_node; in of_kexec_alloc_and_setup_fdt()
348 ret = fdt_delprop(fdt, chosen_node, "linux,elfcorehdr"); in of_kexec_alloc_and_setup_fdt()
351 ret = fdt_delprop(fdt, chosen_node, "linux,usable-memory-range"); in of_kexec_alloc_and_setup_fdt()
356 prop = fdt_getprop(fdt, chosen_node, "linux,initrd-start", &len); in of_kexec_alloc_and_setup_fdt()
362 prop = fdt_getprop(fdt, chosen_node, "linux,initrd-end", &len); in of_kexec_alloc_and_setup_fdt()
385 ret = fdt_setprop_u64(fdt, chosen_node, "linux,initrd-start", in of_kexec_alloc_and_setup_fdt()
390 ret = fdt_setprop_u64(fdt, chosen_node, "linux,initrd-end", in of_kexec_alloc_and_setup_fdt()
400 ret = fdt_delprop(fdt, chosen_node, "linux,initrd-start"); in of_kexec_alloc_and_setup_fdt()
404 ret = fdt_delprop(fdt, chosen_node, "linux,initrd-end"); in of_kexec_alloc_and_setup_fdt()
411 ret = fdt_appendprop_addrrange(fdt, 0, chosen_node, in of_kexec_alloc_and_setup_fdt()
428 ret = fdt_appendprop_addrrange(fdt, 0, chosen_node, in of_kexec_alloc_and_setup_fdt()
435 ret = fdt_appendprop_addrrange(fdt, 0, chosen_node, in of_kexec_alloc_and_setup_fdt()
446 ret = kho_add_chosen(image, fdt, chosen_node); in of_kexec_alloc_and_setup_fdt()
452 ret = fdt_setprop_string(fdt, chosen_node, "bootargs", cmdline); in of_kexec_alloc_and_setup_fdt()
456 ret = fdt_delprop(fdt, chosen_node, "bootargs"); in of_kexec_alloc_and_setup_fdt()
462 ret = fdt_delprop(fdt, chosen_node, "kaslr-seed"); in of_kexec_alloc_and_setup_fdt()
471 ret = fdt_setprop_u64(fdt, chosen_node, "kaslr-seed", seed); in of_kexec_alloc_and_setup_fdt()
483 ret = fdt_setprop_placeholder(fdt, chosen_node, "rng-seed", in of_kexec_alloc_and_setup_fdt()
493 ret = fdt_setprop(fdt, chosen_node, "linux,booted-from-kexec", NULL, 0); in of_kexec_alloc_and_setup_fdt()
497 remove_ima_buffer(fdt, chosen_node); in of_kexec_alloc_and_setup_fdt()