Lines Matching refs:dir
817 size_t total, size_t pg_off, int dir) in ublk_copy_io_pages() argument
829 if (dir == ITER_DEST) in ublk_copy_io_pages()
879 unsigned offset, struct iov_iter *uiter, int dir) in ublk_copy_user_pages() argument
899 ublk_copy_io_pages(&iter, len, off, dir); in ublk_copy_user_pages()
902 if (dir == ITER_DEST) in ublk_copy_user_pages()
939 const int dir = ITER_DEST; in ublk_map_io() local
941 import_single_range(dir, u64_to_user_ptr(io->addr), rq_bytes, in ublk_map_io()
944 return ublk_copy_user_pages(req, 0, &iter, dir); in ublk_map_io()
961 const int dir = ITER_SOURCE; in ublk_unmap_io() local
965 import_single_range(dir, u64_to_user_ptr(io->addr), io->res, in ublk_unmap_io()
967 return ublk_copy_user_pages(req, 0, &iter, dir); in ublk_unmap_io()
1895 struct iov_iter *iter, size_t *off, int dir) in ublk_check_and_get_req() argument
1933 if (!ublk_check_ubuf_dir(req, dir)) in ublk_check_and_get_req()