Lines Matching defs:hdev
377 static int koneplus_init_specials(struct hid_device *hdev)
379 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
389 hid_err(hdev, "can't alloc device descriptor\n");
392 hid_set_drvdata(hdev, koneplus);
396 hid_err(hdev, "couldn't init struct koneplus_device\n");
400 retval = roccat_connect(&koneplus_class, hdev,
403 hid_err(hdev, "couldn't init char dev\n");
409 hid_set_drvdata(hdev, NULL);
418 static void koneplus_remove_specials(struct hid_device *hdev)
420 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
425 koneplus = hid_get_drvdata(hdev);
432 static int koneplus_probe(struct hid_device *hdev,
437 if (!hid_is_usb(hdev))
440 retval = hid_parse(hdev);
442 hid_err(hdev, "parse failed\n");
446 retval = hid_hw_start(hdev, HID_CONNECT_DEFAULT);
448 hid_err(hdev, "hw start failed\n");
452 retval = koneplus_init_specials(hdev);
454 hid_err(hdev, "couldn't install mouse\n");
461 hid_hw_stop(hdev);
466 static void koneplus_remove(struct hid_device *hdev)
468 koneplus_remove_specials(hdev);
469 hid_hw_stop(hdev);
513 static int koneplus_raw_event(struct hid_device *hdev,
516 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
517 struct koneplus_device *koneplus = hid_get_drvdata(hdev);