Lines Matching refs:image
286 static int memmap_exclude_ranges(struct kimage *image, struct crash_mem *cmem, in memmap_exclude_ranges() argument
298 start = image->elf_load_addr; in memmap_exclude_ranges()
299 end = start + image->elf_headers_sz - 1; in memmap_exclude_ranges()
306 if (image->dm_crypt_keys_addr) { in memmap_exclude_ranges()
307 start = image->dm_crypt_keys_addr; in memmap_exclude_ranges()
308 end = start + image->dm_crypt_keys_sz - 1; in memmap_exclude_ranges()
316 int crash_setup_memmap_entries(struct kimage *image, struct boot_params *params) in crash_setup_memmap_entries() argument
372 ret = memmap_exclude_ranges(image, cmem, crashk_res.start, crashk_res.end); in crash_setup_memmap_entries()
400 int crash_load_segments(struct kimage *image) in crash_load_segments() argument
404 struct kexec_buf kbuf = { .image = image, .buf_min = 0, in crash_load_segments()
412 image->elf_headers = kbuf.buffer; in crash_load_segments()
413 image->elf_headers_sz = kbuf.bufsz; in crash_load_segments()
430 image->elfcorehdr_index = image->nr_segments; in crash_load_segments()
433 image->elf_headers_sz = kbuf.memsz; in crash_load_segments()
444 image->elf_load_addr = kbuf.mem; in crash_load_segments()
446 image->elf_load_addr, kbuf.bufsz, kbuf.memsz); in crash_load_segments()
457 int arch_crash_hotplug_support(struct kimage *image, unsigned long kexec_flags) in arch_crash_hotplug_support() argument
461 if (image->file_mode) in arch_crash_hotplug_support()
498 void arch_crash_handle_hotplug_event(struct kimage *image, void *arg) in arch_crash_handle_hotplug_event() argument
510 if ((image->file_mode || image->elfcorehdr_updated) && in arch_crash_handle_hotplug_event()
511 ((image->hp_action == KEXEC_CRASH_HP_ADD_CPU) || in arch_crash_handle_hotplug_event()
512 (image->hp_action == KEXEC_CRASH_HP_REMOVE_CPU))) in arch_crash_handle_hotplug_event()
528 mem = image->segment[image->elfcorehdr_index].mem; in arch_crash_handle_hotplug_event()
529 memsz = image->segment[image->elfcorehdr_index].memsz; in arch_crash_handle_hotplug_event()
551 xchg(&kexec_crash_image, image); in arch_crash_handle_hotplug_event()