Lines Matching defs:io_req
492 static int dp_init(struct dm_io_request *io_req, struct dpages *dp,
500 switch (io_req->mem.type) {
502 list_dp_init(dp, io_req->mem.ptr.pl, io_req->mem.offset);
506 bio_dp_init(dp, io_req->mem.ptr.bio);
510 flush_kernel_vmap_range(io_req->mem.ptr.vma, size);
511 if (io_req->bi_op == REQ_OP_READ) {
512 dp->vma_invalidate_address = io_req->mem.ptr.vma;
515 vm_dp_init(dp, io_req->mem.ptr.vma);
519 km_dp_init(dp, io_req->mem.ptr.addr);
534 * io_req->bi_opf. If you fail to do one of these, the IO will be submitted to
537 int dm_io(struct dm_io_request *io_req, unsigned num_regions,
543 r = dp_init(io_req, &dp, (unsigned long)where->count << SECTOR_SHIFT);
547 if (!io_req->notify.fn)
548 return sync_io(io_req->client, num_regions, where,
549 io_req->bi_op, io_req->bi_op_flags, &dp,
552 return async_io(io_req->client, num_regions, where, io_req->bi_op,
553 io_req->bi_op_flags, &dp, io_req->notify.fn,
554 io_req->notify.context);