Lines Matching refs:where
281 static void do_region(int rw, unsigned region, struct dm_io_region *where, in do_region() argument
289 sector_t remaining = where->count; in do_region()
290 struct request_queue *q = bdev_get_queue(where->bdev); in do_region()
322 bio->bi_iter.bi_sector = where->sector + (where->count - remaining); in do_region()
323 bio->bi_bdev = where->bdev; in do_region()
363 struct dm_io_region *where, struct dpages *dp, in dispatch_io() argument
380 if (where[i].count || (rw & REQ_FLUSH)) in dispatch_io()
381 do_region(rw, i, where + i, dp, io); in dispatch_io()
405 struct dm_io_region *where, int rw, struct dpages *dp, in sync_io() argument
428 dispatch_io(rw, num_regions, where, dp, io, 1); in sync_io()
439 struct dm_io_region *where, int rw, struct dpages *dp, in async_io() argument
460 dispatch_io(rw, num_regions, where, dp, io, 0); in async_io()
510 struct dm_io_region *where, unsigned long *sync_error_bits) in dm_io() argument
515 r = dp_init(io_req, &dp, (unsigned long)where->count << SECTOR_SHIFT); in dm_io()
520 return sync_io(io_req->client, num_regions, where, in dm_io()
523 return async_io(io_req->client, num_regions, where, io_req->bi_rw, in dm_io()