• Home
  • Raw
  • Download

Lines Matching refs:vq

40 	struct vhost_virtqueue *vq = &n->vqs[VHOST_TEST_VQ];  in handle_vq()  local
46 mutex_lock(&vq->mutex); in handle_vq()
47 private = vq->private_data; in handle_vq()
49 mutex_unlock(&vq->mutex); in handle_vq()
53 vhost_disable_notify(&n->dev, vq); in handle_vq()
56 head = vhost_get_vq_desc(vq, vq->iov, in handle_vq()
57 ARRAY_SIZE(vq->iov), in handle_vq()
64 if (head == vq->num) { in handle_vq()
65 if (unlikely(vhost_enable_notify(&n->dev, vq))) { in handle_vq()
66 vhost_disable_notify(&n->dev, vq); in handle_vq()
72 vq_err(vq, "Unexpected descriptor format for TX: " in handle_vq()
76 len = iov_length(vq->iov, out); in handle_vq()
79 vq_err(vq, "Unexpected 0 len for TX\n"); in handle_vq()
82 vhost_add_used_and_signal(&n->dev, vq, head, 0); in handle_vq()
85 vhost_poll_queue(&vq->poll); in handle_vq()
90 mutex_unlock(&vq->mutex); in handle_vq()
95 struct vhost_virtqueue *vq = container_of(work, struct vhost_virtqueue, in handle_vq_kick() local
97 struct vhost_test *n = container_of(vq->dev, struct vhost_test, dev); in handle_vq_kick()
127 struct vhost_virtqueue *vq) in vhost_test_stop_vq() argument
131 mutex_lock(&vq->mutex); in vhost_test_stop_vq()
132 private = vq->private_data; in vhost_test_stop_vq()
133 vq->private_data = NULL; in vhost_test_stop_vq()
134 mutex_unlock(&vq->mutex); in vhost_test_stop_vq()
171 struct vhost_virtqueue *vq; in vhost_test_run() local
191 vq = n->vqs + index; in vhost_test_run()
192 mutex_lock(&vq->mutex); in vhost_test_run()
196 oldpriv = vq->private_data; in vhost_test_run()
197 vq->private_data = priv; in vhost_test_run()
201 mutex_unlock(&vq->mutex); in vhost_test_run()
244 struct vhost_virtqueue *vq; in vhost_test_set_features() local
252 vq = &n->vqs[VHOST_TEST_VQ]; in vhost_test_set_features()
253 mutex_lock(&vq->mutex); in vhost_test_set_features()
254 vq->acked_features = features; in vhost_test_set_features()
255 mutex_unlock(&vq->mutex); in vhost_test_set_features()