nr_segments        61 arch/arm/kernel/machine_kexec.c 	for (i = 0; i < image->nr_segments; i++) {
nr_segments        99 arch/arm64/kernel/kexec_image.c 	kernel_segment = &image->segment[image->nr_segments - 1];
nr_segments        44 arch/arm64/kernel/machine_kexec.c 	pr_debug("    nr_segments: %lu\n", kimage->nr_segments);
nr_segments        46 arch/arm64/kernel/machine_kexec.c 	for (i = 0; i < kimage->nr_segments; i++) {
nr_segments       126 arch/arm64/kernel/machine_kexec.c 	for (i = 0; i < kimage->nr_segments; i++) {
nr_segments       282 arch/arm64/kernel/machine_kexec.c 	for (i = 0; i < kexec_crash_image->nr_segments; i++)
nr_segments       292 arch/arm64/kernel/machine_kexec.c 	for (i = 0; i < kexec_crash_image->nr_segments; i++)
nr_segments       346 arch/arm64/kernel/machine_kexec.c 	for (i = 0; i < kexec_crash_image->nr_segments; i++)
nr_segments       161 arch/mips/cavium-octeon/setup.c 	for (i = 0; i < image->nr_segments; i++) {
nr_segments       228 arch/mips/cavium-octeon/setup.c 		for (i = 0; i < kimage_ptr->nr_segments; i++)
nr_segments        41 arch/mips/kernel/machine_kexec.c 	pr_debug("  nr_segments: %lu\n", kimage->nr_segments);
nr_segments        43 arch/mips/kernel/machine_kexec.c 	for (i = 0; i < kimage->nr_segments; i++) {
nr_segments        64 arch/mips/kernel/machine_kexec.c 	for (i = 0; i < kimage->nr_segments; i++) {
nr_segments        39 arch/parisc/kernel/kexec.c 	pr_debug("  nr_segments: %lu\n", kimage->nr_segments);
nr_segments        41 arch/parisc/kernel/kexec.c 	for (i = 0; i < kimage->nr_segments; i++)
nr_segments        38 arch/parisc/kernel/kexec_file.c 	for (i = 0; i < image->nr_segments; i++)
nr_segments        49 arch/powerpc/kernel/machine_kexec_64.c 	for (i = 0; i < image->nr_segments; i++)
nr_segments        63 arch/powerpc/kernel/machine_kexec_64.c 		for (i = 0; i < image->nr_segments; i++) {
nr_segments       110 arch/powerpc/kernel/machine_kexec_64.c 	long i, nr_segments = image->nr_segments;
nr_segments       128 arch/powerpc/kernel/machine_kexec_64.c 	for (i = 0; i < nr_segments; i++)
nr_segments        56 arch/sh/kernel/machine_kexec.c 	for (i = 0; i < image->nr_segments; i++) {
nr_segments       234 arch/x86/kernel/machine_kexec_64.c 	for (i = 0; i < image->nr_segments; i++) {
nr_segments      1277 drivers/block/xen-blkback/blkback.c 	       req->u.indirect.nr_segments : req->u.rw.nr_segments;
nr_segments        82 drivers/block/xen-blkback/common.h 	uint8_t        nr_segments;  /* number of segments                   */
nr_segments       105 drivers/block/xen-blkback/common.h 	uint16_t       nr_segments;
nr_segments       134 drivers/block/xen-blkback/common.h 	uint8_t        nr_segments;  /* number of segments                   */
nr_segments       160 drivers/block/xen-blkback/common.h 	uint16_t       nr_segments;
nr_segments       405 drivers/block/xen-blkback/common.h 		dst->u.rw.nr_segments = src->u.rw.nr_segments;
nr_segments       410 drivers/block/xen-blkback/common.h 		if (n > dst->u.rw.nr_segments)
nr_segments       411 drivers/block/xen-blkback/common.h 			n = dst->u.rw.nr_segments;
nr_segments       423 drivers/block/xen-blkback/common.h 		dst->u.indirect.nr_segments = src->u.indirect.nr_segments;
nr_segments       428 drivers/block/xen-blkback/common.h 		j = min(MAX_INDIRECT_PAGES, INDIRECT_PAGES(dst->u.indirect.nr_segments));
nr_segments       453 drivers/block/xen-blkback/common.h 		dst->u.rw.nr_segments = src->u.rw.nr_segments;
nr_segments       458 drivers/block/xen-blkback/common.h 		if (n > dst->u.rw.nr_segments)
nr_segments       459 drivers/block/xen-blkback/common.h 			n = dst->u.rw.nr_segments;
nr_segments       471 drivers/block/xen-blkback/common.h 		dst->u.indirect.nr_segments = src->u.indirect.nr_segments;
nr_segments       476 drivers/block/xen-blkback/common.h 		j = min(MAX_INDIRECT_PAGES, INDIRECT_PAGES(dst->u.indirect.nr_segments));
nr_segments       676 drivers/block/xen-blkfront.c 	uint16_t nr_segments = first->u.rw.nr_segments;
nr_segments       682 drivers/block/xen-blkfront.c 	first->u.rw.nr_segments = BLKIF_MAX_SEGMENTS_PER_REQUEST;
nr_segments       684 drivers/block/xen-blkfront.c 	second->u.rw.nr_segments = nr_segments - BLKIF_MAX_SEGMENTS_PER_REQUEST;
nr_segments       765 drivers/block/xen-blkfront.c 		ring_req->u.indirect.nr_segments = num_grant;
nr_segments       788 drivers/block/xen-blkfront.c 		ring_req->u.rw.nr_segments = num_grant;
nr_segments      1289 drivers/block/xen-blkfront.c 		       rinfo->shadow[i].req.u.indirect.nr_segments :
nr_segments      1290 drivers/block/xen-blkfront.c 		       rinfo->shadow[i].req.u.rw.nr_segments;
nr_segments      1433 drivers/block/xen-blkfront.c 		s->req.u.indirect.nr_segments : s->req.u.rw.nr_segments;
nr_segments      1453 drivers/block/xen-blkfront.c 		num_grant += s2->req.u.rw.nr_segments;
nr_segments      1625 drivers/block/xen-blkfront.c 				     rinfo->shadow[id].req.u.rw.nr_segments == 0)) {
nr_segments        82 drivers/scsi/xen-scsifront.c 	uint8_t nr_segments;
nr_segments       203 drivers/scsi/xen-scsifront.c 	ring_req->nr_segments = shadow->nr_segments;
nr_segments       217 drivers/scsi/xen-scsifront.c 	for (i = 0; i < (shadow->nr_segments & ~VSCSIIF_SG_GRANT); i++)
nr_segments       499 drivers/scsi/xen-scsifront.c 		shadow->nr_segments = VSCSIIF_SG_GRANT | seg_grants;
nr_segments       501 drivers/scsi/xen-scsifront.c 		shadow->nr_segments = (uint8_t)ref_cnt;
nr_segments       480 drivers/xen/xen-scsiback.c 	unsigned int nr_segments = (unsigned int)ring_req->nr_segments;
nr_segments       489 drivers/xen/xen-scsiback.c 	nr_segments &= ~VSCSIIF_SG_GRANT;
nr_segments       490 drivers/xen/xen-scsiback.c 	if (!nr_segments)
nr_segments       493 drivers/xen/xen-scsiback.c 	if (nr_segments > VSCSIIF_SG_TABLESIZE) {
nr_segments       495 drivers/xen/xen-scsiback.c 			ring_req->nr_segments);
nr_segments       499 drivers/xen/xen-scsiback.c 	if (ring_req->nr_segments & VSCSIIF_SG_GRANT) {
nr_segments       502 drivers/xen/xen-scsiback.c 			nr_segments, GNTMAP_host_map | GNTMAP_readonly);
nr_segments       505 drivers/xen/xen-scsiback.c 		nr_sgl = nr_segments;
nr_segments       506 drivers/xen/xen-scsiback.c 		nr_segments = 0;
nr_segments       515 drivers/xen/xen-scsiback.c 			nr_segments += n_segs;
nr_segments       517 drivers/xen/xen-scsiback.c 		if (nr_segments > SG_ALL) {
nr_segments       518 drivers/xen/xen-scsiback.c 			pr_debug("invalid nr_seg = %d\n", nr_segments);
nr_segments       524 drivers/xen/xen-scsiback.c 	pending_req->sgl = kmalloc_array(nr_segments,
nr_segments       529 drivers/xen/xen-scsiback.c 	sg_init_table(pending_req->sgl, nr_segments);
nr_segments       530 drivers/xen/xen-scsiback.c 	pending_req->n_sg = nr_segments;
nr_segments       541 drivers/xen/xen-scsiback.c 			pg, grant, nr_segments, flags);
nr_segments       563 drivers/xen/xen-scsiback.c 	for_each_sg(pending_req->sgl, sg, nr_segments, i) {
nr_segments       676 include/linux/compat.h 				      compat_ulong_t nr_segments,
nr_segments       254 include/linux/kexec.h 	unsigned long nr_segments;
nr_segments       600 include/linux/syscalls.h asmlinkage long sys_kexec_load(unsigned long entry, unsigned long nr_segments,
nr_segments       195 include/xen/interface/io/blkif.h 	uint8_t        nr_segments;  /* number of segments                   */
nr_segments       229 include/xen/interface/io/blkif.h 	uint16_t       nr_segments;
nr_segments       202 include/xen/interface/io/vscsiif.h 	uint8_t nr_segments;		/* Number of pieces of scatter-gather */
nr_segments        23 kernel/kexec.c 				  unsigned long nr_segments,
nr_segments        30 kernel/kexec.c 	image->nr_segments = nr_segments;
nr_segments        31 kernel/kexec.c 	segment_bytes = nr_segments * sizeof(*segments);
nr_segments        40 kernel/kexec.c 			     unsigned long nr_segments,
nr_segments        62 kernel/kexec.c 	ret = copy_user_segment_list(image, nr_segments, segments);
nr_segments       106 kernel/kexec.c static int do_kexec_load(unsigned long entry, unsigned long nr_segments,
nr_segments       121 kernel/kexec.c 	if (nr_segments == 0) {
nr_segments       135 kernel/kexec.c 	ret = kimage_alloc_init(&image, entry, nr_segments, segments, flags);
nr_segments       154 kernel/kexec.c 	for (i = 0; i < nr_segments; i++) {
nr_segments       194 kernel/kexec.c static inline int kexec_load_check(unsigned long nr_segments,
nr_segments       226 kernel/kexec.c 	if (nr_segments > KEXEC_SEGMENT_MAX)
nr_segments       232 kernel/kexec.c SYSCALL_DEFINE4(kexec_load, unsigned long, entry, unsigned long, nr_segments,
nr_segments       237 kernel/kexec.c 	result = kexec_load_check(nr_segments, flags);
nr_segments       257 kernel/kexec.c 	result = do_kexec_load(entry, nr_segments, segments, flags);
nr_segments       266 kernel/kexec.c 		       compat_ulong_t, nr_segments,
nr_segments       274 kernel/kexec.c 	result = kexec_load_check(nr_segments, flags);
nr_segments       284 kernel/kexec.c 	ksegments = compat_alloc_user_space(nr_segments * sizeof(out));
nr_segments       285 kernel/kexec.c 	for (i = 0; i < nr_segments; i++) {
nr_segments       311 kernel/kexec.c 	result = do_kexec_load(entry, nr_segments, ksegments, flags);
nr_segments       151 kernel/kexec_core.c 	unsigned long nr_segments = image->nr_segments;
nr_segments       168 kernel/kexec_core.c 	for (i = 0; i < nr_segments; i++) {
nr_segments       186 kernel/kexec_core.c 	for (i = 0; i < nr_segments; i++) {
nr_segments       208 kernel/kexec_core.c 	for (i = 0; i < nr_segments; i++) {
nr_segments       218 kernel/kexec_core.c 	for (i = 0; i < nr_segments; i++) {
nr_segments       239 kernel/kexec_core.c 		for (i = 0; i < nr_segments; i++) {
nr_segments       287 kernel/kexec_core.c 	for (i = 0; i < image->nr_segments; i++) {
nr_segments       455 kernel/kexec_core.c 		for (i = 0; i < image->nr_segments; i++) {
nr_segments       468 kernel/kexec_core.c 		if (i == image->nr_segments) {
nr_segments       429 kernel/kexec_file.c 	for (i = 0; i < image->nr_segments; i++) {
nr_segments       671 kernel/kexec_file.c 	if (kbuf->image->nr_segments >= KEXEC_SEGMENT_MAX)
nr_segments       696 kernel/kexec_file.c 	ksegment = &kbuf->image->segment[kbuf->image->nr_segments];
nr_segments       701 kernel/kexec_file.c 	kbuf->image->nr_segments++;
nr_segments       753 kernel/kexec_file.c 	for (j = i = 0; i < image->nr_segments; i++) {