Lines Matching refs:where
280 static void do_region(int rw, unsigned region, struct dm_io_region *where, in do_region() argument
288 sector_t remaining = where->count; in do_region()
289 struct request_queue *q = bdev_get_queue(where->bdev); in do_region()
317 num_bvecs = min_t(int, bio_get_nr_vecs(where->bdev), in do_region()
321 bio->bi_iter.bi_sector = where->sector + (where->count - remaining); in do_region()
322 bio->bi_bdev = where->bdev; in do_region()
362 struct dm_io_region *where, struct dpages *dp, in dispatch_io() argument
379 if (where[i].count || (rw & REQ_FLUSH)) in dispatch_io()
380 do_region(rw, i, where + i, dp, io); in dispatch_io()
404 struct dm_io_region *where, int rw, struct dpages *dp, in sync_io() argument
427 dispatch_io(rw, num_regions, where, dp, io, 1); in sync_io()
438 struct dm_io_region *where, int rw, struct dpages *dp, in async_io() argument
459 dispatch_io(rw, num_regions, where, dp, io, 0); in async_io()
509 struct dm_io_region *where, unsigned long *sync_error_bits) in dm_io() argument
514 r = dp_init(io_req, &dp, (unsigned long)where->count << SECTOR_SHIFT); in dm_io()
519 return sync_io(io_req->client, num_regions, where, in dm_io()
522 return async_io(io_req->client, num_regions, where, io_req->bi_rw, in dm_io()