Lines Matching refs:nsegs
68 unsigned *nsegs) in blk_bio_discard_split() argument
75 *nsegs = 1; in blk_bio_discard_split()
110 struct bio *bio, struct bio_set *bs, unsigned *nsegs) in blk_bio_write_zeroes_split() argument
112 *nsegs = 0; in blk_bio_write_zeroes_split()
126 unsigned *nsegs) in blk_bio_write_same_split() argument
128 *nsegs = 1; in blk_bio_write_same_split()
201 const struct bio_vec *bv, unsigned *nsegs, in bvec_split_segs() argument
210 while (len && *nsegs < max_segs) { in bvec_split_segs()
215 (*nsegs)++; in bvec_split_segs()
255 unsigned nsegs = 0, sectors = 0; in blk_bio_segment_split() local
267 if (nsegs < max_segs && in blk_bio_segment_split()
270 nsegs++; in blk_bio_segment_split()
272 } else if (bvec_split_segs(q, &bv, &nsegs, §ors, max_segs, in blk_bio_segment_split()
281 *segs = nsegs; in blk_bio_segment_split()
284 *segs = nsegs; in blk_bio_segment_split()
425 unsigned nsegs = 0, total = 0; in blk_bvec_map_sg() local
449 nsegs++; in blk_bvec_map_sg()
452 return nsegs; in blk_bvec_map_sg()
491 int nsegs = 0; in __blk_bios_map_sg() local
506 nsegs += __blk_bvec_map_sg(bvec, sglist, sg); in __blk_bios_map_sg()
508 nsegs += blk_bvec_map_sg(q, &bvec, sglist, sg); in __blk_bios_map_sg()
518 return nsegs; in __blk_bios_map_sg()
528 int nsegs = 0; in __blk_rq_map_sg() local
531 nsegs = __blk_bvec_map_sg(rq->special_vec, sglist, last_sg); in __blk_rq_map_sg()
533 nsegs = __blk_bvec_map_sg(bio_iovec(rq->bio), sglist, last_sg); in __blk_rq_map_sg()
535 nsegs = __blk_bios_map_sg(q, rq->bio, sglist, last_sg); in __blk_rq_map_sg()
544 WARN_ON(nsegs > blk_rq_nr_phys_segments(rq)); in __blk_rq_map_sg()
546 return nsegs; in __blk_rq_map_sg()