• Home
  • Raw
  • Download

Lines Matching refs:sp

4132 	struct io_splice *sp = &req->splice;  in __io_splice_prep()  local
4138 sp->len = READ_ONCE(sqe->len); in __io_splice_prep()
4139 sp->flags = READ_ONCE(sqe->splice_flags); in __io_splice_prep()
4140 if (unlikely(sp->flags & ~valid_flags)) in __io_splice_prep()
4142 sp->splice_fd_in = READ_ONCE(sqe->splice_fd_in); in __io_splice_prep()
4156 struct io_splice *sp = &req->splice; in io_tee() local
4157 struct file *out = sp->file_out; in io_tee()
4158 unsigned int flags = sp->flags & ~SPLICE_F_FD_IN_FIXED; in io_tee()
4165 in = io_file_get(req->ctx, req, sp->splice_fd_in, in io_tee()
4166 (sp->flags & SPLICE_F_FD_IN_FIXED), issue_flags); in io_tee()
4172 if (sp->len) in io_tee()
4173 ret = do_tee(in, out, sp->len, flags); in io_tee()
4175 if (!(sp->flags & SPLICE_F_FD_IN_FIXED)) in io_tee()
4178 if (ret != sp->len) in io_tee()
4186 struct io_splice *sp = &req->splice; in io_splice_prep() local
4188 sp->off_in = READ_ONCE(sqe->splice_off_in); in io_splice_prep()
4189 sp->off_out = READ_ONCE(sqe->off); in io_splice_prep()
4195 struct io_splice *sp = &req->splice; in io_splice() local
4196 struct file *out = sp->file_out; in io_splice()
4197 unsigned int flags = sp->flags & ~SPLICE_F_FD_IN_FIXED; in io_splice()
4205 in = io_file_get(req->ctx, req, sp->splice_fd_in, in io_splice()
4206 (sp->flags & SPLICE_F_FD_IN_FIXED), issue_flags); in io_splice()
4212 poff_in = (sp->off_in == -1) ? NULL : &sp->off_in; in io_splice()
4213 poff_out = (sp->off_out == -1) ? NULL : &sp->off_out; in io_splice()
4215 if (sp->len) in io_splice()
4216 ret = do_splice(in, poff_in, out, poff_out, sp->len, flags); in io_splice()
4218 if (!(sp->flags & SPLICE_F_FD_IN_FIXED)) in io_splice()
4221 if (ret != sp->len) in io_splice()