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()
518 struct bio_vec bv; in zero_fill_bio() local
521 bio_for_each_segment(bv, bio, iter) { in zero_fill_bio()
522 char *data = bvec_kmap_irq(&bv, &flags); in zero_fill_bio()
523 memset(data, 0, bv.bv_len); in zero_fill_bio()
524 flush_dcache_page(bv.bv_page); in zero_fill_bio()
636 struct bio_vec bv; in bio_clone_bioset() local
678 bio_for_each_segment(bv, bio_src, iter) in bio_clone_bioset()
679 bio->bi_io_vec[bio->bi_vcnt++] = bv; in bio_clone_bioset()
809 struct bio_vec *bv; in bio_add_page() local
823 bv = &bio->bi_io_vec[bio->bi_vcnt - 1]; in bio_add_page()
825 if (page == bv->bv_page && in bio_add_page()
826 offset == bv->bv_offset + bv->bv_len) { in bio_add_page()
827 bv->bv_len += len; in bio_add_page()
835 bv = &bio->bi_io_vec[bio->bi_vcnt]; in bio_add_page()
836 bv->bv_page = page; in bio_add_page()
837 bv->bv_len = len; in bio_add_page()
838 bv->bv_offset = offset; in bio_add_page()
916 struct bio_vec *bv; in bio_alloc_pages() local
918 bio_for_each_segment_all(bv, bio, i) { in bio_alloc_pages()
919 bv->bv_page = alloc_page(gfp_mask); in bio_alloc_pages()
920 if (!bv->bv_page) { in bio_alloc_pages()
921 while (--bv >= bio->bi_io_vec) in bio_alloc_pages()
922 __free_page(bv->bv_page); in bio_alloc_pages()