Lines Matching defs:hdev
75 static int konepure_init_specials(struct hid_device *hdev)
77 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
84 hid_set_drvdata(hdev, NULL);
90 hid_err(hdev, "can't alloc device descriptor\n");
93 hid_set_drvdata(hdev, konepure);
97 hid_err(hdev, "couldn't init KonePure device\n");
101 retval = roccat_connect(konepure_class, hdev,
104 hid_err(hdev, "couldn't init char dev\n");
116 static void konepure_remove_specials(struct hid_device *hdev)
118 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
125 konepure = hid_get_drvdata(hdev);
131 static int konepure_probe(struct hid_device *hdev,
136 if (!hid_is_usb(hdev))
139 retval = hid_parse(hdev);
141 hid_err(hdev, "parse failed\n");
145 retval = hid_hw_start(hdev, HID_CONNECT_DEFAULT);
147 hid_err(hdev, "hw start failed\n");
151 retval = konepure_init_specials(hdev);
153 hid_err(hdev, "couldn't install mouse\n");
160 hid_hw_stop(hdev);
165 static void konepure_remove(struct hid_device *hdev)
167 konepure_remove_specials(hdev);
168 hid_hw_stop(hdev);
171 static int konepure_raw_event(struct hid_device *hdev,
174 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
175 struct roccat_common2_device *konepure = hid_get_drvdata(hdev);