Home
last modified time | relevance | path

Searched refs:qlen (Results 1 – 9 of 9) sorted by relevance

/sound/oss/
Dpas2_midi.c30 static volatile int qlen; variable
89 qlen = qhead = qtail = 0; in pas_midi_open()
138 while (qlen && dump_to_midi(tmp_queue[qhead])) in pas_midi_out()
140 qlen--; in pas_midi_out()
150 if (!qlen) in pas_midi_out()
158 if (qlen >= 256) in pas_midi_out()
164 qlen++; in pas_midi_out()
188 return qlen; in pas_buffer_status()
249 while (qlen && dump_to_midi(tmp_queue[qhead])) in pas_midi_interrupt()
251 qlen--; in pas_midi_interrupt()
Ddmabuf.c172 dmap->qlen = dmap->qhead = dmap->qtail = dmap->user_counter = 0; in dma_init_buffers()
352 if (!signal_pending(current) && adev->dmap_out->qlen && in dma_reset_output()
376 dmap->qlen = dmap->qhead = dmap->qtail = dmap->user_counter = 0; in dma_reset_output()
393 dmap->qlen = dmap->qhead = dmap->qtail = dmap->user_counter = 0; in dma_reset_input()
440 if (dmap->qlen > 0 && !(dmap->flags & DMA_ACTIVE)) in DMAbuf_sync()
445 adev->dmap_out->qlen && adev->dmap_out->underrun_count == 0) { in DMAbuf_sync()
454 return adev->dmap_out->qlen; in DMAbuf_sync()
477 return adev->dmap_out->qlen; in DMAbuf_sync()
570 } else while (dmap->qlen <= 0 && n++ < 10) { in DMAbuf_getrdbuffer()
602 if (dmap->qlen <= 0) in DMAbuf_getrdbuffer()
[all …]
Dsequencer.c68 static volatile int qhead, qtail, qlen; variable
334 if (qlen >= SEQ_MAX_QUEUE) in seq_queue()
340 if (!nonblock && qlen >= SEQ_MAX_QUEUE && !waitqueue_active(&seq_sleeper)) { in seq_queue()
346 if (qlen >= SEQ_MAX_QUEUE) in seq_queue()
355 qlen++; in seq_queue()
637 if ((SEQ_MAX_QUEUE - qlen) >= output_threshold) in seq_timing_event()
662 if ((SEQ_MAX_QUEUE - qlen) >= output_threshold) in seq_timing_event()
774 if ((SEQ_MAX_QUEUE - qlen) >= output_threshold) in play_event()
874 while (qlen > 0) in seq_startplay()
879 qlen--; in seq_startplay()
[all …]
Daudio.c164 for (i = dmap->qlen + 1; i < dmap->nbufs; i++) in sync_output()
783 info.fragments = dmap->qlen; in dma_ioctl()
810 if (cmd == SNDCTL_DSP_GETISPACE && dmap->qlen) in dma_ioctl()
855 (dmap_out->mapping_flags & DMA_MAP_MAPPED || dmap_out->qlen > 0) && in dma_ioctl()
893 cinfo.blocks = dmap_in->qlen; in dma_ioctl()
896 dmap_in->qlen = 0; /* Reset interrupt counter */ in dma_ioctl()
911 cinfo.blocks = dmap_out->qlen; in dma_ioctl()
914 dmap_out->qlen = 0; /* Reset interrupt counter */ in dma_ioctl()
943 if (audio_devs[dev]->dmap_out->qlen > 0) in dma_ioctl()
Ddev_table.h111 int qlen; member
/sound/core/seq/oss/
Dseq_oss_readq.c62 q->qlen = 0; in snd_seq_oss_readq_new()
90 if (q->qlen) { in snd_seq_oss_readq_clear()
91 q->qlen = 0; in snd_seq_oss_readq_clear()
161 if (q->qlen >= q->maxlen - 1) { in snd_seq_oss_readq_put_event()
168 q->qlen++; in snd_seq_oss_readq_put_event()
187 if (q->qlen == 0) in snd_seq_oss_readq_pick()
200 (q->qlen > 0 || q->head == q->tail), in snd_seq_oss_readq_wait()
211 if (q->qlen > 0) { in snd_seq_oss_readq_free()
213 q->qlen--; in snd_seq_oss_readq_free()
225 return q->qlen; in snd_seq_oss_readq_poll()
[all …]
Dseq_oss_readq.h33 int qlen; member
Dseq_oss_ioctl.c117 return put_user(dp->readq->qlen, p) ? -EFAULT : 0; in snd_seq_oss_ioctl()
/sound/core/seq/
Dseq_midi_event.c63 int qlen; member
152 dev->qlen = 0; in reset_encode()
268 dev->qlen = status_event[dev->type].qlen; in snd_midi_event_encode_byte()
270 if (dev->qlen > 0) { in snd_midi_event_encode_byte()
274 dev->qlen--; in snd_midi_event_encode_byte()
278 dev->qlen = status_event[dev->type].qlen - 1; in snd_midi_event_encode_byte()
282 if (dev->qlen == 0) { in snd_midi_event_encode_byte()
387 int qlen; in snd_midi_event_decode() local
398 qlen = status_event[type].qlen + 1; in snd_midi_event_decode()
403 qlen = status_event[type].qlen; in snd_midi_event_decode()
[all …]