Lines Matching defs:hdev
374 static int koneplus_init_specials(struct hid_device *hdev)
376 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
386 hid_err(hdev, "can't alloc device descriptor\n");
389 hid_set_drvdata(hdev, koneplus);
393 hid_err(hdev, "couldn't init struct koneplus_device\n");
397 retval = roccat_connect(koneplus_class, hdev,
400 hid_err(hdev, "couldn't init char dev\n");
406 hid_set_drvdata(hdev, NULL);
415 static void koneplus_remove_specials(struct hid_device *hdev)
417 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
422 koneplus = hid_get_drvdata(hdev);
429 static int koneplus_probe(struct hid_device *hdev,
434 if (!hid_is_usb(hdev))
437 retval = hid_parse(hdev);
439 hid_err(hdev, "parse failed\n");
443 retval = hid_hw_start(hdev, HID_CONNECT_DEFAULT);
445 hid_err(hdev, "hw start failed\n");
449 retval = koneplus_init_specials(hdev);
451 hid_err(hdev, "couldn't install mouse\n");
458 hid_hw_stop(hdev);
463 static void koneplus_remove(struct hid_device *hdev)
465 koneplus_remove_specials(hdev);
466 hid_hw_stop(hdev);
510 static int koneplus_raw_event(struct hid_device *hdev,
513 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
514 struct koneplus_device *koneplus = hid_get_drvdata(hdev);