Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/kernel/
Dkexec.c23 unsigned long nr_segments, in copy_user_segment_list() argument
30 image->nr_segments = nr_segments; in copy_user_segment_list()
31 segment_bytes = nr_segments * sizeof(*segments); in copy_user_segment_list()
40 unsigned long nr_segments, in kimage_alloc_init() argument
62 ret = copy_user_segment_list(image, nr_segments, segments); in kimage_alloc_init()
106 static int do_kexec_load(unsigned long entry, unsigned long nr_segments, in do_kexec_load() argument
121 if (nr_segments == 0) { in do_kexec_load()
135 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()
198 static inline int kexec_load_check(unsigned long nr_segments, in kexec_load_check() argument
[all …]
Dkexec_core.c151 unsigned long nr_segments = image->nr_segments; in sanity_check_segment_list() local
168 for (i = 0; i < nr_segments; i++) { in sanity_check_segment_list()
186 for (i = 0; i < nr_segments; i++) { in sanity_check_segment_list()
208 for (i = 0; i < nr_segments; i++) { in sanity_check_segment_list()
218 for (i = 0; i < nr_segments; i++) { in sanity_check_segment_list()
239 for (i = 0; i < nr_segments; i++) { in sanity_check_segment_list()
287 for (i = 0; i < image->nr_segments; i++) { in kimage_is_destination_range()
455 for (i = 0; i < image->nr_segments; i++) { in kimage_alloc_crash_control_pages()
468 if (i == image->nr_segments) { in kimage_alloc_crash_control_pages()
Dkexec_file.c388 for (i = 0; i < image->nr_segments; i++) { in SYSCALL_DEFINE5()
651 if (kbuf->image->nr_segments >= KEXEC_SEGMENT_MAX) in kexec_add_buffer()
676 ksegment = &kbuf->image->segment[kbuf->image->nr_segments]; in kexec_add_buffer()
681 kbuf->image->nr_segments++; in kexec_add_buffer()
735 for (j = i = 0; i < image->nr_segments; i++) { in kexec_calculate_store_digests()
/kernel/linux/linux-5.10/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
410 dst->u.rw.nr_segments = src->u.rw.nr_segments; in blkif_get_x86_32_req()
415 if (n > dst->u.rw.nr_segments) in blkif_get_x86_32_req()
416 n = dst->u.rw.nr_segments; in blkif_get_x86_32_req()
428 dst->u.indirect.nr_segments = src->u.indirect.nr_segments; in blkif_get_x86_32_req()
433 j = min(MAX_INDIRECT_PAGES, INDIRECT_PAGES(dst->u.indirect.nr_segments)); in blkif_get_x86_32_req()
458 dst->u.rw.nr_segments = src->u.rw.nr_segments; in blkif_get_x86_64_req()
[all …]
Dblkback.c1238 req->u.indirect.nr_segments : req->u.rw.nr_segments; in dispatch_rw_block_io()
/kernel/linux/linux-5.10/arch/arm64/kernel/
Dmachine_kexec.c44 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()
126 for (i = 0; i < kimage->nr_segments; i++) { in kexec_segment_flush()
270 for (i = 0; i < kexec_crash_image->nr_segments; i++) in arch_kexec_protect_crashkres()
280 for (i = 0; i < kexec_crash_image->nr_segments; i++) in arch_kexec_unprotect_crashkres()
334 for (i = 0; i < kexec_crash_image->nr_segments; i++) in crash_is_nosave()
Dkexec_image.c91 kernel_segment_number = image->nr_segments; in image_load()
111 image->nr_segments -= 1; in image_load()
Dmachine_kexec_file.c259 orig_segments = image->nr_segments; in load_other_segments()
345 image->nr_segments = orig_segments; in load_other_segments()
/kernel/linux/linux-5.10/arch/powerpc/kexec/
Dcore_64.c49 for (i = 0; i < image->nr_segments; i++) in default_machine_kexec_prepare()
63 for (i = 0; i < image->nr_segments; i++) { in default_machine_kexec_prepare()
110 long i, nr_segments = image->nr_segments; in kexec_copy_flush() local
128 for (i = 0; i < nr_segments; i++) in kexec_copy_flush()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/xen/
Dxen-scsiback.c443 unsigned int nr_segments = (unsigned int)ring_req->nr_segments; in scsiback_gnttab_data_map() local
452 nr_segments &= ~VSCSIIF_SG_GRANT; in scsiback_gnttab_data_map()
453 if (!nr_segments) in scsiback_gnttab_data_map()
456 if (nr_segments > VSCSIIF_SG_TABLESIZE) { in scsiback_gnttab_data_map()
458 ring_req->nr_segments); in scsiback_gnttab_data_map()
462 if (ring_req->nr_segments & VSCSIIF_SG_GRANT) { in scsiback_gnttab_data_map()
465 nr_segments, GNTMAP_host_map | GNTMAP_readonly); in scsiback_gnttab_data_map()
468 nr_sgl = nr_segments; in scsiback_gnttab_data_map()
469 nr_segments = 0; in scsiback_gnttab_data_map()
478 nr_segments += n_segs; in scsiback_gnttab_data_map()
[all …]
/kernel/linux/linux-5.10/include/xen/interface/io/
Dblkif.h195 uint8_t nr_segments; /* number of segments */ member
229 uint16_t nr_segments; member
Dvscsiif.h202 uint8_t nr_segments; /* Number of pieces of scatter-gather */ member
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/scsi/
Dxen-scsifront.c82 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()
498 shadow->nr_segments = VSCSIIF_SG_GRANT | seg_grants; in map_data_for_request()
500 shadow->nr_segments = (uint8_t)ref_cnt; in map_data_for_request()
/kernel/linux/linux-5.10/drivers/block/
Dxen-blkfront.c698 uint16_t nr_segments = first->u.rw.nr_segments; in blkif_setup_extra_req() local
704 first->u.rw.nr_segments = BLKIF_MAX_SEGMENTS_PER_REQUEST; in blkif_setup_extra_req()
706 second->u.rw.nr_segments = nr_segments - BLKIF_MAX_SEGMENTS_PER_REQUEST; in blkif_setup_extra_req()
789 ring_req->u.indirect.nr_segments = num_grant; in blkif_queue_rw_req()
812 ring_req->u.rw.nr_segments = num_grant; in blkif_queue_rw_req()
1318 rinfo->shadow[i].req.u.indirect.nr_segments : in blkif_free_ring()
1319 rinfo->shadow[i].req.u.rw.nr_segments; in blkif_free_ring()
1469 s->req.u.indirect.nr_segments : s->req.u.rw.nr_segments; in blkif_completion()
1489 num_grant += s2->req.u.rw.nr_segments; in blkif_completion()
1694 rinfo->shadow[id].req.u.rw.nr_segments == 0)) { in blkif_interrupt()
/kernel/linux/linux-5.10/arch/arm/kernel/
Dmachine_kexec.c55 for (i = 0; i < image->nr_segments; i++) { in machine_kexec_prepare()
/kernel/linux/linux-5.10/arch/sh/kernel/
Dmachine_kexec.c54 for (i = 0; i < image->nr_segments; i++) { in kexec_info()
/kernel/linux/linux-5.10/include/linux/
Dkexec.h291 unsigned long nr_segments; member
Dcompat.h628 compat_ulong_t nr_segments,
Dsyscalls.h629 asmlinkage long sys_kexec_load(unsigned long entry, unsigned long nr_segments,
/kernel/linux/linux-5.10/arch/mips/cavium-octeon/
Dsetup.c162 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()
/kernel/linux/linux-5.10/arch/x86/kernel/
Dmachine_kexec_64.c233 for (i = 0; i < image->nr_segments; i++) { in init_pgtable()
/kernel/linux/linux-5.10/Documentation/block/
Dbiodoc.rst699 nr_segments = blk_rq_map_sg(q, rq, scatterlist);