Lines Matching refs:bv
49 struct bio_vec bv; member
100 static inline bool bvec_iter_advance(const struct bio_vec *bv, in bvec_iter_advance() argument
114 while (bytes && bytes >= bv[idx].bv_len) { in bvec_iter_advance()
115 bytes -= bv[idx].bv_len; in bvec_iter_advance()
151 return &iter_all->bv; in bvec_init_iter_all()
157 struct bio_vec *bv = &iter_all->bv; in bvec_advance() local
160 bv->bv_page++; in bvec_advance()
161 bv->bv_offset = 0; in bvec_advance()
163 bv->bv_page = bvec->bv_page + (bvec->bv_offset >> PAGE_SHIFT); in bvec_advance()
164 bv->bv_offset = bvec->bv_offset & ~PAGE_MASK; in bvec_advance()
166 bv->bv_len = min_t(unsigned int, PAGE_SIZE - bv->bv_offset, in bvec_advance()
168 iter_all->done += bv->bv_len; in bvec_advance()