Lines Matching refs:riov
197 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()
446 struct vringh_iov riov, wiov; in main() local
499 err = vringh_getdesc_user(&vrh, &riov, &wiov, getrange, &head); in main()
520 vringh_iov_init(&riov, host_riov, ARRAY_SIZE(host_riov)); in main()
523 err = vringh_getdesc_user(&vrh, &riov, &wiov, getrange, &head); in main()
527 assert(riov.used == 1); in main()
528 assert(riov.iov[0].iov_base == __user_addr_max - 1); in main()
529 assert(riov.iov[0].iov_len == 1); in main()
542 err = vringh_iov_pull_user(&riov, buf, 5); in main()
546 assert(riov.i == 1); in main()
547 assert(vringh_iov_pull_user(&riov, buf, 5) == 0); in main()
589 vringh_iov_init(&riov, host_riov, ARRAY_SIZE(host_riov)); in main()
592 err = vringh_getdesc_user(&vrh, &riov, &wiov, getrange, &head); in main()
596 assert(riov.max_num & VRINGH_IOV_ALLOCATED); in main()
597 assert(riov.iov != host_riov); in main()
599 assert(riov.used == RINGSIZE); in main()
601 assert(riov.used == RINGSIZE * USER_MEM/4); in main()
608 err = vringh_iov_pull_user(&riov, buf, 3); in main()
615 assert(riov.i == riov.used); in main()
616 vringh_iov_cleanup(&riov); in main()
641 vringh_iov_init(&riov, host_riov, ARRAY_SIZE(host_riov)); in main()
645 err = vringh_getdesc_user(&vrh, &riov, &wiov, getrange, &head); in main()
726 vringh_iov_init(&riov, host_riov, ARRAY_SIZE(host_riov)); in main()
729 err = vringh_getdesc_user(&vrh, &riov, &wiov, getrange, &head); in main()
736 assert(riov.max_num & VRINGH_IOV_ALLOCATED); in main()
738 assert(riov.used == 7); in main()
740 assert(riov.used == 28); in main()
741 err = vringh_iov_pull_user(&riov, buf, 29); in main()
747 vringh_iov_cleanup(&riov); in main()