Lines Matching refs:hdev

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