Lines Matching full:minor

105 	unsigned int minor = iminor(file_inode(file));  in hidraw_send_report()  local
112 if (!hidraw_table[minor] || !hidraw_table[minor]->exist) { in hidraw_send_report()
117 dev = hidraw_table[minor]->hid; in hidraw_send_report()
179 unsigned int minor = iminor(file_inode(file)); in hidraw_get_report() local
187 if (!hidraw_table[minor] || !hidraw_table[minor]->exist) { in hidraw_get_report()
192 dev = hidraw_table[minor]->hid; in hidraw_get_report()
264 unsigned int minor = iminor(inode); in hidraw_open() local
276 if (!hidraw_table[minor] || !hidraw_table[minor]->exist) { in hidraw_open()
281 dev = hidraw_table[minor]; in hidraw_open()
297 list->hidraw = hidraw_table[minor]; in hidraw_open()
299 spin_lock_irqsave(&hidraw_table[minor]->list_lock, flags); in hidraw_open()
300 list_add_tail(&list->node, &hidraw_table[minor]->list); in hidraw_open()
301 spin_unlock_irqrestore(&hidraw_table[minor]->list_lock, flags); in hidraw_open()
328 MKDEV(hidraw_major, hidraw->minor)); in drop_ref()
334 hidraw_table[hidraw->minor] = NULL; in drop_ref()
346 unsigned int minor = iminor(inode); in hidraw_release() local
352 spin_lock_irqsave(&hidraw_table[minor]->list_lock, flags); in hidraw_release()
356 spin_unlock_irqrestore(&hidraw_table[minor]->list_lock, flags); in hidraw_release()
359 drop_ref(hidraw_table[minor], 0); in hidraw_release()
369 unsigned int minor = iminor(inode); in hidraw_ioctl() local
375 dev = hidraw_table[minor]; in hidraw_ioctl()
540 int minor, result; in hidraw_connect() local
553 for (minor = 0; minor < HIDRAW_MAX_DEVICES; minor++) { in hidraw_connect()
554 if (hidraw_table[minor]) in hidraw_connect()
556 hidraw_table[minor] = dev; in hidraw_connect()
567 dev->dev = device_create(hidraw_class, &hid->dev, MKDEV(hidraw_major, minor), in hidraw_connect()
568 NULL, "%s%d", "hidraw", minor); in hidraw_connect()
571 hidraw_table[minor] = NULL; in hidraw_connect()
583 dev->minor = minor; in hidraw_connect()