/openbmc/linux/mm/ |
H A 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()
|
/openbmc/linux/net/rds/ |
H A 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()
|
H A 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()
|
/openbmc/linux/block/ |
H A 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 …]
|
H A 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() 673 } while (iov_iter_count(&i)); in blk_rq_map_user_iov() 718 if (check_iter_count && !iov_iter_count(&iter)) { in blk_rq_map_user_io()
|
/openbmc/linux/drivers/gpu/drm/display/ |
H A 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()
|
/openbmc/linux/fs/ext2/ |
H A 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()
|
/openbmc/linux/net/ceph/ |
H A 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 …]
|
/openbmc/linux/include/linux/ |
H A 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()
|
/openbmc/linux/net/qrtr/ |
H A 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()
|
/openbmc/linux/fs/proc/ |
H A 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() 394 iov_iter_count(iter)); in __read_vmcore() 404 if (!iov_iter_count(iter)) in __read_vmcore()
|
/openbmc/linux/fs/nfs/ |
H A D | direct.c | 352 while (iov_iter_count(iter)) { in nfs_direct_read_schedule_iovec() 438 size_t count = iov_iter_count(iter); in nfs_file_direct_read() 866 NFS_I(inode)->write_io += iov_iter_count(iter); in nfs_direct_write_schedule_iovec() 867 while (iov_iter_count(iter)) { in nfs_direct_write_schedule_iovec() 985 file, iov_iter_count(iter), (long long) iocb->ki_pos); in nfs_file_direct_write() 989 result = iov_iter_count(iter); in nfs_file_direct_write() 998 end = (pos + iov_iter_count(iter) - 1) >> PAGE_SHIFT; in nfs_file_direct_write()
|
/openbmc/linux/fs/fuse/ |
H A 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()
|
/openbmc/linux/drivers/char/ |
H A D | mem.c | 460 size_t count = iov_iter_count(from); in write_iter_null() 486 while (iov_iter_count(iter)) { in read_iter_zero() 487 size_t chunk = iov_iter_count(iter), n; in read_iter_zero() 492 if (!n && iov_iter_count(iter)) in read_iter_zero()
|
H A 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()
|
/openbmc/linux/fs/ext4/ |
H A 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()
|
/openbmc/linux/fs/gfs2/ |
H A D | file.c | 783 size_t count = iov_iter_count(i); in should_fault_in_pages() 836 if (!iov_iter_count(to)) in gfs2_file_direct_read() 908 if (iocb->ki_pos + iov_iter_count(from) > i_size_read(&ip->i_inode)) in gfs2_file_direct_write() 925 enough_retries = prev_count == iov_iter_count(from) && in gfs2_file_direct_write() 972 if (!iov_iter_count(to)) in gfs2_file_read_iter() 1019 size_t orig_count = iov_iter_count(from); in gfs2_file_buffered_write() 1106 gfs2_size_hint(file, iocb->ki_pos, iov_iter_count(from)); in gfs2_file_write_iter() 1133 if (ret < 0 || !iov_iter_count(from)) in gfs2_file_write_iter()
|
/openbmc/linux/fs/afs/ |
H A 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()
|
/openbmc/linux/io_uring/ |
H A D | rw.c | 450 while (iov_iter_count(iter)) { in loop_rw_iter() 457 len = iov_iter_count(iter); in loop_rw_iter() 751 req->cqe.res = iov_iter_count(&s->iter); in __io_read() 838 if (!iov_iter_count(&s->iter)) in __io_read() 849 req->cqe.res = iov_iter_count(&s->iter); in __io_read() 926 req->cqe.res = iov_iter_count(&s->iter); in io_write()
|
/openbmc/linux/arch/x86/kernel/cpu/microcode/ |
H A D | intel.c | 477 while (iov_iter_count(iter)) { in parse_microcode_blobs() 493 if (data_size > iov_iter_count(iter)) { in parse_microcode_blobs() 525 if (iov_iter_count(iter)) in parse_microcode_blobs()
|
/openbmc/linux/fs/zonefs/ |
H A 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()
|
/openbmc/linux/drivers/fsi/ |
H A 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()
|
/openbmc/linux/fs/xfs/ |
H A D | xfs_file.c | 257 if (!iov_iter_count(to)) in xfs_file_dio_read() 281 if (!iov_iter_count(to)) in xfs_file_dax_read() 384 size_t count = iov_iter_count(from); in xfs_file_write_checks() 633 size_t count = iov_iter_count(from); in xfs_file_dio_write_unaligned() 706 size_t count = iov_iter_count(from); in xfs_file_dio_write() 829 size_t ocount = iov_iter_count(from); in xfs_file_write_iter()
|
/openbmc/linux/net/rxrpc/ |
H A 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()
|
/openbmc/linux/net/9p/ |
H A D | client.c | 1530 while (iov_iter_count(to)) { in p9_client_read() 1549 int count = iov_iter_count(to); in p9_client_read_once() 1555 fid->fid, offset, iov_iter_count(to)); in p9_client_read_once() 1580 iov_iter_revert(to, count - iov_iter_count(to)); in p9_client_read_once() 1588 iov_iter_revert(to, count - iov_iter_count(to)); in p9_client_read_once() 1609 iov_iter_revert(to, count - received - iov_iter_count(to)); in p9_client_read_once() 1624 while (iov_iter_count(from)) { in p9_client_write() 1625 int count = iov_iter_count(from); in p9_client_write() 1648 iov_iter_revert(from, count - iov_iter_count(from)); in p9_client_write() 1655 iov_iter_revert(from, count - iov_iter_count(from)); in p9_client_write() [all …]
|