Home
last modified time | relevance | path

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

1234

/kernel/linux/linux-5.10/mm/
Dprocess_vm_access.c35 while (len && iov_iter_count(iter)) { in process_vm_rw_pages()
49 if (copied < copy && iov_iter_count(iter)) in process_vm_rw_pages()
95 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()
/kernel/linux/linux-5.10/net/rds/
Dmessage.c368 int length = iov_iter_count(from); in rds_message_zcopy_from_user()
372 rm->m_inc.i_hdr.h_len = cpu_to_be32(iov_iter_count(from)); in rds_message_zcopy_from_user()
389 while (iov_iter_count(from)) { in rds_message_zcopy_from_user()
430 rm->m_inc.i_hdr.h_len = cpu_to_be32(iov_iter_count(from)); in rds_message_copy_from_user()
439 while (iov_iter_count(from)) { in rds_message_copy_from_user()
441 ret = rds_page_remainder_alloc(sg, iov_iter_count(from), in rds_message_copy_from_user()
449 to_copy = min_t(unsigned long, iov_iter_count(from), in rds_message_copy_from_user()
484 while (iov_iter_count(to) && copied < len) { in rds_message_inc_copy_to_user()
485 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()
/kernel/linux/linux-5.10/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()
200 while (iov_iter_count(from)) { in auxdev_write_iter()
202 ssize_t todo = min(iov_iter_count(from), sizeof(buf)); in auxdev_write_iter()
/kernel/linux/linux-5.10/fs/nfs/
Ddirect.c172 VM_BUG_ON(iov_iter_count(iter) != PAGE_SIZE); in nfs_direct_IO()
363 while (iov_iter_count(iter)) { in nfs_direct_read_schedule_iovec()
452 size_t count = iov_iter_count(iter); in nfs_file_direct_read()
810 NFS_I(inode)->write_io += iov_iter_count(iter); in nfs_direct_write_schedule_iovec()
811 while (iov_iter_count(iter)) { in nfs_direct_write_schedule_iovec()
912 file, iov_iter_count(iter), (long long) iocb->ki_pos); in nfs_file_direct_write()
916 result = iov_iter_count(iter); in nfs_file_direct_write()
925 end = (pos + iov_iter_count(iter) - 1) >> PAGE_SHIFT; in nfs_file_direct_write()
/kernel/linux/linux-5.10/net/qrtr/
Dtun.c76 count = min_t(size_t, iov_iter_count(to), skb->len); in qrtr_tun_read_iter()
89 size_t len = iov_iter_count(from); in qrtr_tun_write_iter()
/kernel/linux/linux-5.10/fs/xfs/
Dxfs_file.c225 size_t count = iov_iter_count(to); in xfs_file_dio_aio_read()
254 size_t count = iov_iter_count(to); in xfs_file_dax_read()
284 trace_xfs_file_buffered_read(ip, iov_iter_count(to), iocb->ki_pos); in xfs_file_buffered_aio_read()
341 size_t count = iov_iter_count(from); in xfs_file_aio_write_checks()
539 size_t count = iov_iter_count(from); in xfs_file_dio_aio_write()
583 count = iov_iter_count(from); in xfs_file_dio_aio_write()
642 count = iov_iter_count(from); in xfs_file_dax_write()
691 trace_xfs_file_buffered_write(ip, iov_iter_count(from), iocb->ki_pos); in xfs_file_buffered_aio_write()
751 size_t ocount = iov_iter_count(from); in xfs_file_write_iter()
/kernel/linux/linux-5.10/block/
Dblk-map.c59 if (!iov_iter_count(iter)) in bio_copy_from_iter()
90 if (!iov_iter_count(&iter)) in bio_copy_to_iter()
251 if (!iov_iter_count(iter)) in bio_map_user_iov()
259 while (iov_iter_count(iter)) { in bio_map_user_iov()
608 } while (iov_iter_count(&i)); in blk_rq_map_user_iov()
/kernel/linux/linux-5.10/net/rxrpc/
Drecvmsg.c693 iov_iter_count(iter), want_more); in rxrpc_kernel_recv_data()
704 iov_iter_count(iter), 0, in rxrpc_kernel_recv_data()
714 if (iov_iter_count(iter) > 0) in rxrpc_kernel_recv_data()
751 _leave(" = %d [%zu,%d]", ret, iov_iter_count(iter), *_abort); in rxrpc_kernel_recv_data()
767 if (iov_iter_count(iter) > 0) in rxrpc_kernel_recv_data()
/kernel/linux/linux-5.10/fs/ext4/
Dfile.c121 if (!iov_iter_count(to)) in ext4_file_read_iter()
237 return iov_iter_count(from); in ext4_generic_write_checks()
478 size_t count = iov_iter_count(from); in ext4_dio_write_iter()
589 if (ret >= 0 && iov_iter_count(from)) { in ext4_dio_write_iter()
641 count = iov_iter_count(from); in ext4_dax_write_iter()
/kernel/linux/linux-5.10/fs/ceph/
Dfile.c89 if (maxsize > iov_iter_count(iter)) in __iter_get_bvecs()
90 maxsize = iov_iter_count(iter); in __iter_get_bvecs()
134 size_t orig_count = iov_iter_count(iter); in iter_get_bvecs_alloc()
876 u64 len = iov_iter_count(to); in ceph_sync_read()
895 while ((len = iov_iter_count(to)) > 0) { in ceph_sync_read()
915 more = len < iov_iter_count(to); in ceph_sync_read()
984 iov_iter_count(to) > 0 && off >= i_size_read(inode)) in ceph_sync_read()
1221 size_t count = iov_iter_count(iter); in ceph_direct_read_write()
1245 while (iov_iter_count(iter) > 0) { in ceph_direct_read_write()
1246 u64 size = iov_iter_count(iter); in ceph_direct_read_write()
[all …]
/kernel/linux/linux-5.10/fs/afs/
Dvlclient.c189 call->unmarshall, iov_iter_count(call->iter), call->count); in afs_deliver_vl_get_addrs_u()
320 call->unmarshall, iov_iter_count(call->iter), call->count); in afs_deliver_vl_get_capabilities()
429 call->unmarshall, iov_iter_count(call->iter), call->count2); in afs_deliver_yfsvl_get_endpoints()
659 call->unmarshall, iov_iter_count(call->iter), call->count); in afs_deliver_yfsvl_get_cell_name()
/kernel/linux/linux-5.10/drivers/char/
Drandom.c450 if (unlikely(!iov_iter_count(iter))) in get_random_bytes_user()
464 if (iov_iter_count(iter) <= CHACHA_KEY_SIZE) { in get_random_bytes_user()
476 if (!iov_iter_count(iter) || copied != sizeof(block)) in get_random_bytes_user()
1258 if (unlikely(!iov_iter_count(iter))) in write_pool_user()
1265 if (!iov_iter_count(iter) || copied != sizeof(block)) in write_pool_user()
1295 current->comm, iov_iter_count(iter)); in urandom_read_iter()
Dmem.c692 size_t count = iov_iter_count(from); in write_iter_null()
713 while (iov_iter_count(iter)) { in read_iter_zero()
714 size_t chunk = iov_iter_count(iter), n; in read_iter_zero()
719 if (!n && iov_iter_count(iter)) in read_iter_zero()
/kernel/linux/linux-5.10/drivers/fsi/
Dfsi-sbefifo.c538 dev_vdbg(dev, "reading response, buflen = %zd\n", iov_iter_count(response)); in sbefifo_read_response()
595 if (iov_iter_count(response) >= sizeof(__be32)) { in sbefifo_read_response()
651 ffdc_sz = SBEFIFO_MAX_FFDC_SIZE - iov_iter_count(&ffdc_iter); in sbefifo_collect_async_ffdc()
748 rbytes -= iov_iter_count(&resp_iter); in sbefifo_submit()
830 rc = len - iov_iter_count(&resp_iter); in sbefifo_user_read()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/
Dtap.c626 unsigned long total_len = iov_iter_count(from); in tap_get_user()
779 if (iov_iter_count(iter) < vnet_hdr_len) in tap_put_user()
808 if (ret || !iov_iter_count(iter)) in tap_put_user()
812 if (ret != sizeof(veth) || !iov_iter_count(iter)) in tap_put_user()
830 if (!iov_iter_count(to)) { in tap_do_read()
876 ssize_t len = iov_iter_count(to), ret; in tap_read_iter()
/kernel/linux/linux-5.10/fs/
Dread_write.c751 while (iov_iter_count(iter)) { in do_loop_readv_writev()
788 tot_len = iov_iter_count(iter); in do_iter_read()
818 tot_len = iov_iter_count(iter); in vfs_iocb_iter_read()
853 tot_len = iov_iter_count(iter); in do_iter_write()
882 tot_len = iov_iter_count(iter); in vfs_iocb_iter_write()
1660 if (!iov_iter_count(from)) in generic_write_checks()
1670 count = iov_iter_count(from); in generic_write_checks()
1676 return iov_iter_count(from); in generic_write_checks()
Dpipe.c232 size_t total_len = iov_iter_count(to); in pipe_read()
421 size_t total_len = iov_iter_count(from); in pipe_write()
474 if (!iov_iter_count(from)) in pipe_write()
532 if (unlikely(copied < PAGE_SIZE && iov_iter_count(from))) { in pipe_write()
541 if (!iov_iter_count(from)) in pipe_write()
Dblock_dev.c1918 if (!iov_iter_count(from)) in blkdev_write_iter()
1928 if (iov_iter_count(from) > size) { in blkdev_write_iter()
1929 shorted = iov_iter_count(from) - size; in blkdev_write_iter()
1937 iov_iter_reexpand(from, iov_iter_count(from) + shorted); in blkdev_write_iter()
1956 if (iov_iter_count(to) > size) { in blkdev_read_iter()
1957 shorted = iov_iter_count(to) - size; in blkdev_read_iter()
1962 iov_iter_reexpand(to, iov_iter_count(to) + shorted); in blkdev_read_iter()
/kernel/linux/linux-5.10/fs/iomap/
Ddirect-io.c250 orig_count = iov_iter_count(dio->submit.iter); in iomap_dio_bio_actor()
427 size_t count = iov_iter_count(iter); in __iomap_dio_rw()
538 } while ((count = iov_iter_count(iter)) > 0); in __iomap_dio_rw()
/kernel/linux/linux-5.10/net/core/
Ddatagram.c492 if (fault_short || iov_iter_count(to)) in __skb_datagram_iter()
624 while (length && iov_iter_count(from)) { in __zerocopy_sg_from_iter()
701 int copy = min_t(int, skb_headlen(skb), iov_iter_count(from)); in zerocopy_sg_from_iter()
/kernel/linux/linux-5.10/fs/fuse/
Dfile.c1002 (iocb->ki_pos + iov_iter_count(to) > i_size_read(inode))) { in fuse_cache_read_iter()
1157 iov_iter_count(ii)); in fuse_fill_write_pages()
1208 } while (iov_iter_count(ii) && count < fc->max_write && in fuse_fill_write_pages()
1233 if (inode->i_size < pos + iov_iter_count(ii)) in fuse_perform_write()
1240 unsigned int nr_pages = fuse_wr_pages(pos, iov_iter_count(ii), in fuse_perform_write()
1267 } while (!err && iov_iter_count(ii)); in fuse_perform_write()
1317 if (written < 0 || !iov_iter_count(from)) in fuse_cache_write_iter()
1443 size_t count = iov_iter_count(iter); in fuse_direct_io()
2907 for (i = 0; iov_iter_count(&ii) && !WARN_ON(i >= ap.num_pages); i++) { in fuse_do_ioctl()
2909 if (c != PAGE_SIZE && iov_iter_count(&ii)) in fuse_do_ioctl()
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/fs/hmdfs/
Dfile_local.c85 if (!iov_iter_count(iter)) in hmdfs_do_read_iter()
122 if (!iov_iter_count(iter)) in hmdfs_do_write_iter()

1234