Lines Matching refs:sqe
50 static int __io_openat_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe) in __io_openat_prep() argument
56 if (unlikely(sqe->buf_index)) in __io_openat_prep()
65 open->dfd = READ_ONCE(sqe->fd); in __io_openat_prep()
66 fname = u64_to_user_ptr(READ_ONCE(sqe->addr)); in __io_openat_prep()
74 open->file_slot = READ_ONCE(sqe->file_index); in __io_openat_prep()
85 int io_openat_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe) in io_openat_prep() argument
88 u64 mode = READ_ONCE(sqe->len); in io_openat_prep()
89 u64 flags = READ_ONCE(sqe->open_flags); in io_openat_prep()
92 return __io_openat_prep(req, sqe); in io_openat_prep()
95 int io_openat2_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe) in io_openat2_prep() argument
102 how = u64_to_user_ptr(READ_ONCE(sqe->addr2)); in io_openat2_prep()
103 len = READ_ONCE(sqe->len); in io_openat2_prep()
111 return __io_openat_prep(req, sqe); in io_openat2_prep()
207 int io_close_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe) in io_close_prep() argument
211 if (sqe->off || sqe->addr || sqe->len || sqe->rw_flags || sqe->buf_index) in io_close_prep()
216 close->fd = READ_ONCE(sqe->fd); in io_close_prep()
217 close->file_slot = READ_ONCE(sqe->file_index); in io_close_prep()
263 int io_install_fixed_fd_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe) in io_install_fixed_fd_prep() argument
268 if (sqe->off || sqe->addr || sqe->len || sqe->buf_index || in io_install_fixed_fd_prep()
269 sqe->splice_fd_in || sqe->addr3) in io_install_fixed_fd_prep()
276 flags = READ_ONCE(sqe->install_fd_flags); in io_install_fixed_fd_prep()