Home
last modified time | relevance | path

Searched refs:nr_segments (Results 1 – 25 of 31) sorted by relevance

12

/linux/kernel/
H A Dkexec.c23 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 Dkexec_core.c111 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 Dkexec_file.c400 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 Dload.c36 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 Dmain.h28 unsigned int nr_segments; member
H A Dmain.c141 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 Dcore_64.c51 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 Dcrash.c505 for (i = 0; i < image->nr_segments; i++) { in get_fdt_index()
/linux/arch/mips/kernel/
H A Dmachine_kexec.c42 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 Dcommon.h81 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 Dblkback.c1087 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 Dxen-scsiback.c502 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 Dblkif.h195 uint8_t nr_segments; /* number of segments */ member
229 uint16_t nr_segments; member
H A Dvscsiif.h258 uint8_t nr_segments; /* Number of pieces of scatter-gather */ member
/linux/arch/parisc/kernel/
H A Dkexec.c41 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 Dkexec_file.c38 for (i = 0; i < image->nr_segments; i++) in elf_load()
/linux/arch/arm64/kernel/
H A Dkexec_image.c90 kernel_segment_number = image->nr_segments; in image_load()
110 image->nr_segments -= 1; in image_load()
H A Dmachine_kexec_file.c100 orig_segments = image->nr_segments; in load_other_segments()
194 image->nr_segments = orig_segments; in load_other_segments()
H A Dmachine_kexec.c74 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 Dxen-blkfront.c686 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 Dxen-scsifront.c79 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 Dmachine_kexec.c40 for (i = 0; i < image->nr_segments; i++) { in machine_kexec_prepare()
/linux/arch/arm/kernel/
H A Dmachine_kexec.c55 for (i = 0; i < image->nr_segments; i++) { in machine_kexec_prepare()
/linux/arch/mips/loongson64/
H A Dreset.c71 for (i = 0; i < image->nr_segments; i++) { in loongson_kexec_prepare()
/linux/arch/sh/kernel/
H A Dmachine_kexec.c54 for (i = 0; i < image->nr_segments; i++) { in kexec_info()

12