Lines Matching refs:hidraw_table
38 static struct hidraw *hidraw_table[HIDRAW_MAX_DEVICES]; variable
122 if (!hidraw_table[minor] || !hidraw_table[minor]->exist) { in hidraw_send_report()
127 dev = hidraw_table[minor]->hid; in hidraw_send_report()
201 if (!hidraw_table[minor] || !hidraw_table[minor]->exist) { in hidraw_get_report()
206 dev = hidraw_table[minor]->hid; in hidraw_get_report()
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()
356 hidraw_table[hidraw->minor] = NULL; in drop_ref()
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()
408 dev = hidraw_table[minor]; in hidraw_ioctl()
595 if (hidraw_table[minor]) in hidraw_connect()
597 hidraw_table[minor] = dev; in hidraw_connect()
612 hidraw_table[minor] = NULL; in hidraw_connect()