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");
648 static int lg_input_mapping(struct hid_device *hdev, struct hid_input *hi,
664 struct lg_drv_data *drv_data = hid_get_drvdata(hdev);
667 if (hdev->product == USB_DEVICE_ID_LOGITECH_RECEIVER &&
671 if (hdev->product == USB_DEVICE_ID_DINOVO_MINI &&
701 static int lg_input_mapped(struct hid_device *hdev, struct hid_input *hi,
705 struct lg_drv_data *drv_data = hid_get_drvdata(hdev);
719 switch (hdev->product) {
742 static int lg_event(struct hid_device *hdev, struct hid_field *field,
745 struct lg_drv_data *drv_data = hid_get_drvdata(hdev);
753 return lg4ff_adjust_input_event(hdev, field, usage, value, drv_data);
759 static int lg_raw_event(struct hid_device *hdev, struct hid_report *report,
762 struct lg_drv_data *drv_data = hid_get_drvdata(hdev);
765 return lg4ff_raw_event(hdev, report, rd, size, drv_data);
770 static int lg_probe(struct hid_device *hdev, const struct hid_device_id *id)
778 if (!hid_is_usb(hdev))
781 iface = to_usb_interface(hdev->dev.parent);
785 if ((hdev->product == USB_DEVICE_ID_LOGITECH_G29_WHEEL) &&
793 hid_err(hdev, "Insufficient memory, cannot allocate driver data\n");
798 hid_set_drvdata(hdev, (void *)drv_data);
801 hdev->quirks |= HID_QUIRK_NOGET;
803 ret = hid_parse(hdev);
805 hid_err(hdev, "parse failed\n");
812 ret = hid_hw_start(hdev, connect_mask);
814 hid_err(hdev, "hw start failed\n");
819 if (hdev->product == USB_DEVICE_ID_LOGITECH_WII_WHEEL) {
830 ret = hid_hw_raw_request(hdev, buf[0], buf, sizeof(cbuf),
843 ret = hid_hw_raw_request(hdev, buf[0], buf, sizeof(cbuf),
850 ret = lgff_init(hdev);
852 ret = lg2ff_init(hdev);
854 ret = lg3ff_init(hdev);
856 ret = lg4ff_init(hdev);
864 hid_hw_stop(hdev);
870 static void lg_remove(struct hid_device *hdev)
872 struct lg_drv_data *drv_data = hid_get_drvdata(hdev);
874 lg4ff_deinit(hdev);
875 hid_hw_stop(hdev);