Home
last modified time | relevance | path

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

12345

/Linux-v6.1/mm/
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-v6.1/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()
429 rm->m_inc.i_hdr.h_len = cpu_to_be32(iov_iter_count(from)); in rds_message_copy_from_user()
438 while (iov_iter_count(from)) { in rds_message_copy_from_user()
440 ret = rds_page_remainder_alloc(sg, iov_iter_count(from), in rds_message_copy_from_user()
448 to_copy = min_t(unsigned long, iov_iter_count(from), in rds_message_copy_from_user()
483 while (iov_iter_count(to) && copied < len) { in rds_message_inc_copy_to_user()
484 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-v6.1/block/
Dfops.c362 if (!iov_iter_count(iter)) in blkdev_direct_IO()
525 if (!iov_iter_count(from)) in blkdev_write_iter()
535 if (iov_iter_count(from) > size) { in blkdev_write_iter()
536 shorted = iov_iter_count(from) - size; in blkdev_write_iter()
544 iov_iter_reexpand(from, iov_iter_count(from) + shorted); in blkdev_write_iter()
558 if (unlikely(pos + iov_iter_count(to) > size)) { in blkdev_read_iter()
562 shorted = iov_iter_count(to) - size; in blkdev_read_iter()
566 count = iov_iter_count(to); in blkdev_read_iter()
593 iov_iter_revert(to, count - iov_iter_count(to)); in blkdev_read_iter()
602 iov_iter_reexpand(to, iov_iter_count(to) + shorted); in blkdev_read_iter()
Dblk-map.c59 if (!iov_iter_count(iter)) in bio_copy_from_iter()
90 if (!iov_iter_count(&iter)) in bio_copy_to_iter()
274 if (!iov_iter_count(iter)) in bio_map_user_iov()
281 while (iov_iter_count(iter)) { in bio_map_user_iov()
555 size_t nr_iter = iov_iter_count(iter); in blk_rq_map_user_bvec()
665 } while (iov_iter_count(&i)); in blk_rq_map_user_iov()
711 if (check_iter_count && !iov_iter_count(&iter)) { in blk_rq_map_user_io()
/Linux-v6.1/drivers/gpu/drm/display/
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-v6.1/net/ceph/
Dmessenger_v2.c84 while (iov_iter_count(it)) { in do_recvmsg()
113 iov_iter_count(&con->v2.in_iter)); in ceph_tcp_recv()
116 iov_iter_count(&con->v2.in_iter)); in ceph_tcp_recv()
126 while (iov_iter_count(it)) { in do_sendmsg()
150 while (iov_iter_count(it)) { in do_try_sendpage()
154 bv.bv_len = min(iov_iter_count(it), in do_try_sendpage()
200 iov_iter_count(&con->v2.out_iter), con->v2.out_iter_sendpage); in ceph_tcp_send()
206 iov_iter_count(&con->v2.out_iter)); in ceph_tcp_send()
225 WARN_ON(iov_iter_count(&con->v2.in_iter)); in reset_in_kvecs()
233 WARN_ON(iov_iter_count(&con->v2.in_iter)); in set_in_bvec()
[all …]
/Linux-v6.1/include/linux/
Duio.h259 static inline size_t iov_iter_count(const struct iov_iter *i) in iov_iter_count() function
297 if (iov_iter_count(i) > max_bytes) { in iov_iter_npages_cap()
298 shorted = iov_iter_count(i) - max_bytes; in iov_iter_npages_cap()
303 iov_iter_reexpand(i, iov_iter_count(i) + shorted); in iov_iter_npages_cap()
/Linux-v6.1/fs/nfs/
Ddirect.c134 VM_BUG_ON(iov_iter_count(iter) != PAGE_SIZE); in nfs_swap_rw()
329 while (iov_iter_count(iter)) { in nfs_direct_read_schedule_iovec()
417 size_t count = iov_iter_count(iter); in nfs_file_direct_read()
787 NFS_I(inode)->write_io += iov_iter_count(iter); in nfs_direct_write_schedule_iovec()
788 while (iov_iter_count(iter)) { in nfs_direct_write_schedule_iovec()
888 file, iov_iter_count(iter), (long long) iocb->ki_pos); in nfs_file_direct_write()
892 result = iov_iter_count(iter); in nfs_file_direct_write()
901 end = (pos + iov_iter_count(iter) - 1) >> PAGE_SHIFT; in nfs_file_direct_write()
/Linux-v6.1/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()
/Linux-v6.1/fs/proc/
Dvmcore.c324 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-v6.1/fs/fuse/
Dioctl.c259 for (i = 0; iov_iter_count(&ii) && !WARN_ON(i >= ap.num_pages); i++) { in fuse_do_ioctl()
261 if (c != PAGE_SIZE && iov_iter_count(&ii)) in fuse_do_ioctl()
328 for (i = 0; iov_iter_count(&ii) && !WARN_ON(i >= ap.num_pages); i++) { in fuse_do_ioctl()
330 if (c != PAGE_SIZE && iov_iter_count(&ii)) in fuse_do_ioctl()
/Linux-v6.1/drivers/char/
Dmem.c466 size_t count = iov_iter_count(from); in write_iter_null()
492 while (iov_iter_count(iter)) { in read_iter_zero()
493 size_t chunk = iov_iter_count(iter), n; in read_iter_zero()
498 if (!n && iov_iter_count(iter)) in read_iter_zero()
Drandom.c405 if (unlikely(!iov_iter_count(iter))) in get_random_bytes_user()
419 if (iov_iter_count(iter) <= CHACHA_KEY_SIZE) { in get_random_bytes_user()
431 if (!iov_iter_count(iter) || copied != sizeof(block)) in get_random_bytes_user()
1312 if (unlikely(!iov_iter_count(iter))) in write_pool_user()
1319 if (!iov_iter_count(iter) || copied != sizeof(block)) in write_pool_user()
1356 current->comm, iov_iter_count(iter)); in urandom_read_iter()
/Linux-v6.1/fs/ext4/
Dfile.c137 if (!iov_iter_count(to)) in ext4_file_read_iter()
253 return iov_iter_count(from); in ext4_generic_write_checks()
492 size_t count = iov_iter_count(from); in ext4_dio_write_iter()
602 if (ret >= 0 && iov_iter_count(from)) { in ext4_dio_write_iter()
654 count = iov_iter_count(from); in ext4_dax_write_iter()
/Linux-v6.1/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()
660 call->unmarshall, iov_iter_count(call->iter), call->count); in afs_deliver_yfsvl_get_cell_name()
Drxrpc.c322 tx_total_len += iov_iter_count(call->write_iter); in afs_make_call()
380 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-v6.1/fs/xfs/
Dxfs_file.c227 if (!iov_iter_count(to)) in xfs_file_dio_read()
251 if (!iov_iter_count(to)) in xfs_file_dax_read()
326 size_t count = iov_iter_count(from); in xfs_file_write_checks()
575 size_t count = iov_iter_count(from); in xfs_file_dio_write_unaligned()
648 size_t count = iov_iter_count(from); in xfs_file_dio_write()
777 size_t ocount = iov_iter_count(from); in xfs_file_write_iter()
/Linux-v6.1/net/9p/
Dclient.c1508 while (iov_iter_count(to)) { in p9_client_read()
1527 int count = iov_iter_count(to); in p9_client_read_once()
1533 fid->fid, offset, iov_iter_count(to)); in p9_client_read_once()
1558 iov_iter_revert(to, count - iov_iter_count(to)); in p9_client_read_once()
1566 iov_iter_revert(to, count - iov_iter_count(to)); in p9_client_read_once()
1587 iov_iter_revert(to, count - received - iov_iter_count(to)); in p9_client_read_once()
1603 fid->fid, offset, iov_iter_count(from)); in p9_client_write()
1605 while (iov_iter_count(from)) { in p9_client_write()
1606 int count = iov_iter_count(from); in p9_client_write()
1626 iov_iter_revert(from, count - iov_iter_count(from)); in p9_client_write()
[all …]
/Linux-v6.1/drivers/fsi/
Dfsi-sbefifo.c555 dev_dbg(dev, "reading response, buflen = %zd\n", iov_iter_count(response)); in sbefifo_read_response()
614 if (iov_iter_count(response) >= sizeof(__be32)) { in sbefifo_read_response()
670 ffdc_sz = SBEFIFO_MAX_FFDC_SIZE - iov_iter_count(&ffdc_iter); in sbefifo_collect_async_ffdc()
769 rbytes -= iov_iter_count(&resp_iter); in sbefifo_submit()
856 rc = len - iov_iter_count(&resp_iter); in sbefifo_user_read()
/Linux-v6.1/fs/gfs2/
Dfile.c778 size_t count = iov_iter_count(i); in should_fault_in_pages()
827 if (!iov_iter_count(to)) in gfs2_file_direct_read()
898 if (iocb->ki_pos + iov_iter_count(from) > i_size_read(&ip->i_inode)) in gfs2_file_direct_write()
956 if (!iov_iter_count(to)) in gfs2_file_read_iter()
1003 size_t orig_count = iov_iter_count(from); in gfs2_file_buffered_write()
1094 gfs2_size_hint(file, iocb->ki_pos, iov_iter_count(from)); in gfs2_file_write_iter()
1121 if (ret < 0 || !iov_iter_count(from)) in gfs2_file_write_iter()
/Linux-v6.1/fs/ceph/
Dfile.c89 if (maxsize > iov_iter_count(iter)) in __iter_get_bvecs()
90 maxsize = iov_iter_count(iter); in __iter_get_bvecs()
133 size_t orig_count = iov_iter_count(iter); in iter_get_bvecs_alloc()
931 u64 len = iov_iter_count(to); in ceph_sync_read()
951 while ((len = iov_iter_count(to)) > 0) { in ceph_sync_read()
970 more = len < iov_iter_count(to); in ceph_sync_read()
1276 size_t count = iov_iter_count(iter); in ceph_direct_read_write()
1304 while (iov_iter_count(iter) > 0) { in ceph_direct_read_write()
1305 u64 size = iov_iter_count(iter); in ceph_direct_read_write()
1489 size_t count = iov_iter_count(from); in ceph_sync_write()
[all …]
/Linux-v6.1/fs/coda/
Dfile.c46 size_t count = iov_iter_count(to); in coda_file_read_iter()
72 size_t count = iov_iter_count(to); in coda_file_write_iter()
/Linux-v6.1/io_uring/
Drw.c443 while (iov_iter_count(iter)) { in loop_rw_iter()
737 req->cqe.res = iov_iter_count(&s->iter); in io_read()
811 if (!iov_iter_count(&s->iter)) in io_read()
822 req->cqe.res = iov_iter_count(&s->iter); in io_read()
869 req->cqe.res = iov_iter_count(&s->iter); in io_write()
/Linux-v6.1/drivers/net/
Dtap.c636 unsigned long total_len = iov_iter_count(from); in tap_get_user()
793 if (iov_iter_count(iter) < vnet_hdr_len) in tap_put_user()
822 if (ret || !iov_iter_count(iter)) in tap_put_user()
826 if (ret != sizeof(veth) || !iov_iter_count(iter)) in tap_put_user()
844 if (!iov_iter_count(to)) { in tap_do_read()
890 ssize_t len = iov_iter_count(to), ret; in tap_read_iter()

12345