Lines Matching defs:hdev
446 static int kovaplus_init_specials(struct hid_device *hdev)
448 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
458 hid_err(hdev, "can't alloc device descriptor\n");
461 hid_set_drvdata(hdev, kovaplus);
465 hid_err(hdev, "couldn't init struct kovaplus_device\n");
469 retval = roccat_connect(&kovaplus_class, hdev,
472 hid_err(hdev, "couldn't init char dev\n");
479 hid_set_drvdata(hdev, NULL);
488 static void kovaplus_remove_specials(struct hid_device *hdev)
490 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
495 kovaplus = hid_get_drvdata(hdev);
502 static int kovaplus_probe(struct hid_device *hdev,
507 if (!hid_is_usb(hdev))
510 retval = hid_parse(hdev);
512 hid_err(hdev, "parse failed\n");
516 retval = hid_hw_start(hdev, HID_CONNECT_DEFAULT);
518 hid_err(hdev, "hw start failed\n");
522 retval = kovaplus_init_specials(hdev);
524 hid_err(hdev, "couldn't install mouse\n");
531 hid_hw_stop(hdev);
536 static void kovaplus_remove(struct hid_device *hdev)
538 kovaplus_remove_specials(hdev);
539 hid_hw_stop(hdev);
604 static int kovaplus_raw_event(struct hid_device *hdev,
607 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
608 struct kovaplus_device *kovaplus = hid_get_drvdata(hdev);