/linux-6.6.21/mm/ |
D | process_vm_access.c | 34 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-6.6.21/net/rds/ |
D | message.c | 368 int length = iov_iter_count(from); in rds_message_zcopy_from_user() 371 rm->m_inc.i_hdr.h_len = cpu_to_be32(iov_iter_count(from)); in rds_message_zcopy_from_user() 388 while (iov_iter_count(from)) { in rds_message_zcopy_from_user() 427 rm->m_inc.i_hdr.h_len = cpu_to_be32(iov_iter_count(from)); in rds_message_copy_from_user() 436 while (iov_iter_count(from)) { in rds_message_copy_from_user() 438 ret = rds_page_remainder_alloc(sg, iov_iter_count(from), in rds_message_copy_from_user() 446 to_copy = min_t(unsigned long, iov_iter_count(from), in rds_message_copy_from_user() 481 while (iov_iter_count(to) && copied < len) { in rds_message_inc_copy_to_user() 482 to_copy = min_t(unsigned long, iov_iter_count(to), in rds_message_inc_copy_to_user()
|
D | tcp_recv.c | 69 if (!iov_iter_count(to)) in rds_tcp_inc_copy_to_user() 77 to_copy = iov_iter_count(to); in rds_tcp_inc_copy_to_user() 86 if (!iov_iter_count(to)) in rds_tcp_inc_copy_to_user()
|
/linux-6.6.21/block/ |
D | fops.c | 225 if (unlikely(iov_iter_count(iter))) { in __blkdev_direct_IO() 370 if (!iov_iter_count(iter)) in blkdev_direct_IO() 611 size_t count = iov_iter_count(from); in blkdev_direct_write() 628 iov_iter_revert(from, count - iov_iter_count(from)); in blkdev_direct_write() 659 if (!iov_iter_count(from)) in blkdev_write_iter() 669 if (iov_iter_count(from) > size) { in blkdev_write_iter() 670 shorted = iov_iter_count(from) - size; in blkdev_write_iter() 680 if (ret >= 0 && iov_iter_count(from)) in blkdev_write_iter() 689 iov_iter_reexpand(from, iov_iter_count(from) + shorted); in blkdev_write_iter() 702 if (unlikely(pos + iov_iter_count(to) > size)) { in blkdev_read_iter() [all …]
|
D | blk-map.c | 61 if (!iov_iter_count(iter)) in bio_copy_from_iter() 92 if (!iov_iter_count(&iter)) in bio_copy_to_iter() 282 if (!iov_iter_count(iter)) in bio_map_user_iov() 294 while (iov_iter_count(iter)) { in bio_map_user_iov() 565 size_t nr_iter = iov_iter_count(iter); in blk_rq_map_user_bvec() 675 } while (iov_iter_count(&i)); in blk_rq_map_user_iov() 720 if (check_iter_count && !iov_iter_count(&iter)) { in blk_rq_map_user_io()
|
/linux-6.6.21/drivers/gpu/drm/display/ |
D | drm_dp_aux_dev.c | 157 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-6.6.21/fs/ext2/ |
D | file.c | 40 if (!iov_iter_count(to)) in ext2_dax_read_iter() 220 loff_t count = iov_iter_count(from); in ext2_dio_write_iter() 234 if (iocb->ki_pos + iov_iter_count(from) > i_size_read(inode) || in ext2_dio_write_iter() 249 if (ret >= 0 && iov_iter_count(from)) { in ext2_dio_write_iter()
|
/linux-6.6.21/net/ceph/ |
D | messenger_v2.c | 86 while (iov_iter_count(it)) { in do_recvmsg() 115 iov_iter_count(&con->v2.in_iter)); in ceph_tcp_recv() 118 iov_iter_count(&con->v2.in_iter)); in ceph_tcp_recv() 128 while (iov_iter_count(it)) { in do_sendmsg() 152 while (iov_iter_count(it)) { in do_try_sendpage() 155 min(iov_iter_count(it), in do_try_sendpage() 201 iov_iter_count(&con->v2.out_iter), con->v2.out_iter_sendpage); in ceph_tcp_send() 207 iov_iter_count(&con->v2.out_iter)); in ceph_tcp_send() 226 WARN_ON(iov_iter_count(&con->v2.in_iter)); in reset_in_kvecs() 234 WARN_ON(iov_iter_count(&con->v2.in_iter)); in set_in_bvec() [all …]
|
/linux-6.6.21/include/linux/ |
D | uio.h | 296 static inline size_t iov_iter_count(const struct iov_iter *i) in iov_iter_count() function 334 if (iov_iter_count(i) > max_bytes) { in iov_iter_npages_cap() 335 shorted = iov_iter_count(i) - max_bytes; in iov_iter_npages_cap() 340 iov_iter_reexpand(i, iov_iter_count(i) + shorted); in iov_iter_npages_cap()
|
/linux-6.6.21/fs/nfs/ |
D | direct.c | 144 VM_BUG_ON(iov_iter_count(iter) != PAGE_SIZE); in nfs_swap_rw() 340 while (iov_iter_count(iter)) { in nfs_direct_read_schedule_iovec() 426 size_t count = iov_iter_count(iter); in nfs_file_direct_read() 842 NFS_I(inode)->write_io += iov_iter_count(iter); in nfs_direct_write_schedule_iovec() 843 while (iov_iter_count(iter)) { in nfs_direct_write_schedule_iovec() 961 file, iov_iter_count(iter), (long long) iocb->ki_pos); in nfs_file_direct_write() 965 result = iov_iter_count(iter); in nfs_file_direct_write() 974 end = (pos + iov_iter_count(iter) - 1) >> PAGE_SHIFT; in nfs_file_direct_write()
|
/linux-6.6.21/net/qrtr/ |
D | tun.c | 76 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-6.6.21/fs/proc/ |
D | vmcore.c | 324 if (!iov_iter_count(iter) || *fpos >= vmcore_size) in __read_vmcore() 331 tsz = min(elfcorebuf_sz - (size_t)*fpos, iov_iter_count(iter)); in __read_vmcore() 338 if (!iov_iter_count(iter)) in __read_vmcore() 359 (size_t)*fpos, iov_iter_count(iter)); in __read_vmcore() 368 if (!iov_iter_count(iter)) in __read_vmcore() 375 iov_iter_count(iter)); in __read_vmcore() 384 if (!iov_iter_count(iter)) in __read_vmcore() 392 iov_iter_count(iter)); in __read_vmcore() 402 if (!iov_iter_count(iter)) in __read_vmcore()
|
/linux-6.6.21/fs/fuse/ |
D | ioctl.c | 268 for (i = 0; iov_iter_count(&ii) && !WARN_ON(i >= ap.num_pages); i++) { in fuse_do_ioctl() 270 if (c != PAGE_SIZE && iov_iter_count(&ii)) in fuse_do_ioctl() 335 for (i = 0; iov_iter_count(&ii) && !WARN_ON(i >= ap.num_pages); i++) { in fuse_do_ioctl() 337 if (c != PAGE_SIZE && iov_iter_count(&ii)) in fuse_do_ioctl()
|
/linux-6.6.21/drivers/char/ |
D | mem.c | 459 size_t count = iov_iter_count(from); in write_iter_null() 485 while (iov_iter_count(iter)) { in read_iter_zero() 486 size_t chunk = iov_iter_count(iter), n; in read_iter_zero() 491 if (!n && iov_iter_count(iter)) in read_iter_zero()
|
D | random.c | 427 if (unlikely(!iov_iter_count(iter))) in get_random_bytes_user() 441 if (iov_iter_count(iter) <= CHACHA_KEY_SIZE) { in get_random_bytes_user() 453 if (!iov_iter_count(iter) || copied != sizeof(block)) in get_random_bytes_user() 1406 if (unlikely(!iov_iter_count(iter))) in write_pool_user() 1413 if (!iov_iter_count(iter) || copied != sizeof(block)) in write_pool_user() 1450 current->comm, iov_iter_count(iter)); in urandom_read_iter()
|
/linux-6.6.21/fs/ext4/ |
D | file.c | 137 if (!iov_iter_count(to)) in ext4_file_read_iter() 268 return iov_iter_count(from); in ext4_generic_write_checks() 504 size_t count = iov_iter_count(from); in ext4_dio_write_iter() 598 if (ret >= 0 && iov_iter_count(from)) { in ext4_dio_write_iter() 650 count = iov_iter_count(from); in ext4_dax_write_iter()
|
/linux-6.6.21/fs/afs/ |
D | vlclient.c | 189 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()
|
/linux-6.6.21/fs/gfs2/ |
D | file.c | 782 size_t count = iov_iter_count(i); in should_fault_in_pages() 835 if (!iov_iter_count(to)) in gfs2_file_direct_read() 907 if (iocb->ki_pos + iov_iter_count(from) > i_size_read(&ip->i_inode)) in gfs2_file_direct_write() 924 enough_retries = prev_count == iov_iter_count(from) && in gfs2_file_direct_write() 971 if (!iov_iter_count(to)) in gfs2_file_read_iter() 1018 size_t orig_count = iov_iter_count(from); in gfs2_file_buffered_write() 1105 gfs2_size_hint(file, iocb->ki_pos, iov_iter_count(from)); in gfs2_file_write_iter() 1132 if (ret < 0 || !iov_iter_count(from)) in gfs2_file_write_iter()
|
/linux-6.6.21/io_uring/ |
D | rw.c | 456 while (iov_iter_count(iter)) { in loop_rw_iter() 463 len = iov_iter_count(iter); in loop_rw_iter() 757 req->cqe.res = iov_iter_count(&s->iter); in io_read() 831 if (!iov_iter_count(&s->iter)) in io_read() 842 req->cqe.res = iov_iter_count(&s->iter); in io_read() 889 req->cqe.res = iov_iter_count(&s->iter); in io_write()
|
/linux-6.6.21/net/9p/ |
D | client.c | 1518 while (iov_iter_count(to)) { in p9_client_read() 1537 int count = iov_iter_count(to); in p9_client_read_once() 1543 fid->fid, offset, iov_iter_count(to)); in p9_client_read_once() 1568 iov_iter_revert(to, count - iov_iter_count(to)); in p9_client_read_once() 1576 iov_iter_revert(to, count - iov_iter_count(to)); in p9_client_read_once() 1597 iov_iter_revert(to, count - received - iov_iter_count(to)); in p9_client_read_once() 1613 fid->fid, offset, iov_iter_count(from)); in p9_client_write() 1615 while (iov_iter_count(from)) { in p9_client_write() 1616 int count = iov_iter_count(from); in p9_client_write() 1636 iov_iter_revert(from, count - iov_iter_count(from)); in p9_client_write() [all …]
|
/linux-6.6.21/fs/zonefs/ |
D | file.c | 423 if (!iov_iter_count(from)) in zonefs_write_checks() 438 iov_iter_count(from)); in zonefs_write_checks() 443 return iov_iter_count(from); in zonefs_write_checks() 652 size_t count = iov_iter_count(to); in zonefs_file_read_iter()
|
/linux-6.6.21/drivers/fsi/ |
D | fsi-sbefifo.c | 557 dev_dbg(dev, "reading response, buflen = %zd\n", iov_iter_count(response)); in sbefifo_read_response() 616 if (iov_iter_count(response) >= sizeof(__be32)) { in sbefifo_read_response() 672 ffdc_sz = SBEFIFO_MAX_FFDC_SIZE - iov_iter_count(&ffdc_iter); in sbefifo_collect_async_ffdc() 771 rbytes -= iov_iter_count(&resp_iter); in sbefifo_submit() 861 rc = len - iov_iter_count(&resp_iter); in sbefifo_user_read()
|
/linux-6.6.21/net/rxrpc/ |
D | recvmsg.c | 512 if (iov_iter_count(iter) > 0) in rxrpc_kernel_recv_data() 530 _leave(" = %d [%zu,%d]", ret, iov_iter_count(iter), *_abort); in rxrpc_kernel_recv_data() 550 if (iov_iter_count(iter) > 0) in rxrpc_kernel_recv_data()
|
/linux-6.6.21/fs/xfs/ |
D | xfs_file.c | 264 if (!iov_iter_count(to)) in xfs_file_dio_read() 288 if (!iov_iter_count(to)) in xfs_file_dax_read() 391 size_t count = iov_iter_count(from); in xfs_file_write_checks() 640 size_t count = iov_iter_count(from); in xfs_file_dio_write_unaligned() 713 size_t count = iov_iter_count(from); in xfs_file_dio_write() 836 size_t ocount = iov_iter_count(from); in xfs_file_write_iter()
|
/linux-6.6.21/drivers/net/ |
D | tap.c | 643 unsigned long total_len = iov_iter_count(from); in tap_get_user() 804 if (iov_iter_count(iter) < vnet_hdr_len) in tap_put_user() 833 if (ret || !iov_iter_count(iter)) in tap_put_user() 837 if (ret != sizeof(veth) || !iov_iter_count(iter)) in tap_put_user() 855 if (!iov_iter_count(to)) { in tap_do_read() 901 ssize_t len = iov_iter_count(to), ret; in tap_read_iter()
|