Lines Matching refs:hdev

86 static int ryos_init_specials(struct hid_device *hdev)  in ryos_init_specials()  argument
88 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in ryos_init_specials()
95 hid_set_drvdata(hdev, NULL); in ryos_init_specials()
101 hid_err(hdev, "can't alloc device descriptor\n"); in ryos_init_specials()
104 hid_set_drvdata(hdev, ryos); in ryos_init_specials()
108 hid_err(hdev, "couldn't init Ryos device\n"); in ryos_init_specials()
112 retval = roccat_connect(ryos_class, hdev, in ryos_init_specials()
115 hid_err(hdev, "couldn't init char dev\n"); in ryos_init_specials()
127 static void ryos_remove_specials(struct hid_device *hdev) in ryos_remove_specials() argument
129 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in ryos_remove_specials()
136 ryos = hid_get_drvdata(hdev); in ryos_remove_specials()
142 static int ryos_probe(struct hid_device *hdev, in ryos_probe() argument
147 retval = hid_parse(hdev); in ryos_probe()
149 hid_err(hdev, "parse failed\n"); in ryos_probe()
153 retval = hid_hw_start(hdev, HID_CONNECT_DEFAULT); in ryos_probe()
155 hid_err(hdev, "hw start failed\n"); in ryos_probe()
159 retval = ryos_init_specials(hdev); in ryos_probe()
161 hid_err(hdev, "couldn't install mouse\n"); in ryos_probe()
168 hid_hw_stop(hdev); in ryos_probe()
173 static void ryos_remove(struct hid_device *hdev) in ryos_remove() argument
175 ryos_remove_specials(hdev); in ryos_remove()
176 hid_hw_stop(hdev); in ryos_remove()
179 static int ryos_raw_event(struct hid_device *hdev, in ryos_raw_event() argument
182 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in ryos_raw_event()
183 struct roccat_common2_device *ryos = hid_get_drvdata(hdev); in ryos_raw_event()