Lines Matching defs:hdev
396 static int pyra_init_specials(struct hid_device *hdev)
398 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
408 hid_err(hdev, "can't alloc device descriptor\n");
411 hid_set_drvdata(hdev, pyra);
415 hid_err(hdev, "couldn't init struct pyra_device\n");
419 retval = roccat_connect(&pyra_class, hdev,
422 hid_err(hdev, "couldn't init char dev\n");
428 hid_set_drvdata(hdev, NULL);
437 static void pyra_remove_specials(struct hid_device *hdev)
439 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
444 pyra = hid_get_drvdata(hdev);
447 kfree(hid_get_drvdata(hdev));
451 static int pyra_probe(struct hid_device *hdev, const struct hid_device_id *id)
455 if (!hid_is_usb(hdev))
458 retval = hid_parse(hdev);
460 hid_err(hdev, "parse failed\n");
464 retval = hid_hw_start(hdev, HID_CONNECT_DEFAULT);
466 hid_err(hdev, "hw start failed\n");
470 retval = pyra_init_specials(hdev);
472 hid_err(hdev, "couldn't install mouse\n");
478 hid_hw_stop(hdev);
483 static void pyra_remove(struct hid_device *hdev)
485 pyra_remove_specials(hdev);
486 hid_hw_stop(hdev);
547 static int pyra_raw_event(struct hid_device *hdev, struct hid_report *report,
550 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
551 struct pyra_device *pyra = hid_get_drvdata(hdev);