Lines Matching defs:hdev

150 static void thrustmaster_interrupts(struct hid_device *hdev)
155 struct device *dev = &hdev->dev;
160 hid_err(hdev, "failed allocating send buffer\n");
166 hid_err(hdev, "Wrong number of endpoints?\n");
184 hid_err(hdev, "setup data couldn't be sent\n");
195 struct hid_device *hdev = urb->context;
199 hid_info(hdev, "Success?! The wheel should have been initialized!\n");
201 hid_warn(hdev, "URB to change wheel mode seems to have failed with error %d\n", urb->status);
213 struct hid_device *hdev = urb->context;
214 struct tm_wheel *tm_wheel = hid_get_drvdata(hdev);
220 hid_err(hdev, "URB to get model id failed with error %d\n", urb->status);
229 hid_err(hdev, "Unknown packet type 0x%x, unable to proceed further with wheel init\n", tm_wheel->response->type);
238 hid_info(hdev, "Wheel with model id 0x%x is a %s\n", model, twi->wheel_name);
240 hid_err(hdev, "Unknown wheel's model id 0x%x, unable to proceed further with wheel init\n", model);
252 hdev
257 hid_err(hdev, "Error %d while submitting the change URB. I am unable to initialize this wheel...\n", ret);
260 static void thrustmaster_remove(struct hid_device *hdev)
262 struct tm_wheel *tm_wheel = hid_get_drvdata(hdev);
272 hid_hw_stop(hdev);
281 static int thrustmaster_probe(struct hid_device *hdev, const struct hid_device_id *id)
286 if (!hid_is_usb(hdev))
289 ret = hid_parse(hdev);
291 hid_err(hdev, "parse failed with error %d\n", ret);
295 ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT & ~HID_CONNECT_FF);
297 hid_err(hdev, "hw start failed with error %d\n", ret);
336 tm_wheel->usb_dev = interface_to_usbdev(to_usb_interface(hdev->dev.parent));
337 hid_set_drvdata(hdev, tm_wheel);
339 thrustmaster_interrupts(hdev);
349 hdev
354 hid_err(hdev, "Error %d while submitting the URB. I am unable to initialize this wheel...\n", ret);
365 error1: hid_hw_stop(hdev);