/linux/kernel/ |
H A D | kexec.c | 23 unsigned long nr_segments, in kimage_alloc_init() argument 46 image->nr_segments = nr_segments; in kimage_alloc_init() 47 memcpy(image->segment, segments, nr_segments * sizeof(*segments)); in kimage_alloc_init() 91 static int do_kexec_load(unsigned long entry, unsigned long nr_segments, in do_kexec_load() argument 115 if (nr_segments == 0) { in do_kexec_load() 130 ret = kimage_alloc_init(&image, entry, nr_segments, segments, flags); in do_kexec_load() 154 for (i = 0; i < nr_segments; i++) { in do_kexec_load() 202 static inline int kexec_load_check(unsigned long nr_segments, in kexec_load_check() argument 236 if (nr_segments > KEXEC_SEGMENT_MAX) in kexec_load_check() 242 SYSCALL_DEFINE4(kexec_load, unsigned long, entry, unsigned long, nr_segments, in SYSCALL_DEFINE4() argument [all …]
|
H A D | kexec_core.c | 111 unsigned long nr_segments = image->nr_segments; in sanity_check_segment_list() local 128 for (i = 0; i < nr_segments; i++) { in sanity_check_segment_list() 146 for (i = 0; i < nr_segments; i++) { in sanity_check_segment_list() 168 for (i = 0; i < nr_segments; i++) { in sanity_check_segment_list() 178 for (i = 0; i < nr_segments; i++) { in sanity_check_segment_list() 200 for (i = 0; i < nr_segments; i++) { in sanity_check_segment_list() 255 for (i = 0; i < image->nr_segments; i++) { in kimage_is_destination_range() 424 for (i = 0; i < image->nr_segments; i++) { in kimage_alloc_crash_control_pages() 437 if (i == image->nr_segments) { in kimage_alloc_crash_control_pages()
|
H A D | kexec_file.c | 400 kexec_dprintk("nr_segments = %lu\n", image->nr_segments); in SYSCALL_DEFINE5() 401 for (i = 0; i < image->nr_segments; i++) { in SYSCALL_DEFINE5() 666 if (kbuf->image->nr_segments >= KEXEC_SEGMENT_MAX) in kexec_add_buffer() 691 ksegment = &kbuf->image->segment[kbuf->image->nr_segments]; in kexec_add_buffer() 696 kbuf->image->nr_segments++; in kexec_add_buffer() 750 for (j = i = 0; i < image->nr_segments; i++) { in kexec_calculate_store_digests()
|
/linux/tools/testing/selftests/sgx/ |
H A D | load.c | 36 heap_seg = &encl->segment_tbl[encl->nr_segments - 1]; in encl_delete() 232 encl->nr_segments = 1; /* one for the heap */ in encl_load() 238 encl->nr_segments++; in encl_load() 241 encl->segment_tbl = calloc(encl->nr_segments, in encl_load() 290 assert(j == encl->nr_segments - 1); in encl_load() 355 for (i = 0; i < encl->nr_segments; i++) { in encl_build()
|
H A D | main.h | 28 unsigned int nr_segments; member
|
H A D | main.c | 141 for (i = 0; i < encl->nr_segments; i++) { in encl_get_tcs_offset() 160 for (i = 1; i < encl->nr_segments; i++) { in encl_get_data_offset() 201 for (i = 0; i < encl->nr_segments; i++) { in setup_test_encl() 228 for (i = 0; i < encl->nr_segments; i++) { in setup_test_encl() 431 heap = &self->encl.segment_tbl[self->encl.nr_segments - 1]; 994 for (i = 0; i < self->encl.nr_segments; i++) { in TEST_F() 1124 for (i = 0; i < self->encl.nr_segments; i++) { in TEST_F() 1273 for (i = 0; i < self->encl.nr_segments; i++) { in TEST_F()
|
/linux/arch/powerpc/kexec/ |
H A D | core_64.c | 51 for (i = 0; i < image->nr_segments; i++) in machine_kexec_prepare() 65 for (i = 0; i < image->nr_segments; i++) { in machine_kexec_prepare() 116 long i, nr_segments = image->nr_segments; in kexec_copy_flush() local 134 for (i = 0; i < nr_segments; i++) in kexec_copy_flush()
|
H A D | crash.c | 505 for (i = 0; i < image->nr_segments; i++) { in get_fdt_index()
|
/linux/arch/mips/kernel/ |
H A D | machine_kexec.c | 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() 65 for (i = 0; i < kimage->nr_segments; i++) { in uhi_machine_kexec_prepare()
|
/linux/drivers/block/xen-blkback/ |
H A D | common.h | 81 uint8_t nr_segments; /* number of segments */ member 104 uint16_t nr_segments; member 133 uint8_t nr_segments; /* number of segments */ member 159 uint16_t nr_segments; member
|
H A D | blkback.c | 1087 dst->u.rw.nr_segments = READ_ONCE(src->u.rw.nr_segments); in blkif_get_x86_32_req() 1092 dst->u.rw.nr_segments); in blkif_get_x86_32_req() 1106 dst->u.indirect.nr_segments = in blkif_get_x86_32_req() 1107 READ_ONCE(src->u.indirect.nr_segments); in blkif_get_x86_32_req() 1112 INDIRECT_PAGES(dst->u.indirect.nr_segments)); in blkif_get_x86_32_req() 1140 dst->u.rw.nr_segments = READ_ONCE(src->u.rw.nr_segments); in blkif_get_x86_64_req() 1145 dst->u.rw.nr_segments); in blkif_get_x86_64_req() 1159 dst->u.indirect.nr_segments = in blkif_get_x86_64_req() 1160 READ_ONCE(src->u.indirect.nr_segments); in blkif_get_x86_64_req() 1165 INDIRECT_PAGES(dst->u.indirect.nr_segments)); in blkif_get_x86_64_req() [all …]
|
/linux/drivers/xen/ |
H A D | xen-scsiback.c | 502 unsigned int nr_segments = (unsigned int)ring_req->nr_segments; in scsiback_gnttab_data_map() local 511 nr_segments &= ~VSCSIIF_SG_GRANT; in scsiback_gnttab_data_map() 512 if (!nr_segments) in scsiback_gnttab_data_map() 515 if (nr_segments > VSCSIIF_SG_TABLESIZE) { in scsiback_gnttab_data_map() 517 ring_req->nr_segments); in scsiback_gnttab_data_map() 521 if (ring_req->nr_segments & VSCSIIF_SG_GRANT) { in scsiback_gnttab_data_map() 524 nr_segments, GNTMAP_host_map | GNTMAP_readonly); in scsiback_gnttab_data_map() 527 nr_sgl = nr_segments; in scsiback_gnttab_data_map() 528 nr_segments = 0; in scsiback_gnttab_data_map() 537 nr_segments += n_segs; in scsiback_gnttab_data_map() [all …]
|
/linux/include/xen/interface/io/ |
H A D | blkif.h | 195 uint8_t nr_segments; /* number of segments */ member 229 uint16_t nr_segments; member
|
H A D | vscsiif.h | 258 uint8_t nr_segments; /* Number of pieces of scatter-gather */ member
|
/linux/arch/parisc/kernel/ |
H A D | 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()
|
H A D | kexec_file.c | 38 for (i = 0; i < image->nr_segments; i++) in elf_load()
|
/linux/arch/arm64/kernel/ |
H A D | kexec_image.c | 90 kernel_segment_number = image->nr_segments; in image_load() 110 image->nr_segments -= 1; in image_load()
|
H A D | machine_kexec_file.c | 100 orig_segments = image->nr_segments; in load_other_segments() 194 image->nr_segments = orig_segments; in load_other_segments()
|
H A D | machine_kexec.c | 74 for (i = 0; i < kimage->nr_segments; i++) { in kexec_segment_flush() 311 for (i = 0; i < kexec_crash_image->nr_segments; i++) in crash_is_nosave()
|
/linux/drivers/block/ |
H A D | xen-blkfront.c | 686 uint16_t nr_segments = first->u.rw.nr_segments; in blkif_setup_extra_req() local 692 first->u.rw.nr_segments = BLKIF_MAX_SEGMENTS_PER_REQUEST; in blkif_setup_extra_req() 694 second->u.rw.nr_segments = nr_segments - BLKIF_MAX_SEGMENTS_PER_REQUEST; in blkif_setup_extra_req() 777 ring_req->u.indirect.nr_segments = num_grant; in blkif_queue_rw_req() 804 ring_req->u.rw.nr_segments = num_grant; in blkif_queue_rw_req() 1254 rinfo->shadow[i].req.u.indirect.nr_segments : in blkif_free_ring() 1255 rinfo->shadow[i].req.u.rw.nr_segments; in blkif_free_ring() 1398 s->req.u.indirect.nr_segments : s->req.u.rw.nr_segments; in blkif_completion() 1418 num_grant += s2->req.u.rw.nr_segments; in blkif_completion() 1623 rinfo->shadow[id].req.u.rw.nr_segments == 0)) { in blkif_interrupt()
|
/linux/drivers/scsi/ |
H A D | xen-scsifront.c | 79 uint8_t nr_segments; member 206 ring_req->nr_segments = shadow->nr_segments; in scsifront_do_request() 220 for (i = 0; i < (shadow->nr_segments & ~VSCSIIF_SG_GRANT); i++) in scsifront_do_request() 577 shadow->nr_segments = VSCSIIF_SG_GRANT | seg_grants; in map_data_for_request() 579 shadow->nr_segments = (uint8_t)ref_cnt; in map_data_for_request()
|
/linux/arch/riscv/kernel/ |
H A D | machine_kexec.c | 40 for (i = 0; i < image->nr_segments; i++) { in machine_kexec_prepare()
|
/linux/arch/arm/kernel/ |
H A D | machine_kexec.c | 55 for (i = 0; i < image->nr_segments; i++) { in machine_kexec_prepare()
|
/linux/arch/mips/loongson64/ |
H A D | reset.c | 71 for (i = 0; i < image->nr_segments; i++) { in loongson_kexec_prepare()
|
/linux/arch/sh/kernel/ |
H A D | machine_kexec.c | 54 for (i = 0; i < image->nr_segments; i++) { in kexec_info()
|