Lines Matching defs:device_data
31 * @device_data: the data pointer of this device
44 void *device_data, struct snd_device_ops *ops)
48 if (snd_BUG_ON(!card || !device_data || !ops))
58 dev->device_data = device_data;
69 * @device_data: the data pointer to release
78 int snd_device_free(struct snd_card *card, void *device_data)
82 if (snd_BUG_ON(!card || !device_data))
85 if (dev->device_data != device_data)
101 snd_printd("device free %p (from %pF), not found\n", device_data,
111 * @device_data: the data pointer to disconnect
121 int snd_device_disconnect(struct snd_card *card, void *device_data)
125 if (snd_BUG_ON(!card || !device_data))
128 if (dev->device_data != device_data)
138 snd_printd("device disconnect %p (from %pF), not found\n", device_data,
146 * @device_data: the data pointer to register
156 int snd_device_register(struct snd_card *card, void *device_data)
161 if (snd_BUG_ON(!card || !device_data))
164 if (dev->device_data != device_data)
214 if (snd_device_disconnect(card, dev->device_data) < 0)
237 if ((err = snd_device_free(card, dev->device_data)) < 0)