Lines Matching refs:queue
85 struct virtio_snd_queue *queue = virtsnd_event_queue(snd); in virtsnd_event_notify_cb() local
90 spin_lock_irqsave(&queue->lock, flags); in virtsnd_event_notify_cb()
98 spin_unlock_irqrestore(&queue->lock, flags); in virtsnd_event_notify_cb()
162 struct virtio_snd_queue *queue = virtsnd_event_queue(snd); in virtsnd_enable_event_vq() local
164 if (!virtqueue_enable_cb(queue->vqueue)) in virtsnd_enable_event_vq()
165 virtsnd_event_notify_cb(queue->vqueue); in virtsnd_enable_event_vq()
176 struct virtio_snd_queue *queue = virtsnd_event_queue(snd); in virtsnd_disable_event_vq() local
181 if (queue->vqueue) { in virtsnd_disable_event_vq()
182 spin_lock_irqsave(&queue->lock, flags); 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()
186 spin_unlock_irqrestore(&queue->lock, flags); in virtsnd_disable_event_vq()