Lines Matching refs:hidraw
43 static struct hidraw *hidraw_table[HIDRAW_MAX_DEVICES];
56 add_wait_queue(&list->hidraw->wait, &wait); in hidraw_read()
64 if (!list->hidraw->exist) { in hidraw_read()
81 remove_wait_queue(&list->hidraw->wait, &wait); in hidraw_read()
261 poll_wait(file, &list->hidraw->wait, wait); in hidraw_poll()
264 if (!list->hidraw->exist) in hidraw_poll()
272 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_power(hidraw->hid, PM_HINT_NORMAL); in drop_ref()
346 hid_hw_close(hidraw->hid); in drop_ref()
376 struct hidraw *dev; in hidraw_ioctl()
487 struct hidraw *dev = hid->hidraw; in hidraw_report_event()
517 struct hidraw *dev; in hidraw_connect()
521 dev = kzalloc(sizeof(struct hidraw), GFP_KERNEL); in hidraw_connect()
562 hid->hidraw = dev; in hidraw_connect()
573 struct hidraw *hidraw = hid->hidraw; in hidraw_disconnect() local
577 drop_ref(hidraw, 1); in hidraw_disconnect()