Lines Matching full:minor
115 unsigned int minor = iminor(file_inode(file)); in hidraw_send_report() local
122 if (!hidraw_table[minor] || !hidraw_table[minor]->exist) { in hidraw_send_report()
127 dev = hidraw_table[minor]->hid; in hidraw_send_report()
193 unsigned int minor = iminor(file_inode(file)); in hidraw_get_report() local
201 if (!hidraw_table[minor] || !hidraw_table[minor]->exist) { in hidraw_get_report()
206 dev = hidraw_table[minor]->hid; in hidraw_get_report()
278 unsigned int minor = iminor(inode); in hidraw_open() local
295 if (!hidraw_table[minor] || !hidraw_table[minor]->exist) { in hidraw_open()
300 dev = hidraw_table[minor]; in hidraw_open()
316 list->hidraw = hidraw_table[minor]; in hidraw_open()
318 spin_lock_irqsave(&hidraw_table[minor]->list_lock, flags); in hidraw_open()
319 list_add_tail(&list->node, &hidraw_table[minor]->list); in hidraw_open()
320 spin_unlock_irqrestore(&hidraw_table[minor]->list_lock, flags); in hidraw_open()
350 MKDEV(hidraw_major, hidraw->minor)); in drop_ref()
356 hidraw_table[hidraw->minor] = NULL; in drop_ref()
368 unsigned int minor = iminor(inode); in hidraw_release() local
374 spin_lock_irqsave(&hidraw_table[minor]->list_lock, flags); in hidraw_release()
381 spin_unlock_irqrestore(&hidraw_table[minor]->list_lock, flags); in hidraw_release()
384 drop_ref(hidraw_table[minor], 0); in hidraw_release()
401 unsigned int minor = iminor(inode); in hidraw_ioctl() local
408 dev = hidraw_table[minor]; in hidraw_ioctl()
581 int minor, result; in hidraw_connect() local
594 for (minor = 0; minor < HIDRAW_MAX_DEVICES; minor++) { in hidraw_connect()
595 if (hidraw_table[minor]) in hidraw_connect()
597 hidraw_table[minor] = dev; in hidraw_connect()
608 dev->dev = device_create(&hidraw_class, &hid->dev, MKDEV(hidraw_major, minor), in hidraw_connect()
609 NULL, "%s%d", "hidraw", minor); in hidraw_connect()
612 hidraw_table[minor] = NULL; in hidraw_connect()
624 dev->minor = minor; in hidraw_connect()