Lines Matching refs:event
30 struct virtio_snd_event *event, bool notify, in virtsnd_event_send() argument
37 memset(event, 0, sizeof(*event)); in virtsnd_event_send()
39 sg_init_one(&sg, event, sizeof(*event)); in virtsnd_event_send()
41 if (virtqueue_add_sgs(vqueue, psgs, 0, 1, event, gfp) || !notify) in virtsnd_event_send()
56 struct virtio_snd_event *event) in virtsnd_event_dispatch() argument
58 switch (le32_to_cpu(event->hdr.code)) { in virtsnd_event_dispatch()
61 virtsnd_jack_event(snd, event); in virtsnd_event_dispatch()
65 virtsnd_pcm_event(snd, event); in virtsnd_event_dispatch()
83 struct virtio_snd_event *event; in virtsnd_event_notify_cb() local
90 while ((event = virtqueue_get_buf(vqueue, &length))) { in virtsnd_event_notify_cb()
91 virtsnd_event_dispatch(snd, event); in virtsnd_event_notify_cb()
92 virtsnd_event_send(vqueue, event, true, GFP_ATOMIC); in virtsnd_event_notify_cb()
179 struct virtio_snd_event *event; in virtsnd_disable_event_vq() local
186 while ((event = virtqueue_get_buf(queue->vqueue, &length))) in virtsnd_disable_event_vq()
187 virtsnd_event_dispatch(snd, event); in virtsnd_disable_event_vq()