Lines Matching refs:bvec
87 struct bio_vec *bvec; member
241 static int lo_write_bvec(struct file *file, struct bio_vec *bvec, loff_t *ppos) in lo_write_bvec() argument
246 iov_iter_bvec(&i, ITER_SOURCE, bvec, 1, bvec->bv_len); in lo_write_bvec()
252 if (likely(bw == bvec->bv_len)) in lo_write_bvec()
257 (unsigned long long)*ppos, bvec->bv_len); in lo_write_bvec()
266 struct bio_vec bvec; in lo_write_simple() local
270 rq_for_each_segment(bvec, rq, iter) { in lo_write_simple()
271 ret = lo_write_bvec(lo->lo_backing_file, &bvec, &pos); in lo_write_simple()
283 struct bio_vec bvec; in lo_read_simple() local
288 rq_for_each_segment(bvec, rq, iter) { in lo_read_simple()
289 iov_iter_bvec(&i, ITER_DEST, &bvec, 1, bvec.bv_len); in lo_read_simple()
294 flush_dcache_page(bvec.bv_page); in lo_read_simple()
296 if (len != bvec.bv_len) { in lo_read_simple()
380 kfree(cmd->bvec); in lo_rw_aio_do_completion()
381 cmd->bvec = NULL; in lo_rw_aio_do_completion()
399 struct bio_vec *bvec; in lo_rw_aio() local
413 bvec = kmalloc_array(nr_bvec, sizeof(struct bio_vec), in lo_rw_aio()
415 if (!bvec) in lo_rw_aio()
417 cmd->bvec = bvec; in lo_rw_aio()
426 *bvec = tmp; in lo_rw_aio()
427 bvec++; in lo_rw_aio()
429 bvec = cmd->bvec; in lo_rw_aio()
438 bvec = __bvec_iter_bvec(bio->bi_io_vec, bio->bi_iter); in lo_rw_aio()
442 iov_iter_bvec(&iter, rw, bvec, nr_bvec, blk_rq_bytes(rq)); in lo_rw_aio()