Lines Matching refs: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);
248 if (likely(bw == bvec->bv_len))
253 (unsigned long long)*ppos, bvec->bv_len);
262 struct bio_vec bvec;
266 rq_for_each_segment(bvec, rq, iter) {
267 ret = lo_write_bvec(lo->lo_backing_file, &bvec, &pos);
279 struct bio_vec bvec;
284 rq_for_each_segment(bvec, rq, iter) {
285 iov_iter_bvec(&i, ITER_DEST, &bvec, 1, bvec.bv_len);
290 flush_dcache_page(bvec.bv_page);
292 if (len != bvec.bv_len) {
376 kfree(cmd->bvec);
377 cmd->bvec = NULL;
395 struct bio_vec *bvec;
409 bvec = kmalloc_array(nr_bvec, sizeof(struct bio_vec),
411 if (!bvec)
413 cmd->bvec = bvec;
417 * the 'bvec' because of bio splitting, so we can't directly
418 * copy bio->bi_iov_vec to new bvec. The rq_for_each_bvec
422 *bvec = tmp;
423 bvec++;
425 bvec = cmd->bvec;
430 * 'bvec' because of bio splitting, so offset from the bvec
434 bvec = __bvec_iter_bvec(bio->bi_io_vec, bio->bi_iter);
438 iov_iter_bvec(&iter, rw, bvec, nr_bvec, blk_rq_bytes(rq));