• Home
  • Raw
  • Download

Lines Matching refs:card

29 int snd_device_new(struct snd_card *card, enum snd_device_type type,  in snd_device_new()  argument
35 if (snd_BUG_ON(!card || !device_data || !ops)) in snd_device_new()
41 dev->card = card; in snd_device_new()
48 list_for_each_prev(p, &card->devices) { in snd_device_new()
64 dev_err(dev->card->dev, "device disconnect failure\n"); in __snd_device_disconnect()
77 dev_err(dev->card->dev, "device free failure\n"); in __snd_device_free()
82 static struct snd_device *look_for_dev(struct snd_card *card, void *device_data) in look_for_dev() argument
86 list_for_each_entry(dev, &card->devices, list) in look_for_dev()
106 void snd_device_disconnect(struct snd_card *card, void *device_data) in snd_device_disconnect() argument
110 if (snd_BUG_ON(!card || !device_data)) in snd_device_disconnect()
112 dev = look_for_dev(card, device_data); in snd_device_disconnect()
116 dev_dbg(card->dev, "device disconnect %p (from %pS), not found\n", in snd_device_disconnect()
130 void snd_device_free(struct snd_card *card, void *device_data) in snd_device_free() argument
134 if (snd_BUG_ON(!card || !device_data)) in snd_device_free()
136 dev = look_for_dev(card, device_data); in snd_device_free()
140 dev_dbg(card->dev, "device free %p (from %pS), not found\n", in snd_device_free()
171 int snd_device_register(struct snd_card *card, void *device_data) in snd_device_register() argument
175 if (snd_BUG_ON(!card || !device_data)) in snd_device_register()
177 dev = look_for_dev(card, device_data); in snd_device_register()
189 int snd_device_register_all(struct snd_card *card) in snd_device_register_all() argument
194 if (snd_BUG_ON(!card)) in snd_device_register_all()
196 list_for_each_entry(dev, &card->devices, list) { in snd_device_register_all()
208 void snd_device_disconnect_all(struct snd_card *card) in snd_device_disconnect_all() argument
212 if (snd_BUG_ON(!card)) in snd_device_disconnect_all()
214 list_for_each_entry_reverse(dev, &card->devices, list) in snd_device_disconnect_all()
222 void snd_device_free_all(struct snd_card *card) in snd_device_free_all() argument
226 if (snd_BUG_ON(!card)) in snd_device_free_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()