Lines Matching refs:map_data
129 static int bio_copy_user_iov(struct request *rq, struct rq_map_data *map_data, in bio_copy_user_iov() argument
138 unsigned int offset = map_data ? offset_in_page(map_data->offset) : 0; in bio_copy_user_iov()
149 bmd->is_our_pages = !map_data; in bio_copy_user_iov()
150 bmd->is_null_mapped = (map_data && map_data->null_mapped); in bio_copy_user_iov()
160 if (map_data) { in bio_copy_user_iov()
161 nr_pages = 1 << map_data->page_order; in bio_copy_user_iov()
162 i = map_data->offset / PAGE_SIZE; in bio_copy_user_iov()
172 if (map_data) { in bio_copy_user_iov()
173 if (i == map_data->nr_entries * nr_pages) { in bio_copy_user_iov()
178 page = map_data->pages[i / nr_pages]; in bio_copy_user_iov()
191 if (!map_data) in bio_copy_user_iov()
200 if (map_data) in bio_copy_user_iov()
201 map_data->offset += bio->bi_iter.bi_size; in bio_copy_user_iov()
207 (!map_data || !map_data->null_mapped)) || in bio_copy_user_iov()
208 (map_data && map_data->from_user)) { in bio_copy_user_iov()
225 if (!map_data) in bio_copy_user_iov()
522 struct rq_map_data *map_data, in blk_rq_map_user_iov() argument
534 if (map_data) in blk_rq_map_user_iov()
546 ret = bio_copy_user_iov(rq, map_data, &i, gfp_mask); in blk_rq_map_user_iov()
566 struct rq_map_data *map_data, void __user *ubuf, in blk_rq_map_user() argument
576 return blk_rq_map_user_iov(q, rq, map_data, &i, gfp_mask); in blk_rq_map_user()