Home
last modified time | relevance | path

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

/openbmc/linux/tools/virtio/
H A Dvringh_test.c219 vringh_iov_init(&riov, in parallel_test()
254 if (riov.used) { in parallel_test()
260 assert(riov.i == riov.used); in parallel_test()
446 struct vringh_iov riov, wiov; in main() local
527 assert(riov.used == 1); in main()
546 assert(riov.i == 1); in main()
615 assert(riov.i == riov.used); in main()
616 vringh_iov_cleanup(&riov); in main()
738 assert(riov.used == 7); in main()
740 assert(riov.used == 28); in main()
[all …]
/openbmc/linux/drivers/net/caif/
H A 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()
/openbmc/linux/include/linux/
H A Dvringh.h159 struct vringh_iov *riov,
166 ssize_t vringh_iov_pull_user(struct vringh_iov *riov, void *dst, size_t len);
233 struct vringh_kiov *riov,
238 ssize_t vringh_iov_pull_kern(struct vringh_kiov *riov, void *dst, size_t len);
310 struct vringh_kiov *riov,
316 struct vringh_kiov *riov,
/openbmc/linux/drivers/vhost/
H A Dvringh.c294 struct vringh_kiov *riov, in __vringh_iov() argument
316 if (WARN_ON(!riov && !wiov)) in __vringh_iov()
319 if (riov) in __vringh_iov()
320 riov->i = riov->used = riov->consumed = 0; in __vringh_iov()
376 iov = riov; in __vringh_iov()
704 struct vringh_iov *riov, in vringh_getdesc_user() argument
762 return vringh_iov_xfer(NULL, (struct vringh_kiov *)riov, in vringh_iov_pull_user()
977 struct vringh_kiov *riov, in vringh_getdesc_kern() argument
1012 return vringh_iov_xfer(NULL, riov, dst, len, xfer_kern); in vringh_iov_pull_kern()
1481 struct vringh_kiov *riov, in vringh_getdesc_iotlb() argument
[all …]
/openbmc/linux/tools/testing/selftests/mm/
H A Dmemfd_secret.c88 struct iovec liov, riov; in try_process_vm_read() local
97 liov.iov_len = riov.iov_len = sizeof(buf); in try_process_vm_read()
99 riov.iov_base = mem; in try_process_vm_read()
101 if (process_vm_readv(getppid(), &liov, 1, &riov, 1, 0) < 0) { in try_process_vm_read()
/openbmc/linux/drivers/vdpa/mlx5/core/
H A Dmlx5_vdpa.h62 struct vringh_kiov riov; member
/openbmc/linux/drivers/vdpa/mlx5/net/
H A Dmlx5_vnet.c1808 read = vringh_iov_pull_iotlb(&cvq->vring, &cvq->riov, (void *)mac, ETH_ALEN); in handle_ctrl_mac()
1946 read = vringh_iov_pull_iotlb(&cvq->vring, &cvq->riov, (void *)&mq, sizeof(mq)); in handle_ctrl_mq()
1985 read = vringh_iov_pull_iotlb(&cvq->vring, &cvq->riov, &vlan, sizeof(vlan)); in handle_ctrl_vlan()
1996 read = vringh_iov_pull_iotlb(&cvq->vring, &cvq->riov, &vlan, sizeof(vlan)); in handle_ctrl_vlan()
2039 err = vringh_getdesc_iotlb(&cvq->vring, &cvq->riov, &cvq->wiov, &cvq->head, in mlx5_cvq_kick_handler()
2044 read = vringh_iov_pull_iotlb(&cvq->vring, &cvq->riov, &ctrl, sizeof(ctrl)); in mlx5_cvq_kick_handler()
2068 vringh_kiov_cleanup(&cvq->riov); in mlx5_cvq_kick_handler()