Lines Matching defs:hdev
58 static int savu_init_specials(struct hid_device *hdev)
60 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
67 hid_set_drvdata(hdev, NULL);
73 hid_err(hdev, "can't alloc device descriptor\n");
76 hid_set_drvdata(hdev, savu);
80 hid_err(hdev, "couldn't init Savu device\n");
84 retval = roccat_connect(&savu_class, hdev,
87 hid_err(hdev, "couldn't init char dev\n");
99 static void savu_remove_specials(struct hid_device *hdev)
101 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
108 savu = hid_get_drvdata(hdev);
114 static int savu_probe(struct hid_device *hdev,
119 if (!hid_is_usb(hdev))
122 retval = hid_parse(hdev);
124 hid_err(hdev, "parse failed\n");
128 retval = hid_hw_start(hdev, HID_CONNECT_DEFAULT);
130 hid_err(hdev, "hw start failed\n");
134 retval = savu_init_specials(hdev);
136 hid_err(hdev, "couldn't install mouse\n");
143 hid_hw_stop(hdev);
148 static void savu_remove(struct hid_device *hdev)
150 savu_remove_specials(hdev);
151 hid_hw_stop(hdev);
172 static int savu_raw_event(struct hid_device *hdev,
175 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
176 struct roccat_common2_device *savu = hid_get_drvdata(hdev);