Home
last modified time | relevance | path

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

123456

/sound/pci/ctxfi/
Dctimap.c33 list_add(&entry->list, head); in input_mapper_add()
38 pos_ent = list_entry(pos, struct imapper, list); in input_mapper_add()
50 __list_add(&entry->list, pos->prev, pos); in input_mapper_add()
54 list_add_tail(&entry->list, head); in input_mapper_add()
57 pre_ent = list_entry(pre, struct imapper, list); in input_mapper_add()
58 pos_ent = list_entry(pos, struct imapper, list); in input_mapper_add()
79 pre = (entry->list.prev == head) ? head->prev : entry->list.prev; in input_mapper_delete()
80 next = (entry->list.next == head) ? head->next : entry->list.next; in input_mapper_delete()
82 if (pre == &entry->list) { in input_mapper_delete()
86 list_del(&entry->list); in input_mapper_delete()
[all …]
Dctvmem.c46 entry = list_entry(pos, struct ct_vm_block, list); in get_vm_block()
55 list_move(&entry->list, &vm->used); in get_vm_block()
67 list_add(&block->list, &vm->used); in get_vm_block()
85 list_del(&block->list); in put_vm_block()
89 entry = list_entry(pos, struct ct_vm_block, list); in put_vm_block()
94 list_add_tail(&block->list, &vm->unused); in put_vm_block()
102 __list_add(&block->list, pos->prev, pos); in put_vm_block()
107 pos = &entry->list; in put_vm_block()
110 entry = list_entry(pos, struct ct_vm_block, list); in put_vm_block()
111 pre_ent = list_entry(pre, struct ct_vm_block, list); in put_vm_block()
[all …]
/sound/
Dsound_core.c174 static int __sound_insert_unit(struct sound_unit * s, struct sound_unit **list, const struct file_o… in __sound_insert_unit() argument
180 while (*list && (*list)->unit_minor<n) in __sound_insert_unit()
181 list=&((*list)->next); in __sound_insert_unit()
186 if(*list==NULL || (*list)->unit_minor>n) in __sound_insert_unit()
188 list=&((*list)->next); in __sound_insert_unit()
196 while (*list) { in __sound_insert_unit()
197 if ((*list)->unit_minor==n) in __sound_insert_unit()
199 if ((*list)->unit_minor>n) in __sound_insert_unit()
201 list=&((*list)->next); in __sound_insert_unit()
216 s->next=*list; in __sound_insert_unit()
[all …]
/sound/core/
Ddevice.c61 list_add(&dev->list, &card->devices); /* add to the head of list */ in snd_device_new()
85 list_for_each_entry(dev, &card->devices, list) { in snd_device_free()
89 list_del(&dev->list); in snd_device_free()
128 list_for_each_entry(dev, &card->devices, list) { in snd_device_disconnect()
164 list_for_each_entry(dev, &card->devices, list) { in snd_device_register()
193 list_for_each_entry(dev, &card->devices, list) { in snd_device_register_all()
214 list_for_each_entry(dev, &card->devices, list) { in snd_device_disconnect_all()
236 list_for_each_entry(dev, &card->devices, list) { in snd_device_free_all()
Dcontrol.c38 struct list_head list; /* list of all ioctls */ member
87 list_add_tail(&ctl->list, &card->ctl_files); in snd_ctl_open()
110 list_del(&cread->list); in snd_ctl_empty_read_queue()
128 list_del(&ctl->list); in snd_ctl_release()
131 list_for_each_entry(control, &card->controls, list) in snd_ctl_release()
157 list_for_each_entry(ctl, &card->ctl_files, list) { in snd_ctl_notify()
161 list_for_each_entry(ev, &ctl->events, list) { in snd_ctl_notify()
171 list_add_tail(&ev->list, &ctl->events); in snd_ctl_notify()
292 list_for_each_entry(kctl, &card->controls, list) { in snd_ctl_remove_numid_conflict()
358 list_add_tail(&kcontrol->list, &card->controls); in snd_ctl_add()
[all …]
Dmisc.c119 const struct snd_pci_quirk *list) in snd_pci_quirk_lookup_id() argument
123 for (q = list; q->subvendor; q++) { in snd_pci_quirk_lookup_id()
146 snd_pci_quirk_lookup(struct pci_dev *pci, const struct snd_pci_quirk *list) in snd_pci_quirk_lookup() argument
150 list); in snd_pci_quirk_lookup()
Dvmaster.c52 struct list_head list; member
123 list_for_each_entry(slave, &master->slaves, list) { in master_init()
237 list_del(&slave->list); in slave_free()
278 list_add_tail(&srec->list, &master_link->slaves); in _snd_ctl_add_slave()
331 list_for_each_entry(slave, &master->slaves, list) { in master_put()
350 list_for_each_entry_safe(slave, n, &master->slaves, list) { in master_free()
352 struct list_head olist = sctl->list; in master_free()
356 sctl->list = olist; /* keep the current linked-list */ in master_free()
Dpcm.c51 list_for_each_entry(pcm, &snd_pcm_devices, list) { in snd_pcm_get()
62 list_for_each_entry(pcm, &snd_pcm_devices, list) { in snd_pcm_next()
75 list_for_each_entry(pcm, &snd_pcm_devices, list) { in snd_pcm_add()
81 list_add(&newpcm->list, pcm->list.prev); in snd_pcm_add()
85 list_add_tail(&newpcm->list, &snd_pcm_devices); in snd_pcm_add()
833 list_for_each_entry(notify, &snd_pcm_notify_list, list) { in snd_pcm_free()
872 list_for_each_entry(kctl, &card->ctl_files, list) { in snd_pcm_attach_substream()
1062 list_del(&pcm->list); in snd_pcm_dev_register()
1072 list_for_each_entry(notify, &snd_pcm_notify_list, list) in snd_pcm_dev_register()
1087 if (list_empty(&pcm->list)) in snd_pcm_dev_disconnect()
[all …]
Dmemalloc.c53 struct list_head list; member
305 list_for_each_entry(mem, &mem_list_head, list) { in snd_dma_get_reserved_buf()
310 list_del(&mem->list); in snd_dma_get_reserved_buf()
344 list_add_tail(&mem->list, &mem_list_head); in snd_dma_reserve_buf()
360 mem = list_entry(p, struct snd_mem_list, list); in free_all_reserved_pages()
387 list_for_each_entry(mem, &mem_list_head, list) { in snd_mem_proc_read()
/sound/core/seq/
Dseq_device.c75 struct list_head list; /* next driver */ member
112 list_for_each_entry(ops, &opslist, list) { in snd_seq_device_info()
154 list_for_each_entry(ops, &opslist, list) { in snd_seq_device_load_drivers()
213 list_add_tail(&dev->list, &ops->dev_list); in snd_seq_device_new()
246 list_del(&dev->list); in snd_seq_device_free()
341 list_for_each_entry(dev, &ops->dev_list, list) { in snd_seq_device_register_driver()
380 list_add_tail(&ops->list, &opslist); in create_driver()
410 list_for_each_entry(dev, &ops->dev_list, list) { in snd_seq_device_unregister_driver()
439 struct ops_list *ops = list_entry(head, struct ops_list, list); in remove_drivers()
443 list_del(&ops->list); in remove_drivers()
[all …]
Dseq_ports.c67 list_for_each_entry(port, &client->ports_list_head, list) { in snd_seq_port_use_ptr()
91 list_for_each_entry(port, &client->ports_list_head, list) { in snd_seq_port_query_nearest()
163 list_for_each_entry(p, &client->ports_list_head, list) { in snd_seq_create_port()
170 list_add_tail(&new_port->list, &p->list); in snd_seq_create_port()
292 list_for_each_entry(p, &client->ports_list_head, list) { in snd_seq_delete_port()
295 list_del(&p->list); in snd_seq_delete_port()
331 list_for_each_entry_safe(port, tmp, &deleted_list, list) { in snd_seq_delete_all_ports()
332 list_del(&port->list); in snd_seq_delete_all_ports()
/sound/usb/
Dstream.c49 list_for_each_entry_safe(fp, n, &subs->fmt_list, list) { in free_substream()
54 kfree(subs->rate_list.list); in free_substream()
65 list_del(&stream->list); in snd_usb_audio_stream_free()
100 list_add_tail(&fp->list, &subs->fmt_list); in snd_usb_init_substream()
129 for (p = fp->list.prev; p != &subs->fmt_list; p = p->prev) { in have_dup_chmap()
131 prev = list_entry(p, struct audioformat, list); in have_dup_chmap()
154 list_for_each_entry(fp, &subs->fmt_list, list) { in usb_chmap_ctl_tlv()
210 list_for_each_entry(fp, &subs->fmt_list, list) in add_chmap()
323 list_for_each_entry(as, &chip->pcm_list, list) { in snd_usb_add_audio_stream()
328 list_add_tail(&fp->list, &subs->fmt_list); in snd_usb_add_audio_stream()
[all …]
Dcard.h12 struct list_head list; member
102 struct list_head list; member
158 struct list_head list; member
/sound/soc/
Dsoc-dapm.c153 list_for_each_entry(w, &card->widgets, list) { in dapm_mark_io_dirty()
211 list_for_each_entry(w, &card->widgets, list) { in dapm_reset()
452 list_add(&path->list, &dapm->card->paths); in dapm_connect_mux()
474 list_add(&path->list, &dapm->card->paths); in dapm_connect_mixer()
495 list_for_each_entry(w, &dapm->card->widgets, list) { in dapm_is_shared_kcontrol()
761 static int dapm_list_add_widget(struct snd_soc_dapm_widget_list **list, in dapm_list_add_widget() argument
767 if (*list == NULL) in dapm_list_add_widget()
770 wlist = *list; in dapm_list_add_widget()
782 *list = krealloc(wlist, wlistsize, GFP_KERNEL); in dapm_list_add_widget()
783 if (*list == NULL) { in dapm_list_add_widget()
[all …]
Dsoc-jack.c85 list_for_each_entry(pin, &jack->pins, list) { in snd_soc_jack_report()
124 INIT_LIST_HEAD(&zones[i].list); in snd_soc_jack_add_zones()
125 list_add(&(zones[i].list), &jack->jack_zones); in snd_soc_jack_add_zones()
145 list_for_each_entry(zone, &jack->jack_zones, list) { in snd_soc_jack_get_type()
182 INIT_LIST_HEAD(&pins[i].list); in snd_soc_jack_add_pins()
183 list_add(&(pins[i].list), &jack->pins); in snd_soc_jack_add_pins()
Dsoc-pcm.c843 static int widget_in_list(struct snd_soc_dapm_widget_list *list, in widget_in_list() argument
848 for (i = 0; i < list->num_widgets; i++) { in widget_in_list()
849 if (widget == list->widgets[i]) in widget_in_list()
860 struct snd_soc_dapm_widget_list *list; in dpcm_path_get() local
863 list = kzalloc(sizeof(struct snd_soc_dapm_widget_list) + in dpcm_path_get()
865 if (list == NULL) in dpcm_path_get()
869 paths = snd_soc_dapm_dai_get_connected_widgets(cpu_dai, stream, &list); in dpcm_path_get()
874 *list_ = list; in dpcm_path_get()
878 static inline void dpcm_path_put(struct snd_soc_dapm_widget_list **list) in dpcm_path_put() argument
880 kfree(*list); in dpcm_path_put()
[all …]
/sound/soc/codecs/
Dwm_adsp.c159 struct list_head list; member
164 struct list_head *list) in wm_adsp_buf_alloc() argument
177 if (list) in wm_adsp_buf_alloc()
178 list_add_tail(&buf->list, list); in wm_adsp_buf_alloc()
183 static void wm_adsp_buf_free(struct list_head *list) in wm_adsp_buf_free() argument
185 while (!list_empty(list)) { in wm_adsp_buf_free()
186 struct wm_adsp_buf *buf = list_first_entry(list, in wm_adsp_buf_free()
188 list); in wm_adsp_buf_free()
189 list_del(&buf->list); in wm_adsp_buf_free()
610 list_add_tail(&region->list, &dsp->alg_regions); in wm_adsp_setup_algs()
[all …]
Dwm8741.c131 .list = rates_11289,
140 .list = rates_12288,
149 .list = rates_16384,
158 .list = rates_16934,
167 .list = rates_18432,
176 .list = rates_22579,
185 .list = rates_24576,
194 .list = rates_36864,
/sound/firewire/
Dfcp.c36 struct list_head list; member
85 list_add_tail(&t.list, &transactions); in fcp_avc_transaction()
113 list_del(&t.list); in fcp_avc_transaction()
133 list_for_each_entry(t, &transactions, list) { in fcp_bus_reset()
178 list_for_each_entry(t, &transactions, list) { in fcp_response()
/sound/aoa/soundbus/i2sbus/
Dpcm.c101 list_for_each_entry(cii, &sdev->codec_list, list) { in i2sbus_pcm_open()
202 list_for_each_entry(cii, &sdev->codec_list, list) { in i2sbus_pcm_open()
210 &sdev->codec_list, list) { in i2sbus_pcm_open()
240 list_for_each_entry(cii, &i2sdev->sound.codec_list, list) { in i2sbus_pcm_close()
420 list_for_each_entry(cii, &i2sdev->sound.codec_list, list) { in i2sbus_pcm_prepare()
442 list_for_each_entry(cii, &i2sdev->sound.codec_list, list) { in i2sbus_pcm_prepare()
465 list_for_each_entry(cii, &i2sdev->sound.codec_list, list) { in i2sbus_pcm_prepare()
492 list_for_each_entry(cii, &i2sdev->sound.codec_list, list) in i2sbus_pcm_prepare()
522 list_for_each_entry(cii, &i2sdev->sound.codec_list, list) in i2sbus_pcm_prepare()
557 list_for_each_entry(cii, &i2sdev->sound.codec_list, list) in i2sbus_pcm_trigger()
[all …]
Dcontrol.c28 INIT_LIST_HEAD(&(*c)->list); in i2sbus_control_init()
69 list_add(&i2sdev->item, &c->list); in i2sbus_control_add_dev()
79 if (list_empty(&c->list)) in i2sbus_control_remove_dev()
/sound/aoa/core/
Dcore.c68 list_add(&codec->list, &codec_list); in aoa_codec_register()
75 list_del(&codec->list); in aoa_codec_unregister()
108 list_for_each_entry(c, &codec_list, list) { in aoa_fabric_register()
123 list_for_each_entry(c, &codec_list, list) { in aoa_fabric_unregister()
/sound/pci/hda/
Dhda_jack.c64 struct hda_jack_tbl *jack = codec->jacktbl.list; in snd_hda_jack_tbl_get()
82 struct hda_jack_tbl *jack = codec->jacktbl.list; in snd_hda_jack_tbl_get_from_tag()
117 if (!codec->bus->shutdown && codec->jacktbl.list) { in snd_hda_jack_tbl_clear()
118 struct hda_jack_tbl *jack = codec->jacktbl.list; in snd_hda_jack_tbl_clear()
168 struct hda_jack_tbl *jack = codec->jacktbl.list; in snd_hda_jack_set_dirty_all()
272 jack = codec->jacktbl.list; in snd_hda_jack_report_sync()
280 jack = codec->jacktbl.list; in snd_hda_jack_report_sync()
382 jack = codec->jacktbl.list; in get_unique_index()
522 struct hda_jack_tbl *jack = codec->jacktbl.list; in snd_hda_jack_poll_all()
Dhda_auto_parser.c26 static int is_in_nid_list(hda_nid_t nid, const hda_nid_t *list) in is_in_nid_list() argument
28 for (; *list; list++) in is_in_nid_list()
29 if (*list == nid) in is_in_nid_list()
51 static void sort_pins_by_sequence(hda_nid_t *pins, struct auto_out_pin *list, in sort_pins_by_sequence() argument
55 sort(list, num_pins, sizeof(list[0]), compare_seq, NULL); in sort_pins_by_sequence()
57 pins[i] = list[i].pin; in sort_pins_by_sequence()
553 static int find_idx_in_nid_list(hda_nid_t nid, const hda_nid_t *list, int nums) in find_idx_in_nid_list() argument
557 if (list[i] == nid) in find_idx_in_nid_list()
727 const struct hda_verb *list) in snd_hda_add_verbs() argument
733 *v = list; in snd_hda_add_verbs()
/sound/synth/
Dutil_mem.c32 #define get_memblk(p) list_entry(p, struct snd_util_memblk, list)
127 list_add(&blk->list, prev); in __snd_util_memblk_new()
155 list_del(&blk->list); in __snd_util_mem_free()

123456