Home
last modified time | relevance | path

Searched refs:list (Results 1 – 25 of 245) sorted by relevance

12345678910

/sound/pci/ctxfi/
Dctimap.c29 list_add(&entry->list, head); in input_mapper_add()
34 pos_ent = list_entry(pos, struct imapper, list); in input_mapper_add()
46 __list_add(&entry->list, pos->prev, pos); in input_mapper_add()
50 list_add_tail(&entry->list, head); in input_mapper_add()
53 pre_ent = list_entry(pre, struct imapper, list); in input_mapper_add()
54 pos_ent = list_entry(pos, struct imapper, list); in input_mapper_add()
75 pre = (entry->list.prev == head) ? head->prev : entry->list.prev; in input_mapper_delete()
76 next = (entry->list.next == head) ? head->next : entry->list.next; in input_mapper_delete()
78 if (pre == &entry->list) { in input_mapper_delete()
82 list_del(&entry->list); in input_mapper_delete()
[all …]
Dctvmem.c44 entry = list_entry(pos, struct ct_vm_block, list); in get_vm_block()
53 list_move(&entry->list, &vm->used); in get_vm_block()
65 list_add(&block->list, &vm->used); in get_vm_block()
83 list_del(&block->list); in put_vm_block()
87 entry = list_entry(pos, struct ct_vm_block, list); in put_vm_block()
92 list_add_tail(&block->list, &vm->unused); in put_vm_block()
100 __list_add(&block->list, pos->prev, pos); in put_vm_block()
105 pos = &entry->list; in put_vm_block()
108 entry = list_entry(pos, struct ct_vm_block, list); in put_vm_block()
109 pre_ent = list_entry(pre, struct ct_vm_block, list); in put_vm_block()
[all …]
/sound/
Dsound_core.c162 static int __sound_insert_unit(struct sound_unit * s, struct sound_unit **list, const struct file_o… in __sound_insert_unit() argument
168 while (*list && (*list)->unit_minor<n) in __sound_insert_unit()
169 list=&((*list)->next); in __sound_insert_unit()
174 if(*list==NULL || (*list)->unit_minor>n) in __sound_insert_unit()
176 list=&((*list)->next); in __sound_insert_unit()
184 while (*list) { in __sound_insert_unit()
185 if ((*list)->unit_minor==n) in __sound_insert_unit()
187 if ((*list)->unit_minor>n) in __sound_insert_unit()
189 list=&((*list)->next); in __sound_insert_unit()
204 s->next=*list; in __sound_insert_unit()
[all …]
/sound/usb/
Dmixer.h12 struct list_head list; member
51 struct usb_mixer_elem_list *list);
64 #define for_each_mixer_elem(list, mixer, id) \ argument
65 for ((list) = (mixer)->id_elems[id]; (list); (list) = (list)->next_id_elem)
66 #define mixer_elem_list_to_info(list) \ argument
67 container_of(list, struct usb_mixer_elem_info, head)
96 int snd_usb_mixer_add_control(struct usb_mixer_elem_list *list,
99 void snd_usb_mixer_elem_init_std(struct usb_mixer_elem_list *list,
Dmixer_quirks.c143 struct usb_mixer_elem_list *list; in add_single_ctl_with_resume() local
146 list = kzalloc(sizeof(*list), GFP_KERNEL); in add_single_ctl_with_resume()
147 if (!list) in add_single_ctl_with_resume()
150 *listp = list; in add_single_ctl_with_resume()
151 list->mixer = mixer; in add_single_ctl_with_resume()
152 list->id = id; in add_single_ctl_with_resume()
153 list->resume = resume; in add_single_ctl_with_resume()
154 kctl = snd_ctl_new1(knew, list); in add_single_ctl_with_resume()
156 kfree(list); in add_single_ctl_with_resume()
160 return snd_usb_mixer_add_control(list, kctl); in add_single_ctl_with_resume()
[all …]
Dmixer.c579 int snd_usb_mixer_add_control(struct usb_mixer_elem_list *list, in snd_usb_mixer_add_control() argument
582 struct usb_mixer_interface *mixer = list->mixer; in snd_usb_mixer_add_control()
593 list->kctl = kctl; in snd_usb_mixer_add_control()
594 list->next_id_elem = mixer->id_elems[list->id]; in snd_usb_mixer_add_control()
595 mixer->id_elems[list->id] = list; in snd_usb_mixer_add_control()
2313 void *raw_desc, struct procunit_info *list, in build_audio_procunit() argument
2342 for (info = list; info && info->type; info++) in build_audio_procunit()
3161 struct usb_mixer_elem_list *list; in snd_usb_mixer_notify_id() local
3163 for_each_mixer_elem(list, mixer, unitid) { in snd_usb_mixer_notify_id()
3165 mixer_elem_list_to_info(list); in snd_usb_mixer_notify_id()
[all …]
/sound/soc/intel/common/
Dsst-ipc.c38 list); in msg_get_empty()
39 list_del(&msg->list); in msg_get_empty()
60 list_del(&msg->list); in tx_wait_done()
73 list_add_tail(&msg->list, &ipc->empty_list); in tx_wait_done()
105 list_add_tail(&msg->list, &ipc->tx_list); in ipc_tx_message()
136 list_add(&ipc->msg[i].list, &ipc->empty_list); in msg_empty_list_init()
170 msg = list_first_entry(&ipc->tx_list, struct ipc_message, list); in ipc_tx_msgs()
171 list_move(&msg->list, &ipc->rx_list); in ipc_tx_msgs()
235 list_for_each_entry(msg, &ipc->rx_list, list) { in sst_ipc_reply_find_msg()
251 list_add_tail(&msg->list, &ipc->empty_list); in sst_ipc_tx_msg_reply_complete()
[all …]
Dsst-firmware.c141 list_move(&block->list, &dsp->free_block_list); in block_list_remove()
376 list_add(&sst_fw->list, &dsp->fw_list); in sst_fw_new()
421 list_for_each_entry_safe(module, mtmp, &dsp->module_list, list) { in sst_fw_unload()
425 list_for_each_entry_safe(runtime, rtmp, &module->runtime_list, list) { in sst_fw_unload()
428 list_del(&runtime->list); in sst_fw_unload()
434 list_del(&module->list); in sst_fw_unload()
452 list_del(&sst_fw->list); in sst_fw_free()
468 list_for_each_entry_safe(sst_fw, t, &dsp->fw_list, list) { in sst_fw_free_all()
470 list_del(&sst_fw->list); in sst_fw_free_all()
502 list_add(&sst_module->list, &dsp->module_list); in sst_module_new()
[all …]
/sound/core/
Ddevice.c40 INIT_LIST_HEAD(&dev->list); in snd_device_new()
49 struct snd_device *pdev = list_entry(p, struct snd_device, list); in snd_device_new()
54 list_add(&dev->list, p); in snd_device_new()
72 list_del(&dev->list); in __snd_device_free()
86 list_for_each_entry(dev, &card->devices, list) in look_for_dev()
196 list_for_each_entry(dev, &card->devices, list) { in snd_device_register_all()
214 list_for_each_entry_reverse(dev, &card->devices, list) in snd_device_disconnect_all()
228 list_for_each_entry_safe_reverse(dev, next, &card->devices, list) { in snd_device_free_all()
237 list_for_each_entry_safe_reverse(dev, next, &card->devices, list) in snd_device_free_all()
Dmisc.c111 const struct snd_pci_quirk *list) in snd_pci_quirk_lookup_id() argument
115 for (q = list; q->subvendor; q++) { in snd_pci_quirk_lookup_id()
138 snd_pci_quirk_lookup(struct pci_dev *pci, const struct snd_pci_quirk *list) in snd_pci_quirk_lookup() argument
144 list); in snd_pci_quirk_lookup()
Dcontrol.c25 struct list_head list; /* list of all ioctls */ member
74 list_add_tail(&ctl->list, &card->ctl_files); in snd_ctl_open()
97 list_del(&cread->list); in snd_ctl_empty_read_queue()
115 list_del(&ctl->list); in snd_ctl_release()
118 list_for_each_entry(control, &card->controls, list) in snd_ctl_release()
156 list_for_each_entry(ctl, &card->ctl_files, list) { in snd_ctl_notify()
160 list_for_each_entry(ev, &ctl->events, list) { in snd_ctl_notify()
170 list_add_tail(&ev->list, &ctl->events); in snd_ctl_notify()
308 list_for_each_entry(kctl, &card->controls, list) { in snd_ctl_remove_numid_conflict()
372 list_add_tail(&kcontrol->list, &card->controls); in __snd_ctl_add_replace()
[all …]
Djack.c17 struct list_head list; /* list of controls belong to the same jack */ member
60 list_for_each_entry_safe(jack_kctl, tmp_jack_kctl, &jack->kctl_list, list) { in snd_jack_dev_free()
61 list_del_init(&jack_kctl->list); in snd_jack_dev_free()
121 list_del(&jack_kctl->list); in snd_jack_kctl_private_free()
128 list_add_tail(&jack_kctl->list, &jack->kctl_list); in snd_jack_kctl_add()
353 list_for_each_entry(jack_kctl, &jack->kctl_list, list) in snd_jack_report()
Dvmaster.c48 struct list_head list; member
122 list_for_each_entry(slave, &master->slaves, list) { in master_init()
236 list_del(&slave->list); in slave_free()
277 list_add_tail(&srec->list, &master_link->slaves); in _snd_ctl_add_slave()
320 list_for_each_entry(slave, &master->slaves, list) { in sync_slaves()
361 list_for_each_entry_safe(slave, n, &master->slaves, list) { in master_free()
363 struct list_head olist = sctl->list; in master_free()
367 sctl->list = olist; /* keep the current linked-list */ in master_free()
512 list_for_each_entry(slave, &master->slaves, list) { in snd_ctl_apply_vmaster_slaves()
/sound/xen/
Dxen_snd_front_cfg.c150 static void cfg_hw_rates(char *list, unsigned int len, in cfg_hw_rates() argument
164 while ((cur_rate = strsep(&list, XENSND_LIST_SEPARATOR))) { in cfg_hw_rates()
186 static void cfg_formats(char *list, unsigned int len, in cfg_formats() argument
194 while ((cur_format = strsep(&list, XENSND_LIST_SEPARATOR))) { in cfg_formats()
243 char *list; in cfg_read_pcm_hw() local
262 list = xenbus_read(XBT_NIL, path, XENSND_FIELD_SAMPLE_RATES, &len); in cfg_read_pcm_hw()
263 if (!IS_ERR(list)) { in cfg_read_pcm_hw()
264 cfg_hw_rates(list, len, path, pcm_hw); in cfg_read_pcm_hw()
265 kfree(list); in cfg_read_pcm_hw()
268 list = xenbus_read(XBT_NIL, path, XENSND_FIELD_SAMPLE_FORMATS, &len); in cfg_read_pcm_hw()
[all …]
/sound/hda/
Darray.c30 nlist = krealloc(array->list, size, GFP_KERNEL); in snd_array_new()
34 array->list = nlist; in snd_array_new()
47 kfree(array->list); in snd_array_free()
50 array->list = NULL; in snd_array_free()
/sound/hda/ext/
Dhdac_ext_controller.c110 list_add_tail(&hlink->list, &bus->hlink_list); in snd_hdac_ext_bus_get_ml_capabilities()
128 l = list_first_entry(&bus->hlink_list, struct hdac_ext_link, list); in snd_hdac_link_free_all()
129 list_del(&l->list); in snd_hdac_link_free_all()
152 list_for_each_entry(hlink, &bus->hlink_list, list) { in snd_hdac_ext_bus_get_link()
221 list_for_each_entry(hlink, &bus->hlink_list, list) { in snd_hdac_ext_bus_link_power_up_all()
242 list_for_each_entry(hlink, &bus->hlink_list, list) { in snd_hdac_ext_bus_link_power_down_all()
313 list_for_each_entry(hlink, &bus->hlink_list, list) { in snd_hdac_ext_bus_link_put()
/sound/pci/hda/
Dhda_bind.c26 const struct hda_device_id *list; in hda_codec_match() local
31 for (list = driver->id; list->vendor_id; list++) { in hda_codec_match()
32 if (list->vendor_id == id && in hda_codec_match()
33 (!list->rev_id || list->rev_id == rev_id)) { in hda_codec_match()
34 codec->preset = list; in hda_codec_match()
/sound/core/seq/
Dseq_ports.c52 list_for_each_entry(port, &client->ports_list_head, list) { in snd_seq_port_use_ptr()
76 list_for_each_entry(port, &client->ports_list_head, list) { in snd_seq_port_query_nearest()
145 list_for_each_entry(p, &client->ports_list_head, list) { in snd_seq_create_port()
152 list_add_tail(&new_port->list, &p->list); in snd_seq_create_port()
274 list_for_each_entry(p, &client->ports_list_head, list) { in snd_seq_delete_port()
277 list_del(&p->list); in snd_seq_delete_port()
312 list_for_each_entry_safe(port, tmp, &deleted_list, list) { in snd_seq_delete_all_ports()
313 list_del(&port->list); in snd_seq_delete_all_ports()
523 struct list_head *list; in delete_and_unsubscribe_port() local
527 list = is_src ? &subs->src_list : &subs->dest_list; in delete_and_unsubscribe_port()
[all …]
/sound/soc/sof/
Dpm.c21 list_for_each_entry(scontrol, &sdev->kcontrol_list, list) { in sof_restore_kcontrols()
73 list_for_each_entry_reverse(swidget, &sdev->widget_list, list) { in sof_restore_pipelines()
118 list_for_each_entry_reverse(sroute, &sdev->route_list, list) { in sof_restore_pipelines()
146 list_for_each_entry_reverse(dai, &sdev->dai_list, list) { in sof_restore_pipelines()
180 list_for_each_entry(swidget, &sdev->widget_list, list) { in sof_restore_pipelines()
228 list_for_each_entry(spcm, &sdev->pcm_list, list) { in sof_set_hw_params_upon_resume()
249 list_for_each_entry(dfse, &sdev->dfsentry_list, list) { in sof_cache_debugfs()
/sound/aoa/soundbus/i2sbus/
Dpcm.c100 list_for_each_entry(cii, &sdev->codec_list, list) { in i2sbus_pcm_open()
201 list_for_each_entry(cii, &sdev->codec_list, list) { in i2sbus_pcm_open()
209 &sdev->codec_list, list) { in i2sbus_pcm_open()
239 list_for_each_entry(cii, &i2sdev->sound.codec_list, list) { in i2sbus_pcm_close()
419 list_for_each_entry(cii, &i2sdev->sound.codec_list, list) { in i2sbus_pcm_prepare()
441 list_for_each_entry(cii, &i2sdev->sound.codec_list, list) { in i2sbus_pcm_prepare()
464 list_for_each_entry(cii, &i2sdev->sound.codec_list, list) { in i2sbus_pcm_prepare()
491 list_for_each_entry(cii, &i2sdev->sound.codec_list, list) in i2sbus_pcm_prepare()
521 list_for_each_entry(cii, &i2sdev->sound.codec_list, list) in i2sbus_pcm_prepare()
556 list_for_each_entry(cii, &i2sdev->sound.codec_list, list) in i2sbus_pcm_trigger()
[all …]
/sound/aoa/core/
Dcore.c67 list_add(&codec->list, &codec_list); in aoa_codec_register()
74 list_del(&codec->list); in aoa_codec_unregister()
107 list_for_each_entry(c, &codec_list, list) { in aoa_fabric_register()
122 list_for_each_entry(c, &codec_list, list) { in aoa_fabric_unregister()
/sound/firewire/oxfw/
Doxfw-pcm.c51 unsigned int count, list[SND_OXFW_STREAM_FORMAT_ENTRIES] = {0}; in hw_rule_channels() local
63 if (list[count] == formation.pcm) in hw_rule_channels()
66 for (j = 0; j < ARRAY_SIZE(list); j++) { in hw_rule_channels()
67 if (list[j] == formation.pcm) in hw_rule_channels()
70 if (j == ARRAY_SIZE(list)) { in hw_rule_channels()
71 list[count] = formation.pcm; in hw_rule_channels()
72 if (++count == ARRAY_SIZE(list)) in hw_rule_channels()
77 return snd_interval_list(c, count, list, 0); in hw_rule_channels()
/sound/soc/codecs/
Dwm8741.c109 .list = rates_11289,
118 .list = rates_12288,
127 .list = rates_16384,
136 .list = rates_16934,
145 .list = rates_18432,
154 .list = rates_22579,
163 .list = rates_24576,
172 .list = rates_36864,
209 if (wm8741->sysclk_constraints->list[i] == params_rate(params)) in wm8741_hw_params()
/sound/soc/
Dsoc-dapm.c210 LIST_HEAD(list); in dapm_widget_invalidate_paths()
217 list_add_tail(&w->work_list, &list); in dapm_widget_invalidate_paths()
220 list_for_each_entry(w, &list, work_list) { in dapm_widget_invalidate_paths()
227 list_add_tail(&node->work_list, &list); in dapm_widget_invalidate_paths()
305 list_for_each_entry(w, &card->widgets, list) { in dapm_mark_endpoints_dirty()
592 list_for_each_entry(w, &card->widgets, list) { in dapm_reset()
647 list_for_each_entry_from(w, wlist, list) { in dapm_wcache_lookup()
836 list_for_each_entry(w, &dapm->card->widgets, list) { in dapm_is_shared_kcontrol()
1108 static int dapm_widget_list_create(struct snd_soc_dapm_widget_list **list, in dapm_widget_list_create() argument
1119 *list = kzalloc(struct_size(*list, widgets, size), GFP_KERNEL); in dapm_widget_list_create()
[all …]
/sound/soc/mediatek/common/
Dmtk-afe-platform-driver.c22 list_for_each_entry(dai, &afe->sub_dais, list) { in mtk_afe_combine_sub_dai()
37 list_for_each_entry(dai, &afe->sub_dais, list) { in mtk_afe_combine_sub_dai()
54 list_for_each_entry(dai, &afe->sub_dais, list) { in mtk_afe_add_sub_dai_control()
66 list_for_each_entry(dai, &afe->sub_dais, list) { in mtk_afe_add_sub_dai_control()

12345678910