Home
last modified time | relevance | path

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

12

/linux-6.1.9/kernel/
Dkexec.c23 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 …]
Dkexec_core.c152 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()
Dkexec_file.c384 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()
/linux-6.1.9/drivers/block/xen-blkback/
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
408 dst->u.rw.nr_segments = src->u.rw.nr_segments; in blkif_get_x86_32_req()
413 if (n > dst->u.rw.nr_segments) in blkif_get_x86_32_req()
414 n = dst->u.rw.nr_segments; in blkif_get_x86_32_req()
426 dst->u.indirect.nr_segments = src->u.indirect.nr_segments; in blkif_get_x86_32_req()
431 j = min(MAX_INDIRECT_PAGES, INDIRECT_PAGES(dst->u.indirect.nr_segments)); in blkif_get_x86_32_req()
456 dst->u.rw.nr_segments = src->u.rw.nr_segments; in blkif_get_x86_64_req()
[all …]
/linux-6.1.9/arch/arm64/kernel/
Dmachine_kexec.c41 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()
275 for (i = 0; i < kexec_crash_image->nr_segments; i++) in arch_kexec_protect_crashkres()
285 for (i = 0; i < kexec_crash_image->nr_segments; i++) in arch_kexec_unprotect_crashkres()
344 for (i = 0; i < kexec_crash_image->nr_segments; i++) in crash_is_nosave()
Dkexec_image.c90 kernel_segment_number = image->nr_segments; in image_load()
110 image->nr_segments -= 1; in image_load()
Dmachine_kexec_file.c98 orig_segments = image->nr_segments; in load_other_segments()
188 image->nr_segments = orig_segments; in load_other_segments()
/linux-6.1.9/arch/powerpc/kexec/
Dcore_64.c48 for (i = 0; i < image->nr_segments; i++) in machine_kexec_prepare()
62 for (i = 0; i < image->nr_segments; i++) { in machine_kexec_prepare()
113 long i, nr_segments = image->nr_segments; in kexec_copy_flush() local
131 for (i = 0; i < nr_segments; i++) in kexec_copy_flush()
/linux-6.1.9/tools/testing/selftests/sgx/
Dload.c36 heap_seg = &encl->segment_tbl[encl->nr_segments - 1]; in encl_delete()
229 encl->nr_segments = 1; /* one for the heap */ in encl_load()
235 encl->nr_segments++; in encl_load()
238 encl->segment_tbl = calloc(encl->nr_segments, in encl_load()
287 assert(j == encl->nr_segments - 1); in encl_load()
352 for (i = 0; i < encl->nr_segments; i++) { in encl_build()
Dmain.h28 unsigned int nr_segments; member
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-6.1.9/arch/riscv/kernel/
Dmachine_kexec.c33 pr_debug("\tnr_segments: %lu\n", image->nr_segments); in kexec_image_info()
35 for (i = 0; i < image->nr_segments; i++) { in kexec_image_info()
66 for (i = 0; i < image->nr_segments; i++) { in machine_kexec_prepare()
/linux-6.1.9/arch/mips/kernel/
Dmachine_kexec.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()
64 for (i = 0; i < kimage->nr_segments; i++) { in uhi_machine_kexec_prepare()
/linux-6.1.9/drivers/xen/
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-6.1.9/arch/loongarch/kernel/
Dmachine_kexec.c50 pr_debug("\tnr_segments: %lu\n", kimage->nr_segments); in kexec_image_info()
52 for (i = 0; i < kimage->nr_segments; i++) { in kexec_image_info()
74 for (i = 0; i < kimage->nr_segments; i++) { in machine_kexec_prepare()
/linux-6.1.9/include/xen/interface/io/
Dblkif.h195 uint8_t nr_segments; /* number of segments */ member
229 uint16_t nr_segments; member
Dvscsiif.h258 uint8_t nr_segments; /* Number of pieces of scatter-gather */ member
/linux-6.1.9/arch/parisc/kernel/
Dkexec.c39 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()
Dkexec_file.c38 for (i = 0; i < image->nr_segments; i++) in elf_load()
/linux-6.1.9/drivers/block/
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()
800 ring_req->u.rw.nr_segments = num_grant; in blkif_queue_rw_req()
1252 rinfo->shadow[i].req.u.indirect.nr_segments : in blkif_free_ring()
1253 rinfo->shadow[i].req.u.rw.nr_segments; in blkif_free_ring()
1396 s->req.u.indirect.nr_segments : s->req.u.rw.nr_segments; in blkif_completion()
1416 num_grant += s2->req.u.rw.nr_segments; in blkif_completion()
1621 rinfo->shadow[id].req.u.rw.nr_segments == 0)) { in blkif_interrupt()
/linux-6.1.9/drivers/scsi/
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-6.1.9/arch/mips/loongson64/
Dreset.c85 for (i = 0; i < image->nr_segments; i++) { in loongson_kexec_prepare()
/linux-6.1.9/arch/arm/kernel/
Dmachine_kexec.c55 for (i = 0; i < image->nr_segments; i++) { in machine_kexec_prepare()
/linux-6.1.9/arch/sh/kernel/
Dmachine_kexec.c54 for (i = 0; i < image->nr_segments; i++) { in kexec_info()
/linux-6.1.9/include/linux/
Dkexec.h331 unsigned long nr_segments; member

12