Lines Matching refs:req
26 static int __io_splice_prep(struct io_kiocb *req, in __io_splice_prep() argument
29 struct io_splice *sp = io_kiocb_to_cmd(req, struct io_splice); in __io_splice_prep()
40 int io_tee_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe) in io_tee_prep() argument
44 return __io_splice_prep(req, sqe); in io_tee_prep()
47 int io_tee(struct io_kiocb *req, unsigned int issue_flags) in io_tee() argument
49 struct io_splice *sp = io_kiocb_to_cmd(req, struct io_splice); in io_tee()
59 in = io_file_get_fixed(req, sp->splice_fd_in, issue_flags); in io_tee()
61 in = io_file_get_normal(req, sp->splice_fd_in); in io_tee()
74 req_set_fail(req); in io_tee()
75 io_req_set_res(req, ret, 0); in io_tee()
79 int io_splice_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe) in io_splice_prep() argument
81 struct io_splice *sp = io_kiocb_to_cmd(req, struct io_splice); in io_splice_prep()
85 return __io_splice_prep(req, sqe); in io_splice_prep()
88 int io_splice(struct io_kiocb *req, unsigned int issue_flags) in io_splice() argument
90 struct io_splice *sp = io_kiocb_to_cmd(req, struct io_splice); in io_splice()
101 in = io_file_get_fixed(req, sp->splice_fd_in, issue_flags); in io_splice()
103 in = io_file_get_normal(req, sp->splice_fd_in); in io_splice()
119 req_set_fail(req); in io_splice()
120 io_req_set_res(req, ret, 0); in io_splice()