Lines Matching refs:hdev
562 void hid_debug_event(struct hid_device *hdev, char *buf)
567 list_for_each_entry(list, &hdev->debug_list, node) {
576 void hid_dump_input(struct hid_device *hdev, struct hid_usage *usage, __s32 value)
587 hid_debug_event(hdev, buf);
590 wake_up_interruptible(&hdev->debug_wait);
899 struct hid_device *hdev = f->private;
903 for (i = 0; i < hdev->rsize; i++)
904 seq_printf(f, "%02x ", hdev->rdesc[i]);
908 hid_dump_device(hdev, f);
910 hid_dump_input_mapping(hdev, f);
935 list->hdev = (struct hid_device *) inode->i_private;
939 list_add_tail(&list->node, &list->hdev->debug_list);
955 add_wait_queue(&list->hdev->debug_wait, &wait);
968 if (!list->hdev || !list->hdev->debug) {
981 remove_wait_queue(&list->hdev->debug_wait, &wait);
1022 poll_wait(file, &list->hdev->debug_wait, wait);
1025 if (!list->hdev->debug)
1057 void hid_debug_register(struct hid_device *hdev, const char *name)
1059 hdev->debug_dir = debugfs_create_dir(name, hid_debug_root);
1060 hdev->debug_rdesc = debugfs_create_file("rdesc", 0400,
1061 hdev->debug_dir, hdev, &hid_debug_rdesc_fops);
1062 hdev->debug_events = debugfs_create_file("events", 0400,
1063 hdev->debug_dir, hdev, &hid_debug_events_fops);
1064 hdev->debug = 1;
1067 void hid_debug_unregister(struct hid_device *hdev)
1069 hdev->debug = 0;
1070 wake_up_interruptible(&hdev->debug_wait);
1071 debugfs_remove(hdev->debug_rdesc);
1072 debugfs_remove(hdev->debug_events);
1073 debugfs_remove(hdev->debug_dir);