Lines Matching refs:hdev

401 static int pyra_init_specials(struct hid_device *hdev)  in pyra_init_specials()  argument
403 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in pyra_init_specials()
413 hid_err(hdev, "can't alloc device descriptor\n"); in pyra_init_specials()
416 hid_set_drvdata(hdev, pyra); in pyra_init_specials()
420 hid_err(hdev, "couldn't init struct pyra_device\n"); in pyra_init_specials()
424 retval = roccat_connect(pyra_class, hdev, in pyra_init_specials()
427 hid_err(hdev, "couldn't init char dev\n"); in pyra_init_specials()
433 hid_set_drvdata(hdev, NULL); in pyra_init_specials()
442 static void pyra_remove_specials(struct hid_device *hdev) in pyra_remove_specials() argument
444 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in pyra_remove_specials()
449 pyra = hid_get_drvdata(hdev); in pyra_remove_specials()
452 kfree(hid_get_drvdata(hdev)); in pyra_remove_specials()
456 static int pyra_probe(struct hid_device *hdev, const struct hid_device_id *id) in pyra_probe() argument
460 retval = hid_parse(hdev); in pyra_probe()
462 hid_err(hdev, "parse failed\n"); in pyra_probe()
466 retval = hid_hw_start(hdev, HID_CONNECT_DEFAULT); in pyra_probe()
468 hid_err(hdev, "hw start failed\n"); in pyra_probe()
472 retval = pyra_init_specials(hdev); in pyra_probe()
474 hid_err(hdev, "couldn't install mouse\n"); in pyra_probe()
480 hid_hw_stop(hdev); in pyra_probe()
485 static void pyra_remove(struct hid_device *hdev) in pyra_remove() argument
487 pyra_remove_specials(hdev); in pyra_remove()
488 hid_hw_stop(hdev); in pyra_remove()
549 static int pyra_raw_event(struct hid_device *hdev, struct hid_report *report, in pyra_raw_event() argument
552 struct usb_interface *intf = to_usb_interface(hdev->dev.parent); in pyra_raw_event()
553 struct pyra_device *pyra = hid_get_drvdata(hdev); in pyra_raw_event()