Home
last modified time | relevance | path

Searched refs:tail (Results 1 – 13 of 13) sorted by relevance

/sound/oss/
Dmsnd.c104 f->tail = 0; in msnd_fifo_alloc()
116 f->len = f->tail = f->head = 0; in msnd_fifo_make_empty()
127 if (f->head <= f->tail) { in msnd_fifo_write_io()
129 if (nwritten > f->n - f->tail) in msnd_fifo_write_io()
130 nwritten = f->n - f->tail; in msnd_fifo_write_io()
133 nwritten = f->head - f->tail; in msnd_fifo_write_io()
138 memcpy_fromio(f->data + f->tail, buf, nwritten); in msnd_fifo_write_io()
143 f->tail += nwritten; in msnd_fifo_write_io()
144 f->tail %= f->n; in msnd_fifo_write_io()
158 if (f->head <= f->tail) { in msnd_fifo_write()
[all …]
Dmidibuf.c35 int len, head, tail; member
66 q->queue[q->tail] = (data); \
67 q->len++; q->tail = (q->tail+1) % MAX_QUEUE_SIZE; \
188 midi_in_buf[dev]->len = midi_in_buf[dev]->head = midi_in_buf[dev]->tail = 0; in MIDIbuf_open()
200 midi_out_buf[dev]->len = midi_out_buf[dev]->head = midi_out_buf[dev]->tail = 0; in MIDIbuf_open()
Dmsnd.h190 int head, tail; member
/sound/core/seq/
Dseq_fifo.c56 f->tail = NULL; in snd_seq_fifo_new()
136 if (f->tail != NULL) in snd_seq_fifo_event_in()
137 f->tail->next = cell; in snd_seq_fifo_event_in()
138 f->tail = cell; in snd_seq_fifo_event_in()
164 if (f->tail == cell) in fifo_cell_out()
165 f->tail = NULL; in fifo_cell_out()
221 if (!f->tail) in snd_seq_fifo_cell_putback()
222 f->tail = cell; in snd_seq_fifo_cell_putback()
263 f->tail = NULL; in snd_seq_fifo_resize()
Dseq_prioq.c67 f->tail = NULL; in snd_seq_prioq_new()
165 if (f->tail && !prior) { in snd_seq_prioq_cell_in()
166 if (compare_timestamp(&cell->event, &f->tail->event)) { in snd_seq_prioq_cell_in()
168 f->tail->next = cell; in snd_seq_prioq_cell_in()
169 f->tail = cell; in snd_seq_prioq_cell_in()
211 f->tail = cell; in snd_seq_prioq_cell_in()
246 if (f->tail == cell) in snd_seq_prioq_cell_out()
247 f->tail = NULL; in snd_seq_prioq_cell_out()
309 if (cell == f->tail) in snd_seq_prioq_leave()
310 f->tail = cell->next; in snd_seq_prioq_leave()
[all …]
Dseq_memory.c325 struct snd_seq_event_cell *src, *tmp, *tail; in snd_seq_event_dup() local
333 tail = NULL; in snd_seq_event_dup()
345 if (tail) in snd_seq_event_dup()
346 tail->next = tmp; in snd_seq_event_dup()
347 tail = tmp; in snd_seq_event_dup()
Dseq_prioq.h31 struct snd_seq_event_cell *tail; /* pointer to tail of prioq */ member
Dseq_fifo.h33 struct snd_seq_event_cell *tail; /* pointer to tail of fifo */ member
/sound/isa/msnd/
Dmsnd_midi.c87 u16 tail; in snd_msndmidi_input_drop() local
89 tail = readw(mpu->dev->MIDQ + JQS_wTail); in snd_msndmidi_input_drop()
90 writew(tail, mpu->dev->MIDQ + JQS_wHead); in snd_msndmidi_input_drop()
123 u16 head, tail, size; in snd_msndmidi_input_read() local
127 tail = readw(mpu->dev->MIDQ + JQS_wTail); in snd_msndmidi_input_read()
129 if (head > size || tail > size) in snd_msndmidi_input_read()
131 while (head != tail) { in snd_msndmidi_input_read()
Dmsnd_pinnacle.c173 u16 head, tail, size; in snd_msnd_interrupt() local
180 tail = readw(chip->DSPQ + JQS_wTail); in snd_msnd_interrupt()
182 if (head > size || tail > size) in snd_msnd_interrupt()
184 while (head != tail) { in snd_msnd_interrupt()
/sound/core/seq/oss/
Dseq_oss_readq.c62 q->head = q->tail = 0; in snd_seq_oss_readq_new()
91 q->head = q->tail = 0; in snd_seq_oss_readq_clear()
164 memcpy(&q->q[q->tail], ev, sizeof(*ev)); in snd_seq_oss_readq_put_event()
165 q->tail = (q->tail + 1) % q->maxlen; in snd_seq_oss_readq_put_event()
197 (q->qlen > 0 || q->head == q->tail), in snd_seq_oss_readq_wait()
Dseq_oss_readq.h35 int head, tail; member
/sound/pci/
Dsis7019.c760 u16 tail = vperiod % period_size; in sis_prepare_timing_voice() local
763 if (tail && tail < quarter_period) { in sis_prepare_timing_voice()
766 tail = quarter_period - tail; in sis_prepare_timing_voice()
767 tail += loops - 1; in sis_prepare_timing_voice()
768 tail /= loops; in sis_prepare_timing_voice()
769 period_size -= tail; in sis_prepare_timing_voice()