Lines Matching refs:image

276 static int memmap_exclude_ranges(struct kimage *image, struct crash_mem *cmem,  in memmap_exclude_ranges()  argument
287 start = image->elf_load_addr; in memmap_exclude_ranges()
288 end = start + image->elf_headers_sz - 1; in memmap_exclude_ranges()
293 int crash_setup_memmap_entries(struct kimage *image, struct boot_params *params) in crash_setup_memmap_entries() argument
340 ret = memmap_exclude_ranges(image, cmem, crashk_res.start, crashk_res.end); in crash_setup_memmap_entries()
360 int crash_load_segments(struct kimage *image) in crash_load_segments() argument
364 struct kexec_buf kbuf = { .image = image, .buf_min = 0, in crash_load_segments()
372 image->elf_headers = kbuf.buffer; in crash_load_segments()
373 image->elf_headers_sz = kbuf.bufsz; in crash_load_segments()
390 image->elfcorehdr_index = image->nr_segments; in crash_load_segments()
393 image->elf_headers_sz = kbuf.memsz; in crash_load_segments()
404 image->elf_load_addr = kbuf.mem; in crash_load_segments()
406 image->elf_load_addr, kbuf.bufsz, kbuf.memsz); in crash_load_segments()
417 int arch_crash_hotplug_support(struct kimage *image, unsigned long kexec_flags) in arch_crash_hotplug_support() argument
421 if (image->file_mode) in arch_crash_hotplug_support()
458 void arch_crash_handle_hotplug_event(struct kimage *image, void *arg) in arch_crash_handle_hotplug_event() argument
470 if ((image->file_mode || image->elfcorehdr_updated) && in arch_crash_handle_hotplug_event()
471 ((image->hp_action == KEXEC_CRASH_HP_ADD_CPU) || in arch_crash_handle_hotplug_event()
472 (image->hp_action == KEXEC_CRASH_HP_REMOVE_CPU))) in arch_crash_handle_hotplug_event()
488 mem = image->segment[image->elfcorehdr_index].mem; in arch_crash_handle_hotplug_event()
489 memsz = image->segment[image->elfcorehdr_index].memsz; in arch_crash_handle_hotplug_event()
511 xchg(&kexec_crash_image, image); in arch_crash_handle_hotplug_event()