Lines Matching full:image

28 	struct kimage *image;  in kimage_alloc_init()  local
39 image = do_kimage_alloc_init(); in kimage_alloc_init()
40 if (!image) in kimage_alloc_init()
43 image->start = entry; in kimage_alloc_init()
44 image->nr_segments = nr_segments; in kimage_alloc_init()
45 memcpy(image->segment, segments, nr_segments * sizeof(*segments)); in kimage_alloc_init()
49 image->control_page = crashk_res.start; in kimage_alloc_init()
50 image->type = KEXEC_TYPE_CRASH; in kimage_alloc_init()
53 ret = sanity_check_segment_list(image); in kimage_alloc_init()
63 image->control_code_page = kimage_alloc_control_pages(image, in kimage_alloc_init()
65 if (!image->control_code_page) { in kimage_alloc_init()
71 image->swap_page = kimage_alloc_control_pages(image, 0); in kimage_alloc_init()
72 if (!image->swap_page) { in kimage_alloc_init()
78 *rimage = image; in kimage_alloc_init()
81 kimage_free_page_list(&image->control_pages); in kimage_alloc_init()
83 kfree(image); in kimage_alloc_init()
90 struct kimage **dest_image, *image; in do_kexec_load() local
111 /* Uninstall image */ in do_kexec_load()
125 ret = kimage_alloc_init(&image, entry, nr_segments, segments, flags); in do_kexec_load()
130 image->preserve_context = 1; in do_kexec_load()
132 ret = machine_kexec_prepare(image); in do_kexec_load()
140 ret = kimage_crash_copy_vmcoreinfo(image); in do_kexec_load()
145 ret = kimage_load_segment(image, &image->segment[i]); in do_kexec_load()
150 kimage_terminate(image); in do_kexec_load()
152 ret = machine_kexec_post_load(image); in do_kexec_load()
157 image = xchg(dest_image, image); in do_kexec_load()
163 kimage_free(image); in do_kexec_load()
183 * and then copies the image to it's final destination. And
184 * jumps into the image at entry.