Lines Matching defs:hdev
443 static int kovaplus_init_specials(struct hid_device *hdev)
445 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
455 hid_err(hdev, "can't alloc device descriptor\n");
458 hid_set_drvdata(hdev, kovaplus);
462 hid_err(hdev, "couldn't init struct kovaplus_device\n");
466 retval = roccat_connect(kovaplus_class, hdev,
469 hid_err(hdev, "couldn't init char dev\n");
476 hid_set_drvdata(hdev, NULL);
485 static void kovaplus_remove_specials(struct hid_device *hdev)
487 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
492 kovaplus = hid_get_drvdata(hdev);
499 static int kovaplus_probe(struct hid_device *hdev,
504 if (!hid_is_usb(hdev))
507 retval = hid_parse(hdev);
509 hid_err(hdev, "parse failed\n");
513 retval = hid_hw_start(hdev, HID_CONNECT_DEFAULT);
515 hid_err(hdev, "hw start failed\n");
519 retval = kovaplus_init_specials(hdev);
521 hid_err(hdev, "couldn't install mouse\n");
528 hid_hw_stop(hdev);
533 static void kovaplus_remove(struct hid_device *hdev)
535 kovaplus_remove_specials(hdev);
536 hid_hw_stop(hdev);
601 static int kovaplus_raw_event(struct hid_device *hdev,
604 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
605 struct kovaplus_device *kovaplus = hid_get_drvdata(hdev);