Lines Matching refs:bvec
247 struct bio_vec *bvec, loff_t pos, struct page *page)
250 kmap(bvec->bv_page) + bvec->bv_offset,
251 bvec->bv_len, pos);
252 kunmap(bvec->bv_page);
264 static int do_lo_send_write(struct loop_device *lo, struct bio_vec *bvec,
267 int ret = lo_do_transfer(lo, WRITE, page, 0, bvec->bv_page,
268 bvec->bv_offset, bvec->bv_len, pos >> 9);
271 page_address(page), bvec->bv_len,
274 "length %i.\n", (unsigned long long)pos, bvec->bv_len);
284 struct bio_vec *bvec;
298 bio_for_each_segment(bvec, bio, i) {
299 ret = do_lo_send(lo, bvec, pos, page);
302 pos += bvec->bv_len;
361 struct bio_vec *bvec, int bsize, loff_t pos)
369 cookie.page = bvec->bv_page;
370 cookie.offset = bvec->bv_offset;
374 sd.total_len = bvec->bv_len;
388 struct bio_vec *bvec;
392 bio_for_each_segment(bvec, bio, i) {
393 s = do_lo_receive(lo, bvec, bsize, pos);
397 if (s != bvec->bv_len) {
401 pos += bvec->bv_len;