Home
last modified time | relevance | path

Searched refs:kimage (Results 1 – 25 of 45) sorted by relevance

12

/Linux-v5.4/arch/arm64/kernel/
Dmachine_kexec.c35 const struct kimage *kimage) in _kexec_image_info() argument
41 pr_debug(" type: %d\n", kimage->type); in _kexec_image_info()
42 pr_debug(" start: %lx\n", kimage->start); in _kexec_image_info()
43 pr_debug(" head: %lx\n", kimage->head); in _kexec_image_info()
44 pr_debug(" nr_segments: %lu\n", kimage->nr_segments); in _kexec_image_info()
46 for (i = 0; i < kimage->nr_segments; i++) { in _kexec_image_info()
49 kimage->segment[i].mem, in _kexec_image_info()
50 kimage->segment[i].mem + kimage->segment[i].memsz, in _kexec_image_info()
51 kimage->segment[i].memsz, in _kexec_image_info()
52 kimage->segment[i].memsz / PAGE_SIZE); in _kexec_image_info()
[all …]
Dmachine_kexec_file.c38 int arch_kimage_file_post_load_cleanup(struct kimage *image) in arch_kimage_file_post_load_cleanup()
46 static int setup_dtb(struct kimage *image, in setup_dtb()
133 static int create_dtb(struct kimage *image, in create_dtb()
177 int load_other_segments(struct kimage *image, in load_other_segments()
/Linux-v5.4/arch/parisc/kernel/
Dkexec.c20 static void kexec_show_segment_info(const struct kimage *kimage, in kexec_show_segment_info() argument
25 kimage->segment[n].mem, in kexec_show_segment_info()
26 kimage->segment[n].mem + kimage->segment[n].memsz, in kexec_show_segment_info()
27 (unsigned long)kimage->segment[n].memsz, in kexec_show_segment_info()
28 (unsigned long)kimage->segment[n].memsz / PAGE_SIZE); in kexec_show_segment_info()
31 static void kexec_image_info(const struct kimage *kimage) in kexec_image_info() argument
36 pr_debug(" type: %d\n", kimage->type); in kexec_image_info()
37 pr_debug(" start: %lx\n", kimage->start); in kexec_image_info()
38 pr_debug(" head: %lx\n", kimage->head); in kexec_image_info()
39 pr_debug(" nr_segments: %lu\n", kimage->nr_segments); in kexec_image_info()
[all …]
/Linux-v5.4/arch/mips/kernel/
Dmachine_kexec.c33 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()
43 for (i = 0; i < kimage->nr_segments; i++) { in kexec_image_info()
46 kimage->segment[i].mem, in kexec_image_info()
47 kimage->segment[i].mem + kimage->segment[i].memsz, in kexec_image_info()
48 (unsigned long)kimage->segment[i].memsz, in kexec_image_info()
49 (unsigned long)kimage->segment[i].memsz / PAGE_SIZE); in kexec_image_info()
[all …]
/Linux-v5.4/include/linux/
Dkexec.h119 struct kimage;
122 typedef void *(kexec_load_t)(struct kimage *image, char *kernel_buf,
144 int kexec_image_probe_default(struct kimage *image, void *buf,
146 int kexec_image_post_load_cleanup_default(struct kimage *image);
169 struct kimage *image;
180 int kexec_load_purgatory(struct kimage *image, struct kexec_buf *kbuf);
181 int kexec_purgatory_get_set_symbol(struct kimage *image, const char *name,
184 void *kexec_purgatory_get_symbol_addr(struct kimage *image, const char *name);
186 int __weak arch_kexec_kernel_image_probe(struct kimage *image, void *buf,
188 void * __weak arch_kexec_kernel_image_load(struct kimage *image);
[all …]
Dima.h29 extern void ima_add_kexec_buffer(struct kimage *image);
97 struct kimage;
99 static inline void ima_add_kexec_buffer(struct kimage *image) in ima_add_kexec_buffer()
/Linux-v5.4/kernel/
Dkexec_internal.h7 struct kimage *do_kimage_alloc_init(void);
8 int sanity_check_segment_list(struct kimage *image);
10 void kimage_free(struct kimage *image);
11 int kimage_load_segment(struct kimage *image, struct kexec_segment *segment);
12 void kimage_terminate(struct kimage *image);
13 int kimage_is_destination_range(struct kimage *image,
20 void kimage_file_post_load_cleanup(struct kimage *image);
24 static inline void kimage_file_post_load_cleanup(struct kimage *image) { } in kimage_file_post_load_cleanup()
Dkexec_core.c144 static struct page *kimage_alloc_page(struct kimage *image,
148 int sanity_check_segment_list(struct kimage *image) in sanity_check_segment_list()
254 struct kimage *do_kimage_alloc_init(void) in do_kimage_alloc_init()
256 struct kimage *image; in do_kimage_alloc_init()
281 int kimage_is_destination_range(struct kimage *image, in kimage_is_destination_range()
350 static struct page *kimage_alloc_normal_control_pages(struct kimage *image, in kimage_alloc_normal_control_pages()
416 static struct page *kimage_alloc_crash_control_pages(struct kimage *image, in kimage_alloc_crash_control_pages()
483 struct page *kimage_alloc_control_pages(struct kimage *image, in kimage_alloc_control_pages()
500 int kimage_crash_copy_vmcoreinfo(struct kimage *image) in kimage_crash_copy_vmcoreinfo()
534 static int kimage_add_entry(struct kimage *image, kimage_entry_t entry) in kimage_add_entry()
[all …]
Dkexec_file.c31 static int kexec_calculate_store_digests(struct kimage *image);
38 int kexec_image_probe_default(struct kimage *image, void *buf, in kexec_image_probe_default()
56 int __weak arch_kexec_kernel_image_probe(struct kimage *image, void *buf, in arch_kexec_kernel_image_probe()
62 static void *kexec_image_load_default(struct kimage *image) in kexec_image_load_default()
73 void * __weak arch_kexec_kernel_image_load(struct kimage *image) in arch_kexec_kernel_image_load()
78 int kexec_image_post_load_cleanup_default(struct kimage *image) in kexec_image_post_load_cleanup_default()
86 int __weak arch_kimage_file_post_load_cleanup(struct kimage *image) in arch_kimage_file_post_load_cleanup()
92 static int kexec_image_verify_sig_default(struct kimage *image, void *buf, in kexec_image_verify_sig_default()
103 int __weak arch_kexec_kernel_verify_sig(struct kimage *image, void *buf, in arch_kexec_kernel_verify_sig()
149 void kimage_file_post_load_cleanup(struct kimage *image) in kimage_file_post_load_cleanup()
[all …]
Dkexec.c22 static int copy_user_segment_list(struct kimage *image, in copy_user_segment_list()
39 static int kimage_alloc_init(struct kimage **rimage, unsigned long entry, in kimage_alloc_init()
45 struct kimage *image; in kimage_alloc_init()
109 struct kimage **dest_image, *image; in do_kexec_load()
/Linux-v5.4/arch/m68k/kernel/
Dmachine_kexec.c17 int machine_kexec_prepare(struct kimage *kimage) in machine_kexec_prepare() argument
22 void machine_kexec_cleanup(struct kimage *kimage) in machine_kexec_cleanup() argument
38 void machine_kexec(struct kimage *image) in machine_kexec()
/Linux-v5.4/arch/s390/kernel/
Dmachine_kexec.c95 start_kdump = (void *)((struct kimage *) image)->start; in __do_machine_kdump()
147 struct kimage *image = (struct kimage *) addr; in do_start_kdump()
162 static bool kdump_csum_valid(struct kimage *image) in kdump_csum_valid()
229 int machine_kexec_prepare(struct kimage *image) in machine_kexec_prepare()
248 void machine_kexec_cleanup(struct kimage *image) in machine_kexec_cleanup()
278 struct kimage *image = data; in __do_machine_kexec()
301 if (((struct kimage *) data)->type == KEXEC_TYPE_CRASH) in __machine_kexec()
311 void machine_kexec(struct kimage *image) in machine_kexec()
Dmachine_kexec_file.c73 static int kexec_file_update_purgatory(struct kimage *image, in kexec_file_update_purgatory()
116 static int kexec_file_add_purgatory(struct kimage *image, in kexec_file_add_purgatory()
137 static int kexec_file_add_initrd(struct kimage *image, in kexec_file_add_initrd()
165 static int kexec_file_add_ipl_report(struct kimage *image, in kexec_file_add_ipl_report()
215 void *kexec_file_add_components(struct kimage *image, in kexec_file_add_components()
216 int (*add_kernel)(struct kimage *image, in kexec_file_add_components()
311 int arch_kexec_kernel_image_probe(struct kimage *image, void *buf, in arch_kexec_kernel_image_probe()
/Linux-v5.4/arch/powerpc/include/asm/
Dima.h5 struct kimage;
17 int arch_ima_add_kexec_buffer(struct kimage *image, unsigned long load_addr,
20 int setup_ima_buffer(const struct kimage *image, void *fdt, int chosen_node);
22 static inline int setup_ima_buffer(const struct kimage *image, void *fdt, in setup_ima_buffer()
Dkexec.h79 struct kimage;
81 extern void default_machine_kexec(struct kimage *image);
82 extern int default_machine_kexec_prepare(struct kimage *image);
112 int setup_purgatory(struct kimage *image, const void *slave_code,
115 int setup_new_fdt(const struct kimage *image, void *fdt,
/Linux-v5.4/arch/x86/include/asm/
Dcrash.h5 int crash_load_segments(struct kimage *image);
6 int crash_copy_backup_region(struct kimage *image);
7 int crash_setup_memmap_entries(struct kimage *image,
/Linux-v5.4/arch/ia64/kernel/
Dmachine_kexec.c34 struct kimage *ia64_kimage;
56 int machine_kexec_prepare(struct kimage *image) in machine_kexec_prepare()
73 void machine_kexec_cleanup(struct kimage *image) in machine_kexec_cleanup()
83 struct kimage *image = arg; in ia64_machine_kexec()
136 void machine_kexec(struct kimage *image) in machine_kexec()
/Linux-v5.4/arch/s390/include/asm/
Dkexec.h53 struct kimage;
71 void *kexec_file_add_components(struct kimage *image,
72 int (*add_kernel)(struct kimage *image,
/Linux-v5.4/arch/arm64/include/asm/
Dkexec.h103 struct kimage;
105 extern int arch_kimage_file_post_load_cleanup(struct kimage *image);
106 extern int load_other_segments(struct kimage *image,
/Linux-v5.4/arch/x86/kernel/
Dmachine_kexec_32.c55 static void machine_kexec_free_page_tables(struct kimage *image) in machine_kexec_free_page_tables()
71 static int machine_kexec_alloc_page_tables(struct kimage *image) in machine_kexec_alloc_page_tables()
112 static void machine_kexec_prepare_page_tables(struct kimage *image) in machine_kexec_prepare_page_tables()
147 int machine_kexec_prepare(struct kimage *image) in machine_kexec_prepare()
163 void machine_kexec_cleanup(struct kimage *image) in machine_kexec_cleanup()
173 void machine_kexec(struct kimage *image) in machine_kexec()
Dmachine_kexec_64.c112 static void free_transition_pgtable(struct kimage *image) in free_transition_pgtable()
124 static int init_transition_pgtable(struct kimage *image, pgd_t *pgd) in init_transition_pgtable()
181 struct kimage *image = (struct kimage *)data; in alloc_pgt_page()
194 static int init_pgtable(struct kimage *image, unsigned long start_pgtable) in init_pgtable()
303 static int arch_update_purgatory(struct kimage *image) in arch_update_purgatory()
337 static inline int arch_update_purgatory(struct kimage *image) in arch_update_purgatory()
343 int machine_kexec_prepare(struct kimage *image) in machine_kexec_prepare()
364 void machine_kexec_cleanup(struct kimage *image) in machine_kexec_cleanup()
373 void machine_kexec(struct kimage *image) in machine_kexec()
470 void *arch_kexec_kernel_image_load(struct kimage *image) in arch_kexec_kernel_image_load()
/Linux-v5.4/arch/sh/kernel/
Dmachine_kexec.c43 int machine_kexec_prepare(struct kimage *image) in machine_kexec_prepare()
48 void machine_kexec_cleanup(struct kimage *image) in machine_kexec_cleanup()
52 static void kexec_info(struct kimage *image) in kexec_info()
71 void machine_kexec(struct kimage *image) in machine_kexec()
/Linux-v5.4/arch/mips/include/asm/
Dkexec.h35 struct kimage;
37 extern int (*_machine_kexec_prepare)(struct kimage *);
/Linux-v5.4/arch/arm/kernel/
Dmachine_kexec.c39 int machine_kexec_prepare(struct kimage *image) in machine_kexec_prepare()
78 void machine_kexec_cleanup(struct kimage *image) in machine_kexec_cleanup()
161 void machine_kexec(struct kimage *image) in machine_kexec()
/Linux-v5.4/arch/powerpc/kernel/
Dmachine_kexec_32.c29 void default_machine_kexec(struct kimage *image) in default_machine_kexec()
66 int default_machine_kexec_prepare(struct kimage *image) in default_machine_kexec_prepare()

12