Lines Matching refs:bv
161 void bvec_free(mempool_t *pool, struct bio_vec *bv, unsigned int idx) in bvec_free() argument
166 mempool_free(bv, pool); in bvec_free()
170 kmem_cache_free(bvs->slab, bv); in bvec_free()
505 struct bio_vec bv; in zero_fill_bio() local
508 bio_for_each_segment(bv, bio, iter) { in zero_fill_bio()
509 char *data = bvec_kmap_irq(&bv, &flags); in zero_fill_bio()
510 memset(data, 0, bv.bv_len); in zero_fill_bio()
511 flush_dcache_page(bv.bv_page); in zero_fill_bio()
619 struct bio_vec bv; in bio_clone_bioset() local
661 bio_for_each_segment(bv, bio_src, iter) in bio_clone_bioset()
662 bio->bi_io_vec[bio->bi_vcnt++] = bv; in bio_clone_bioset()
948 struct bio_vec *bv; in bio_alloc_pages() local
950 bio_for_each_segment_all(bv, bio, i) { in bio_alloc_pages()
951 bv->bv_page = alloc_page(gfp_mask); in bio_alloc_pages()
952 if (!bv->bv_page) { in bio_alloc_pages()
953 while (--bv >= bio->bi_io_vec) in bio_alloc_pages()
954 __free_page(bv->bv_page); in bio_alloc_pages()