Lines Matching defs:hdev

430 static __u8 *lg_report_fixup(struct hid_device *hdev, __u8 *rdesc,
433 struct lg_drv_data *drv_data = hid_get_drvdata(hdev);
437 hid_info(hdev,
445 hid_info(hdev,
450 switch (hdev->product) {
454 hid_info(hdev,
459 hid_info(hdev,
467 hid_info(hdev,
477 hid_info(hdev,
486 hid_info(hdev,
495 hid_info(hdev,
504 hid_info(hdev,
513 hid_info(hdev,
523 hid_info(hdev, "fixing up Logitech Speed Force Wireless report descriptor\n");
632 static int lg_input_mapping(struct hid_device *hdev, struct hid_input *hi,
648 struct lg_drv_data *drv_data = hid_get_drvdata(hdev);
651 if (hdev->product == USB_DEVICE_ID_LOGITECH_RECEIVER &&
681 static int lg_input_mapped(struct hid_device *hdev, struct hid_input *hi,
685 struct lg_drv_data *drv_data = hid_get_drvdata(hdev);
699 switch (hdev->product) {
722 static int lg_event(struct hid_device *hdev, struct hid_field *field,
725 struct lg_drv_data *drv_data = hid_get_drvdata(hdev);
733 return lg4ff_adjust_input_event(hdev, field, usage, value, drv_data);
739 static int lg_raw_event(struct hid_device *hdev, struct hid_report *report,
742 struct lg_drv_data *drv_data = hid_get_drvdata(hdev);
745 return lg4ff_raw_event(hdev, report, rd, size, drv_data);
750 static int lg_probe(struct hid_device *hdev, const struct hid_device_id *id)
758 if (!hid_is_usb(hdev))
761 iface = to_usb_interface(hdev->dev.parent);
765 if ((hdev->product == USB_DEVICE_ID_LOGITECH_G29_WHEEL) &&
773 hid_err(hdev, "Insufficient memory, cannot allocate driver data\n");
778 hid_set_drvdata(hdev, (void *)drv_data);
781 hdev->quirks |= HID_QUIRK_NOGET;
783 ret = hid_parse(hdev);
785 hid_err(hdev, "parse failed\n");
792 ret = hid_hw_start(hdev, connect_mask);
794 hid_err(hdev, "hw start failed\n");
799 if (hdev->product == USB_DEVICE_ID_LOGITECH_WII_WHEEL) {
810 ret = hid_hw_raw_request(hdev, buf[0], buf, sizeof(cbuf),
823 ret = hid_hw_raw_request(hdev, buf[0], buf, sizeof(cbuf),
830 ret = lgff_init(hdev);
832 ret = lg2ff_init(hdev);
834 ret = lg3ff_init(hdev);
836 ret = lg4ff_init(hdev);
844 hid_hw_stop(hdev);
850 static void lg_remove(struct hid_device *hdev)
852 struct lg_drv_data *drv_data = hid_get_drvdata(hdev);
854 lg4ff_deinit(hdev);
855 hid_hw_stop(hdev);