Lines Matching refs:bvec
87 struct bio_vec *bvec; member
236 static int lo_write_bvec(struct file *file, struct bio_vec *bvec, loff_t *ppos) in lo_write_bvec() argument
241 iov_iter_bvec(&i, ITER_SOURCE, bvec, 1, bvec->bv_len); in lo_write_bvec()
245 if (likely(bw == bvec->bv_len)) in lo_write_bvec()
250 (unsigned long long)*ppos, bvec->bv_len); in lo_write_bvec()
259 struct bio_vec bvec; in lo_write_simple() local
263 rq_for_each_segment(bvec, rq, iter) { in lo_write_simple()
264 ret = lo_write_bvec(lo->lo_backing_file, &bvec, &pos); in lo_write_simple()
276 struct bio_vec bvec; in lo_read_simple() local
281 rq_for_each_segment(bvec, rq, iter) { in lo_read_simple()
282 iov_iter_bvec(&i, ITER_DEST, &bvec, 1, bvec.bv_len); in lo_read_simple()
287 flush_dcache_page(bvec.bv_page); in lo_read_simple()
289 if (len != bvec.bv_len) { in lo_read_simple()
396 kfree(cmd->bvec); in lo_rw_aio_do_completion()
397 cmd->bvec = NULL; in lo_rw_aio_do_completion()
415 struct bio_vec *bvec; in lo_rw_aio() local
429 bvec = kmalloc_array(nr_bvec, sizeof(struct bio_vec), in lo_rw_aio()
431 if (!bvec) in lo_rw_aio()
433 cmd->bvec = bvec; in lo_rw_aio()
442 *bvec = tmp; in lo_rw_aio()
443 bvec++; in lo_rw_aio()
445 bvec = cmd->bvec; in lo_rw_aio()
454 bvec = __bvec_iter_bvec(bio->bi_io_vec, bio->bi_iter); in lo_rw_aio()
458 iov_iter_bvec(&iter, rw, bvec, nr_bvec, blk_rq_bytes(rq)); in lo_rw_aio()