/linux/kernel/ |
A D | kexec.c | 23 unsigned long nr_segments, in kimage_alloc_init() argument 44 image->nr_segments = nr_segments; in kimage_alloc_init() 113 if (nr_segments == 0) { in do_kexec_load() 147 for (i = 0; i < nr_segments; i++) { in do_kexec_load() 193 static inline int kexec_load_check(unsigned long nr_segments, in kexec_load_check() argument 225 if (nr_segments > KEXEC_SEGMENT_MAX) in kexec_load_check() 237 result = kexec_load_check(nr_segments, flags); in SYSCALL_DEFINE4() 258 compat_ulong_t, nr_segments, in COMPAT_SYSCALL_DEFINE4() argument 266 result = kexec_load_check(nr_segments, flags); in COMPAT_SYSCALL_DEFINE4() 276 ksegments = kmalloc_array(nr_segments, sizeof(ksegments[0]), in COMPAT_SYSCALL_DEFINE4() [all …]
|
A 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()
|
A D | kexec_file.c | 413 for (i = 0; i < image->nr_segments; i++) { in SYSCALL_DEFINE5() 681 if (kbuf->image->nr_segments >= KEXEC_SEGMENT_MAX) in kexec_add_buffer() 706 ksegment = &kbuf->image->segment[kbuf->image->nr_segments]; in kexec_add_buffer() 711 kbuf->image->nr_segments++; in kexec_add_buffer() 765 for (j = i = 0; i < image->nr_segments; i++) { in kexec_calculate_store_digests()
|
/linux/drivers/block/xen-blkback/ |
A D | common.h | 81 uint8_t nr_segments; /* number of segments */ member 104 uint16_t nr_segments; member 159 uint16_t nr_segments; member 405 dst->u.rw.nr_segments = src->u.rw.nr_segments; in blkif_get_x86_32_req() 410 if (n > dst->u.rw.nr_segments) in blkif_get_x86_32_req() 411 n = dst->u.rw.nr_segments; in blkif_get_x86_32_req() 423 dst->u.indirect.nr_segments = src->u.indirect.nr_segments; in blkif_get_x86_32_req() 453 dst->u.rw.nr_segments = src->u.rw.nr_segments; in blkif_get_x86_64_req() 458 if (n > dst->u.rw.nr_segments) in blkif_get_x86_64_req() 459 n = dst->u.rw.nr_segments; in blkif_get_x86_64_req() [all …]
|
/linux/arch/arm64/kernel/ |
A D | machine_kexec.c | 41 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() 87 for (i = 0; i < kimage->nr_segments; i++) { in kexec_segment_flush() 273 for (i = 0; i < kexec_crash_image->nr_segments; i++) in arch_kexec_protect_crashkres() 283 for (i = 0; i < kexec_crash_image->nr_segments; i++) in arch_kexec_unprotect_crashkres() 337 for (i = 0; i < kexec_crash_image->nr_segments; i++) in crash_is_nosave()
|
A D | kexec_image.c | 91 kernel_segment_number = image->nr_segments; in image_load() 111 image->nr_segments -= 1; in image_load()
|
A D | machine_kexec_file.c | 90 orig_segments = image->nr_segments; in load_other_segments() 180 image->nr_segments = orig_segments; in load_other_segments()
|
/linux/arch/powerpc/kexec/ |
A D | core_64.c | 49 for (i = 0; i < image->nr_segments; i++) in machine_kexec_prepare() 63 for (i = 0; i < image->nr_segments; i++) { in machine_kexec_prepare() 114 long i, nr_segments = image->nr_segments; in kexec_copy_flush() local 132 for (i = 0; i < nr_segments; i++) in kexec_copy_flush()
|
/linux/arch/riscv/kernel/ |
A D | machine_kexec.c | 31 pr_debug("\tnr_segments: %lu\n", image->nr_segments); in kexec_image_info() 33 for (i = 0; i < image->nr_segments; i++) { in kexec_image_info() 64 for (i = 0; i < image->nr_segments; i++) { in machine_kexec_prepare()
|
/linux/drivers/xen/ |
A D | xen-scsiback.c | 438 unsigned int nr_segments = (unsigned int)ring_req->nr_segments; in scsiback_gnttab_data_map() local 447 nr_segments &= ~VSCSIIF_SG_GRANT; in scsiback_gnttab_data_map() 448 if (!nr_segments) in scsiback_gnttab_data_map() 451 if (nr_segments > VSCSIIF_SG_TABLESIZE) { in scsiback_gnttab_data_map() 453 ring_req->nr_segments); in scsiback_gnttab_data_map() 463 nr_sgl = nr_segments; in scsiback_gnttab_data_map() 464 nr_segments = 0; in scsiback_gnttab_data_map() 473 nr_segments += n_segs; in scsiback_gnttab_data_map() 475 if (nr_segments > SG_ALL) { in scsiback_gnttab_data_map() 488 pending_req->n_sg = nr_segments; in scsiback_gnttab_data_map() [all …]
|
/linux/arch/mips/kernel/ |
A D | machine_kexec.c | 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() 64 for (i = 0; i < kimage->nr_segments; i++) { in uhi_machine_kexec_prepare()
|
/linux/tools/testing/selftests/sgx/ |
A D | load.c | 185 encl->nr_segments++; in encl_load() 188 encl->segment_tbl = calloc(encl->nr_segments, in encl_load() 235 assert(j == encl->nr_segments); in encl_load() 290 for (i = 0; i < encl->nr_segments; i++) { in encl_build()
|
A D | main.h | 24 unsigned int nr_segments; member
|
A D | main.c | 130 for (i = 0; i < self->encl.nr_segments; i++) { in FIXTURE_SETUP() 145 for (i = 0; i < self->encl.nr_segments; i++) { in FIXTURE_SETUP()
|
/linux/include/xen/interface/io/ |
A D | blkif.h | 195 uint8_t nr_segments; /* number of segments */ member 229 uint16_t nr_segments; member
|
A D | vscsiif.h | 185 uint8_t nr_segments; /* Number of pieces of scatter-gather */ member
|
/linux/arch/parisc/kernel/ |
A D | kexec.c | 39 pr_debug(" nr_segments: %lu\n", kimage->nr_segments); in kexec_image_info() 41 for (i = 0; i < kimage->nr_segments; i++) in kexec_image_info()
|
A D | kexec_file.c | 38 for (i = 0; i < image->nr_segments; i++) in elf_load()
|
/linux/drivers/block/ |
A D | xen-blkfront.c | 678 uint16_t nr_segments = first->u.rw.nr_segments; in blkif_setup_extra_req() local 684 first->u.rw.nr_segments = BLKIF_MAX_SEGMENTS_PER_REQUEST; in blkif_setup_extra_req() 686 second->u.rw.nr_segments = nr_segments - BLKIF_MAX_SEGMENTS_PER_REQUEST; in blkif_setup_extra_req() 769 ring_req->u.indirect.nr_segments = num_grant; in blkif_queue_rw_req() 792 ring_req->u.rw.nr_segments = num_grant; in blkif_queue_rw_req() 1248 rinfo->shadow[i].req.u.indirect.nr_segments : in blkif_free_ring() 1249 rinfo->shadow[i].req.u.rw.nr_segments; in blkif_free_ring() 1392 s->req.u.indirect.nr_segments : s->req.u.rw.nr_segments; in blkif_completion() 1412 num_grant += s2->req.u.rw.nr_segments; in blkif_completion() 1611 rinfo->shadow[id].req.u.rw.nr_segments == 0)) { in blkif_interrupt()
|
/linux/drivers/scsi/ |
A D | xen-scsifront.c | 82 uint8_t nr_segments; member 203 ring_req->nr_segments = shadow->nr_segments; in scsifront_do_request() 217 for (i = 0; i < (shadow->nr_segments & ~VSCSIIF_SG_GRANT); i++) in scsifront_do_request() 505 shadow->nr_segments = VSCSIIF_SG_GRANT | seg_grants; in map_data_for_request() 507 shadow->nr_segments = (uint8_t)ref_cnt; in map_data_for_request()
|
/linux/arch/arm/kernel/ |
A D | machine_kexec.c | 55 for (i = 0; i < image->nr_segments; i++) { in machine_kexec_prepare()
|
/linux/arch/mips/loongson64/ |
A D | reset.c | 84 for (i = 0; i < image->nr_segments; i++) { in loongson_kexec_prepare()
|
/linux/arch/sh/kernel/ |
A D | machine_kexec.c | 54 for (i = 0; i < image->nr_segments; i++) { in kexec_info()
|
/linux/include/linux/ |
A D | kexec.h | 261 unsigned long nr_segments; member
|
/linux/arch/mips/cavium-octeon/ |
A D | setup.c | 162 for (i = 0; i < image->nr_segments; i++) { in octeon_kexec_prepare() 229 for (i = 0; i < kimage_ptr->nr_segments; i++) in octeon_generic_shutdown()
|