Lines Matching defs:hdev
393 static int pyra_init_specials(struct hid_device *hdev)
395 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
405 hid_err(hdev, "can't alloc device descriptor\n");
408 hid_set_drvdata(hdev, pyra);
412 hid_err(hdev, "couldn't init struct pyra_device\n");
416 retval = roccat_connect(pyra_class, hdev,
419 hid_err(hdev, "couldn't init char dev\n");
425 hid_set_drvdata(hdev, NULL);
434 static void pyra_remove_specials(struct hid_device *hdev)
436 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
441 pyra = hid_get_drvdata(hdev);
444 kfree(hid_get_drvdata(hdev));
448 static int pyra_probe(struct hid_device *hdev, const struct hid_device_id *id)
452 if (!hid_is_usb(hdev))
455 retval = hid_parse(hdev);
457 hid_err(hdev, "parse failed\n");
461 retval = hid_hw_start(hdev, HID_CONNECT_DEFAULT);
463 hid_err(hdev, "hw start failed\n");
467 retval = pyra_init_specials(hdev);
469 hid_err(hdev, "couldn't install mouse\n");
475 hid_hw_stop(hdev);
480 static void pyra_remove(struct hid_device *hdev)
482 pyra_remove_specials(hdev);
483 hid_hw_stop(hdev);
544 static int pyra_raw_event(struct hid_device *hdev, struct hid_report *report,
547 struct usb_interface *intf = to_usb_interface(hdev->dev.parent);
548 struct pyra_device *pyra = hid_get_drvdata(hdev);