Lines Matching full:vring
116 err = get_user(avail_idx, &vrh->vring.avail->idx); in vringh_get_head()
126 i = vrh->last_avail_idx & (vrh->vring.num - 1); in vringh_get_head()
128 err = get_user(*head, &vrh->vring.avail->ring[i]); in vringh_get_head()
188 vring_init(&vrh.vring, RINGSIZE, host_map, ALIGN); in parallel_test()
190 vrh.vring.desc, vrh.vring.avail, vrh.vring.used); in parallel_test()
492 vring_init(&vrh.vring, RINGSIZE, __user_addr_min, ALIGN); in main()
494 vrh.vring.desc, vrh.vring.avail, vrh.vring.used); in main()
650 assert(vrh.vring.used->idx % RINGSIZE != 0); in main()
665 struct vring vring; in main() local
685 vring_init(&vring, RINGSIZE, __user_addr_min, ALIGN); in main()
688 assert(vring.desc[0].addr == (unsigned long)d); in main()
689 assert(vring.desc[1].addr == (unsigned long)(d+2)); in main()
690 assert(vring.desc[2].addr == (unsigned long)data + 6); in main()
691 assert(vring.desc[3].addr == (unsigned long)(d+3)); in main()
692 vring.desc[0].flags |= VRING_DESC_F_INDIRECT; in main()
693 vring.desc[1].flags |= VRING_DESC_F_INDIRECT; in main()
694 vring.desc[3].flags |= VRING_DESC_F_INDIRECT; in main()