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 void 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()
784 static int uclogic_tablet_enable(struct hid_device *hdev) in uclogic_tablet_enable() argument
787 struct usb_device *usb_dev = hid_to_usb_dev(hdev); in uclogic_tablet_enable()
788 struct uclogic_drvdata *drvdata = hid_get_drvdata(hdev); in uclogic_tablet_enable()
805 hid_err(hdev, "failed to allocate parameter buffer\n"); in uclogic_tablet_enable()
815 hid_err(hdev, "device parameters not found\n"); in uclogic_tablet_enable()
819 hid_err(hdev, "failed to get device parameters: %d\n", rc); in uclogic_tablet_enable()
823 hid_err(hdev, "invalid device parameters\n"); in uclogic_tablet_enable()
845 drvdata->rdesc = devm_kzalloc(&hdev->dev, in uclogic_tablet_enable()
849 hid_err(hdev, "failed to allocate fixed rdesc\n"); in uclogic_tablet_enable()
877 static int uclogic_probe(struct hid_device *hdev, in uclogic_probe() argument
881 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in uclogic_probe()
888 hdev->quirks |= HID_QUIRK_MULTI_INPUT; in uclogic_probe()
889 hdev->quirks |= HID_QUIRK_NO_EMPTY_INPUT; in uclogic_probe()
892 drvdata = devm_kzalloc(&hdev->dev, sizeof(*drvdata), GFP_KERNEL); in uclogic_probe()
896 hid_set_drvdata(hdev, drvdata); in uclogic_probe()
902 rc = uclogic_tablet_enable(hdev); in uclogic_probe()
904 hid_err(hdev, "tablet enabling failed\n"); in uclogic_probe()
914 rc = hid_parse(hdev); in uclogic_probe()
916 hid_err(hdev, "parse failed\n"); in uclogic_probe()
920 rc = hid_hw_start(hdev, HID_CONNECT_DEFAULT); in uclogic_probe()
922 hid_err(hdev, "hw start failed\n"); in uclogic_probe()
929 static int uclogic_raw_event(struct hid_device *hdev, struct hid_report *report, in uclogic_raw_event() argument
932 struct uclogic_drvdata *drvdata = hid_get_drvdata(hdev); in uclogic_raw_event()