Home
last modified time | relevance | path

Searched refs:UIO_MAXIOV (Results 1 – 12 of 12) sorted by relevance

/linux-4.1.27/drivers/vhost/
Dnet.c178 UIO_MAXIOV, GFP_KERNEL); in vhost_net_set_ubuf_info()
247 for (i = nvq->done_idx; i != nvq->upend_idx; i = (i + 1) % UIO_MAXIOV) { in vhost_zerocopy_signal_used()
257 add = min(UIO_MAXIOV - nvq->done_idx, j); in vhost_zerocopy_signal_used()
260 nvq->done_idx = (nvq->done_idx + add) % UIO_MAXIOV; in vhost_zerocopy_signal_used()
332 % UIO_MAXIOV == nvq->done_idx)) in handle_tx()
369 && (nvq->upend_idx + 1) % UIO_MAXIOV != in handle_tx()
387 nvq->upend_idx = (nvq->upend_idx + 1) % UIO_MAXIOV; in handle_tx()
398 % UIO_MAXIOV; in handle_tx()
468 if (unlikely(seg >= UIO_MAXIOV)) { in get_rx_bufs()
507 r = UIO_MAXIOV + 1; in get_rx_bufs()
[all …]
Dvhost.h99 struct iovec iov[UIO_MAXIOV];
Dvhost.c271 vq->indirect = kmalloc(sizeof *vq->indirect * UIO_MAXIOV, in vhost_dev_alloc_iovecs()
273 vq->log = kmalloc(sizeof *vq->log * UIO_MAXIOV, GFP_KERNEL); in vhost_dev_alloc_iovecs()
274 vq->heads = kmalloc(sizeof *vq->heads * UIO_MAXIOV, GFP_KERNEL); in vhost_dev_alloc_iovecs()
1142 UIO_MAXIOV); in get_indirect()
/linux-4.1.27/include/uapi/linux/
Duio.h27 #define UIO_MAXIOV 1024 macro
/linux-4.1.27/block/
Dbio.c421 if (nr_iovecs > UIO_MAXIOV) in bio_alloc_bioset()
1032 if (iov_count > UIO_MAXIOV) in bio_alloc_map_data()
/linux-4.1.27/fs/
Dsplice.c1640 if (unlikely(nr_segs > UIO_MAXIOV)) in SYSCALL_DEFINE4()
1665 if (nr_segs > UIO_MAXIOV) in COMPAT_SYSCALL_DEFINE4()
Dread_write.c722 if (nr_segs > UIO_MAXIOV) { in rw_copy_check_uvector()
Dcompat.c565 if (nr_segs > UIO_MAXIOV || nr_segs < 0) in compat_rw_copy_check_uvector()
/linux-4.1.27/net/rds/
Drdma.c570 if (args->nr_local > UIO_MAXIOV) { in rds_cmsg_rdma_args()
/linux-4.1.27/net/
Dsocket.c1875 if (nr_segs > UIO_MAXIOV) in copy_msghdr_from_user()
2018 if (vlen > UIO_MAXIOV) in __sys_sendmmsg()
2019 vlen = UIO_MAXIOV; in __sys_sendmmsg()
Dcompat.c79 if (nr_segs > UIO_MAXIOV) in get_compat_msghdr()
/linux-4.1.27/net/core/
Dsock.c325 int sysctl_optmem_max __read_mostly = sizeof(unsigned long)*(2*UIO_MAXIOV+512);