Lines Matching defs:req
26 static int __io_splice_prep(struct io_kiocb *req,
29 struct io_splice *sp = io_kiocb_to_cmd(req, struct io_splice);
37 req->flags |= REQ_F_FORCE_ASYNC;
41 int io_tee_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe)
45 return __io_splice_prep(req, sqe);
48 int io_tee(struct io_kiocb *req, unsigned int issue_flags)
50 struct io_splice *sp = io_kiocb_to_cmd(req, struct io_splice);
59 in = io_file_get_fixed(req, sp->splice_fd_in, issue_flags);
61 in = io_file_get_normal(req, sp->splice_fd_in);
74 req_set_fail(req);
75 io_req_set_res(req, ret, 0);
79 int io_splice_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe)
81 struct io_splice *sp = io_kiocb_to_cmd(req, struct io_splice);
85 return __io_splice_prep(req, sqe);
88 int io_splice(struct io_kiocb *req, unsigned int issue_flags)
90 struct io_splice *sp = io_kiocb_to_cmd(req, struct io_splice);
100 in = io_file_get_fixed(req, sp->splice_fd_in, issue_flags);
102 in = io_file_get_normal(req, sp->splice_fd_in);
118 req_set_fail(req);
119 io_req_set_res(req, ret, 0);