Home
last modified time | relevance | path

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

12345

/linux/mm/
A Dprocess_vm_access.c34 while (len && iov_iter_count(iter)) { in process_vm_rw_pages()
48 if (copied < copy && iov_iter_count(iter)) in process_vm_rw_pages()
94 while (!rc && nr_pages && iov_iter_count(iter)) { in process_vm_rw_single_vec()
164 size_t total_len = iov_iter_count(iter); in process_vm_rw_core()
214 for (i = 0; i < riovcnt && iov_iter_count(iter) && !rc; i++) in process_vm_rw_core()
220 total_len -= iov_iter_count(iter); in process_vm_rw_core()
275 if (!iov_iter_count(&iter)) in process_vm_rw()
/linux/net/rds/
A 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()
A 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/block/
A Dfops.c377 if (!iov_iter_count(iter)) in blkdev_direct_IO()
541 if (!iov_iter_count(from)) in blkdev_write_iter()
551 if (iov_iter_count(from) > size) { in blkdev_write_iter()
552 shorted = iov_iter_count(from) - size; in blkdev_write_iter()
560 iov_iter_reexpand(from, iov_iter_count(from) + shorted); in blkdev_write_iter()
573 if (unlikely(pos + iov_iter_count(to) > size)) { in blkdev_read_iter()
577 if (iov_iter_count(to) > size) { in blkdev_read_iter()
578 shorted = iov_iter_count(to) - size; in blkdev_read_iter()
586 iov_iter_reexpand(to, iov_iter_count(to) + shorted); in blkdev_read_iter()
A Dblk-map.c59 if (!iov_iter_count(iter)) in bio_copy_from_iter()
90 if (!iov_iter_count(&iter)) in bio_copy_to_iter()
241 if (!iov_iter_count(iter)) in bio_map_user_iov()
249 while (iov_iter_count(iter)) { in bio_map_user_iov()
553 } while (iov_iter_count(&i)); in blk_rq_map_user_iov()
/linux/drivers/gpu/drm/
A 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()
/linux/net/ceph/
A Dmessenger_v2.c83 while (iov_iter_count(it)) { in do_recvmsg()
112 iov_iter_count(&con->v2.in_iter)); in ceph_tcp_recv()
115 iov_iter_count(&con->v2.in_iter)); in ceph_tcp_recv()
125 while (iov_iter_count(it)) { in do_sendmsg()
149 while (iov_iter_count(it)) { in do_try_sendpage()
153 bv.bv_len = min(iov_iter_count(it), in do_try_sendpage()
205 iov_iter_count(&con->v2.out_iter)); in ceph_tcp_send()
224 WARN_ON(iov_iter_count(&con->v2.in_iter)); in reset_in_kvecs()
232 WARN_ON(iov_iter_count(&con->v2.in_iter)); in set_in_bvec()
240 WARN_ON(iov_iter_count(&con->v2.in_iter)); in set_in_skip()
[all …]
/linux/fs/nfs/
A 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()
450 size_t count = iov_iter_count(iter); in nfs_file_direct_read()
806 NFS_I(inode)->write_io += iov_iter_count(iter); in nfs_direct_write_schedule_iovec()
807 while (iov_iter_count(iter)) { in nfs_direct_write_schedule_iovec()
906 file, iov_iter_count(iter), (long long) iocb->ki_pos); in nfs_file_direct_write()
915 end = (pos + iov_iter_count(iter) - 1) >> PAGE_SHIFT; in nfs_file_direct_write()
/linux/net/qrtr/
A 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()
/linux/fs/fuse/
A Dioctl.c248 for (i = 0; iov_iter_count(&ii) && !WARN_ON(i >= ap.num_pages); i++) { in fuse_do_ioctl()
250 if (c != PAGE_SIZE && iov_iter_count(&ii)) in fuse_do_ioctl()
317 for (i = 0; iov_iter_count(&ii) && !WARN_ON(i >= ap.num_pages); i++) { in fuse_do_ioctl()
319 if (c != PAGE_SIZE && iov_iter_count(&ii)) in fuse_do_ioctl()
/linux/drivers/char/
A Dmem.c466 size_t count = iov_iter_count(from); in write_iter_null()
487 while (iov_iter_count(iter)) { in read_iter_zero()
488 size_t chunk = iov_iter_count(iter), n; in read_iter_zero()
493 if (!n && iov_iter_count(iter)) in read_iter_zero()
/linux/fs/ext4/
A Dfile.c120 if (!iov_iter_count(to)) in ext4_file_read_iter()
236 return iov_iter_count(from); in ext4_generic_write_checks()
477 size_t count = iov_iter_count(from); in ext4_dio_write_iter()
583 if (ret >= 0 && iov_iter_count(from)) { in ext4_dio_write_iter()
635 count = iov_iter_count(from); in ext4_dax_write_iter()
/linux/fs/afs/
A 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()
660 call->unmarshall, iov_iter_count(call->iter), call->count); in afs_deliver_yfsvl_get_cell_name()
A Drxrpc.c318 tx_total_len += iov_iter_count(call->write_iter); in afs_make_call()
375 iov_iter_count(&msg.msg_iter), in afs_make_call()
776 _enter("{%zu}", iov_iter_count(call->iter)); in afs_deliver_cm_op_id()
898 call->type->name, call->iov_len, iov_iter_count(iter), want_more); in afs_extract_data()
/linux/drivers/fsi/
A Dfsi-sbefifo.c550 dev_vdbg(dev, "reading response, buflen = %zd\n", iov_iter_count(response)); in sbefifo_read_response()
607 if (iov_iter_count(response) >= sizeof(__be32)) { in sbefifo_read_response()
663 ffdc_sz = SBEFIFO_MAX_FFDC_SIZE - iov_iter_count(&ffdc_iter); in sbefifo_collect_async_ffdc()
762 rbytes -= iov_iter_count(&resp_iter); in sbefifo_submit()
846 rc = len - iov_iter_count(&resp_iter); in sbefifo_user_read()
/linux/fs/xfs/
A Dxfs_file.c254 if (!iov_iter_count(to)) in xfs_file_dio_read()
278 if (!iov_iter_count(to)) in xfs_file_dax_read()
353 size_t count = iov_iter_count(from); in xfs_file_write_checks()
603 size_t count = iov_iter_count(from); in xfs_file_dio_write_unaligned()
676 size_t count = iov_iter_count(from); in xfs_file_dio_write()
810 size_t ocount = iov_iter_count(from); in xfs_file_write_iter()
/linux/fs/gfs2/
A Dfile.c776 size_t count = iov_iter_count(i); in should_fault_in_pages()
828 if (!iov_iter_count(to)) in gfs2_file_direct_read()
902 if (iocb->ki_pos + iov_iter_count(from) > i_size_read(&ip->i_inode)) in gfs2_file_direct_write()
962 if (!iov_iter_count(to)) in gfs2_file_read_iter()
1016 size_t orig_count = iov_iter_count(from); in gfs2_file_buffered_write()
1108 gfs2_size_hint(file, iocb->ki_pos, iov_iter_count(from)); in gfs2_file_write_iter()
1135 if (ret < 0 || !iov_iter_count(from)) in gfs2_file_write_iter()
/linux/fs/ceph/
A 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()
861 u64 len = iov_iter_count(to); in ceph_sync_read()
900 more = len < iov_iter_count(to); in ceph_sync_read()
1208 size_t count = iov_iter_count(iter); in ceph_direct_read_write()
1232 while (iov_iter_count(iter) > 0) { in ceph_direct_read_write()
1233 u64 size = iov_iter_count(iter); in ceph_direct_read_write()
1419 size_t count = iov_iter_count(from); in ceph_sync_write()
1534 size_t len = iov_iter_count(to); in ceph_read_iter()
[all …]
/linux/fs/
A Dread_write.c741 while (iov_iter_count(iter)) { in do_loop_readv_writev()
778 tot_len = iov_iter_count(iter); in do_iter_read()
808 tot_len = iov_iter_count(iter); in vfs_iocb_iter_read()
843 tot_len = iov_iter_count(iter); in do_iter_write()
872 tot_len = iov_iter_count(iter); in vfs_iocb_iter_write()
1637 if (!iov_iter_count(from)) in generic_write_checks()
1647 count = iov_iter_count(from); in generic_write_checks()
1653 return iov_iter_count(from); in generic_write_checks()
A Dpipe.c232 size_t total_len = iov_iter_count(to); in pipe_read()
420 size_t total_len = iov_iter_count(from); in pipe_write()
473 if (!iov_iter_count(from)) in pipe_write()
531 if (unlikely(copied < PAGE_SIZE && iov_iter_count(from))) { in pipe_write()
540 if (!iov_iter_count(from)) in pipe_write()
/linux/drivers/net/
A Dtap.c626 unsigned long total_len = iov_iter_count(from); in tap_get_user()
776 if (iov_iter_count(iter) < vnet_hdr_len) in tap_put_user()
805 if (ret || !iov_iter_count(iter)) in tap_put_user()
809 if (ret != sizeof(veth) || !iov_iter_count(iter)) in tap_put_user()
827 if (!iov_iter_count(to)) { in tap_do_read()
873 ssize_t len = iov_iter_count(to), ret; in tap_read_iter()
/linux/fs/coda/
A Dfile.c45 size_t count = iov_iter_count(to); in coda_file_read_iter()
71 size_t count = iov_iter_count(to); in coda_file_write_iter()
/linux/fs/iomap/
A Ddirect-io.c275 orig_count = iov_iter_count(dio->submit.iter); in iomap_dio_bio_iter()
278 if (!iov_iter_count(dio->submit.iter)) in iomap_dio_bio_iter()
482 .len = iov_iter_count(iter), in __iomap_dio_rw()
/linux/net/core/
A 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()
702 int copy = min_t(int, skb_headlen(skb), iov_iter_count(from)); in zerocopy_sg_from_iter()
/linux/fs/ntfs/
A Dfile.c334 iov_iter_count(from)); in ntfs_prepare_file_for_write()
379 end = (pos + iov_iter_count(from) + vol->cluster_size_mask) & in ntfs_prepare_file_for_write()
1744 (unsigned long)iov_iter_count(i)); in ntfs_perform_write()
1822 if (bytes > iov_iter_count(i)) in ntfs_perform_write()
1823 bytes = iov_iter_count(i); in ntfs_perform_write()
1892 } while (iov_iter_count(i)); in ntfs_perform_write()
1921 if (iov_iter_count(from) && !err) in ntfs_file_write_iter()

Completed in 52 milliseconds

12345