Lines Matching refs:hdev
33 static __u8 *ms_report_fixup(struct hid_device *hdev, __u8 *rdesc, in ms_report_fixup() argument
36 unsigned long quirks = (unsigned long)hid_get_drvdata(hdev); in ms_report_fixup()
44 hid_info(hdev, "fixing up Microsoft Wireless Receiver Model 1028 report descriptor\n"); in ms_report_fixup()
141 static int ms_input_mapping(struct hid_device *hdev, struct hid_input *hi, in ms_input_mapping() argument
145 unsigned long quirks = (unsigned long)hid_get_drvdata(hdev); in ms_input_mapping()
160 static int ms_input_mapped(struct hid_device *hdev, struct hid_input *hi, in ms_input_mapped() argument
164 unsigned long quirks = (unsigned long)hid_get_drvdata(hdev); in ms_input_mapped()
172 static int ms_event(struct hid_device *hdev, struct hid_field *field, in ms_event() argument
175 unsigned long quirks = (unsigned long)hid_get_drvdata(hdev); in ms_event()
178 if (!(hdev->claimed & HID_CLAIMED_INPUT) || !field->hidinput || in ms_event()
230 static int ms_probe(struct hid_device *hdev, const struct hid_device_id *id) in ms_probe() argument
235 hid_set_drvdata(hdev, (void *)quirks); in ms_probe()
238 hdev->quirks |= HID_QUIRK_NOGET; in ms_probe()
240 ret = hid_parse(hdev); in ms_probe()
242 hid_err(hdev, "parse failed\n"); in ms_probe()
246 ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT | ((quirks & MS_HIDINPUT) ? in ms_probe()
249 hid_err(hdev, "hw start failed\n"); in ms_probe()