Lines Matching refs:hwdep
27 static long hwdep_read(struct snd_hwdep *hwdep, char __user *buf, long count, in hwdep_read() argument
30 struct snd_motu *motu = hwdep->private_data; in hwdep_read()
99 static __poll_t hwdep_poll(struct snd_hwdep *hwdep, struct file *file, in hwdep_poll() argument
102 struct snd_motu *motu = hwdep->private_data; in hwdep_poll()
172 static int hwdep_release(struct snd_hwdep *hwdep, struct file *file) in hwdep_release() argument
174 struct snd_motu *motu = hwdep->private_data; in hwdep_release()
184 static int hwdep_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_ioctl() argument
187 struct snd_motu *motu = hwdep->private_data; in hwdep_ioctl()
267 static int hwdep_compat_ioctl(struct snd_hwdep *hwdep, struct file *file, in hwdep_compat_ioctl() argument
270 return hwdep_ioctl(hwdep, file, cmd, in hwdep_compat_ioctl()
286 struct snd_hwdep *hwdep; in snd_motu_create_hwdep_device() local
289 err = snd_hwdep_new(motu->card, motu->card->driver, 0, &hwdep); in snd_motu_create_hwdep_device()
293 strcpy(hwdep->name, "MOTU"); in snd_motu_create_hwdep_device()
294 hwdep->iface = SNDRV_HWDEP_IFACE_FW_MOTU; in snd_motu_create_hwdep_device()
295 hwdep->ops = ops; in snd_motu_create_hwdep_device()
296 hwdep->private_data = motu; in snd_motu_create_hwdep_device()
297 hwdep->exclusive = true; in snd_motu_create_hwdep_device()
299 motu->hwdep = hwdep; in snd_motu_create_hwdep_device()