Lines Matching refs:vqs
38 struct vhost_virtqueue vqs[VHOST_TEST_VQ_MAX]; member
45 struct vhost_virtqueue *vq = &n->vqs[VHOST_TEST_VQ]; in handle_vq()
109 struct vhost_virtqueue **vqs; in vhost_test_open() local
113 vqs = kmalloc_array(VHOST_TEST_VQ_MAX, sizeof(*vqs), GFP_KERNEL); in vhost_test_open()
114 if (!vqs) { in vhost_test_open()
120 vqs[VHOST_TEST_VQ] = &n->vqs[VHOST_TEST_VQ]; in vhost_test_open()
121 n->vqs[VHOST_TEST_VQ].handle_kick = handle_vq_kick; in vhost_test_open()
122 vhost_dev_init(dev, vqs, VHOST_TEST_VQ_MAX, UIO_MAXIOV, in vhost_test_open()
144 *privatep = vhost_test_stop_vq(n, n->vqs + VHOST_TEST_VQ); in vhost_test_stop()
149 vhost_poll_flush(&n->vqs[index].poll); in vhost_test_flush_vq()
189 if (!vhost_vq_access_ok(&n->vqs[index])) { in vhost_test_run()
196 vq = n->vqs + index; in vhost_test_run()
204 r = vhost_vq_init_access(&n->vqs[index]); in vhost_test_run()
258 vq = &n->vqs[VHOST_TEST_VQ]; in vhost_test_set_features()
283 vq = &n->vqs[index]; in vhost_test_set_backend()