Lines Matching full:dtb

43 	vfree(image->arch.dtb);  in arch_kimage_file_post_load_cleanup()
44 image->arch.dtb = NULL; in arch_kimage_file_post_load_cleanup()
55 char *cmdline, void *dtb) in setup_dtb() argument
59 ret = fdt_path_offset(dtb, "/chosen"); in setup_dtb()
65 ret = fdt_delprop(dtb, off, FDT_PROP_KEXEC_ELFHDR); in setup_dtb()
68 ret = fdt_delprop(dtb, off, FDT_PROP_MEM_RANGE); in setup_dtb()
74 ret = fdt_appendprop_addrrange(dtb, 0, off, in setup_dtb()
82 ret = fdt_appendprop_addrrange(dtb, 0, off, in setup_dtb()
92 ret = fdt_setprop_string(dtb, off, FDT_PROP_BOOTARGS, cmdline); in setup_dtb()
96 ret = fdt_delprop(dtb, off, FDT_PROP_BOOTARGS); in setup_dtb()
103 ret = fdt_setprop_u64(dtb, off, FDT_PROP_INITRD_START, in setup_dtb()
108 ret = fdt_setprop_u64(dtb, off, FDT_PROP_INITRD_END, in setup_dtb()
113 ret = fdt_delprop(dtb, off, FDT_PROP_INITRD_START); in setup_dtb()
117 ret = fdt_delprop(dtb, off, FDT_PROP_INITRD_END); in setup_dtb()
123 ret = fdt_delprop(dtb, off, FDT_PROP_KASLR_SEED); in setup_dtb()
131 ret = fdt_setprop_u64(dtb, off, FDT_PROP_KASLR_SEED, seed); in setup_dtb()
142 ret = fdt_setprop_placeholder(dtb, off, FDT_PROP_RNG_SEED, in setup_dtb()
167 char *cmdline, void **dtb) in create_dtb() argument
203 *dtb = buf; in create_dtb()
244 * Tries to add the initrd and DTB to the image. If it is not possible to find
255 void *headers, *dtb = NULL; in load_other_segments() local
314 /* load dtb */ in load_other_segments()
315 ret = create_dtb(image, initrd_load_addr, initrd_len, cmdline, &dtb); in load_other_segments()
317 pr_err("Preparing for new dtb failed\n"); in load_other_segments()
321 dtb_len = fdt_totalsize(dtb); in load_other_segments()
322 kbuf.buffer = dtb; in load_other_segments()
334 image->arch.dtb = dtb; in load_other_segments()
337 pr_debug("Loaded dtb at 0x%lx bufsz=0x%lx memsz=0x%lx\n", in load_other_segments()
344 vfree(dtb); in load_other_segments()