Lines Matching full:minor

40 	unsigned int minor;  member
150 unsigned int minor = iminor(inode); in roccat_open() local
161 device = devices[minor]; in roccat_open()
164 pr_emerg("roccat device with minor %d doesn't exist\n", minor); in roccat_open()
205 unsigned int minor = iminor(inode); in roccat_release() local
211 device = devices[minor]; in roccat_release()
214 pr_emerg("roccat device with minor %d doesn't exist\n", minor); in roccat_release()
240 * @minor: minor device number returned by roccat_connect()
247 int roccat_report_event(int minor, u8 const *data) in roccat_report_event() argument
254 device = devices[minor]; in roccat_report_event()
295 * Return value is minor device number in Range [0, ROCCAT_MAX_DEVICES] on
300 unsigned int minor; in roccat_connect() local
310 for (minor = 0; minor < ROCCAT_MAX_DEVICES; ++minor) { in roccat_connect()
311 if (devices[minor]) in roccat_connect()
316 if (minor < ROCCAT_MAX_DEVICES) { in roccat_connect()
317 devices[minor] = device; in roccat_connect()
325 MKDEV(roccat_major, minor), NULL, in roccat_connect()
326 "%s%s%d", "roccat", hid->driver->name, minor); in roccat_connect()
329 devices[minor] = NULL; in roccat_connect()
342 device->minor = minor; in roccat_connect()
348 return minor; in roccat_connect()
353 * @minor: the minor device number returned by roccat_connect()
355 void roccat_disconnect(int minor) in roccat_disconnect() argument
360 device = devices[minor]; in roccat_disconnect()
365 device_destroy(device->dev->class, MKDEV(roccat_major, minor)); in roccat_disconnect()
368 devices[minor] = NULL; in roccat_disconnect()
384 unsigned int minor = iminor(inode); in roccat_ioctl() local
389 device = devices[minor]; in roccat_ioctl()