Home
last modified time | relevance | path

Searched refs:iov_iter_count (Results 1 – 25 of 88) sorted by relevance

1234

/Linux-v5.4/mm/
Dprocess_vm_access.c37 while (len && iov_iter_count(iter)) { in process_vm_rw_pages()
52 if (copied < copy && iov_iter_count(iter)) in process_vm_rw_pages()
98 while (!rc && nr_pages && iov_iter_count(iter)) { in process_vm_rw_single_vec()
165 size_t total_len = iov_iter_count(iter); in process_vm_rw_core()
215 for (i = 0; i < riovcnt && iov_iter_count(iter) && !rc; i++) in process_vm_rw_core()
221 total_len -= iov_iter_count(iter); in process_vm_rw_core()
276 if (!iov_iter_count(&iter)) in process_vm_rw()
333 if (!iov_iter_count(&iter)) in compat_process_vm_rw()
Dfilemap.c2152 if (!iov_iter_count(iter)) in generic_file_buffered_read()
2276 size_t count = iov_iter_count(iter); in generic_file_read_iter()
2308 iov_iter_revert(iter, count - iov_iter_count(iter)); in generic_file_read_iter()
2969 if (!iov_iter_count(from)) in generic_write_checks()
2979 count = iov_iter_count(from); in generic_write_checks()
2985 return iov_iter_count(from); in generic_write_checks()
3175 write_len = iov_iter_count(from); in generic_file_direct_write()
3236 iov_iter_revert(from, write_len - iov_iter_count(from)); in generic_file_direct_write()
3282 iov_iter_count(i)); in generic_perform_write()
3342 } while (iov_iter_count(i)); in generic_perform_write()
[all …]
/Linux-v5.4/net/rds/
Dmessage.c374 int length = iov_iter_count(from); in rds_message_zcopy_from_user()
378 rm->m_inc.i_hdr.h_len = cpu_to_be32(iov_iter_count(from)); in rds_message_zcopy_from_user()
395 while (iov_iter_count(from)) { in rds_message_zcopy_from_user()
436 rm->m_inc.i_hdr.h_len = cpu_to_be32(iov_iter_count(from)); in rds_message_copy_from_user()
445 while (iov_iter_count(from)) { in rds_message_copy_from_user()
447 ret = rds_page_remainder_alloc(sg, iov_iter_count(from), in rds_message_copy_from_user()
455 to_copy = min_t(unsigned long, iov_iter_count(from), in rds_message_copy_from_user()
490 while (iov_iter_count(to) && copied < len) { in rds_message_inc_copy_to_user()
491 to_copy = min_t(unsigned long, iov_iter_count(to), in rds_message_inc_copy_to_user()
Dtcp_recv.c68 if (!iov_iter_count(to)) in rds_tcp_inc_copy_to_user()
76 to_copy = iov_iter_count(to); in rds_tcp_inc_copy_to_user()
85 if (!iov_iter_count(to)) in rds_tcp_inc_copy_to_user()
/Linux-v5.4/drivers/gpu/drm/
Ddrm_dp_aux_dev.c157 while (iov_iter_count(to)) { in auxdev_read_iter()
159 ssize_t todo = min(iov_iter_count(to), sizeof(buf)); in auxdev_read_iter()
204 while (iov_iter_count(from)) { in auxdev_write_iter()
206 ssize_t todo = min(iov_iter_count(from), sizeof(buf)); in auxdev_write_iter()
/Linux-v5.4/fs/xfs/
Dxfs_file.c180 size_t count = iov_iter_count(to); in xfs_file_dio_aio_read()
203 size_t count = iov_iter_count(to); in xfs_file_dax_read()
233 trace_xfs_file_buffered_read(ip, iov_iter_count(to), iocb->ki_pos); in xfs_file_buffered_aio_read()
290 size_t count = iov_iter_count(from); in xfs_file_aio_write_checks()
488 size_t count = iov_iter_count(from); in xfs_file_dio_aio_write()
533 count = iov_iter_count(from); in xfs_file_dio_aio_write()
594 count = iov_iter_count(from); in xfs_file_dax_write()
643 trace_xfs_file_buffered_write(ip, iov_iter_count(from), iocb->ki_pos); in xfs_file_buffered_aio_write()
702 size_t ocount = iov_iter_count(from); in xfs_file_write_iter()
/Linux-v5.4/net/qrtr/
Dtun.c66 count = min_t(size_t, iov_iter_count(to), skb->len); in qrtr_tun_read_iter()
79 size_t len = iov_iter_count(from); in qrtr_tun_write_iter()
/Linux-v5.4/fs/nfs/
Ddirect.c272 VM_BUG_ON(iov_iter_count(iter) != PAGE_SIZE); in nfs_direct_IO()
463 while (iov_iter_count(iter)) { in nfs_direct_read_schedule_iovec()
550 size_t count = iov_iter_count(iter); in nfs_file_direct_read()
867 NFS_I(inode)->write_io += iov_iter_count(iter); in nfs_direct_write_schedule_iovec()
868 while (iov_iter_count(iter)) { in nfs_direct_write_schedule_iovec()
967 file, iov_iter_count(iter), (long long) iocb->ki_pos); in nfs_file_direct_write()
976 end = (pos + iov_iter_count(iter) - 1) >> PAGE_SHIFT; in nfs_file_direct_write()
/Linux-v5.4/fs/ceph/
Dfile.c87 if (maxsize > iov_iter_count(iter)) in __iter_get_bvecs()
88 maxsize = iov_iter_count(iter); in __iter_get_bvecs()
132 size_t orig_count = iov_iter_count(iter); in iter_get_bvecs_alloc()
592 u64 len = iov_iter_count(to); in ceph_sync_read()
611 while ((len = iov_iter_count(to)) > 0) { in ceph_sync_read()
629 more = len < iov_iter_count(to); in ceph_sync_read()
717 iov_iter_count(to) > 0 && off >= i_size_read(inode)) in ceph_sync_read()
942 size_t count = iov_iter_count(iter); in ceph_direct_read_write()
966 while (iov_iter_count(iter) > 0) { in ceph_direct_read_write()
967 u64 size = iov_iter_count(iter); in ceph_direct_read_write()
[all …]
/Linux-v5.4/net/rxrpc/
Drecvmsg.c650 iov_iter_count(iter), want_more); in rxrpc_kernel_recv_data()
661 iov_iter_count(iter), 0, in rxrpc_kernel_recv_data()
671 if (iov_iter_count(iter) > 0) in rxrpc_kernel_recv_data()
708 _leave(" = %d [%zu,%d]", ret, iov_iter_count(iter), *_abort); in rxrpc_kernel_recv_data()
724 if (iov_iter_count(iter) > 0) in rxrpc_kernel_recv_data()
/Linux-v5.4/fs/ext4/
Dfile.c70 if (!iov_iter_count(to)) in ext4_file_read_iter()
183 return iov_iter_count(from); in ext4_write_checks()
259 if (ext4_overwrite_io(inode, iocb->ki_pos, iov_iter_count(from))) { in ext4_file_write_iter()
/Linux-v5.4/drivers/fsi/
Dfsi-sbefifo.c536 dev_vdbg(dev, "reading response, buflen = %zd\n", iov_iter_count(response)); in sbefifo_read_response()
593 if (iov_iter_count(response) >= sizeof(__be32)) { in sbefifo_read_response()
649 ffdc_sz = SBEFIFO_MAX_FFDC_SIZE - iov_iter_count(&ffdc_iter); in sbefifo_collect_async_ffdc()
746 rbytes -= iov_iter_count(&resp_iter); in sbefifo_submit()
828 rc = len - iov_iter_count(&resp_iter); in sbefifo_user_read()
/Linux-v5.4/drivers/char/
Dmem.c688 size_t count = iov_iter_count(from); in write_iter_null()
709 while (iov_iter_count(iter)) { in read_iter_zero()
710 size_t chunk = iov_iter_count(iter), n; in read_iter_zero()
715 if (!n && iov_iter_count(iter)) in read_iter_zero()
/Linux-v5.4/fs/
Dpipe.c274 size_t total_len = iov_iter_count(to); in pipe_read()
385 size_t total_len = iov_iter_count(from); in pipe_write()
420 if (!iov_iter_count(from)) in pipe_write()
456 if (unlikely(copied < PAGE_SIZE && iov_iter_count(from))) { in pipe_write()
476 if (!iov_iter_count(from)) in pipe_write()
/Linux-v5.4/fs/coda/
Dfile.c44 size_t count = iov_iter_count(to); in coda_file_read_iter()
70 size_t count = iov_iter_count(to); in coda_file_write_iter()
/Linux-v5.4/drivers/net/
Dtap.c628 unsigned long total_len = iov_iter_count(from); in tap_get_user()
781 if (iov_iter_count(iter) < vnet_hdr_len) in tap_put_user()
810 if (ret || !iov_iter_count(iter)) in tap_put_user()
814 if (ret != sizeof(veth) || !iov_iter_count(iter)) in tap_put_user()
832 if (!iov_iter_count(to)) { in tap_do_read()
878 ssize_t len = iov_iter_count(to), ret; in tap_read_iter()
/Linux-v5.4/net/core/
Ddatagram.c488 if (fault_short || iov_iter_count(to)) in __skb_datagram_iter()
620 while (length && iov_iter_count(from)) { in __zerocopy_sg_from_iter()
672 int copy = min_t(int, skb_headlen(skb), iov_iter_count(from)); in zerocopy_sg_from_iter()
/Linux-v5.4/fs/afs/
Dvlclient.c188 call->unmarshall, iov_iter_count(call->_iter), call->count); in afs_deliver_vl_get_addrs_u()
319 call->unmarshall, iov_iter_count(call->_iter), call->count); in afs_deliver_vl_get_capabilities()
428 call->unmarshall, iov_iter_count(call->_iter), call->count2); in afs_deliver_yfsvl_get_endpoints()
/Linux-v5.4/fs/ntfs/
Dfile.c333 iov_iter_count(from)); in ntfs_prepare_file_for_write()
381 end = (pos + iov_iter_count(from) + vol->cluster_size_mask) & in ntfs_prepare_file_for_write()
1749 (unsigned long)iov_iter_count(i)); in ntfs_perform_write()
1827 if (bytes > iov_iter_count(i)) in ntfs_perform_write()
1828 bytes = iov_iter_count(i); in ntfs_perform_write()
1907 } while (iov_iter_count(i)); in ntfs_perform_write()
1936 if (iov_iter_count(from) && !err) in ntfs_file_write_iter()
/Linux-v5.4/fs/fuse/
Dfile.c993 (iocb->ki_pos + iov_iter_count(to) > i_size_read(inode))) { in fuse_cache_read_iter()
1139 iov_iter_count(ii)); in fuse_fill_write_pages()
1180 } while (iov_iter_count(ii) && count < fc->max_write && in fuse_fill_write_pages()
1205 if (inode->i_size < pos + iov_iter_count(ii)) in fuse_perform_write()
1212 unsigned int nr_pages = fuse_wr_pages(pos, iov_iter_count(ii), in fuse_perform_write()
1239 } while (!err && iov_iter_count(ii)); in fuse_perform_write()
1289 if (written < 0 || !iov_iter_count(from)) in fuse_cache_write_iter()
1414 size_t count = iov_iter_count(iter); in fuse_direct_io()
2790 for (i = 0; iov_iter_count(&ii) && !WARN_ON(i >= ap.num_pages); i++) { in fuse_do_ioctl()
2792 if (c != PAGE_SIZE && iov_iter_count(&ii)) in fuse_do_ioctl()
[all …]
/Linux-v5.4/fs/ext2/
Dfile.c38 if (!iov_iter_count(to)) in ext2_dax_read_iter()
/Linux-v5.4/arch/s390/hypfs/
Dinode.c154 if (pos >= available || !iov_iter_count(to)) in hypfs_read_iter()
169 size_t count = iov_iter_count(from); in hypfs_write_iter()
/Linux-v5.4/arch/x86/kernel/cpu/microcode/
Dintel.c870 while (iov_iter_count(iter)) { in generic_load_microcode()
886 if (data_size > iov_iter_count(iter)) { in generic_load_microcode()
921 if (iov_iter_count(iter)) { in generic_load_microcode()
/Linux-v5.4/fs/iomap/
Dbuffered-io.c754 iov_iter_count(i)); in iomap_write_actor()
813 } while (iov_iter_count(i) && length); in iomap_write_actor()
825 while (iov_iter_count(iter)) { in iomap_file_buffered_write()
826 ret = iomap_apply(inode, pos, iov_iter_count(iter), in iomap_file_buffered_write()
/Linux-v5.4/block/
Dblk-map.c147 } while (iov_iter_count(&i)); in blk_rq_map_user_iov()

1234