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()
161 kfree(n->dev.vqs); in vhost_test_release()
182 if (!vhost_vq_access_ok(&n->vqs[index])) { in vhost_test_run()
189 vq = n->vqs + index; in vhost_test_run()
197 r = vhost_vq_init_access(&n->vqs[index]); in vhost_test_run()
251 vq = &n->vqs[VHOST_TEST_VQ]; in vhost_test_set_features()
276 vq = &n->vqs[index]; in vhost_test_set_backend()