Lines Matching refs:hdev
33 static __u8 *cp_report_fixup(struct hid_device *hdev, __u8 *rdesc, in cp_report_fixup() argument
36 unsigned long quirks = (unsigned long)hid_get_drvdata(hdev); in cp_report_fixup()
51 static int cp_input_mapped(struct hid_device *hdev, struct hid_input *hi, in cp_input_mapped() argument
55 unsigned long quirks = (unsigned long)hid_get_drvdata(hdev); in cp_input_mapped()
68 static int cp_event(struct hid_device *hdev, struct hid_field *field, in cp_event() argument
71 unsigned long quirks = (unsigned long)hid_get_drvdata(hdev); in cp_event()
73 if (!(hdev->claimed & HID_CLAIMED_INPUT) || !field->hidinput || in cp_event()
82 hid_set_drvdata(hdev, (void *)quirks); in cp_event()
96 static int cp_probe(struct hid_device *hdev, const struct hid_device_id *id) in cp_probe() argument
101 hid_set_drvdata(hdev, (void *)quirks); in cp_probe()
103 ret = hid_parse(hdev); in cp_probe()
105 hid_err(hdev, "parse failed\n"); in cp_probe()
109 ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT); in cp_probe()
111 hid_err(hdev, "hw start failed\n"); in cp_probe()