Lines Matching refs:minor
42 unsigned int minor;
152 unsigned int minor = iminor(inode);
163 device = devices[minor];
168 printk(KERN_EMERG "roccat device with minor %d doesn't exist\n",
169 minor);
212 unsigned int minor = iminor(inode);
218 device = devices[minor];
221 printk(KERN_EMERG "roccat device with minor %d doesn't exist\n",
222 minor);
250 * @minor: minor device number returned by roccat_connect()
258 int roccat_report_event(int minor, u8 const *data, int len)
269 device = devices[minor];
300 * Return value is minor device number in Range [0, ROCCAT_MAX_DEVICES] on
305 unsigned int minor;
315 for (minor = 0; minor < ROCCAT_MAX_DEVICES; ++minor) {
316 if (devices[minor])
321 if (minor < ROCCAT_MAX_DEVICES) {
322 devices[minor] = device;
330 MKDEV(roccat_major, minor), NULL,
331 "%s%s%d", "roccat", hid->driver->name, minor);
334 devices[minor] = NULL;
347 device->minor = minor;
352 return minor;
357 * @minor: the minor device number returned by roccat_connect()
359 void roccat_disconnect(int minor)
364 device = devices[minor];
365 devices[minor] = NULL;
370 device_destroy(roccat_class, MKDEV(roccat_major, minor));