Searched refs:nr_segments (Results 1 – 3 of 3) sorted by relevance
/kernel/ |
D | kexec.c | 23 unsigned long nr_segments, in kimage_alloc_init() argument 44 image->nr_segments = nr_segments; in kimage_alloc_init() 45 memcpy(image->segment, segments, nr_segments * sizeof(*segments)); in kimage_alloc_init() 87 static int do_kexec_load(unsigned long entry, unsigned long nr_segments, in do_kexec_load() argument 110 if (nr_segments == 0) { in do_kexec_load() 125 ret = kimage_alloc_init(&image, entry, nr_segments, segments, flags); in do_kexec_load() 144 for (i = 0; i < nr_segments; i++) { in do_kexec_load() 190 static inline int kexec_load_check(unsigned long nr_segments, in kexec_load_check() argument 222 if (nr_segments > KEXEC_SEGMENT_MAX) in kexec_load_check() 228 SYSCALL_DEFINE4(kexec_load, unsigned long, entry, unsigned long, nr_segments, in SYSCALL_DEFINE4() argument [all …]
|
D | kexec_core.c | 152 unsigned long nr_segments = image->nr_segments; in sanity_check_segment_list() local 169 for (i = 0; i < nr_segments; i++) { in sanity_check_segment_list() 187 for (i = 0; i < nr_segments; i++) { in sanity_check_segment_list() 209 for (i = 0; i < nr_segments; i++) { in sanity_check_segment_list() 219 for (i = 0; i < nr_segments; i++) { in sanity_check_segment_list() 240 for (i = 0; i < nr_segments; i++) { in sanity_check_segment_list() 288 for (i = 0; i < image->nr_segments; i++) { in kimage_is_destination_range() 456 for (i = 0; i < image->nr_segments; i++) { in kimage_alloc_crash_control_pages() 469 if (i == image->nr_segments) { in kimage_alloc_crash_control_pages()
|
D | kexec_file.c | 384 for (i = 0; i < image->nr_segments; i++) { in SYSCALL_DEFINE5() 639 if (kbuf->image->nr_segments >= KEXEC_SEGMENT_MAX) in kexec_add_buffer() 664 ksegment = &kbuf->image->segment[kbuf->image->nr_segments]; in kexec_add_buffer() 669 kbuf->image->nr_segments++; in kexec_add_buffer() 723 for (j = i = 0; i < image->nr_segments; i++) { in kexec_calculate_store_digests()
|