Lines Matching refs:map_data
131 static int bio_copy_user_iov(struct request *rq, struct rq_map_data *map_data, in bio_copy_user_iov() argument
140 unsigned int offset = map_data ? offset_in_page(map_data->offset) : 0; in bio_copy_user_iov()
151 bmd->is_our_pages = !map_data; in bio_copy_user_iov()
152 bmd->is_null_mapped = (map_data && map_data->null_mapped); in bio_copy_user_iov()
162 if (map_data) { in bio_copy_user_iov()
163 nr_pages = 1U << map_data->page_order; in bio_copy_user_iov()
164 i = map_data->offset / PAGE_SIZE; in bio_copy_user_iov()
174 if (map_data) { in bio_copy_user_iov()
175 if (i == map_data->nr_entries * nr_pages) { in bio_copy_user_iov()
180 page = map_data->pages[i / nr_pages]; in bio_copy_user_iov()
193 if (!map_data) in bio_copy_user_iov()
202 if (map_data) in bio_copy_user_iov()
203 map_data->offset += bio->bi_iter.bi_size; in bio_copy_user_iov()
209 (!map_data || !map_data->null_mapped)) { in bio_copy_user_iov()
213 } else if (map_data && map_data->from_user) { in bio_copy_user_iov()
234 if (!map_data) in bio_copy_user_iov()
633 struct rq_map_data *map_data, in blk_rq_map_user_iov() argument
642 if (map_data) in blk_rq_map_user_iov()
668 ret = bio_copy_user_iov(rq, map_data, &i, gfp_mask); in blk_rq_map_user_iov()
688 struct rq_map_data *map_data, void __user *ubuf, in blk_rq_map_user() argument
697 return blk_rq_map_user_iov(q, rq, map_data, &i, gfp_mask); in blk_rq_map_user()
701 int blk_rq_map_user_io(struct request *req, struct rq_map_data *map_data, in blk_rq_map_user_io() argument
726 ret = blk_rq_map_user_iov(req->q, req, map_data, &iter, in blk_rq_map_user_io()
730 ret = blk_rq_map_user(req->q, req, map_data, ubuf, buf_len, in blk_rq_map_user_io()