Lines Matching refs:hdev

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