Lines Matching refs:hdev
34 static void cp_report_fixup(struct hid_device *hdev, __u8 *rdesc, in cp_report_fixup() argument
37 unsigned long quirks = (unsigned long)hid_get_drvdata(hdev); in cp_report_fixup()
55 static int cp_input_mapped(struct hid_device *hdev, struct hid_input *hi, in cp_input_mapped() argument
59 unsigned long quirks = (unsigned long)hid_get_drvdata(hdev); in cp_input_mapped()
72 static int cp_event(struct hid_device *hdev, struct hid_field *field, in cp_event() argument
75 unsigned long quirks = (unsigned long)hid_get_drvdata(hdev); in cp_event()
77 if (!(hdev->claimed & HID_CLAIMED_INPUT) || !field->hidinput || in cp_event()
86 hid_set_drvdata(hdev, (void *)quirks); in cp_event()
100 static int cp_probe(struct hid_device *hdev, const struct hid_device_id *id) in cp_probe() argument
105 hid_set_drvdata(hdev, (void *)quirks); in cp_probe()
107 ret = hid_parse(hdev); in cp_probe()
109 dev_err(&hdev->dev, "parse failed\n"); in cp_probe()
113 ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT); in cp_probe()
115 dev_err(&hdev->dev, "hw start failed\n"); in cp_probe()