Lines Matching defs:bio
9 #include <linux/bio.h>
231 void bch_bio_map(struct bio *bio, void *base)
233 size_t size = bio->bi_iter.bi_size;
234 struct bio_vec *bv = bio->bi_io_vec;
236 BUG_ON(!bio->bi_iter.bi_size);
237 BUG_ON(bio->bi_vcnt);
242 for (; size; bio->bi_vcnt++, bv++) {
259 * bch_bio_alloc_pages - allocates a single page for each bvec in a bio
260 * @bio: bio to allocate pages for
263 * Allocates pages up to @bio->bi_vcnt.
268 int bch_bio_alloc_pages(struct bio *bio, gfp_t gfp_mask)
274 * This is called on freshly new bio, so it is safe to access the
277 for (i = 0, bv = bio->bi_io_vec; i < bio->bi_vcnt; bv++, i++) {
280 while (--bv >= bio->bi_io_vec)