Lines Matching refs:sqe
250 static int io_prep_rw(struct io_kiocb *req, const struct io_uring_sqe *sqe,
257 rw->kiocb.ki_pos = READ_ONCE(sqe->off);
259 req->buf_index = READ_ONCE(sqe->buf_index);
261 ioprio = READ_ONCE(sqe->ioprio);
273 rw->addr = READ_ONCE(sqe->addr);
274 rw->len = READ_ONCE(sqe->len);
275 rw->flags = READ_ONCE(sqe->rw_flags);
279 int io_prep_read(struct io_kiocb *req, const struct io_uring_sqe *sqe)
281 return io_prep_rw(req, sqe, ITER_DEST, true);
284 int io_prep_write(struct io_kiocb *req, const struct io_uring_sqe *sqe)
286 return io_prep_rw(req, sqe, ITER_SOURCE, true);
289 static int io_prep_rwv(struct io_kiocb *req, const struct io_uring_sqe *sqe,
295 ret = io_prep_rw(req, sqe, ddir, do_import);
308 int io_prep_readv(struct io_kiocb *req, const struct io_uring_sqe *sqe)
310 return io_prep_rwv(req, sqe, ITER_DEST);
313 int io_prep_writev(struct io_kiocb *req, const struct io_uring_sqe *sqe)
315 return io_prep_rwv(req, sqe, ITER_SOURCE);
318 static int io_prep_rw_fixed(struct io_kiocb *req, const struct io_uring_sqe *sqe,
327 ret = io_prep_rw(req, sqe, ddir, false);
343 int io_prep_read_fixed(struct io_kiocb *req, const struct io_uring_sqe *sqe)
345 return io_prep_rw_fixed(req, sqe, ITER_DEST);
348 int io_prep_write_fixed(struct io_kiocb *req, const struct io_uring_sqe *sqe)
350 return io_prep_rw_fixed(req, sqe, ITER_SOURCE);
357 int io_read_mshot_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe)
366 ret = io_prep_rw(req, sqe, ITER_DEST, false);