Lines Matching defs:device_data
17 * @device_data: the data pointer of this device
30 void *device_data, const struct snd_device_ops *ops)
35 if (snd_BUG_ON(!card || !device_data || !ops))
44 dev->device_data = device_data;
82 static struct snd_device *look_for_dev(struct snd_card *card, void *device_data)
87 if (dev->device_data == device_data)
96 * @device_data: the data pointer to disconnect
106 void snd_device_disconnect(struct snd_card *card, void *device_data)
110 if (snd_BUG_ON(!card || !device_data))
112 dev = look_for_dev(card, device_data);
117 device_data, __builtin_return_address(0));
124 * @device_data: the data pointer to release
130 void snd_device_free(struct snd_card *card, void *device_data)
134 if (snd_BUG_ON(!card || !device_data))
136 dev = look_for_dev(card, device_data);
141 device_data, __builtin_return_address(0));
161 * @device_data: the data pointer to register
171 int snd_device_register(struct snd_card *card, void *device_data)
175 if (snd_BUG_ON(!card || !device_data))
177 dev = look_for_dev(card, device_data);
244 * @device_data: the data pointer to release
253 int snd_device_get_state(struct snd_card *card, void *device_data)
257 dev = look_for_dev(card, device_data);