Lines Matching defs:hdev
86 static int ryos_init_specials(struct hid_device *hdev)
88 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
95 hid_set_drvdata(hdev, NULL);
101 hid_err(hdev, "can't alloc device descriptor\n");
104 hid_set_drvdata(hdev, ryos);
108 hid_err(hdev, "couldn't init Ryos device\n");
112 retval = roccat_connect(&ryos_class, hdev,
115 hid_err(hdev, "couldn't init char dev\n");
127 static void ryos_remove_specials(struct hid_device *hdev)
129 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
136 ryos = hid_get_drvdata(hdev);
142 static int ryos_probe(struct hid_device *hdev,
147 if (!hid_is_usb(hdev))
150 retval = hid_parse(hdev);
152 hid_err(hdev, "parse failed\n");
156 retval = hid_hw_start(hdev, HID_CONNECT_DEFAULT);
158 hid_err(hdev, "hw start failed\n");
162 retval = ryos_init_specials(hdev);
164 hid_err(hdev, "couldn't install mouse\n");
171 hid_hw_stop(hdev);
176 static void ryos_remove(struct hid_device *hdev)
178 ryos_remove_specials(hdev);
179 hid_hw_stop(hdev);
182 static int ryos_raw_event(struct hid_device *hdev,
185 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
186 struct roccat_common2_device *ryos = hid_get_drvdata(hdev);