Lines Matching refs:hdev
633 static __u8 *uclogic_report_fixup(struct hid_device *hdev, __u8 *rdesc, in uclogic_report_fixup() argument
636 struct usb_interface *iface = to_usb_interface(hdev->dev.parent); in uclogic_report_fixup()
638 struct uclogic_drvdata *drvdata = hid_get_drvdata(hdev); in uclogic_report_fixup()
640 switch (hdev->product) { in uclogic_report_fixup()
719 static int uclogic_input_mapping(struct hid_device *hdev, struct hid_input *hi, in uclogic_input_mapping() argument
723 struct uclogic_drvdata *drvdata = hid_get_drvdata(hdev); in uclogic_input_mapping()
734 static int uclogic_input_configured(struct hid_device *hdev, in uclogic_input_configured() argument
770 len = strlen(hdev->name) + 2 + strlen(suffix); in uclogic_input_configured()
773 snprintf(name, len, "%s %s", hdev->name, suffix); in uclogic_input_configured()
786 static int uclogic_tablet_enable(struct hid_device *hdev) in uclogic_tablet_enable() argument
789 struct usb_device *usb_dev = hid_to_usb_dev(hdev); in uclogic_tablet_enable()
790 struct uclogic_drvdata *drvdata = hid_get_drvdata(hdev); in uclogic_tablet_enable()
807 hid_err(hdev, "failed to allocate parameter buffer\n"); in uclogic_tablet_enable()
817 hid_err(hdev, "device parameters not found\n"); in uclogic_tablet_enable()
821 hid_err(hdev, "failed to get device parameters: %d\n", rc); in uclogic_tablet_enable()
825 hid_err(hdev, "invalid device parameters\n"); in uclogic_tablet_enable()
847 drvdata->rdesc = devm_kzalloc(&hdev->dev, in uclogic_tablet_enable()
851 hid_err(hdev, "failed to allocate fixed rdesc\n"); in uclogic_tablet_enable()
879 static int uclogic_probe(struct hid_device *hdev, in uclogic_probe() argument
883 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in uclogic_probe()
890 hdev->quirks |= HID_QUIRK_MULTI_INPUT; in uclogic_probe()
891 hdev->quirks |= HID_QUIRK_NO_EMPTY_INPUT; in uclogic_probe()
894 drvdata = devm_kzalloc(&hdev->dev, sizeof(*drvdata), GFP_KERNEL); in uclogic_probe()
898 hid_set_drvdata(hdev, drvdata); in uclogic_probe()
904 rc = uclogic_tablet_enable(hdev); in uclogic_probe()
906 hid_err(hdev, "tablet enabling failed\n"); in uclogic_probe()
916 rc = hid_parse(hdev); in uclogic_probe()
918 hid_err(hdev, "parse failed\n"); in uclogic_probe()
922 rc = hid_hw_start(hdev, HID_CONNECT_DEFAULT); in uclogic_probe()
924 hid_err(hdev, "hw start failed\n"); in uclogic_probe()
931 static int uclogic_raw_event(struct hid_device *hdev, struct hid_report *report, in uclogic_raw_event() argument
934 struct uclogic_drvdata *drvdata = hid_get_drvdata(hdev); in uclogic_raw_event()