Lines Matching refs:hidraw
38 static struct hidraw *hidraw_table[HIDRAW_MAX_DEVICES];
51 add_wait_queue(&list->hidraw->wait, &wait); in hidraw_read()
59 if (!list->hidraw->exist) { in hidraw_read()
76 remove_wait_queue(&list->hidraw->wait, &wait); in hidraw_read()
256 poll_wait(file, &list->hidraw->wait, wait); in hidraw_poll()
259 if (!list->hidraw->exist) in hidraw_poll()
267 struct hidraw *dev; in hidraw_open()
304 list->hidraw = hidraw_table[minor]; in hidraw_open()
326 static void drop_ref(struct hidraw *hidraw, int exists_bit) in drop_ref() argument
329 hidraw->exist = 0; in drop_ref()
330 if (hidraw->open) { in drop_ref()
331 hid_hw_close(hidraw->hid); in drop_ref()
332 wake_up_interruptible(&hidraw->wait); in drop_ref()
335 MKDEV(hidraw_major, hidraw->minor)); in drop_ref()
337 --hidraw->open; in drop_ref()
339 if (!hidraw->open) { in drop_ref()
340 if (!hidraw->exist) { in drop_ref()
341 hidraw_table[hidraw->minor] = NULL; in drop_ref()
342 kfree(hidraw); in drop_ref()
345 hid_hw_close(hidraw->hid); in drop_ref()
346 hid_hw_power(hidraw->hid, PM_HINT_NORMAL); in drop_ref()
381 struct hidraw *dev; in hidraw_ioctl()
521 struct hidraw *dev = hid->hidraw; in hidraw_report_event()
551 struct hidraw *dev; in hidraw_connect()
555 dev = kzalloc(sizeof(struct hidraw), GFP_KERNEL); in hidraw_connect()
596 hid->hidraw = dev; in hidraw_connect()
607 struct hidraw *hidraw = hid->hidraw; in hidraw_disconnect() local
611 drop_ref(hidraw, 1); in hidraw_disconnect()