Home
last modified time | relevance | path

Searched refs:bvl (Results 1 – 4 of 4) sorted by relevance

/linux-4.19.296/include/linux/
Dbvec.h128 #define for_each_bvec(bvl, bio_vec, iter, start) \ argument
131 ((bvl = bvec_iter_bvec((bio_vec), (iter))), 1); \
132 (bvl).bv_len ? (void)bvec_iter_advance((bio_vec), &(iter), \
133 (bvl).bv_len) : bvec_iter_skip_zero_bvec(&(iter)))
Dbio.h165 #define bio_for_each_segment_all(bvl, bio, i) \ argument
166 for (i = 0, bvl = (bio)->bi_io_vec; i < (bio)->bi_vcnt; i++, bvl++)
196 #define __bio_for_each_segment(bvl, bio, iter, start) \ argument
199 ((bvl = bio_iter_iovec((bio), (iter))), 1); \
200 bio_advance_iter((bio), &(iter), (bvl).bv_len))
202 #define bio_for_each_segment(bvl, bio, iter) \ argument
203 __bio_for_each_segment(bvl, bio, iter, (bio)->bi_iter)
785 #define bip_for_each_vec(bvl, bip, iter) \ argument
786 for_each_bvec(bvl, (bip)->bip_vec, iter, (bip)->bip_iter)
Dblkdev.h950 #define rq_for_each_segment(bvl, _rq, _iter) \ argument
952 bio_for_each_segment(bvl, _iter.bio, _iter.iter)
/linux-4.19.296/block/
Dbio.c184 struct bio_vec *bvl; in bvec_alloc() local
218 bvl = mempool_alloc(pool, gfp_mask); in bvec_alloc()
234 bvl = kmem_cache_alloc(bvs->slab, __gfp_mask); in bvec_alloc()
235 if (unlikely(!bvl && (gfp_mask & __GFP_DIRECT_RECLAIM))) { in bvec_alloc()
242 return bvl; in bvec_alloc()
444 struct bio_vec *bvl = NULL; in bio_alloc_bioset() local
509 bvl = bvec_alloc(gfp_mask, nr_iovecs, &idx, &bs->bvec_pool); in bio_alloc_bioset()
510 if (!bvl && gfp_mask != saved_gfp) { in bio_alloc_bioset()
513 bvl = bvec_alloc(gfp_mask, nr_iovecs, &idx, &bs->bvec_pool); in bio_alloc_bioset()
516 if (unlikely(!bvl)) in bio_alloc_bioset()
[all …]