Home
last modified time | relevance | path

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

12345678910>>...13

/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.c158 static int __sound_insert_unit(struct sound_unit * s, struct sound_unit **list, const struct file_o… in __sound_insert_unit() argument
164 while (*list && (*list)->unit_minor<n) in __sound_insert_unit()
165 list=&((*list)->next); in __sound_insert_unit()
170 if(*list==NULL || (*list)->unit_minor>n) in __sound_insert_unit()
172 list=&((*list)->next); in __sound_insert_unit()
180 while (*list) { in __sound_insert_unit()
181 if ((*list)->unit_minor==n) in __sound_insert_unit()
183 if ((*list)->unit_minor>n) in __sound_insert_unit()
185 list=&((*list)->next); in __sound_insert_unit()
200 s->next=*list; in __sound_insert_unit()
[all …]
/sound/usb/
Dmixer.h19 struct list_head list; member
62 struct usb_mixer_elem_list *list);
76 #define for_each_mixer_elem(list, mixer, id) \ argument
77 for ((list) = (mixer)->id_elems[id]; (list); (list) = (list)->next_id_elem)
78 #define mixer_elem_list_to_info(list) \ argument
79 container_of(list, struct usb_mixer_elem_info, head)
107 int snd_usb_mixer_add_list(struct usb_mixer_elem_list *list,
111 #define snd_usb_mixer_add_control(list, kctl) \ argument
112 snd_usb_mixer_add_list(list, kctl, true)
114 void snd_usb_mixer_elem_init_std(struct usb_mixer_elem_list *list,
Dmixer_quirks.c145 struct usb_mixer_elem_list *list; in add_single_ctl_with_resume() local
148 list = kzalloc(sizeof(*list), GFP_KERNEL); in add_single_ctl_with_resume()
149 if (!list) in add_single_ctl_with_resume()
152 *listp = list; in add_single_ctl_with_resume()
153 list->mixer = mixer; in add_single_ctl_with_resume()
154 list->id = id; in add_single_ctl_with_resume()
155 list->resume = resume; in add_single_ctl_with_resume()
156 kctl = snd_ctl_new1(knew, list); in add_single_ctl_with_resume()
158 kfree(list); in add_single_ctl_with_resume()
163 return snd_usb_mixer_add_list(list, kctl, false); in add_single_ctl_with_resume()
[all …]
/sound/soc/sof/
Dsof-audio.c22 list_for_each_entry(sroute, &sdev->route_list, list) in sof_reset_route_setup_status()
199 list_for_each_entry(sroute, &sdev->route_list, list) in sof_route_setup()
224 struct snd_soc_dapm_widget_list *list, int dir) in sof_setup_pipeline_connections() argument
238 for_each_dapm_widgets(list, i, widget) { in sof_setup_pipeline_connections()
250 for_each_dapm_widgets(list, i, widget) { in sof_setup_pipeline_connections()
422 sof_walk_widgets_in_order(struct snd_sof_dev *sdev, struct snd_soc_dapm_widget_list *list, in sof_walk_widgets_in_order() argument
432 for_each_dapm_widgets(list, i, widget) { in sof_walk_widgets_in_order()
489 struct snd_soc_dapm_widget_list *list = spcm->stream[dir].list; in sof_widget_list_setup() local
494 if (!list) in sof_widget_list_setup()
501 ret = sof_walk_widgets_in_order(sdev, list, fe_params, platform_params, in sof_widget_list_setup()
[all …]
Dsof-client.c31 struct list_head list; member
43 struct list_head list; member
211 list_add(&cdev->list, &sdev->ipc_client_list); in sof_client_dev_register()
236 list_for_each_entry(cdev, &sdev->ipc_client_list, list) { in sof_client_dev_unregister()
238 list_del(&cdev->list); in sof_client_dev_unregister()
275 list_for_each_entry(cdev, &sdev->ipc_client_list, list) { in sof_suspend_clients()
298 list_for_each_entry(cdev, &sdev->ipc_client_list, list) { in sof_resume_clients()
393 list_for_each_entry(event, &sdev->ipc_rx_handler_list, list) { in sof_client_ipc_rx_dispatcher()
433 list_add(&event->list, &sdev->ipc_rx_handler_list); in sof_client_register_ipc_rx_handler()
448 list_for_each_entry(event, &sdev->ipc_rx_handler_list, list) { in sof_client_unregister_ipc_rx_handler()
[all …]
Dipc4-pcm.c41 struct snd_soc_dapm_widget_list *list; in sof_ipc4_trigger_pipelines() local
53 list = spcm->stream[substream->stream].list; in sof_ipc4_trigger_pipelines()
55 for_each_dapm_widgets(list, num_widgets, widget) { in sof_ipc4_trigger_pipelines()
154 list_for_each_entry(slink, &sdev->dai_link_list, list) { in ipc4_ssp_dai_config_pcm_params_match()
169 list_for_each_entry(dai, &sdev->dai_list, list) in ipc4_ssp_dai_config_pcm_params_match()
Dsof-audio.h273 struct snd_soc_dapm_widget_list *list; /* list of connected DAPM widgets */ member
287 struct list_head list; /* list in sdev pcm list */ member
317 struct list_head list; /* list in sdev control list */ member
343 struct list_head list; member
381 struct list_head list; /* list in sdev widget list */ member
398 struct list_head list; /* list in sdev route list */ member
413 struct list_head list; /* list in sdev dai list */ member
479 list_for_each_entry(spcm, &sdev->pcm_list, list) { in snd_sof_find_spcm_dai()
/sound/core/
Dmisc.c112 const struct snd_pci_quirk *list) in snd_pci_quirk_lookup_id() argument
116 for (q = list; q->subvendor || q->subdevice; q++) { in snd_pci_quirk_lookup_id()
139 snd_pci_quirk_lookup(struct pci_dev *pci, const struct snd_pci_quirk *list) in snd_pci_quirk_lookup() argument
145 list); in snd_pci_quirk_lookup()
165 struct list_head list; member
177 fasync = list_first_entry(&snd_fasync_list, struct snd_fasync, list); in snd_fasync_work_fn()
178 list_del_init(&fasync->list); in snd_fasync_work_fn()
198 INIT_LIST_HEAD(&fasync->list); in snd_fasync_helper()
227 list_move(&fasync->list, &snd_fasync_list); in snd_kill_fasync()
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()
Dvmaster.c48 struct list_head list; member
122 list_for_each_entry(follower, &master->followers, list) { in master_init()
236 list_del(&follower->list); in follower_free()
278 list_add_tail(&srec->list, &master_link->followers); in _snd_ctl_add_follower()
321 list_for_each_entry(follower, &master->followers, list) { in sync_followers()
362 list_for_each_entry_safe(follower, n, &master->followers, list) { in master_free()
364 struct list_head olist = sctl->list; in master_free()
368 sctl->list = olist; /* keep the current linked-list */ in master_free()
514 list_for_each_entry(follower, &master->followers, list) { in snd_ctl_apply_vmaster_followers()
Dcontrol.c30 struct list_head list; /* list of all ioctls */ member
81 list_add_tail(&ctl->list, &card->ctl_files); in snd_ctl_open()
104 list_del(&cread->list); in snd_ctl_empty_read_queue()
122 list_del(&ctl->list); in snd_ctl_release()
125 list_for_each_entry(control, &card->controls, list) in snd_ctl_release()
164 list_for_each_entry(ctl, &card->ctl_files, list) { in snd_ctl_notify()
168 list_for_each_entry(ev, &ctl->events, list) { in snd_ctl_notify()
178 list_add_tail(&ev->list, &ctl->events); in snd_ctl_notify()
344 list_for_each_entry(kctl, &card->controls, list) { in snd_ctl_remove_numid_conflict()
494 list_add_tail(&kcontrol->list, &card->controls); in __snd_ctl_add_replace()
[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()
/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.c103 list_add_tail(&hlink->list, &bus->hlink_list); in snd_hdac_ext_bus_get_ml_capabilities()
121 l = list_first_entry(&bus->hlink_list, struct hdac_ext_link, list); in snd_hdac_link_free_all()
122 list_del(&l->list); in snd_hdac_link_free_all()
140 list_for_each_entry(hlink, &bus->hlink_list, list) in snd_hdac_ext_bus_link_at()
227 list_for_each_entry(hlink, &bus->hlink_list, list) { in snd_hdac_ext_bus_link_power_up_all()
248 list_for_each_entry(hlink, &bus->hlink_list, list) { in snd_hdac_ext_bus_link_power_down_all()
322 list_for_each_entry(hlink, &bus->hlink_list, list) { in snd_hdac_ext_bus_link_put()
/sound/pci/hda/
Dhda_bind.c27 const struct hda_device_id *list; in hda_codec_match() local
32 for (list = driver->id; list->vendor_id; list++) { in hda_codec_match()
33 if (list->vendor_id == id && in hda_codec_match()
34 (!list->rev_id || list->rev_id == rev_id)) { in hda_codec_match()
35 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()
524 struct list_head *list; in __delete_and_unsubscribe_port() local
528 list = is_src ? &subs->src_list : &subs->dest_list; in __delete_and_unsubscribe_port()
[all …]
/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()
411 list_for_each_entry(cii, &i2sdev->sound.codec_list, list) { in i2sbus_pcm_prepare()
433 list_for_each_entry(cii, &i2sdev->sound.codec_list, list) { in i2sbus_pcm_prepare()
456 list_for_each_entry(cii, &i2sdev->sound.codec_list, list) { in i2sbus_pcm_prepare()
483 list_for_each_entry(cii, &i2sdev->sound.codec_list, list) in i2sbus_pcm_prepare()
513 list_for_each_entry(cii, &i2sdev->sound.codec_list, list) in i2sbus_pcm_prepare()
548 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/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/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()
/sound/virtio/
Dvirtio_ctl_msg.c22 struct list_head list; member
101 INIT_LIST_HEAD(&msg->list); in virtsnd_ctl_msg_alloc()
156 list_add_tail(&msg->list, &snd->ctl_msgs); in virtsnd_ctl_msg_send()
221 list_del(&msg->list); in virtsnd_ctl_msg_complete()
242 list); in virtsnd_ctl_msg_cancel_all()
/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()

12345678910>>...13