Lines Matching refs: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()
191 vring_init(&vrh.vring, RINGSIZE, host_map, ALIGN); in parallel_test()
193 vrh.vring.desc, vrh.vring.avail, vrh.vring.used); in parallel_test()
497 vring_init(&vrh.vring, RINGSIZE, __user_addr_min, ALIGN); in main()
499 vrh.vring.desc, vrh.vring.avail, vrh.vring.used); in main()
655 assert(vrh.vring.used->idx % RINGSIZE != 0); in main()
670 struct vring vring; in main() local
690 vring_init(&vring, RINGSIZE, __user_addr_min, ALIGN); in main()
693 assert(vring.desc[0].addr == (unsigned long)d); in main()
694 assert(vring.desc[1].addr == (unsigned long)(d+2)); in main()
695 assert(vring.desc[2].addr == (unsigned long)data + 6); in main()
696 assert(vring.desc[3].addr == (unsigned long)(d+3)); in main()
697 vring.desc[0].flags |= VRING_DESC_F_INDIRECT; in main()
698 vring.desc[1].flags |= VRING_DESC_F_INDIRECT; in main()
699 vring.desc[3].flags |= VRING_DESC_F_INDIRECT; in main()