Lines Matching full:image
30 int arch_kimage_file_post_load_cleanup(struct kimage *image) in arch_kimage_file_post_load_cleanup() argument
32 kvfree(image->arch.dtb); in arch_kimage_file_post_load_cleanup()
33 image->arch.dtb = NULL; in arch_kimage_file_post_load_cleanup()
35 vfree(image->elf_headers); in arch_kimage_file_post_load_cleanup()
36 image->elf_headers = NULL; in arch_kimage_file_post_load_cleanup()
37 image->elf_headers_sz = 0; in arch_kimage_file_post_load_cleanup()
39 return kexec_image_post_load_cleanup_default(image); in arch_kimage_file_post_load_cleanup()
85 * Tries to add the initrd and DTB to the image. If it is not possible to find
86 * valid locations, this function will undo changes to the image and return non
89 int load_other_segments(struct kimage *image, in load_other_segments() argument
98 orig_segments = image->nr_segments; in load_other_segments()
101 kbuf.image = image; in load_other_segments()
106 if (image->type == KEXEC_TYPE_CRASH) { in load_other_segments()
126 image->elf_headers = headers; in load_other_segments()
127 image->elf_load_addr = kbuf.mem; in load_other_segments()
128 image->elf_headers_sz = headers_sz; in load_other_segments()
131 image->elf_load_addr, kbuf.bufsz, kbuf.memsz); in load_other_segments()
156 dtb = of_kexec_alloc_and_setup_fdt(image, initrd_load_addr, in load_other_segments()
179 image->arch.dtb = dtb; in load_other_segments()
180 image->arch.dtb_mem = kbuf.mem; in load_other_segments()
188 image->nr_segments = orig_segments; in load_other_segments()