Lines Matching refs:hdev

58 static int savu_init_specials(struct hid_device *hdev)  in savu_init_specials()  argument
60 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in savu_init_specials()
67 hid_set_drvdata(hdev, NULL); in savu_init_specials()
73 hid_err(hdev, "can't alloc device descriptor\n"); in savu_init_specials()
76 hid_set_drvdata(hdev, savu); in savu_init_specials()
80 hid_err(hdev, "couldn't init Savu device\n"); in savu_init_specials()
84 retval = roccat_connect(savu_class, hdev, in savu_init_specials()
87 hid_err(hdev, "couldn't init char dev\n"); in savu_init_specials()
99 static void savu_remove_specials(struct hid_device *hdev) in savu_remove_specials() argument
101 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in savu_remove_specials()
108 savu = hid_get_drvdata(hdev); in savu_remove_specials()
114 static int savu_probe(struct hid_device *hdev, in savu_probe() argument
119 retval = hid_parse(hdev); in savu_probe()
121 hid_err(hdev, "parse failed\n"); in savu_probe()
125 retval = hid_hw_start(hdev, HID_CONNECT_DEFAULT); in savu_probe()
127 hid_err(hdev, "hw start failed\n"); in savu_probe()
131 retval = savu_init_specials(hdev); in savu_probe()
133 hid_err(hdev, "couldn't install mouse\n"); in savu_probe()
140 hid_hw_stop(hdev); in savu_probe()
145 static void savu_remove(struct hid_device *hdev) in savu_remove() argument
147 savu_remove_specials(hdev); in savu_remove()
148 hid_hw_stop(hdev); in savu_remove()
169 static int savu_raw_event(struct hid_device *hdev, in savu_raw_event() argument
172 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in savu_raw_event()
173 struct roccat_common2_device *savu = hid_get_drvdata(hdev); in savu_raw_event()