Home
last modified time | relevance | path

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

/linux-4.19.296/include/linux/
Duio.h42 unsigned long nr_segs; member
57 static inline size_t iov_length(const struct iovec *iov, unsigned long nr_segs) in iov_length() argument
62 for (seg = 0; seg < nr_segs; seg++) in iov_length()
185 unsigned long nr_segs, size_t count);
187 unsigned long nr_segs, size_t count);
189 unsigned long nr_segs, size_t count);
249 unsigned nr_segs, unsigned fast_segs,
255 unsigned nr_segs, unsigned fast_segs,
Dcompat.h517 unsigned long nr_segs,
661 unsigned int nr_segs, unsigned int flags);
Dsyscalls.h480 unsigned long nr_segs, unsigned int flags);
Dfs.h1832 unsigned long nr_segs, unsigned long fast_segs,
/linux-4.19.296/lib/
Diov_iter.c105 i->nr_segs -= i->bvec - bvec; \
115 i->nr_segs -= kvec - i->kvec; \
125 i->nr_segs -= iov - i->iov; \
229 i->nr_segs -= iov - i->iov; in copy_page_to_iter_iovec()
313 i->nr_segs -= iov - i->iov; in copy_page_from_iter_iovec()
433 const struct iovec *iov, unsigned long nr_segs, in iov_iter_init() argument
445 i->nr_segs = nr_segs; in iov_iter_init()
1038 i->nr_segs++; in iov_iter_revert()
1050 i->nr_segs++; in iov_iter_revert()
1069 if (i->nr_segs == 1) in iov_iter_single_seg_count()
[all …]
/linux-4.19.296/fs/
Dread_write.c755 unsigned long nr_segs, unsigned long fast_segs, in rw_copy_check_uvector() argument
768 if (nr_segs == 0) { in rw_copy_check_uvector()
777 if (nr_segs > UIO_MAXIOV) { in rw_copy_check_uvector()
781 if (nr_segs > fast_segs) { in rw_copy_check_uvector()
782 iov = kmalloc_array(nr_segs, sizeof(struct iovec), GFP_KERNEL); in rw_copy_check_uvector()
788 if (copy_from_user(iov, uvector, nr_segs*sizeof(*uvector))) { in rw_copy_check_uvector()
803 for (seg = 0; seg < nr_segs; seg++) { in rw_copy_check_uvector()
831 const struct compat_iovec __user *uvector, unsigned long nr_segs, in compat_rw_copy_check_uvector() argument
845 if (nr_segs == 0) in compat_rw_copy_check_uvector()
849 if (nr_segs > UIO_MAXIOV) in compat_rw_copy_check_uvector()
[all …]
Dsplice.c1357 unsigned long, nr_segs, unsigned int, flags) in SYSCALL_DEFINE4() argument
1371 error = import_iovec(type, uiov, nr_segs, in SYSCALL_DEFINE4()
1383 unsigned int, nr_segs, unsigned int, flags) in COMPAT_SYSCALL_DEFINE4() argument
1397 error = compat_import_iovec(type, iov32, nr_segs, in COMPAT_SYSCALL_DEFINE4()
/linux-4.19.296/fs/fuse/
Ddev.c711 unsigned long nr_segs; member
767 BUG_ON(!cs->nr_segs); in fuse_copy_fill()
773 cs->nr_segs--; in fuse_copy_fill()
775 if (cs->nr_segs == cs->pipe->buffers) in fuse_copy_fill()
791 cs->nr_segs++; in fuse_copy_fill()
867 BUG_ON(!cs->nr_segs); in fuse_try_move_page()
871 cs->nr_segs--; in fuse_try_move_page()
963 if (cs->nr_segs == cs->pipe->buffers) in fuse_ref_page()
981 cs->nr_segs++; in fuse_ref_page()
1437 if (pipe->nrbufs + cs.nr_segs > pipe->buffers) { in fuse_dev_splice_read()
[all …]
/linux-4.19.296/block/
Dbio.c1052 if (data->nr_segs > UIO_MAXIOV) in bio_alloc_map_data()
1056 sizeof(struct iovec) * data->nr_segs, gfp_mask); in bio_alloc_map_data()
1059 memcpy(bmd->iov, data->iov, sizeof(struct iovec) * data->nr_segs); in bio_alloc_map_data()
/linux-4.19.296/fs/cifs/
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()
Dsmb2ops.c1313 struct kvec *iov, unsigned long nr_segs) in smb2_sync_write() argument
1318 return SMB2_write(xid, parms, written, iov, nr_segs); in smb2_sync_write()
/linux-4.19.296/include/trace/events/
Dafs.h378 __entry->nr = msg->msg_iter.nr_segs;
/linux-4.19.296/fs/afs/
Drxrpc.c323 nr = msg->msg_iter.nr_segs; in afs_send_pages()
/linux-4.19.296/fs/ocfs2/
Dfile.c2388 (unsigned int)from->nr_segs); /* GRRRRR */ in ocfs2_file_write_iter()
2536 to->nr_segs); /* GRRRRR */ in ocfs2_file_read_iter()
/linux-4.19.296/fs/btrfs/
Dinode.c8653 for (seg = 0; seg < iter->nr_segs; seg++) { in check_direct_IO()
8654 for (i = seg + 1; i < iter->nr_segs; i++) { in check_direct_IO()