• Home
  • Raw
  • Download

Lines Matching refs:nsegs

66 					 unsigned *nsegs)  in blk_bio_discard_split()  argument
73 *nsegs = 1; in blk_bio_discard_split()
108 struct bio *bio, struct bio_set *bs, unsigned *nsegs) in blk_bio_write_zeroes_split() argument
110 *nsegs = 0; in blk_bio_write_zeroes_split()
124 unsigned *nsegs) in blk_bio_write_same_split() argument
126 *nsegs = 1; in blk_bio_write_same_split()
199 const struct bio_vec *bv, unsigned *nsegs, in bvec_split_segs() argument
208 while (len && *nsegs < max_segs) { in bvec_split_segs()
213 (*nsegs)++; in bvec_split_segs()
253 unsigned nsegs = 0, sectors = 0; in blk_bio_segment_split() local
265 if (nsegs < max_segs && in blk_bio_segment_split()
269 nsegs += blk_segments(&q->limits, bv.bv_len); in blk_bio_segment_split()
271 } else if (bvec_split_segs(q, &bv, &nsegs, &sectors, max_segs, in blk_bio_segment_split()
280 *segs = nsegs; in blk_bio_segment_split()
293 *segs = nsegs; in blk_bio_segment_split()
442 unsigned nsegs = 0, total = 0; in blk_bvec_map_sg() local
466 nsegs++; in blk_bvec_map_sg()
469 return nsegs; in blk_bvec_map_sg()
508 int nsegs = 0; in __blk_bios_map_sg() local
526 nsegs += __blk_bvec_map_sg(bvec, sglist, sg); in __blk_bios_map_sg()
528 nsegs += blk_bvec_map_sg(q, &bvec, sglist, sg); in __blk_bios_map_sg()
538 return nsegs; in __blk_bios_map_sg()
548 int nsegs = 0; in __blk_rq_map_sg() local
551 nsegs = __blk_bvec_map_sg(rq->special_vec, sglist, last_sg); in __blk_rq_map_sg()
553 nsegs = __blk_bvec_map_sg(bio_iovec(rq->bio), sglist, last_sg); in __blk_rq_map_sg()
555 nsegs = __blk_bios_map_sg(q, rq->bio, sglist, last_sg); in __blk_rq_map_sg()
564 WARN_ON(nsegs > blk_rq_nr_phys_segments(rq)); in __blk_rq_map_sg()
566 return nsegs; in __blk_rq_map_sg()