Lines Matching refs:hdev
56 static inline void samsung_irda_dev_trace(struct hid_device *hdev, in samsung_irda_dev_trace() argument
59 hid_info(hdev, "fixing up Samsung IrDA %d byte report descriptor\n", in samsung_irda_dev_trace()
63 static __u8 *samsung_irda_report_fixup(struct hid_device *hdev, __u8 *rdesc, in samsung_irda_report_fixup() argument
70 samsung_irda_dev_trace(hdev, 184); in samsung_irda_report_fixup()
78 samsung_irda_dev_trace(hdev, 203); in samsung_irda_report_fixup()
84 samsung_irda_dev_trace(hdev, 135); in samsung_irda_report_fixup()
90 samsung_irda_dev_trace(hdev, 171); in samsung_irda_report_fixup()
100 static int samsung_kbd_mouse_input_mapping(struct hid_device *hdev, in samsung_kbd_mouse_input_mapping() argument
104 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in samsung_kbd_mouse_input_mapping()
133 static __u8 *samsung_report_fixup(struct hid_device *hdev, __u8 *rdesc, in samsung_report_fixup() argument
136 if (USB_DEVICE_ID_SAMSUNG_IR_REMOTE == hdev->product) in samsung_report_fixup()
137 rdesc = samsung_irda_report_fixup(hdev, rdesc, rsize); in samsung_report_fixup()
141 static int samsung_input_mapping(struct hid_device *hdev, struct hid_input *hi, in samsung_input_mapping() argument
147 if (USB_DEVICE_ID_SAMSUNG_WIRELESS_KBD_MOUSE == hdev->product) in samsung_input_mapping()
148 ret = samsung_kbd_mouse_input_mapping(hdev, in samsung_input_mapping()
154 static int samsung_probe(struct hid_device *hdev, in samsung_probe() argument
160 ret = hid_parse(hdev); in samsung_probe()
162 hid_err(hdev, "parse failed\n"); in samsung_probe()
166 if (USB_DEVICE_ID_SAMSUNG_IR_REMOTE == hdev->product) { in samsung_probe()
167 if (hdev->rsize == 184) { in samsung_probe()
174 ret = hid_hw_start(hdev, cmask); in samsung_probe()
176 hid_err(hdev, "hw start failed\n"); in samsung_probe()