Lines Matching refs:hdev
381 static int koneplus_init_specials(struct hid_device *hdev) in koneplus_init_specials() argument
383 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in koneplus_init_specials()
393 hid_err(hdev, "can't alloc device descriptor\n"); in koneplus_init_specials()
396 hid_set_drvdata(hdev, koneplus); in koneplus_init_specials()
400 hid_err(hdev, "couldn't init struct koneplus_device\n"); in koneplus_init_specials()
404 retval = roccat_connect(koneplus_class, hdev, in koneplus_init_specials()
407 hid_err(hdev, "couldn't init char dev\n"); in koneplus_init_specials()
413 hid_set_drvdata(hdev, NULL); in koneplus_init_specials()
422 static void koneplus_remove_specials(struct hid_device *hdev) in koneplus_remove_specials() argument
424 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in koneplus_remove_specials()
429 koneplus = hid_get_drvdata(hdev); in koneplus_remove_specials()
436 static int koneplus_probe(struct hid_device *hdev, in koneplus_probe() argument
441 retval = hid_parse(hdev); in koneplus_probe()
443 hid_err(hdev, "parse failed\n"); in koneplus_probe()
447 retval = hid_hw_start(hdev, HID_CONNECT_DEFAULT); in koneplus_probe()
449 hid_err(hdev, "hw start failed\n"); in koneplus_probe()
453 retval = koneplus_init_specials(hdev); in koneplus_probe()
455 hid_err(hdev, "couldn't install mouse\n"); in koneplus_probe()
462 hid_hw_stop(hdev); in koneplus_probe()
467 static void koneplus_remove(struct hid_device *hdev) in koneplus_remove() argument
469 koneplus_remove_specials(hdev); in koneplus_remove()
470 hid_hw_stop(hdev); in koneplus_remove()
514 static int koneplus_raw_event(struct hid_device *hdev, in koneplus_raw_event() argument
517 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in koneplus_raw_event()
518 struct koneplus_device *koneplus = hid_get_drvdata(hdev); in koneplus_raw_event()