Lines Matching defs:device_data
32 * @device_data: the data pointer of this device
45 void *device_data, struct snd_device_ops *ops)
50 snd_assert(device_data != NULL, return -ENXIO);
60 dev->device_data = device_data;
71 * @device_data: the data pointer to release
80 int snd_device_free(struct snd_card *card, void *device_data)
85 snd_assert(device_data != NULL, return -ENXIO);
87 if (dev->device_data != device_data)
103 snd_printd("device free %p (from %p), not found\n", device_data,
113 * @device_data: the data pointer to disconnect
123 int snd_device_disconnect(struct snd_card *card, void *device_data)
128 snd_assert(device_data != NULL, return -ENXIO);
130 if (dev->device_data != device_data)
140 snd_printd("device disconnect %p (from %p), not found\n", device_data,
148 * @device_data: the data pointer to register
158 int snd_device_register(struct snd_card *card, void *device_data)
164 snd_assert(device_data != NULL, return -ENXIO);
166 if (dev->device_data != device_data)
214 if (snd_device_disconnect(card, dev->device_data) < 0)
236 if ((err = snd_device_free(card, dev->device_data)) < 0)