• Home
  • Raw
  • Download

Lines Matching refs:nr_segs

637 unsigned long iov_shorten(struct iovec *iov, unsigned long nr_segs, size_t to)  in iov_shorten()  argument
642 while (seg < nr_segs) { in iov_shorten()
656 unsigned long nr_segs, size_t len, loff_t *ppos, iter_fn_t fn) in do_iter_readv_writev() argument
666 iov_iter_init(&iter, rw, iov, nr_segs, len); in do_iter_readv_writev()
675 unsigned long nr_segs, size_t len, loff_t *ppos, iov_fn_t fn) in do_sync_readv_writev() argument
684 ret = fn(&kiocb, iov, nr_segs, kiocb.ki_pos); in do_sync_readv_writev()
693 unsigned long nr_segs, loff_t *ppos, io_fn_t fn) in do_loop_readv_writev() argument
698 while (nr_segs > 0) { in do_loop_readv_writev()
706 nr_segs--; in do_loop_readv_writev()
727 unsigned long nr_segs, unsigned long fast_segs, in rw_copy_check_uvector() argument
740 if (nr_segs == 0) { in rw_copy_check_uvector()
749 if (nr_segs > UIO_MAXIOV) { in rw_copy_check_uvector()
753 if (nr_segs > fast_segs) { in rw_copy_check_uvector()
754 iov = kmalloc(nr_segs*sizeof(struct iovec), GFP_KERNEL); in rw_copy_check_uvector()
760 if (copy_from_user(iov, uvector, nr_segs*sizeof(*uvector))) { in rw_copy_check_uvector()
775 for (seg = 0; seg < nr_segs; seg++) { in rw_copy_check_uvector()
803 unsigned long nr_segs, loff_t *pos) in do_readv_writev() argument
813 ret = rw_copy_check_uvector(type, uvector, nr_segs, in do_readv_writev()
836 ret = do_iter_readv_writev(file, type, iov, nr_segs, tot_len, in do_readv_writev()
839 ret = do_sync_readv_writev(file, iov, nr_segs, tot_len, in do_readv_writev()
842 ret = do_loop_readv_writev(file, iov, nr_segs, pos, fn); in do_readv_writev()
983 unsigned long nr_segs, loff_t *pos) in compat_do_readv_writev() argument
993 ret = compat_rw_copy_check_uvector(type, uvector, nr_segs, in compat_do_readv_writev()
1016 ret = do_iter_readv_writev(file, type, iov, nr_segs, tot_len, in compat_do_readv_writev()
1019 ret = do_sync_readv_writev(file, iov, nr_segs, tot_len, in compat_do_readv_writev()
1022 ret = do_loop_readv_writev(file, iov, nr_segs, pos, fn); in compat_do_readv_writev()