Lines Matching refs:iter
17 struct iov_iter iter; member
33 bmd->iter = *data; in bio_alloc_map_data()
34 bmd->iter.iov = bmd->iov; in bio_alloc_map_data()
46 static int bio_copy_from_iter(struct bio *bio, struct iov_iter *iter) in bio_copy_from_iter() argument
57 iter); in bio_copy_from_iter()
59 if (!iov_iter_count(iter)) in bio_copy_from_iter()
77 static int bio_copy_to_iter(struct bio *bio, struct iov_iter iter) in bio_copy_to_iter() argument
88 &iter); in bio_copy_to_iter()
90 if (!iov_iter_count(&iter)) in bio_copy_to_iter()
121 ret = bio_copy_to_iter(bio, bmd->iter); in bio_uncopy_user()
131 struct iov_iter *iter, gfp_t gfp_mask) in bio_copy_user_iov() argument
138 unsigned int len = iter->count; in bio_copy_user_iov()
141 bmd = bio_alloc_map_data(iter, gfp_mask); in bio_copy_user_iov()
209 if ((iov_iter_rw(iter) == WRITE && in bio_copy_user_iov()
212 ret = bio_copy_from_iter(bio, iter); in bio_copy_user_iov()
218 iov_iter_advance(iter, bio->bi_iter.bi_size); in bio_copy_user_iov()
243 static int bio_map_user_iov(struct request *rq, struct iov_iter *iter, in bio_map_user_iov() argument
251 if (!iov_iter_count(iter)) in bio_map_user_iov()
254 bio = bio_kmalloc(gfp_mask, iov_iter_npages(iter, BIO_MAX_PAGES)); in bio_map_user_iov()
259 while (iov_iter_count(iter)) { in bio_map_user_iov()
265 bytes = iov_iter_get_pages_alloc(iter, &pages, LONG_MAX, &offs); in bio_map_user_iov()
296 iov_iter_advance(iter, added); in bio_map_user_iov()
527 struct bvec_iter iter; in blk_rq_append_bio() local
533 bio_for_each_bvec(bv, *bio, iter) in blk_rq_append_bio()
580 const struct iov_iter *iter, gfp_t gfp_mask) in blk_rq_map_user_iov() argument
588 if (!iter_is_iovec(iter)) in blk_rq_map_user_iov()
593 else if (iov_iter_alignment(iter) & align) in blk_rq_map_user_iov()
596 copy = queue_virt_boundary(q) & iov_iter_gap_alignment(iter); in blk_rq_map_user_iov()
598 i = *iter; in blk_rq_map_user_iov()