Lines Matching defs:sp
30 struct io_splice *sp = io_kiocb_to_cmd(req, struct io_splice);
33 sp->len = READ_ONCE(sqe->len);
34 sp->flags = READ_ONCE(sqe->splice_flags);
35 if (unlikely(sp->flags & ~valid_flags))
37 sp->splice_fd_in = READ_ONCE(sqe->splice_fd_in);
38 sp->rsrc_node = NULL;
52 struct io_splice *sp = io_kiocb_to_cmd(req, struct io_splice);
54 if (sp->rsrc_node)
55 io_put_rsrc_node(req->ctx, sp->rsrc_node);
61 struct io_splice *sp = io_kiocb_to_cmd(req, struct io_splice);
66 if (!(sp->flags & SPLICE_F_FD_IN_FIXED))
67 return io_file_get_normal(req, sp->splice_fd_in);
70 node = io_rsrc_node_lookup(&ctx->file_table.data, sp->splice_fd_in);
73 sp->rsrc_node = node;
83 struct io_splice *sp = io_kiocb_to_cmd(req, struct io_splice);
84 struct file *out = sp->file_out;
85 unsigned int flags = sp->flags & ~SPLICE_F_FD_IN_FIXED;
97 if (sp->len)
98 ret = do_tee(in, out, sp->len, flags);
100 if (!(sp->flags & SPLICE_F_FD_IN_FIXED))
103 if (ret != sp->len)
111 struct io_splice *sp = io_kiocb_to_cmd(req, struct io_splice);
113 sp->off_in = READ_ONCE(sqe->splice_off_in);
114 sp->off_out = READ_ONCE(sqe->off);
120 struct io_splice *sp = io_kiocb_to_cmd(req, struct io_splice);
121 struct file *out = sp->file_out;
122 unsigned int flags = sp->flags & ~SPLICE_F_FD_IN_FIXED;
135 poff_in = (sp->off_in == -1) ? NULL : &sp->off_in;
136 poff_out = (sp->off_out == -1) ? NULL : &sp->off_out;
138 if (sp->len)
139 ret = do_splice(in, poff_in, out, poff_out, sp->len, flags);
141 if (!(sp->flags & SPLICE_F_FD_IN_FIXED))
144 if (ret != sp->len)