Lines Matching refs:vqueue
29 static void virtsnd_event_send(struct virtqueue *vqueue, in virtsnd_event_send() argument
41 if (virtqueue_add_sgs(vqueue, psgs, 0, 1, event, gfp) || !notify) in virtsnd_event_send()
44 if (virtqueue_kick_prepare(vqueue)) in virtsnd_event_send()
45 virtqueue_notify(vqueue); in virtsnd_event_send()
82 static void virtsnd_event_notify_cb(struct virtqueue *vqueue) in virtsnd_event_notify_cb() argument
84 struct virtio_snd *snd = vqueue->vdev->priv; in virtsnd_event_notify_cb()
92 virtqueue_disable_cb(vqueue); in virtsnd_event_notify_cb()
93 while ((event = virtqueue_get_buf(vqueue, &length))) { in virtsnd_event_notify_cb()
95 virtsnd_event_send(vqueue, event, true, GFP_ATOMIC); in virtsnd_event_notify_cb()
97 } while (!virtqueue_enable_cb(vqueue)); in virtsnd_event_notify_cb()
135 snd->queues[i].vqueue = vqs[i]; in virtsnd_find_vqs()
164 if (!virtqueue_enable_cb(queue->vqueue)) in virtsnd_enable_event_vq()
165 virtsnd_event_notify_cb(queue->vqueue); in virtsnd_enable_event_vq()
181 if (queue->vqueue) { in virtsnd_disable_event_vq()
183 virtqueue_disable_cb(queue->vqueue); in virtsnd_disable_event_vq()
184 while ((event = virtqueue_get_buf(queue->vqueue, &length))) in virtsnd_disable_event_vq()