riov 84 drivers/misc/mic/vop/vop_main.h struct vringh_kiov riov; riov 334 drivers/misc/mic/vop/vop_vringh.c vringh_kiov_init(&vvr->riov, NULL, 0); riov 441 drivers/misc/mic/vop/vop_vringh.c vringh_kiov_cleanup(&vvr->riov); riov 752 drivers/misc/mic/vop/vop_vringh.c struct vringh_kiov *riov = &vvr->riov; riov 761 drivers/misc/mic/vop/vop_vringh.c if (riov->i == riov->used && wiov->i == wiov->used) { riov 762 drivers/misc/mic/vop/vop_vringh.c ret = vringh_getdesc_kern(vrh, riov, wiov, riov 782 drivers/misc/mic/vop/vop_vringh.c ret = vop_vringh_copy(vdev, riov, ubuf, len, riov 809 drivers/misc/mic/vop/vop_vringh.c if (riov->i == riov->used && wiov->i == wiov->used) riov 820 drivers/misc/mic/vop/vop_vringh.c total += vop_vringh_iov_consumed(riov); riov 826 drivers/misc/mic/vop/vop_vringh.c vringh_kiov_cleanup(riov); riov 49 drivers/net/caif/caif_virtio.c struct vringh_kiov riov; riov 257 drivers/net/caif/caif_virtio.c struct vringh_kiov *riov = &cfv->ctx.riov; riov 266 drivers/net/caif/caif_virtio.c if (riov->i == riov->used) { riov 276 drivers/net/caif/caif_virtio.c riov, riov 285 drivers/net/caif/caif_virtio.c buf = phys_to_virt((unsigned long) riov->iov[riov->i].iov_base); riov 289 drivers/net/caif/caif_virtio.c riov->iov[riov->i].iov_len); riov 306 drivers/net/caif/caif_virtio.c ++riov->i; riov 338 drivers/net/caif/caif_virtio.c cfv->ndev->stats.rx_dropped = riov->used - riov->i; riov 715 drivers/net/caif/caif_virtio.c vringh_kiov_init(&cfv->ctx.riov, NULL, 0); riov 758 drivers/net/caif/caif_virtio.c vringh_kiov_cleanup(&cfv->ctx.riov); riov 257 drivers/vhost/vringh.c struct vringh_kiov *riov, riov 277 drivers/vhost/vringh.c if (riov) riov 278 drivers/vhost/vringh.c riov->i = riov->used = 0; riov 332 drivers/vhost/vringh.c iov = riov; riov 651 drivers/vhost/vringh.c struct vringh_iov *riov, riov 689 drivers/vhost/vringh.c err = __vringh_iov(vrh, *head, (struct vringh_kiov *)riov, riov 707 drivers/vhost/vringh.c ssize_t vringh_iov_pull_user(struct vringh_iov *riov, void *dst, size_t len) riov 709 drivers/vhost/vringh.c return vringh_iov_xfer((struct vringh_kiov *)riov, riov 917 drivers/vhost/vringh.c struct vringh_kiov *riov, riov 933 drivers/vhost/vringh.c err = __vringh_iov(vrh, *head, riov, wiov, no_range_check, NULL, riov 950 drivers/vhost/vringh.c ssize_t vringh_iov_pull_kern(struct vringh_kiov *riov, void *dst, size_t len) riov 952 drivers/vhost/vringh.c return vringh_iov_xfer(riov, dst, len, xfer_kern); riov 132 include/linux/vringh.h struct vringh_iov *riov, riov 139 include/linux/vringh.h ssize_t vringh_iov_pull_user(struct vringh_iov *riov, void *dst, size_t len); riov 193 include/linux/vringh.h struct vringh_kiov *riov, riov 198 include/linux/vringh.h ssize_t vringh_iov_pull_kern(struct vringh_kiov *riov, void *dst, size_t len); riov 197 tools/virtio/vringh_test.c struct vringh_iov riov, wiov; riov 219 tools/virtio/vringh_test.c vringh_iov_init(&riov, riov 226 tools/virtio/vringh_test.c err = vringh_getdesc_user(&vrh, &riov, &wiov, riov 254 tools/virtio/vringh_test.c if (riov.used) { riov 255 tools/virtio/vringh_test.c rlen = vringh_iov_pull_user(&riov, rbuf, riov 260 tools/virtio/vringh_test.c assert(riov.i == riov.used); riov 444 tools/virtio/vringh_test.c struct vringh_iov riov, wiov; riov 495 tools/virtio/vringh_test.c err = vringh_getdesc_user(&vrh, &riov, &wiov, getrange, &head); riov 516 tools/virtio/vringh_test.c vringh_iov_init(&riov, host_riov, ARRAY_SIZE(host_riov)); riov 519 tools/virtio/vringh_test.c err = vringh_getdesc_user(&vrh, &riov, &wiov, getrange, &head); riov 523 tools/virtio/vringh_test.c assert(riov.used == 1); riov 524 tools/virtio/vringh_test.c assert(riov.iov[0].iov_base == __user_addr_max - 1); riov 525 tools/virtio/vringh_test.c assert(riov.iov[0].iov_len == 1); riov 538 tools/virtio/vringh_test.c err = vringh_iov_pull_user(&riov, buf, 5); riov 542 tools/virtio/vringh_test.c assert(riov.i == 1); riov 543 tools/virtio/vringh_test.c assert(vringh_iov_pull_user(&riov, buf, 5) == 0); riov 585 tools/virtio/vringh_test.c vringh_iov_init(&riov, host_riov, ARRAY_SIZE(host_riov)); riov 588 tools/virtio/vringh_test.c err = vringh_getdesc_user(&vrh, &riov, &wiov, getrange, &head); riov 592 tools/virtio/vringh_test.c assert(riov.max_num & VRINGH_IOV_ALLOCATED); riov 593 tools/virtio/vringh_test.c assert(riov.iov != host_riov); riov 595 tools/virtio/vringh_test.c assert(riov.used == RINGSIZE); riov 597 tools/virtio/vringh_test.c assert(riov.used == RINGSIZE * USER_MEM/4); riov 604 tools/virtio/vringh_test.c err = vringh_iov_pull_user(&riov, buf, 3); riov 611 tools/virtio/vringh_test.c assert(riov.i == riov.used); riov 612 tools/virtio/vringh_test.c vringh_iov_cleanup(&riov); riov 637 tools/virtio/vringh_test.c vringh_iov_init(&riov, host_riov, ARRAY_SIZE(host_riov)); riov 641 tools/virtio/vringh_test.c err = vringh_getdesc_user(&vrh, &riov, &wiov, getrange, &head); riov 722 tools/virtio/vringh_test.c vringh_iov_init(&riov, host_riov, ARRAY_SIZE(host_riov)); riov 725 tools/virtio/vringh_test.c err = vringh_getdesc_user(&vrh, &riov, &wiov, getrange, &head); riov 732 tools/virtio/vringh_test.c assert(riov.max_num & VRINGH_IOV_ALLOCATED); riov 734 tools/virtio/vringh_test.c assert(riov.used == 7); riov 736 tools/virtio/vringh_test.c assert(riov.used == 28); riov 737 tools/virtio/vringh_test.c err = vringh_iov_pull_user(&riov, buf, 29); riov 743 tools/virtio/vringh_test.c vringh_iov_cleanup(&riov);