Lines Matching defs:device
10 #include <linux/device.h>
85 * snd_lookup_minor_data - get user data of a registered device
87 * @type: device type (SNDRV_DEVICE_TYPE_XXX)
89 * Checks that a minor device with the specified type is registered, and returns
96 * Return: The user data pointer if the specified device is found. %NULL
239 * snd_register_device - Register the ALSA device file for the card
240 * @type: the device type, SNDRV_DEVICE_TYPE_XXX
242 * @dev: the device index
245 * @device: the device to register
247 * Registers an ALSA device file for the given card.
254 void *private_data, struct device *device)
260 if (snd_BUG_ON(!device))
268 preg->device = dev;
279 preg->dev = device;
280 device->devt = MKDEV(major, minor);
281 err = device_add(device);
295 * snd_unregister_device - unregister the device on the given card
296 * @dev: the device instance
298 * Unregisters the device file already registered via
303 int snd_unregister_device(struct device *dev)
364 if (mptr->device >= 0)
366 minor, mptr->card, mptr->device,
400 pr_err("ALSA core: unable to register native major device number %d\n", major);