Home
last modified time | relevance | path

Searched refs:tail (Results 1 – 12 of 12) 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; \
189 midi_in_buf[dev]->len = midi_in_buf[dev]->head = midi_in_buf[dev]->tail = 0; in MIDIbuf_open()
201 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_prioq.c69 f->tail = NULL; in snd_seq_prioq_new()
167 if (f->tail && !prior) { in snd_seq_prioq_cell_in()
168 if (compare_timestamp(&cell->event, &f->tail->event)) { in snd_seq_prioq_cell_in()
170 f->tail->next = cell; in snd_seq_prioq_cell_in()
171 f->tail = cell; in snd_seq_prioq_cell_in()
213 f->tail = cell; in snd_seq_prioq_cell_in()
236 if (f->tail == cell) in snd_seq_prioq_cell_out()
237 f->tail = NULL; in snd_seq_prioq_cell_out()
311 if (cell == f->tail) in snd_seq_prioq_leave()
312 f->tail = cell->next; in snd_seq_prioq_leave()
[all …]
Dseq_fifo.c58 f->tail = NULL; in snd_seq_fifo_new()
135 if (f->tail != NULL) in snd_seq_fifo_event_in()
136 f->tail->next = cell; in snd_seq_fifo_event_in()
137 f->tail = cell; in snd_seq_fifo_event_in()
162 if (f->tail == cell) in fifo_cell_out()
163 f->tail = NULL; in fifo_cell_out()
259 f->tail = NULL; in snd_seq_fifo_resize()
Dseq_memory.c320 struct snd_seq_event_cell *src, *tmp, *tail; in snd_seq_event_dup() local
328 tail = NULL; in snd_seq_event_dup()
339 if (tail) in snd_seq_event_dup()
340 tail->next = tmp; in snd_seq_event_dup()
341 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/core/seq/oss/
Dseq_oss_readq.c63 q->head = q->tail = 0; in snd_seq_oss_readq_new()
92 q->head = q->tail = 0; in snd_seq_oss_readq_clear()
137 memcpy(&q->q[q->tail], ev, sizeof(*ev)); in snd_seq_oss_readq_put_event()
138 q->tail = (q->tail + 1) % q->maxlen; in snd_seq_oss_readq_put_event()
171 (q->qlen > 0 || q->head == q->tail), in snd_seq_oss_readq_wait()
Dseq_oss_readq.h35 int head, tail; 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()
/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()