Lines Matching refs:image
31 machine_kexec_prepare(struct kimage *image) in machine_kexec_prepare() argument
33 struct kimage_arch *internal = &image->arch; in machine_kexec_prepare()
40 for (i = 0; i < image->nr_segments; i++) { in machine_kexec_prepare()
41 if (image->segment[i].memsz <= sizeof(fdt)) in machine_kexec_prepare()
44 if (image->file_mode) in machine_kexec_prepare()
45 memcpy(&fdt, image->segment[i].buf, sizeof(fdt)); in machine_kexec_prepare()
46 else if (copy_from_user(&fdt, image->segment[i].buf, sizeof(fdt))) in machine_kexec_prepare()
52 internal->fdt_addr = (unsigned long) image->segment[i].mem; in machine_kexec_prepare()
62 if (image->type != KEXEC_TYPE_CRASH) { in machine_kexec_prepare()
63 control_code_buffer = page_address(image->control_code_page); in machine_kexec_prepare()
64 control_code_buffer_sz = page_size(image->control_code_page); in machine_kexec_prepare()
92 machine_kexec_cleanup(struct kimage *image) in machine_kexec_cleanup() argument
172 machine_kexec(struct kimage *image) in machine_kexec() argument
174 struct kimage_arch *internal = &image->arch; in machine_kexec()
175 unsigned long jump_addr = (unsigned long) image->start; in machine_kexec()
176 unsigned long first_ind_entry = (unsigned long) &image->head; in machine_kexec()
180 void *control_code_buffer = page_address(image->control_code_page); in machine_kexec()
188 if (image->type != KEXEC_TYPE_CRASH) in machine_kexec()