Lines Matching refs:nsegs
110 unsigned *nsegs, struct bio_set *bs) in bio_split_discard() argument
116 *nsegs = 1; in bio_split_discard()
151 unsigned *nsegs, struct bio_set *bs) in bio_split_write_zeroes() argument
153 *nsegs = 0; in bio_split_write_zeroes()
232 const struct bio_vec *bv, unsigned *nsegs, unsigned *bytes, in bvec_split_segs() argument
240 while (len && *nsegs < max_segs) { in bvec_split_segs()
245 (*nsegs)++; in bvec_split_segs()
284 unsigned nsegs = 0, bytes = 0; in bio_split_rw() local
294 if (nsegs < lim->max_segments && in bio_split_rw()
297 nsegs++; in bio_split_rw()
300 if (bvec_split_segs(lim, &bv, &nsegs, &bytes, in bio_split_rw()
309 *segs = nsegs; in bio_split_rw()
322 *segs = nsegs; in bio_split_rw()
467 unsigned nsegs = 0, total = 0; in blk_bvec_map_sg() local
491 nsegs++; in blk_bvec_map_sg()
494 return nsegs; in blk_bvec_map_sg()
533 int nsegs = 0; in __blk_bios_map_sg() local
548 nsegs += __blk_bvec_map_sg(bvec, sglist, sg); in __blk_bios_map_sg()
550 nsegs += blk_bvec_map_sg(q, &bvec, sglist, sg); in __blk_bios_map_sg()
560 return nsegs; in __blk_bios_map_sg()
570 int nsegs = 0; in __blk_rq_map_sg() local
573 nsegs = __blk_bvec_map_sg(rq->special_vec, sglist, last_sg); in __blk_rq_map_sg()
575 nsegs = __blk_bios_map_sg(q, rq->bio, sglist, last_sg); in __blk_rq_map_sg()
584 WARN_ON(nsegs > blk_rq_nr_phys_segments(rq)); in __blk_rq_map_sg()
586 return nsegs; in __blk_rq_map_sg()