Lines Matching defs:hdev
697 static int kone_init_specials(struct hid_device *hdev)
699 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
710 hid_set_drvdata(hdev, kone);
714 hid_err(hdev, "couldn't init struct kone_device\n");
718 retval = roccat_connect(&kone_class, hdev,
721 hid_err(hdev, "couldn't init char dev\n");
728 hid_set_drvdata(hdev, NULL);
737 static void kone_remove_specials(struct hid_device *hdev)
739 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
744 kone = hid_get_drvdata(hdev);
747 kfree(hid_get_drvdata(hdev));
751 static int kone_probe(struct hid_device *hdev, const struct hid_device_id *id)
755 if (!hid_is_usb(hdev))
758 retval = hid_parse(hdev);
760 hid_err(hdev, "parse failed\n");
764 retval = hid_hw_start(hdev, HID_CONNECT_DEFAULT);
766 hid_err(hdev, "hw start failed\n");
770 retval = kone_init_specials(hdev);
772 hid_err(hdev, "couldn't install mouse\n");
779 hid_hw_stop(hdev);
784 static void kone_remove(struct hid_device *hdev)
786 kone_remove_specials(hdev);
787 hid_hw_stop(hdev);
844 static int kone_raw_event(struct hid_device *hdev, struct hid_report *report,
847 struct kone_device *kone = hid_get_drvdata(hdev);