Lines Matching refs:image

201 static int prepare_elf_headers(struct kimage *image, void **addr,  in prepare_elf_headers()  argument
260 static int memmap_exclude_ranges(struct kimage *image, struct crash_mem *cmem, in memmap_exclude_ranges() argument
271 start = image->elf_load_addr; in memmap_exclude_ranges()
272 end = start + image->elf_headers_sz - 1; in memmap_exclude_ranges()
277 int crash_setup_memmap_entries(struct kimage *image, struct boot_params *params) in crash_setup_memmap_entries() argument
324 ret = memmap_exclude_ranges(image, cmem, crashk_res.start, crashk_res.end); in crash_setup_memmap_entries()
344 int crash_load_segments(struct kimage *image) in crash_load_segments() argument
348 struct kexec_buf kbuf = { .image = image, .buf_min = 0, in crash_load_segments()
352 ret = prepare_elf_headers(image, &kbuf.buffer, &kbuf.bufsz, &pnum); in crash_load_segments()
356 image->elf_headers = kbuf.buffer; in crash_load_segments()
357 image->elf_headers_sz = kbuf.bufsz; in crash_load_segments()
374 image->elfcorehdr_index = image->nr_segments; in crash_load_segments()
377 image->elf_headers_sz = kbuf.memsz; in crash_load_segments()
388 image->elf_load_addr = kbuf.mem; in crash_load_segments()
390 image->elf_load_addr, kbuf.bufsz, kbuf.memsz); in crash_load_segments()
434 void arch_crash_handle_hotplug_event(struct kimage *image) in arch_crash_handle_hotplug_event() argument
446 if ((image->file_mode || image->elfcorehdr_updated) && in arch_crash_handle_hotplug_event()
447 ((image->hp_action == KEXEC_CRASH_HP_ADD_CPU) || in arch_crash_handle_hotplug_event()
448 (image->hp_action == KEXEC_CRASH_HP_REMOVE_CPU))) in arch_crash_handle_hotplug_event()
455 if (prepare_elf_headers(image, &elfbuf, &elfsz, &nr_mem_ranges)) { in arch_crash_handle_hotplug_event()
464 mem = image->segment[image->elfcorehdr_index].mem; in arch_crash_handle_hotplug_event()
465 memsz = image->segment[image->elfcorehdr_index].memsz; in arch_crash_handle_hotplug_event()
487 xchg(&kexec_crash_image, image); in arch_crash_handle_hotplug_event()