Lines Matching defs:nsegs
66 unsigned *nsegs)
73 *nsegs = 1;
108 struct bio *bio, struct bio_set *bs, unsigned *nsegs)
110 *nsegs = 0;
124 unsigned *nsegs)
126 *nsegs = 1;
182 * @nsegs: [in,out] Number of segments in the bio being built. Incremented
188 * @max_segs: [in] upper bound for *@nsegs
195 * *@nsegs segments and *@sectors sectors would make that bio unacceptable for
199 const struct bio_vec *bv, unsigned *nsegs,
208 while (len && *nsegs < max_segs) {
213 (*nsegs)++;
253 unsigned nsegs = 0, sectors = 0;
265 if (nsegs < max_segs &&
268 nsegs++;
270 } else if (bvec_split_segs(q, &bv, &nsegs, §ors, max_segs,
279 *segs = nsegs;
282 *segs = nsegs;
423 unsigned nsegs = 0, total = 0;
447 nsegs++;
450 return nsegs;
489 int nsegs = 0;
504 nsegs += __blk_bvec_map_sg(bvec, sglist, sg);
506 nsegs += blk_bvec_map_sg(q, &bvec, sglist, sg);
516 return nsegs;
526 int nsegs = 0;
529 nsegs = __blk_bvec_map_sg(rq->special_vec, sglist, last_sg);
531 nsegs = __blk_bvec_map_sg(bio_iovec(rq->bio), sglist, last_sg);
533 nsegs = __blk_bios_map_sg(q, rq->bio, sglist, last_sg);
542 WARN_ON(nsegs > blk_rq_nr_phys_segments(rq));
544 return nsegs;