Home
last modified time | relevance | path

Searched refs:nr_segs (Results 1 – 16 of 16) sorted by relevance

/fs/
Dread_write.c637 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
[all …]
Dsplice.c1014 from.nr_segs = n; in iter_file_splice_write()
1547 unsigned long nr_segs, unsigned int flags) in vmsplice_to_user() argument
1561 ret = rw_copy_check_uvector(READ, uiov, nr_segs, in vmsplice_to_user()
1567 iov_iter_init(&iter, READ, iov, nr_segs, count); in vmsplice_to_user()
1592 unsigned long nr_segs, unsigned int flags) in vmsplice_to_pipe() argument
1614 spd.nr_pages = get_iovec_page_array(iov, nr_segs, spd.pages, in vmsplice_to_pipe()
1643 unsigned long, nr_segs, unsigned int, flags) in SYSCALL_DEFINE4() argument
1648 if (unlikely(nr_segs > UIO_MAXIOV)) in SYSCALL_DEFINE4()
1650 else if (unlikely(!nr_segs)) in SYSCALL_DEFINE4()
1657 error = vmsplice_to_pipe(f.file, iov, nr_segs, flags); in SYSCALL_DEFINE4()
[all …]
Daio.c1327 unsigned long *nr_segs, in aio_setup_vectored_rw() argument
1333 *nr_segs = kiocb->ki_nbytes; in aio_setup_vectored_rw()
1339 *nr_segs, UIO_FASTIOV, *iovec, iovec); in aio_setup_vectored_rw()
1344 *nr_segs, UIO_FASTIOV, *iovec, iovec); in aio_setup_vectored_rw()
1355 unsigned long *nr_segs, in aio_setup_single_vector() argument
1363 *nr_segs = 1; in aio_setup_single_vector()
1376 unsigned long nr_segs; in aio_run_iocb() local
1409 ? aio_setup_vectored_rw(req, rw, buf, &nr_segs, in aio_run_iocb()
1411 : aio_setup_single_vector(req, rw, buf, &nr_segs, in aio_run_iocb()
1434 iov_iter_init(&iter, rw, iovec, nr_segs, req->ki_nbytes); in aio_run_iocb()
[all …]
Dbad_inode.c37 unsigned long nr_segs, loff_t pos) in bad_file_aio_read() argument
43 unsigned long nr_segs, loff_t pos) in bad_file_aio_write() argument
Dcompat.c547 const struct compat_iovec __user *uvector, unsigned long nr_segs, in compat_rw_copy_check_uvector() argument
561 if (nr_segs == 0) in compat_rw_copy_check_uvector()
565 if (nr_segs > UIO_MAXIOV || nr_segs < 0) in compat_rw_copy_check_uvector()
567 if (nr_segs > fast_segs) { in compat_rw_copy_check_uvector()
569 iov = kmalloc(nr_segs*sizeof(struct iovec), GFP_KERNEL); in compat_rw_copy_check_uvector()
576 if (!access_ok(VERIFY_READ, uvector, nr_segs*sizeof(*uvector))) in compat_rw_copy_check_uvector()
589 for (seg = 0; seg < nr_segs; seg++) { in compat_rw_copy_check_uvector()
/fs/fuse/
Ddev.c647 unsigned long nr_segs; member
658 const struct iovec *iov, unsigned long nr_segs) in fuse_copy_init() argument
664 cs->nr_segs = nr_segs; in fuse_copy_init()
705 BUG_ON(!cs->nr_segs); in fuse_copy_fill()
711 cs->nr_segs--; in fuse_copy_fill()
713 if (cs->nr_segs == cs->pipe->buffers) in fuse_copy_fill()
729 cs->nr_segs++; in fuse_copy_fill()
733 BUG_ON(!cs->nr_segs); in fuse_copy_fill()
737 cs->nr_segs--; in fuse_copy_fill()
808 BUG_ON(!cs->nr_segs); in fuse_try_move_page()
[all …]
Dfile.c2361 unsigned int nr_segs, size_t bytes, bool to_user) in fuse_ioctl_copy_user() argument
2369 iov_iter_init(&ii, to_user ? READ : WRITE, iov, nr_segs, bytes); in fuse_ioctl_copy_user()
/fs/ntfs/
Dfile.c1780 const struct iovec *iov, unsigned long nr_segs, in ntfs_file_buffered_write() argument
1941 if (likely(nr_segs == 1)) in ntfs_file_buffered_write()
2001 if (likely(nr_segs == 1)) in ntfs_file_buffered_write()
2041 if (likely(nr_segs == 1)) { in ntfs_file_buffered_write()
2082 const struct iovec *iov, unsigned long nr_segs, loff_t *ppos) in ntfs_file_aio_write_nolock() argument
2091 count = iov_length(iov, nr_segs); in ntfs_file_aio_write_nolock()
2107 written = ntfs_file_buffered_write(iocb, iov, nr_segs, pos, ppos, in ntfs_file_aio_write_nolock()
2118 unsigned long nr_segs, loff_t pos) in ntfs_file_aio_write() argument
2128 ret = ntfs_file_aio_write_nolock(iocb, iov, nr_segs, &iocb->ki_pos); in ntfs_file_aio_write()
/fs/cifs/
Dconnect.c519 kvec_array_init(struct kvec *new, struct kvec *iov, unsigned int nr_segs, in kvec_array_init() argument
531 nr_segs--; in kvec_array_init()
535 memcpy(new, iov, sizeof(*iov) * nr_segs); in kvec_array_init()
538 return nr_segs; in kvec_array_init()
542 get_server_iovec(struct TCP_Server_Info *server, unsigned int nr_segs) in get_server_iovec() argument
546 if (server->iov && nr_segs <= server->nr_iov) in get_server_iovec()
550 new_iov = kmalloc(sizeof(*new_iov) * nr_segs, GFP_NOFS); in get_server_iovec()
554 server->nr_iov = nr_segs; in get_server_iovec()
561 unsigned int nr_segs, unsigned int to_read) in cifs_readv_from_socket() argument
569 iov = get_server_iovec(server, nr_segs); in cifs_readv_from_socket()
[all …]
Dsmb1ops.c757 struct kvec *iov, unsigned long nr_segs) in cifs_sync_write() argument
761 return CIFSSMBWrite2(xid, parms, written, iov, nr_segs); in cifs_sync_write()
Dcifsproto.h188 struct kvec *iov_orig, unsigned int nr_segs,
Dsmb2ops.c734 struct kvec *iov, unsigned long nr_segs) in smb2_sync_write() argument
739 return SMB2_write(xid, parms, written, iov, nr_segs); in smb2_sync_write()
/fs/9p/
Dvfs_addr.c271 (long long)pos, iter->nr_segs); in v9fs_direct_IO()
/fs/nfs/
Ddirect.c223 iocb->ki_filp, (long long) pos, iter->nr_segs); in nfs_direct_IO()
/fs/ocfs2/
Dfile.c2274 (unsigned int)from->nr_segs); /* GRRRRR */ in ocfs2_file_write_iter()
2498 to->nr_segs); /* GRRRRR */ in ocfs2_file_read_iter()
/fs/btrfs/
Dinode.c7966 for (seg = 0; seg < iter->nr_segs; seg++) { in check_direct_IO()
7967 for (i = seg + 1; i < iter->nr_segs; i++) { in check_direct_IO()