Lines Matching refs:wiov
197 struct vringh_iov riov, wiov; in parallel_test() local
222 vringh_iov_init(&wiov, in parallel_test()
226 err = vringh_getdesc_user(&vrh, &riov, &wiov, in parallel_test()
263 err = vringh_iov_push_user(&wiov, rbuf, rlen); in parallel_test()
267 assert(wiov.i == wiov.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()
519 vringh_iov_init(&wiov, host_wiov, ARRAY_SIZE(host_wiov)); in main()
521 err = vringh_getdesc_user(&vrh, &riov, &wiov, getrange, &head); in main()
529 assert(wiov.used == 1); in main()
530 assert(wiov.iov[0].iov_base == __user_addr_max - 3); in main()
531 assert(wiov.iov[0].iov_len == 2); in main()
533 assert(wiov.used == 2); in main()
534 assert(wiov.iov[0].iov_base == __user_addr_max - 3); in main()
535 assert(wiov.iov[0].iov_len == 1); in main()
536 assert(wiov.iov[1].iov_base == __user_addr_max - 2); in main()
537 assert(wiov.iov[1].iov_len == 1); in main()
548 err = vringh_iov_push_user(&wiov, buf, 5); in main()
552 assert(wiov.i == wiov.used); in main()
553 assert(vringh_iov_push_user(&wiov, buf, 5) == 0); in main()
588 vringh_iov_init(&wiov, host_wiov, ARRAY_SIZE(host_wiov)); in main()
590 err = vringh_getdesc_user(&vrh, &riov, &wiov, getrange, &head); in main()
601 assert(!(wiov.max_num & VRINGH_IOV_ALLOCATED)); in main()
602 assert(wiov.used == 0); in main()
615 vringh_iov_cleanup(&wiov); in main()
640 vringh_iov_init(&wiov, host_wiov, ARRAY_SIZE(host_wiov)); in main()
643 err = vringh_getdesc_user(&vrh, &riov, &wiov, getrange, &head); in main()
725 vringh_iov_init(&wiov, host_wiov, ARRAY_SIZE(host_wiov)); in main()
727 err = vringh_getdesc_user(&vrh, &riov, &wiov, getrange, &head); in main()