Lines Matching refs:iovec
57 struct iovec __user *uiov; in io_iov_buffer_select_prep()
58 struct iovec iov; in io_iov_buffer_select_prep()
369 static struct iovec *__io_import_iovec(int ddir, struct io_kiocb *req, in __io_import_iovec()
376 struct iovec *iovec; in __io_import_iovec() local
407 iovec = s->fast_iov; in __io_import_iovec()
408 ret = __import_iovec(ddir, buf, sqe_len, UIO_FASTIOV, &iovec, iter, in __io_import_iovec()
412 return iovec; in __io_import_iovec()
416 struct iovec **iovec, struct io_rw_state *s, in io_import_iovec() argument
419 *iovec = __io_import_iovec(rw, req, s, issue_flags); in io_import_iovec()
420 if (IS_ERR(*iovec)) in io_import_iovec()
421 return PTR_ERR(*iovec); in io_import_iovec()
498 static void io_req_map_rw(struct io_kiocb *req, const struct iovec *iovec, in io_req_map_rw() argument
499 const struct iovec *fast_iov, struct iov_iter *iter) in io_req_map_rw()
504 io->free_iovec = iovec; in io_req_map_rw()
509 if (!iovec) { in io_req_map_rw()
519 sizeof(struct iovec) * iter->nr_segs); in io_req_map_rw()
525 static int io_setup_async_rw(struct io_kiocb *req, const struct iovec *iovec, in io_setup_async_rw() argument
534 kfree(iovec); in io_setup_async_rw()
538 io_req_map_rw(req, iovec, s->fast_iov, &s->iter); in io_setup_async_rw()
549 struct iovec *iov; in io_rw_prep_async()
715 struct iovec *iovec; in io_read() local
723 ret = io_import_iovec(ITER_DEST, req, &iovec, s, issue_flags); in io_read()
735 ret = io_import_iovec(ITER_DEST, req, &iovec, s, issue_flags); in io_read()
746 iovec = NULL; in io_read()
750 kfree(iovec); in io_read()
758 ret = io_setup_async_rw(req, iovec, s, true); in io_read()
771 kfree(iovec); in io_read()
790 if (iovec) in io_read()
791 kfree(iovec); in io_read()
806 ret2 = io_setup_async_rw(req, iovec, s, true); in io_read()
807 iovec = NULL; in io_read()
854 if (iovec) in io_read()
855 kfree(iovec); in io_read()
863 struct iovec *iovec; in io_write() local
870 ret = io_import_iovec(ITER_SOURCE, req, &iovec, s, issue_flags); in io_write()
878 iovec = NULL; in io_write()
882 kfree(iovec); in io_write()
908 kfree(iovec); in io_write()
954 ret = io_setup_async_rw(req, iovec, s, true); in io_write()
969 ret = io_setup_async_rw(req, iovec, s, false); in io_write()
978 if (iovec) in io_write()
979 kfree(iovec); in io_write()