Lines Matching full:image

52 int arch_check_excluded_range(struct kimage *image, unsigned long start,  in arch_check_excluded_range()  argument
58 emem = image->arch.exclude_ranges; in arch_check_excluded_range()
339 * @image: Kexec image.
344 static int load_backup_segment(struct kimage *image, struct kexec_buf *kbuf) in load_backup_segment() argument
372 image->arch.backup_buf = buf; in load_backup_segment()
373 image->arch.backup_start = kbuf->mem; in load_backup_segment()
380 * @image: Kexec image.
388 static void update_backup_region_phdr(struct kimage *image, Elf64_Ehdr *ehdr) in update_backup_region_phdr() argument
396 phdr->p_offset = image->arch.backup_start; in update_backup_region_phdr()
398 image->arch.backup_start); in update_backup_region_phdr()
424 * @image: Kexec image.
429 static int load_elfcorehdr_segment(struct kimage *image, struct kexec_buf *kbuf) in load_elfcorehdr_segment() argument
448 update_backup_region_phdr(image, headers); in load_elfcorehdr_segment()
462 image->elf_load_addr = kbuf->mem; in load_elfcorehdr_segment()
463 image->elf_headers_sz = headers_sz; in load_elfcorehdr_segment()
464 image->elf_headers = headers; in load_elfcorehdr_segment()
473 * @image: Kexec image.
478 int load_crashdump_segments_ppc64(struct kimage *image, in load_crashdump_segments_ppc64() argument
484 ret = load_backup_segment(image, kbuf); in load_crashdump_segments_ppc64()
492 ret = load_elfcorehdr_segment(image, kbuf); in load_crashdump_segments_ppc64()
498 image->elf_load_addr, kbuf->bufsz, kbuf->memsz); in load_crashdump_segments_ppc64()
508 * @image: kexec image.
516 int setup_purgatory_ppc64(struct kimage *image, const void *slave_code, in setup_purgatory_ppc64() argument
523 ret = setup_purgatory(image, slave_code, fdt, kernel_load_addr, in setup_purgatory_ppc64()
528 if (image->type == KEXEC_TYPE_CRASH) { in setup_purgatory_ppc64()
535 ret = kexec_purgatory_get_set_symbol(image, "run_at_load", in setup_purgatory_ppc64()
544 ret = kexec_purgatory_get_set_symbol(image, "backup_start", in setup_purgatory_ppc64()
545 &image->arch.backup_start, in setup_purgatory_ppc64()
546 sizeof(image->arch.backup_start), in setup_purgatory_ppc64()
560 ret = kexec_purgatory_get_set_symbol(image, "opal_base", &val, in setup_purgatory_ppc64()
568 ret = kexec_purgatory_get_set_symbol(image, "opal_entry", &val, in setup_purgatory_ppc64()
617 static unsigned int kdump_extra_fdt_size_ppc64(struct kimage *image, unsigned int cpu_nodes) in kdump_extra_fdt_size_ppc64() argument
625 if (!IS_ENABLED(CONFIG_CRASH_DUMP) || image->type != KEXEC_TYPE_CRASH) in kdump_extra_fdt_size_ppc64()
645 if (image->type == KEXEC_TYPE_CRASH) { in kdump_extra_fdt_size_ppc64()
658 * @image: kexec image being loaded.
662 unsigned int kexec_extra_fdt_size_ppc64(struct kimage *image, struct crash_mem *rmem) in kexec_extra_fdt_size_ppc64() argument
685 return extra_size + kdump_extra_fdt_size_ppc64(image, cpu_nodes); in kexec_extra_fdt_size_ppc64()
737 * @image: kexec image being loaded.
743 int setup_new_fdt_ppc64(const struct kimage *image, void *fdt, struct crash_mem *rmem) in setup_new_fdt_ppc64() argument
753 if (image->type == KEXEC_TYPE_CRASH) { in setup_new_fdt_ppc64()
777 ret = fdt_add_mem_rsv(fdt, image->arch.backup_start, in setup_new_fdt_ppc64()
827 * @image: kexec image being loaded.
833 int arch_kexec_kernel_image_probe(struct kimage *image, void *buf, in arch_kexec_kernel_image_probe() argument
839 ret = get_exclude_memory_ranges(&(image->arch.exclude_ranges)); in arch_kexec_kernel_image_probe()
845 return kexec_image_probe_default(image, buf, buf_len); in arch_kexec_kernel_image_probe()
850 * while loading the image.
851 * @image: kexec image being loaded.
855 int arch_kimage_file_post_load_cleanup(struct kimage *image) in arch_kimage_file_post_load_cleanup() argument
857 kfree(image->arch.exclude_ranges); in arch_kimage_file_post_load_cleanup()
858 image->arch.exclude_ranges = NULL; in arch_kimage_file_post_load_cleanup()
860 vfree(image->arch.backup_buf); in arch_kimage_file_post_load_cleanup()
861 image->arch.backup_buf = NULL; in arch_kimage_file_post_load_cleanup()
863 vfree(image->elf_headers); in arch_kimage_file_post_load_cleanup()
864 image->elf_headers = NULL; in arch_kimage_file_post_load_cleanup()
865 image->elf_headers_sz = 0; in arch_kimage_file_post_load_cleanup()
867 kvfree(image->arch.fdt); in arch_kimage_file_post_load_cleanup()
868 image->arch.fdt = NULL; in arch_kimage_file_post_load_cleanup()
870 return kexec_image_post_load_cleanup_default(image); in arch_kimage_file_post_load_cleanup()