Home
last modified time | relevance | path

Searched refs:riov (Results 1 – 7 of 7) sorted by relevance

/linux-5.19.10/tools/virtio/
Dvringh_test.c197 struct vringh_iov riov, wiov; in parallel_test() local
219 vringh_iov_init(&riov, in parallel_test()
226 err = vringh_getdesc_user(&vrh, &riov, &wiov, in parallel_test()
254 if (riov.used) { in parallel_test()
255 rlen = vringh_iov_pull_user(&riov, rbuf, in parallel_test()
260 assert(riov.i == riov.used); in parallel_test()
445 struct vringh_iov riov, wiov; in main() local
497 err = vringh_getdesc_user(&vrh, &riov, &wiov, getrange, &head); in main()
518 vringh_iov_init(&riov, host_riov, ARRAY_SIZE(host_riov)); in main()
521 err = vringh_getdesc_user(&vrh, &riov, &wiov, getrange, &head); in main()
[all …]
/linux-5.19.10/drivers/net/caif/
Dcaif_virtio.c49 struct vringh_kiov riov; member
257 struct vringh_kiov *riov = &cfv->ctx.riov; in cfv_rx_poll() local
266 if (riov->i == riov->used) { in cfv_rx_poll()
276 riov, in cfv_rx_poll()
285 buf = phys_to_virt((unsigned long) riov->iov[riov->i].iov_base); in cfv_rx_poll()
289 riov->iov[riov->i].iov_len); in cfv_rx_poll()
306 ++riov->i; in cfv_rx_poll()
338 cfv->ndev->stats.rx_dropped = riov->used - riov->i; in cfv_rx_poll()
715 vringh_kiov_init(&cfv->ctx.riov, NULL, 0); in cfv_probe()
765 vringh_kiov_cleanup(&cfv->ctx.riov); in cfv_remove()
/linux-5.19.10/include/linux/
Dvringh.h143 struct vringh_iov *riov,
150 ssize_t vringh_iov_pull_user(struct vringh_iov *riov, void *dst, size_t len);
217 struct vringh_kiov *riov,
222 ssize_t vringh_iov_pull_kern(struct vringh_kiov *riov, void *dst, size_t len);
288 struct vringh_kiov *riov,
294 struct vringh_kiov *riov,
/linux-5.19.10/drivers/vhost/
Dvringh.c284 struct vringh_kiov *riov, in __vringh_iov() argument
306 if (WARN_ON(!riov && !wiov)) in __vringh_iov()
309 if (riov) in __vringh_iov()
310 riov->i = riov->used = riov->consumed = 0; in __vringh_iov()
366 iov = riov; in __vringh_iov()
694 struct vringh_iov *riov, in vringh_getdesc_user() argument
732 err = __vringh_iov(vrh, *head, (struct vringh_kiov *)riov, in vringh_getdesc_user()
750 ssize_t vringh_iov_pull_user(struct vringh_iov *riov, void *dst, size_t len) in vringh_iov_pull_user() argument
752 return vringh_iov_xfer(NULL, (struct vringh_kiov *)riov, in vringh_iov_pull_user()
967 struct vringh_kiov *riov, in vringh_getdesc_kern() argument
[all …]
/linux-5.19.10/tools/testing/selftests/vm/
Dmemfd_secret.c85 struct iovec liov, riov; in try_process_vm_read() local
94 liov.iov_len = riov.iov_len = sizeof(buf); in try_process_vm_read()
96 riov.iov_base = mem; in try_process_vm_read()
98 if (process_vm_readv(getppid(), &liov, 1, &riov, 1, 0) < 0) { in try_process_vm_read()
/linux-5.19.10/drivers/vdpa/mlx5/core/
Dmlx5_vdpa.h61 struct vringh_kiov riov; member
/linux-5.19.10/drivers/vdpa/mlx5/net/
Dmlx5_vnet.c1626 read = vringh_iov_pull_iotlb(&cvq->vring, &cvq->riov, (void *)mac, ETH_ALEN); in handle_ctrl_mac()
1764 read = vringh_iov_pull_iotlb(&cvq->vring, &cvq->riov, (void *)&mq, sizeof(mq)); in handle_ctrl_mq()
1800 read = vringh_iov_pull_iotlb(&cvq->vring, &cvq->riov, &vlan, sizeof(vlan)); in handle_ctrl_vlan()
1811 read = vringh_iov_pull_iotlb(&cvq->vring, &cvq->riov, &vlan, sizeof(vlan)); in handle_ctrl_vlan()
1854 err = vringh_getdesc_iotlb(&cvq->vring, &cvq->riov, &cvq->wiov, &cvq->head, in mlx5_cvq_kick_handler()
1859 read = vringh_iov_pull_iotlb(&cvq->vring, &cvq->riov, &ctrl, sizeof(ctrl)); in mlx5_cvq_kick_handler()
1883 vringh_kiov_cleanup(&cvq->riov); in mlx5_cvq_kick_handler()