Lines Matching full:image
41 int arch_kimage_file_post_load_cleanup(struct kimage *image) in arch_kimage_file_post_load_cleanup() argument
43 vfree(image->arch.dtb); in arch_kimage_file_post_load_cleanup()
44 image->arch.dtb = NULL; in arch_kimage_file_post_load_cleanup()
46 vfree(image->arch.elf_headers); in arch_kimage_file_post_load_cleanup()
47 image->arch.elf_headers = NULL; in arch_kimage_file_post_load_cleanup()
48 image->arch.elf_headers_sz = 0; in arch_kimage_file_post_load_cleanup()
50 return kexec_image_post_load_cleanup_default(image); in arch_kimage_file_post_load_cleanup()
53 static int setup_dtb(struct kimage *image, in setup_dtb() argument
72 if (image->type == KEXEC_TYPE_CRASH) { in setup_dtb()
76 image->arch.elf_headers_mem, in setup_dtb()
77 image->arch.elf_headers_sz); in setup_dtb()
165 static int create_dtb(struct kimage *image, in create_dtb() argument
188 ret = setup_dtb(image, initrd_load_addr, initrd_len, in create_dtb()
244 * Tries to add the initrd and DTB to the image. If it is not possible to find
245 * valid locations, this function will undo changes to the image and return non
248 int load_other_segments(struct kimage *image, in load_other_segments() argument
257 orig_segments = image->nr_segments; in load_other_segments()
260 kbuf.image = image; in load_other_segments()
265 if (image->type == KEXEC_TYPE_CRASH) { in load_other_segments()
285 image->arch.elf_headers = headers; in load_other_segments()
286 image->arch.elf_headers_mem = kbuf.mem; in load_other_segments()
287 image->arch.elf_headers_sz = headers_sz; in load_other_segments()
290 image->arch.elf_headers_mem, kbuf.bufsz, kbuf.memsz); in load_other_segments()
315 ret = create_dtb(image, initrd_load_addr, initrd_len, cmdline, &dtb); in load_other_segments()
334 image->arch.dtb = dtb; in load_other_segments()
335 image->arch.dtb_mem = kbuf.mem; in load_other_segments()
343 image->nr_segments = orig_segments; in load_other_segments()