drm/panthor: Don't add write fences to the shared BOs
[drm/drm-misc.git] / io_uring / rw.h
blob3f432dc75441febdf60026146db8afa223d43877
1 // SPDX-License-Identifier: GPL-2.0
3 #include <linux/pagemap.h>
5 struct io_async_rw {
6 size_t bytes_done;
7 struct iov_iter iter;
8 struct iov_iter_state iter_state;
9 struct iovec fast_iov;
10 struct iovec *free_iovec;
11 int free_iov_nr;
12 struct wait_page_queue wpq;
15 int io_prep_read_fixed(struct io_kiocb *req, const struct io_uring_sqe *sqe);
16 int io_prep_write_fixed(struct io_kiocb *req, const struct io_uring_sqe *sqe);
17 int io_prep_readv(struct io_kiocb *req, const struct io_uring_sqe *sqe);
18 int io_prep_writev(struct io_kiocb *req, const struct io_uring_sqe *sqe);
19 int io_prep_read(struct io_kiocb *req, const struct io_uring_sqe *sqe);
20 int io_prep_write(struct io_kiocb *req, const struct io_uring_sqe *sqe);
21 int io_read(struct io_kiocb *req, unsigned int issue_flags);
22 int io_write(struct io_kiocb *req, unsigned int issue_flags);
23 void io_readv_writev_cleanup(struct io_kiocb *req);
24 void io_rw_fail(struct io_kiocb *req);
25 void io_req_rw_complete(struct io_kiocb *req, struct io_tw_state *ts);
26 int io_read_mshot_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe);
27 int io_read_mshot(struct io_kiocb *req, unsigned int issue_flags);
28 void io_rw_cache_free(const void *entry);