Lines Matching refs:image
28 struct kimage *image; in kimage_alloc_init() local
41 image = do_kimage_alloc_init(); in kimage_alloc_init()
42 if (!image) in kimage_alloc_init()
45 image->start = entry; in kimage_alloc_init()
46 image->nr_segments = nr_segments; in kimage_alloc_init()
47 memcpy(image->segment, segments, nr_segments * sizeof(*segments)); in kimage_alloc_init()
52 image->control_page = crashk_res.start; in kimage_alloc_init()
53 image->type = KEXEC_TYPE_CRASH; in kimage_alloc_init()
57 ret = sanity_check_segment_list(image); in kimage_alloc_init()
67 image->control_code_page = kimage_alloc_control_pages(image, in kimage_alloc_init()
69 if (!image->control_code_page) { in kimage_alloc_init()
75 image->swap_page = kimage_alloc_control_pages(image, 0); in kimage_alloc_init()
76 if (!image->swap_page) { in kimage_alloc_init()
82 *rimage = image; in kimage_alloc_init()
85 kimage_free_page_list(&image->control_pages); in kimage_alloc_init()
87 kfree(image); in kimage_alloc_init()
94 struct kimage **dest_image, *image; in do_kexec_load() local
130 ret = kimage_alloc_init(&image, entry, nr_segments, segments, flags); in do_kexec_load()
135 image->preserve_context = 1; in do_kexec_load()
138 if ((flags & KEXEC_ON_CRASH) && arch_crash_hotplug_support(image, flags)) in do_kexec_load()
139 image->hotplug_support = 1; in do_kexec_load()
142 ret = machine_kexec_prepare(image); in do_kexec_load()
150 ret = kimage_crash_copy_vmcoreinfo(image); in do_kexec_load()
155 ret = kimage_load_segment(image, &image->segment[i]); in do_kexec_load()
160 kimage_terminate(image); in do_kexec_load()
162 ret = machine_kexec_post_load(image); in do_kexec_load()
167 image = xchg(dest_image, image); in do_kexec_load()
175 kimage_free(image); in do_kexec_load()