Lines Matching defs:hdev
55 static int savu_init_specials(struct hid_device *hdev)
57 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
64 hid_set_drvdata(hdev, NULL);
70 hid_err(hdev, "can't alloc device descriptor\n");
73 hid_set_drvdata(hdev, savu);
77 hid_err(hdev, "couldn't init Savu device\n");
81 retval = roccat_connect(savu_class, hdev,
84 hid_err(hdev, "couldn't init char dev\n");
96 static void savu_remove_specials(struct hid_device *hdev)
98 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
105 savu = hid_get_drvdata(hdev);
111 static int savu_probe(struct hid_device *hdev,
116 if (!hid_is_usb(hdev))
119 retval = hid_parse(hdev);
121 hid_err(hdev, "parse failed\n");
125 retval = hid_hw_start(hdev, HID_CONNECT_DEFAULT);
127 hid_err(hdev, "hw start failed\n");
131 retval = savu_init_specials(hdev);
133 hid_err(hdev, "couldn't install mouse\n");
140 hid_hw_stop(hdev);
145 static void savu_remove(struct hid_device *hdev)
147 savu_remove_specials(hdev);
148 hid_hw_stop(hdev);
169 static int savu_raw_event(struct hid_device *hdev,
172 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
173 struct roccat_common2_device *savu = hid_get_drvdata(hdev);