Lines Matching refs:vq
96 static void balloon_ack(struct virtqueue *vq) in balloon_ack() argument
98 struct virtio_balloon *vb = vq->vdev->priv; in balloon_ack()
103 static void tell_host(struct virtio_balloon *vb, struct virtqueue *vq) in tell_host() argument
111 if (virtqueue_add_outbuf(vq, &sg, 1, vb, GFP_KERNEL) < 0) in tell_host()
113 virtqueue_kick(vq); in tell_host()
116 wait_event(vb->acked, virtqueue_get_buf(vq, &len)); in tell_host()
238 static void stats_request(struct virtqueue *vq) in stats_request() argument
240 struct virtio_balloon *vb = vq->vdev->priv; in stats_request()
248 struct virtqueue *vq; in stats_handle_request() local
255 vq = vb->stats_vq; in stats_handle_request()
256 if (!virtqueue_get_buf(vq, &len)) in stats_handle_request()
259 if (virtqueue_add_outbuf(vq, &sg, 1, vb, GFP_KERNEL) < 0) in stats_handle_request()
261 virtqueue_kick(vq); in stats_handle_request()