Lines Matching defs:vq
59 void virtio_gpu_ctrl_ack(struct virtqueue *vq)
61 struct drm_device *dev = vq->vdev->priv;
67 void virtio_gpu_cursor_ack(struct virtqueue *vq)
69 struct drm_device *dev = vq->vdev->priv;
178 static void reclaim_vbufs(struct virtqueue *vq, struct list_head *reclaim_list)
184 while ((vbuf = virtqueue_get_buf(vq, &len))) {
205 virtqueue_disable_cb(vgdev->ctrlq.vq);
206 reclaim_vbufs(vgdev->ctrlq.vq, &reclaim_list);
208 } while (!virtqueue_enable_cb(vgdev->ctrlq.vq));
214 trace_virtio_gpu_cmd_response(vgdev->ctrlq.vq, resp);
263 virtqueue_disable_cb(vgdev->cursorq.vq);
264 reclaim_vbufs(vgdev->cursorq.vq, &reclaim_list);
265 } while (!virtqueue_enable_cb(vgdev->cursorq.vq));
321 struct virtqueue *vq = vgdev->ctrlq.vq;
346 ret = virtqueue_add_sgs(vq, sgs, outcnt, incnt, vbuf, GFP_ATOMIC);
349 wait_event(vgdev->ctrlq.ack_queue, vq->num_free >= outcnt + incnt);
353 trace_virtio_gpu_cmd_queue(vq,
356 notify = virtqueue_kick_prepare(vq);
366 struct virtqueue *vq = vgdev->ctrlq.vq;
397 if (vq->num_free < 2 + outcnt) {
399 wait_event(vgdev->ctrlq.ack_queue, vq->num_free >= 3);
416 virtqueue_notify(vgdev->ctrlq.vq);
437 virtqueue_notify(vgdev->ctrlq.vq);
449 struct virtqueue *vq = vgdev->cursorq.vq;
464 ret = virtqueue_add_sgs(vq, sgs, outcnt, 0, vbuf, GFP_ATOMIC);
467 wait_event(vgdev->cursorq.ack_queue, vq->num_free >= outcnt);
471 trace_virtio_gpu_cmd_queue(vq,
474 notify = virtqueue_kick_prepare(vq);
480 virtqueue_notify(vq);