Lines Matching refs:io_req
468 static int dp_init(struct dm_io_request *io_req, struct dpages *dp, in dp_init() argument
476 switch (io_req->mem.type) { in dp_init()
478 list_dp_init(dp, io_req->mem.ptr.pl, io_req->mem.offset); in dp_init()
482 bio_dp_init(dp, io_req->mem.ptr.bio); in dp_init()
486 flush_kernel_vmap_range(io_req->mem.ptr.vma, size); in dp_init()
487 if (io_req->bi_op == REQ_OP_READ) { in dp_init()
488 dp->vma_invalidate_address = io_req->mem.ptr.vma; in dp_init()
491 vm_dp_init(dp, io_req->mem.ptr.vma); in dp_init()
495 km_dp_init(dp, io_req->mem.ptr.addr); in dp_init()
513 int dm_io(struct dm_io_request *io_req, unsigned num_regions, in dm_io() argument
519 r = dp_init(io_req, &dp, (unsigned long)where->count << SECTOR_SHIFT); in dm_io()
523 if (!io_req->notify.fn) in dm_io()
524 return sync_io(io_req->client, num_regions, where, in dm_io()
525 io_req->bi_op, io_req->bi_op_flags, &dp, in dm_io()
528 return async_io(io_req->client, num_regions, where, io_req->bi_op, in dm_io()
529 io_req->bi_op_flags, &dp, io_req->notify.fn, in dm_io()
530 io_req->notify.context); in dm_io()