Lines Matching defs:hdev
78 static int konepure_init_specials(struct hid_device *hdev)
80 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
87 hid_set_drvdata(hdev, NULL);
93 hid_err(hdev, "can't alloc device descriptor\n");
96 hid_set_drvdata(hdev, konepure);
100 hid_err(hdev, "couldn't init KonePure device\n");
104 retval = roccat_connect(&konepure_class, hdev,
107 hid_err(hdev, "couldn't init char dev\n");
119 static void konepure_remove_specials(struct hid_device *hdev)
121 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
128 konepure = hid_get_drvdata(hdev);
134 static int konepure_probe(struct hid_device *hdev,
139 if (!hid_is_usb(hdev))
142 retval = hid_parse(hdev);
144 hid_err(hdev, "parse failed\n");
148 retval = hid_hw_start(hdev, HID_CONNECT_DEFAULT);
150 hid_err(hdev, "hw start failed\n");
154 retval = konepure_init_specials(hdev);
156 hid_err(hdev, "couldn't install mouse\n");
163 hid_hw_stop(hdev);
168 static void konepure_remove(struct hid_device *hdev)
170 konepure_remove_specials(hdev);
171 hid_hw_stop(hdev);
174 static int konepure_raw_event(struct hid_device *hdev,
177 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
178 struct roccat_common2_device *konepure = hid_get_drvdata(hdev);