/linux/arch/arm64/kernel/ |
H A D | machine_kexec.c | 33 const struct kimage *kimage) in _kexec_image_info() argument 37 kexec_dprintk(" type: %d\n", kimage->type); in _kexec_image_info() 38 kexec_dprintk(" head: %lx\n", kimage->head); in _kexec_image_info() 39 kexec_dprintk(" kern_reloc: %pa\n", &kimage->arch.kern_reloc); in _kexec_image_info() 40 kexec_dprintk(" el2_vectors: %pa\n", &kimage->arch.el2_vectors); in _kexec_image_info() 43 void machine_kexec_cleanup(struct kimage *kimage) in machine_kexec_cleanup() argument 55 int machine_kexec_prepare(struct kimage *kimage) in machine_kexec_prepare() argument 57 if (kimage->type != KEXEC_TYPE_CRASH && cpus_are_stuck_in_kernel()) { in machine_kexec_prepare() 68 static void kexec_segment_flush(const struct kimage *kimage) in kexec_segment_flush() argument 74 for (i = 0; i < kimage->nr_segments; i++) { in kexec_segment_flush() [all …]
|
/linux/arch/mips/kernel/ |
H A D | machine_kexec.c | 34 static void kexec_image_info(const struct kimage *kimage) in kexec_image_info() argument 39 pr_debug(" type: %d\n", kimage->type); in kexec_image_info() 40 pr_debug(" start: %lx\n", kimage->start); in kexec_image_info() 41 pr_debug(" head: %lx\n", kimage->head); in kexec_image_info() 42 pr_debug(" nr_segments: %lu\n", kimage->nr_segments); in kexec_image_info() 44 for (i = 0; i < kimage->nr_segments; i++) { in kexec_image_info() 47 kimage->segment[i].mem, in kexec_image_info() 48 kimage->segment[i].mem + kimage->segment[i].memsz, in kexec_image_info() 49 (unsigned long)kimage->segment[i].memsz, in kexec_image_info() 50 (unsigned long)kimage->segment[i].memsz / PAGE_SIZE); in kexec_image_info() [all …]
|
/linux/arch/parisc/kernel/ |
H A D | kexec.c | 22 static void kexec_show_segment_info(const struct kimage *kimage, in kexec_show_segment_info() argument 27 kimage->segment[n].mem, in kexec_show_segment_info() 28 kimage->segment[n].mem + kimage->segment[n].memsz, in kexec_show_segment_info() 29 (unsigned long)kimage->segment[n].memsz, in kexec_show_segment_info() 30 (unsigned long)kimage->segment[n].memsz / PAGE_SIZE); in kexec_show_segment_info() 33 static void kexec_image_info(const struct kimage *kimage) in kexec_image_info() argument 38 pr_debug(" type: %d\n", kimage->type); in kexec_image_info() 39 pr_debug(" start: %lx\n", kimage->start); in kexec_image_info() 40 pr_debug(" head: %lx\n", kimage->head); in kexec_image_info() 41 pr_debug(" nr_segments: %lu\n", kimage->nr_segments); in kexec_image_info() [all …]
|
/linux/arch/powerpc/include/asm/ |
H A D | kexec.h | 58 struct kimage; 63 extern void default_machine_kexec(struct kimage *image); 68 void kexec_copy_flush(struct kimage *image); 83 char *setup_kdump_cmdline(struct kimage *image, char *cmdline, 85 int setup_purgatory(struct kimage *image, const void *slave_code, 92 int arch_kexec_kernel_image_probe(struct kimage *image, void *buf, unsigned long buf_len); 95 int arch_kimage_file_post_load_cleanup(struct kimage *image); 101 int load_crashdump_segments_ppc64(struct kimage *image, 103 int setup_purgatory_ppc64(struct kimage *image, const void *slave_code, 106 unsigned int kexec_extra_fdt_size_ppc64(struct kimage *image, struct crash_mem *rmem); [all …]
|
/linux/kernel/ |
H A D | kexec_internal.h | 9 struct kimage *do_kimage_alloc_init(void); 10 int sanity_check_segment_list(struct kimage *image); 12 void kimage_free(struct kimage *image); 13 int kimage_load_segment(struct kimage *image, struct kexec_segment *segment); 14 void kimage_terminate(struct kimage *image); 15 int kimage_is_destination_range(struct kimage *image, 36 void kimage_file_post_load_cleanup(struct kimage *image); 40 static inline void kimage_file_post_load_cleanup(struct kimage *image) { } in kimage_file_post_load_cleanup()
|
H A D | kexec_core.c | 104 static struct page *kimage_alloc_page(struct kimage *image, 108 int sanity_check_segment_list(struct kimage *image) in sanity_check_segment_list() 216 struct kimage *do_kimage_alloc_init(void) in do_kimage_alloc_init() 218 struct kimage *image; in do_kimage_alloc_init() 249 int kimage_is_destination_range(struct kimage *image, in kimage_is_destination_range() 318 static struct page *kimage_alloc_normal_control_pages(struct kimage *image, in kimage_alloc_normal_control_pages() 385 static struct page *kimage_alloc_crash_control_pages(struct kimage *image, in kimage_alloc_crash_control_pages() 453 struct page *kimage_alloc_control_pages(struct kimage *image, in kimage_alloc_control_pages() 472 static int kimage_add_entry(struct kimage *image, kimage_entry_t entry) in kimage_add_entry() 498 static int kimage_set_destination(struct kimage *image, in kimage_set_destination() [all …]
|
H A D | kexec_file.c | 41 static int kexec_calculate_store_digests(struct kimage *image); 51 int kexec_image_probe_default(struct kimage *image, void *buf, in kexec_image_probe_default() 68 static void *kexec_image_load_default(struct kimage *image) in kexec_image_load_default() 79 int kexec_image_post_load_cleanup_default(struct kimage *image) in kexec_image_post_load_cleanup_default() 92 void kimage_file_post_load_cleanup(struct kimage *image) in kimage_file_post_load_cleanup() 148 static int kexec_image_verify_sig(struct kimage *image, void *buf, in kexec_image_verify_sig() 160 kimage_validate_signature(struct kimage *image) in kimage_validate_signature() 194 kimage_file_prepare_segments(struct kimage *image, int kernel_fd, int initrd_fd, in kimage_file_prepare_segments() 273 kimage_file_alloc_init(struct kimage **rimage, int kernel_fd, in kimage_file_alloc_init() 278 struct kimage *image; in kimage_file_alloc_init() [all …]
|
/linux/include/linux/ |
H A D | crash_core.h | 9 struct kimage; 40 static inline void arch_crash_handle_hotplug_event(struct kimage *image, void *arg) { } in arch_crash_handle_hotplug_event() 46 static inline int arch_crash_hotplug_support(struct kimage *image, unsigned long kexec_flags) in arch_crash_hotplug_support() 65 struct kimage; 80 extern int kimage_crash_copy_vmcoreinfo(struct kimage *image); 85 struct kimage; 91 static inline int kimage_crash_copy_vmcoreinfo(struct kimage *image) { return 0; }; in kimage_crash_copy_vmcoreinfo()
|
H A D | ima.h | 34 extern void ima_add_kexec_buffer(struct kimage *image); 87 struct kimage; 89 static inline void ima_add_kexec_buffer(struct kimage *image) in ima_add_kexec_buffer()
|
/linux/arch/m68k/kernel/ |
H A D | machine_kexec.c | 18 int machine_kexec_prepare(struct kimage *kimage) in machine_kexec_prepare() argument 23 void machine_kexec_cleanup(struct kimage *kimage) in machine_kexec_cleanup() argument 39 void machine_kexec(struct kimage *image) in machine_kexec()
|
/linux/arch/s390/kernel/ |
H A D | machine_kexec.c | 48 struct kimage *image = data; in __do_machine_kdump() 122 static bool kdump_csum_valid(struct kimage *image) in kdump_csum_valid() 190 int machine_kexec_prepare(struct kimage *image) in machine_kexec_prepare() 209 void machine_kexec_cleanup(struct kimage *image) in machine_kexec_cleanup() 228 struct kimage *image = data; in __do_machine_kexec() 255 if (((struct kimage *) data)->type == KEXEC_TYPE_CRASH) in __machine_kexec() 265 void machine_kexec(struct kimage *image) in machine_kexec()
|
H A D | machine_kexec_file.c | 84 static int kexec_file_update_purgatory(struct kimage *image, in kexec_file_update_purgatory() 129 static int kexec_file_add_purgatory(struct kimage *image, in kexec_file_add_purgatory() 152 static int kexec_file_add_initrd(struct kimage *image, in kexec_file_add_initrd() 182 static int kexec_file_add_ipl_report(struct kimage *image, in kexec_file_add_ipl_report() 242 void *kexec_file_add_components(struct kimage *image, in kexec_file_add_components() 243 int (*add_kernel)(struct kimage *image, in kexec_file_add_components() 383 int arch_kimage_file_post_load_cleanup(struct kimage *image) in arch_kimage_file_post_load_cleanup()
|
/linux/arch/arm64/include/asm/ |
H A D | kexec.h | 96 struct kimage; 103 int machine_kexec_post_load(struct kimage *image); 124 int arch_kimage_file_post_load_cleanup(struct kimage *image); 127 extern int load_other_segments(struct kimage *image,
|
/linux/arch/x86/include/asm/ |
H A D | crash.h | 5 struct kimage; 7 int crash_load_segments(struct kimage *image); 8 int crash_setup_memmap_entries(struct kimage *image,
|
H A D | kexec.h | 29 struct kimage; 202 int arch_kimage_file_post_load_cleanup(struct kimage *image); 210 void arch_crash_handle_hotplug_event(struct kimage *image, void *arg); 213 int arch_crash_hotplug_support(struct kimage *image, unsigned long kexec_flags);
|
/linux/arch/x86/kernel/ |
H A D | machine_kexec_32.c | 43 static void machine_kexec_free_page_tables(struct kimage *image) in machine_kexec_free_page_tables() 59 static int machine_kexec_alloc_page_tables(struct kimage *image) in machine_kexec_alloc_page_tables() 100 static void machine_kexec_prepare_page_tables(struct kimage *image) in machine_kexec_prepare_page_tables() 135 int machine_kexec_prepare(struct kimage *image) in machine_kexec_prepare() 151 void machine_kexec_cleanup(struct kimage *image) in machine_kexec_cleanup() 161 void machine_kexec(struct kimage *image) in machine_kexec()
|
H A D | machine_kexec_64.c | 137 static void free_transition_pgtable(struct kimage *image) in free_transition_pgtable() 149 static int init_transition_pgtable(struct kimage *image, pgd_t *pgd) in init_transition_pgtable() 206 struct kimage *image = (struct kimage *)data; in alloc_pgt_page() 219 static int init_pgtable(struct kimage *image, unsigned long start_pgtable) in init_pgtable() 297 int machine_kexec_prepare(struct kimage *image) in machine_kexec_prepare() 313 void machine_kexec_cleanup(struct kimage *image) in machine_kexec_cleanup() 322 void machine_kexec(struct kimage *image) in machine_kexec() 535 int arch_kimage_file_post_load_cleanup(struct kimage *image) in arch_kimage_file_post_load_cleanup()
|
H A D | crash.c | 276 static int memmap_exclude_ranges(struct kimage *image, struct crash_mem *cmem, in memmap_exclude_ranges() 293 int crash_setup_memmap_entries(struct kimage *image, struct boot_params *params) in crash_setup_memmap_entries() 360 int crash_load_segments(struct kimage *image) in crash_load_segments() 417 int arch_crash_hotplug_support(struct kimage *image, unsigned long kexec_flags) in arch_crash_hotplug_support() 458 void arch_crash_handle_hotplug_event(struct kimage *image, void *arg) in arch_crash_handle_hotplug_event()
|
/linux/arch/sh/kernel/ |
H A D | machine_kexec.c | 41 int machine_kexec_prepare(struct kimage *image) in machine_kexec_prepare() 46 void machine_kexec_cleanup(struct kimage *image) in machine_kexec_cleanup() 50 static void kexec_info(struct kimage *image) in kexec_info() 69 void machine_kexec(struct kimage *image) in machine_kexec()
|
/linux/arch/powerpc/kexec/ |
H A D | crash.c | 425 static void update_crash_elfcorehdr(struct kimage *image, struct memory_notify *mn) in update_crash_elfcorehdr() 498 static int get_fdt_index(struct kimage *image) in get_fdt_index() 523 static void update_crash_fdt(struct kimage *image) in update_crash_fdt() 547 int arch_crash_hotplug_support(struct kimage *image, unsigned long kexec_flags) in arch_crash_hotplug_support() 568 void arch_crash_handle_hotplug_event(struct kimage *image, void *arg) in arch_crash_handle_hotplug_event()
|
H A D | core_32.c | 29 void default_machine_kexec(struct kimage *image) in default_machine_kexec() 66 int machine_kexec_prepare(struct kimage *image) in machine_kexec_prepare()
|
/linux/arch/riscv/kernel/ |
H A D | machine_kexec.c | 31 machine_kexec_prepare(struct kimage *image) in machine_kexec_prepare() 92 machine_kexec_cleanup(struct kimage *image) in machine_kexec_cleanup() 172 machine_kexec(struct kimage *image) in machine_kexec()
|
/linux/arch/mips/include/asm/ |
H A D | kexec.h | 35 struct kimage; 37 extern int (*_machine_kexec_prepare)(struct kimage *);
|
/linux/arch/arm/kernel/ |
H A D | machine_kexec.c | 33 int machine_kexec_prepare(struct kimage *image) in machine_kexec_prepare() 72 void machine_kexec_cleanup(struct kimage *image) in machine_kexec_cleanup() 164 void machine_kexec(struct kimage *image) in machine_kexec()
|
/linux/arch/riscv/include/asm/ |
H A D | kexec.h | 67 struct kimage; 68 int arch_kimage_file_post_load_cleanup(struct kimage *image);
|