Lines Matching defs:bvec
87 struct bio_vec *bvec;
239 static int lo_write_bvec(struct file *file, struct bio_vec *bvec, loff_t *ppos)
244 iov_iter_bvec(&i, ITER_SOURCE, bvec, 1, bvec->bv_len);
250 if (likely(bw == bvec->bv_len))
255 (unsigned long long)*ppos, bvec->bv_len);
264 struct bio_vec bvec;
268 rq_for_each_segment(bvec, rq, iter) {
269 ret = lo_write_bvec(lo->lo_backing_file, &bvec, &pos);
281 struct bio_vec bvec;
286 rq_for_each_segment(bvec, rq, iter) {
287 iov_iter_bvec(&i, ITER_DEST, &bvec, 1, bvec.bv_len);
292 flush_dcache_page(bvec.bv_page);
294 if (len != bvec.bv_len) {
378 kfree(cmd->bvec);
379 cmd->bvec = NULL;
397 struct bio_vec *bvec;
411 bvec = kmalloc_array(nr_bvec, sizeof(struct bio_vec),
413 if (!bvec)
415 cmd->bvec = bvec;
419 * the 'bvec' because of bio splitting, so we can't directly
420 * copy bio->bi_iov_vec to new bvec. The rq_for_each_bvec
424 *bvec = tmp;
425 bvec++;
427 bvec = cmd->bvec;
432 * 'bvec' because of bio splitting, so offset from the bvec
436 bvec = __bvec_iter_bvec(bio->bi_io_vec, bio->bi_iter);
440 iov_iter_bvec(&iter, rw, bvec, nr_bvec, blk_rq_bytes(rq));