Lines Matching defs:hdev
694 static int kone_init_specials(struct hid_device *hdev)
696 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
707 hid_set_drvdata(hdev, kone);
711 hid_err(hdev, "couldn't init struct kone_device\n");
715 retval = roccat_connect(kone_class, hdev,
718 hid_err(hdev, "couldn't init char dev\n");
725 hid_set_drvdata(hdev, NULL);
734 static void kone_remove_specials(struct hid_device *hdev)
736 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
741 kone = hid_get_drvdata(hdev);
744 kfree(hid_get_drvdata(hdev));
748 static int kone_probe(struct hid_device *hdev, const struct hid_device_id *id)
752 if (!hid_is_usb(hdev))
755 retval = hid_parse(hdev);
757 hid_err(hdev, "parse failed\n");
761 retval = hid_hw_start(hdev, HID_CONNECT_DEFAULT);
763 hid_err(hdev, "hw start failed\n");
767 retval = kone_init_specials(hdev);
769 hid_err(hdev, "couldn't install mouse\n");
776 hid_hw_stop(hdev);
781 static void kone_remove(struct hid_device *hdev)
783 kone_remove_specials(hdev);
784 hid_hw_stop(hdev);
841 static int kone_raw_event(struct hid_device *hdev, struct hid_report *report,
844 struct kone_device *kone = hid_get_drvdata(hdev);