Lines Matching refs:bvec
235 static int lo_write_bvec(struct file *file, struct bio_vec *bvec, loff_t *ppos) in lo_write_bvec() argument
240 iov_iter_bvec(&i, WRITE, bvec, 1, bvec->bv_len); in lo_write_bvec()
246 if (likely(bw == bvec->bv_len)) in lo_write_bvec()
251 (unsigned long long)*ppos, bvec->bv_len); in lo_write_bvec()
260 struct bio_vec bvec; in lo_write_simple() local
264 rq_for_each_segment(bvec, rq, iter) { in lo_write_simple()
265 ret = lo_write_bvec(lo->lo_backing_file, &bvec, &pos); in lo_write_simple()
277 struct bio_vec bvec; in lo_read_simple() local
282 rq_for_each_segment(bvec, rq, iter) { in lo_read_simple()
283 iov_iter_bvec(&i, READ, &bvec, 1, bvec.bv_len); in lo_read_simple()
288 flush_dcache_page(bvec.bv_page); in lo_read_simple()
290 if (len != bvec.bv_len) { in lo_read_simple()
379 kfree(cmd->bvec); in lo_rw_aio_do_completion()
380 cmd->bvec = NULL; in lo_rw_aio_do_completion()
398 struct bio_vec *bvec; in lo_rw_aio() local
412 bvec = kmalloc_array(nr_bvec, sizeof(struct bio_vec), in lo_rw_aio()
414 if (!bvec) in lo_rw_aio()
416 cmd->bvec = bvec; in lo_rw_aio()
425 *bvec = tmp; in lo_rw_aio()
426 bvec++; in lo_rw_aio()
428 bvec = cmd->bvec; in lo_rw_aio()
437 bvec = __bvec_iter_bvec(bio->bi_io_vec, bio->bi_iter); in lo_rw_aio()
441 iov_iter_bvec(&iter, rw, bvec, nr_bvec, blk_rq_bytes(rq)); in lo_rw_aio()