Lines Matching refs:bv
50 struct bio_vec bv; member
101 static inline bool bvec_iter_advance(const struct bio_vec *bv, in bvec_iter_advance() argument
115 while (bytes && bytes >= bv[idx].bv_len) { in bvec_iter_advance()
116 bytes -= bv[idx].bv_len; in bvec_iter_advance()
129 static inline void bvec_iter_advance_single(const struct bio_vec *bv, in bvec_iter_advance_single() argument
134 if (done == bv[iter->bi_idx].bv_len) { in bvec_iter_advance_single()
162 return &iter_all->bv; in bvec_init_iter_all()
168 struct bio_vec *bv = &iter_all->bv; in bvec_advance() local
171 bv->bv_page++; in bvec_advance()
172 bv->bv_offset = 0; in bvec_advance()
174 bv->bv_page = bvec->bv_page + (bvec->bv_offset >> PAGE_SHIFT); in bvec_advance()
175 bv->bv_offset = bvec->bv_offset & ~PAGE_MASK; in bvec_advance()
177 bv->bv_len = min_t(unsigned int, PAGE_SIZE - bv->bv_offset, in bvec_advance()
179 iter_all->done += bv->bv_len; in bvec_advance()