Lines Matching refs:hdev
692 static int kone_init_specials(struct hid_device *hdev) in kone_init_specials() argument
694 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in kone_init_specials()
705 hid_set_drvdata(hdev, kone); in kone_init_specials()
709 hid_err(hdev, "couldn't init struct kone_device\n"); in kone_init_specials()
713 retval = roccat_connect(kone_class, hdev, in kone_init_specials()
716 hid_err(hdev, "couldn't init char dev\n"); in kone_init_specials()
723 hid_set_drvdata(hdev, NULL); in kone_init_specials()
732 static void kone_remove_specials(struct hid_device *hdev) in kone_remove_specials() argument
734 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in kone_remove_specials()
739 kone = hid_get_drvdata(hdev); in kone_remove_specials()
742 kfree(hid_get_drvdata(hdev)); in kone_remove_specials()
746 static int kone_probe(struct hid_device *hdev, const struct hid_device_id *id) in kone_probe() argument
750 retval = hid_parse(hdev); in kone_probe()
752 hid_err(hdev, "parse failed\n"); in kone_probe()
756 retval = hid_hw_start(hdev, HID_CONNECT_DEFAULT); in kone_probe()
758 hid_err(hdev, "hw start failed\n"); in kone_probe()
762 retval = kone_init_specials(hdev); in kone_probe()
764 hid_err(hdev, "couldn't install mouse\n"); in kone_probe()
771 hid_hw_stop(hdev); in kone_probe()
776 static void kone_remove(struct hid_device *hdev) in kone_remove() argument
778 kone_remove_specials(hdev); in kone_remove()
779 hid_hw_stop(hdev); in kone_remove()
835 static int kone_raw_event(struct hid_device *hdev, struct hid_report *report, in kone_raw_event() argument
838 struct kone_device *kone = hid_get_drvdata(hdev); in kone_raw_event()