Home
last modified time | relevance | path

Searched refs:head (Results 1 – 25 of 29) sorted by relevance

12

/sound/pci/ctxfi/
Dctimap.c25 struct list_head *pos, *pre, *head; in input_mapper_add() local
28 head = mappers; in input_mapper_add()
30 if (list_empty(head)) { in input_mapper_add()
33 list_add(&entry->list, head); in input_mapper_add()
37 list_for_each(pos, head) { in input_mapper_add()
45 if (pos != head) { in input_mapper_add()
47 if (pre == head) in input_mapper_add()
48 pre = head->prev; in input_mapper_add()
52 pre = head->prev; in input_mapper_add()
53 pos = head->next; in input_mapper_add()
[all …]
/sound/oss/
Dmsnd.c105 f->head = 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()
133 nwritten = f->head - f->tail; in msnd_fifo_write_io()
158 if (f->head <= f->tail) { in msnd_fifo_write()
164 nwritten = f->head - f->tail; in msnd_fifo_write()
189 if (f->tail <= f->head) { in msnd_fifo_read_io()
191 if (nread > f->n - f->head) in msnd_fifo_read_io()
192 nread = f->n - f->head; in msnd_fifo_read_io()
195 nread = f->tail - f->head; in msnd_fifo_read_io()
[all …]
Dmidibuf.c37 int len, head, tail; member
78 data = q->queue[q->head]; \
79 q->len--; q->head = (q->head+1) % MAX_QUEUE_SIZE; \
134 int c = midi_out_buf[dev]->queue[midi_out_buf[dev]->head]; in midi_poll()
141 midi_out_buf[dev]->head = (midi_out_buf[dev]->head + 1) % MAX_QUEUE_SIZE; in midi_poll()
190 midi_in_buf[dev]->len = midi_in_buf[dev]->head = midi_in_buf[dev]->tail = 0; in MIDIbuf_open()
202 midi_out_buf[dev]->len = midi_out_buf[dev]->head = midi_out_buf[dev]->tail = 0; in MIDIbuf_open()
/sound/isa/msnd/
Dmsnd_midi.c123 u16 head, tail, size; in snd_msndmidi_input_read() local
126 head = readw(mpu->dev->MIDQ + JQS_wHead); 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()
132 unsigned char val = readw(pwMIDQData + 2 * head); in snd_msndmidi_input_read()
136 if (++head > size) in snd_msndmidi_input_read()
137 head = 0; in snd_msndmidi_input_read()
138 writew(head, mpu->dev->MIDQ + JQS_wHead); in snd_msndmidi_input_read()
Dmsnd_pinnacle.c173 u16 head, tail, size; in snd_msnd_interrupt() local
179 head = readw(chip->DSPQ + JQS_wHead); in snd_msnd_interrupt()
182 if (head > size || tail > size) in snd_msnd_interrupt()
184 while (head != tail) { in snd_msnd_interrupt()
185 snd_msnd_eval_dsp_msg(chip, readw(pwDSPQData + 2 * head)); in snd_msnd_interrupt()
186 if (++head > size) in snd_msnd_interrupt()
187 head = 0; in snd_msnd_interrupt()
188 writew(head, chip->DSPQ + JQS_wHead); in snd_msnd_interrupt()
/sound/core/seq/
Dseq_prioq.c66 f->head = NULL; in snd_seq_prioq_new()
180 cur = f->head; /* cursor */ in snd_seq_prioq_cell_in()
208 if (f->head == cur) /* this is the first cell, set head to it */ in snd_seq_prioq_cell_in()
209 f->head = cell; in snd_seq_prioq_cell_in()
239 cell = f->head; in snd_seq_prioq_cell_out()
243 f->head = cell->next; in snd_seq_prioq_cell_out()
299 cell = f->head; in snd_seq_prioq_leave()
304 if (cell == f->head) { in snd_seq_prioq_leave()
305 f->head = cell->next; in snd_seq_prioq_leave()
409 cell = f->head; in snd_seq_prioq_remove_events()
[all …]
Dseq_fifo.c57 f->head = NULL; in snd_seq_fifo_new()
141 if (f->head == NULL) in snd_seq_fifo_event_in()
142 f->head = cell; in snd_seq_fifo_event_in()
162 if ((cell = f->head) != NULL) { in fifo_cell_out()
163 f->head = cell->next; in fifo_cell_out()
221 cell->next = f->head; in snd_seq_fifo_cell_putback()
222 f->head = cell; in snd_seq_fifo_cell_putback()
261 oldhead = f->head; in snd_seq_fifo_resize()
264 f->head = NULL; in snd_seq_fifo_resize()
Dseq_prioq.h30 struct snd_seq_event_cell *head; /* pointer to head of prioq */ member
Dseq_fifo.h32 struct snd_seq_event_cell *head; /* pointer to head of fifo */ member
/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()
186 memcpy(rec, &q->q[q->head], sizeof(*rec)); in snd_seq_oss_readq_pick()
197 (q->qlen > 0 || q->head == q->tail), in snd_seq_oss_readq_wait()
209 q->head = (q->head + 1) % q->maxlen; in snd_seq_oss_readq_free()
Dseq_oss_readq.h35 int head, tail; member
/sound/usb/
Dmixer_us16x08.c206 struct snd_usb_audio *chip = elem->head.mixer->chip; in snd_us16x08_route_put()
274 struct snd_usb_audio *chip = elem->head.mixer->chip; in snd_us16x08_master_put()
291 buf[6] = elem->head.id; in snd_us16x08_master_put()
311 struct snd_usb_audio *chip = elem->head.mixer->chip; in snd_us16x08_bus_put()
318 switch (elem->head.id) { in snd_us16x08_bus_put()
332 buf[6] = elem->head.id; in snd_us16x08_bus_put()
353 switch (elem->head.id) { in snd_us16x08_bus_get()
384 struct snd_usb_audio *chip = elem->head.mixer->chip; in snd_us16x08_channel_put()
401 buf[6] = elem->head.id; in snd_us16x08_channel_put()
433 int val_idx = COMP_STORE_IDX(elem->head.id); in snd_us16x08_comp_get()
[all …]
Dmixer.c143 ((cval)->head.mixer->ignore_ctl_error ? 0 : (err))
314 struct snd_usb_audio *chip = cval->head.mixer->chip; in get_ctl_value_v1()
325 idx = snd_usb_ctrl_intf(chip) | (cval->head.id << 8); in get_ctl_value_v1()
350 struct snd_usb_audio *chip = cval->head.mixer->chip; in get_ctl_value_v2()
373 idx = snd_usb_ctrl_intf(chip) | (cval->head.id << 8); in get_ctl_value_v2()
417 return (cval->head.mixer->protocol == UAC_VERSION_1) ? in get_ctl_value()
448 if (!cval->head.mixer->ignore_ctl_error) in snd_usb_get_cur_mix_value()
449 usb_audio_dbg(cval->head.mixer->chip, in snd_usb_get_cur_mix_value()
466 struct snd_usb_audio *chip = cval->head.mixer->chip; in snd_usb_mixer_set_ctl_value()
472 if (cval->head.mixer->protocol == UAC_VERSION_1) { in snd_usb_mixer_set_ctl_value()
[all …]
Dmixer_scarlett.c291 container_of(list, struct usb_mixer_elem_info, head); in scarlett_ctl_resume()
451 container_of(list, struct usb_mixer_elem_info, head); in scarlett_ctl_enum_resume()
462 struct snd_usb_audio *chip = elem->head.mixer->chip; in scarlett_ctl_meter_get()
465 int idx = snd_usb_ctrl_intf(chip) | (elem->head.id << 8); in scarlett_ctl_meter_get()
555 elem->head.mixer = mixer; in add_new_ctl()
556 elem->head.resume = resume; in add_new_ctl()
559 elem->head.id = index; in add_new_ctl()
576 err = snd_usb_mixer_add_control(&elem->head, kctl); in add_new_ctl()
Dmixer.h57 struct usb_mixer_elem_list head; member
/sound/soc/codecs/
Dhdac_hdmi.c63 struct list_head head; member
83 struct list_head head; member
92 struct list_head head; member
104 struct list_head head; member
147 list_for_each_entry(pcm, &hdmi->pcm_list, head) { in hdac_hdmi_get_pcm_from_cvt()
269 list_for_each_entry(pcm, &hdmi->pcm_list, head) { in get_hdmi_pcm_from_id()
534 list_for_each_entry(pcm, &hdmi->pcm_list, head) { in hdac_hdmi_get_port_from_cvt()
539 list_for_each_entry(port, &pcm->port_list, head) { in hdac_hdmi_get_port_from_cvt()
703 list_for_each_entry(pcm, &hdmi->pcm_list, head) { in hdac_hdmi_get_pcm()
707 list_for_each_entry(p, &pcm->port_list, head) { in hdac_hdmi_get_pcm()
[all …]
Dsigmadsp.c29 struct list_head head; member
40 struct list_head head; member
239 list_add_tail(&ctrl->head, &sigmadsp->ctrl_list); in sigma_fw_load_control()
270 list_add_tail(&data->head, &sigmadsp->data_list); in sigma_fw_load_data()
412 list_add_tail(&data->head, &sigmadsp->data_list); in process_sigma_action()
459 list_for_each_entry_safe(ctrl, _ctrl, &sigmadsp->ctrl_list, head) { in sigmadsp_firmware_release()
464 list_for_each_entry_safe(data, _data, &sigmadsp->data_list, head) in sigmadsp_firmware_release()
716 list_for_each_entry(ctrl, &sigmadsp->ctrl_list, head) { in sigmadsp_attach()
751 list_for_each_entry(data, &sigmadsp->data_list, head) { in sigmadsp_setup()
761 list_for_each_entry(ctrl, &sigmadsp->ctrl_list, head) in sigmadsp_setup()
[all …]
/sound/usb/usx2y/
Dusx2yhwdeppcm.c69 int head = usX2Y->hwdep_pcm_shm->captured_iso_head + 1; in usX2Y_usbpcm_urb_capt_retire() local
70 if (head >= ARRAY_SIZE(usX2Y->hwdep_pcm_shm->captured_iso)) in usX2Y_usbpcm_urb_capt_retire()
71 head = 0; in usX2Y_usbpcm_urb_capt_retire()
72 usX2Y->hwdep_pcm_shm->capture_iso_start = head; in usX2Y_usbpcm_urb_capt_retire()
73 snd_printdd("cap start %i\n", head); in usX2Y_usbpcm_urb_capt_retire()
157 int head = shm->captured_iso_head + 1; in usX2Y_usbpcm_urb_capt_iso_advance() local
158 if (head >= ARRAY_SIZE(shm->captured_iso)) in usX2Y_usbpcm_urb_capt_iso_advance()
159 head = 0; in usX2Y_usbpcm_urb_capt_iso_advance()
160 shm->captured_iso[head].frame = urb->start_frame + pack; in usX2Y_usbpcm_urb_capt_iso_advance()
161 shm->captured_iso[head].offset = desc->offset; in usX2Y_usbpcm_urb_capt_iso_advance()
[all …]
/sound/soc/intel/boards/
Dskl_nau88l25_max98357a.c38 struct list_head head; member
217 list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); in skylake_hdmi1_init()
235 list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); in skylake_hdmi2_init()
253 list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); in skylake_hdmi3_init()
613 list_for_each_entry(pcm, &ctx->hdmi_pcm_list, head) { in skylake_card_late_probe()
Dskl_nau88l25_ssm4567.c42 struct list_head head; member
247 list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); in skylake_hdmi1_init()
265 list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); in skylake_hdmi2_init()
284 list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); in skylake_hdmi3_init()
664 list_for_each_entry(pcm, &ctx->hdmi_pcm_list, head) { in skylake_card_late_probe()
Dskl_rt286.c35 struct list_head head; member
164 list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); in skylake_hdmi_init()
485 list_for_each_entry(pcm, &ctx->hdmi_pcm_list, head) { in skylake_card_late_probe()
Dbxt_rt298.c34 struct list_head head; member
201 list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); in broxton_hdmi_init()
503 list_for_each_entry(pcm, &ctx->hdmi_pcm_list, head) { in bxt_card_late_probe()
Dbxt_da7219_max98357a.c39 struct list_head head; member
229 list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); in broxton_hdmi_init()
543 list_for_each_entry(pcm, &ctx->hdmi_pcm_list, head) { in bxt_card_late_probe()
Dkbl_rt5663_rt5514_max98927.c52 struct list_head head; member
225 list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); in kabylake_hdmi_init()
608 list_for_each_entry(pcm, &ctx->hdmi_pcm_list, head) { in kabylake_card_late_probe()
Dkbl_rt5663_max98927.c42 struct list_head head; member
258 list_add_tail(&pcm->head, &ctx->hdmi_pcm_list); in kabylake_hdmi_init()
779 list_for_each_entry(pcm, &ctx->hdmi_pcm_list, head) { in kabylake_card_late_probe()

12