Lines Matching defs:hdev
83 static int ryos_init_specials(struct hid_device *hdev)
85 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
92 hid_set_drvdata(hdev, NULL);
98 hid_err(hdev, "can't alloc device descriptor\n");
101 hid_set_drvdata(hdev, ryos);
105 hid_err(hdev, "couldn't init Ryos device\n");
109 retval = roccat_connect(ryos_class, hdev,
112 hid_err(hdev, "couldn't init char dev\n");
124 static void ryos_remove_specials(struct hid_device *hdev)
126 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
133 ryos = hid_get_drvdata(hdev);
139 static int ryos_probe(struct hid_device *hdev,
144 if (!hid_is_usb(hdev))
147 retval = hid_parse(hdev);
149 hid_err(hdev, "parse failed\n");
153 retval = hid_hw_start(hdev, HID_CONNECT_DEFAULT);
155 hid_err(hdev, "hw start failed\n");
159 retval = ryos_init_specials(hdev);
161 hid_err(hdev, "couldn't install mouse\n");
168 hid_hw_stop(hdev);
173 static void ryos_remove(struct hid_device *hdev)
175 ryos_remove_specials(hdev);
176 hid_hw_stop(hdev);
179 static int ryos_raw_event(struct hid_device *hdev,
182 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
183 struct roccat_common2_device *ryos = hid_get_drvdata(hdev);