Home
last modified time | relevance | path

Searched refs:qhead (Results 1 – 6 of 6) sorted by relevance

/sound/oss/
Dpas2_midi.c31 static volatile unsigned char qhead, qtail; variable
89 qlen = qhead = qtail = 0; in pas_midi_open()
138 while (qlen && dump_to_midi(tmp_queue[qhead])) in pas_midi_out()
141 qhead++; in pas_midi_out()
249 while (qlen && dump_to_midi(tmp_queue[qhead])) in pas_midi_interrupt()
252 qhead++; in pas_midi_interrupt()
Ddmabuf.c172 dmap->qlen = dmap->qhead = dmap->qtail = dmap->user_counter = 0; in dma_init_buffers()
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()
416 if (dmap->counts[dmap->qhead] == 0) in DMAbuf_launch_output()
417 dmap->counts[dmap->qhead] = dmap->fragment_size; in DMAbuf_launch_output()
419 adev->d->output_block(dev, dmap->raw_buf_phys + dmap->qhead * dmap->fragment_size, in DMAbuf_launch_output()
420 dmap->counts[dmap->qhead], 1); in DMAbuf_launch_output()
604 *buf = &dmap->raw_buf[dmap->qhead * dmap->fragment_size + dmap->counts[dmap->qhead]]; in DMAbuf_getrdbuffer()
605 *len = dmap->fragment_size - dmap->counts[dmap->qhead]; in DMAbuf_getrdbuffer()
607 return dmap->qhead; in DMAbuf_getrdbuffer()
[all …]
Daudio.c513 if (count < dmap->fragment_size && dmap->qhead != 0) in audio_ioctl()
811 info.bytes -= dmap->counts[dmap->qhead]; in dma_ioctl()
862 dmap_out->counts[dmap_out->qhead] = dmap_out->fragment_size; in dma_ioctl()
909 if (cinfo.ptr < dmap_out->fragment_size && dmap_out->qhead != 0) in dma_ioctl()
931 if (count < dmap_out->fragment_size && dmap_out->qhead != 0) in dma_ioctl()
Dsequencer.c68 static volatile int qhead, qtail, qlen; variable
878 qhead = ((this_one = qhead) + 1) % SEQ_MAX_QUEUE; in seq_startplay()
889 qhead = this_one; in seq_startplay()
1236 qlen = qhead = qtail = 0; in seq_reset()
Ddev_table.h112 int qhead; member
/sound/core/
Dtimer.c67 int qhead; member
1619 tu->qhead = tu->qtail = tu->qused = 0; in snd_timer_user_tselect()
1769 tu->qhead = tu->qtail = tu->qused = 0; in snd_timer_user_params()
1955 int qhead; in snd_timer_user_read() local
1993 qhead = tu->qhead++; in snd_timer_user_read()
1994 tu->qhead %= tu->queue_size; in snd_timer_user_read()
1999 if (copy_to_user(buffer, &tu->tqueue[qhead], in snd_timer_user_read()
2003 if (copy_to_user(buffer, &tu->queue[qhead], in snd_timer_user_read()