Lines Matching defs:hdev
688 static int nzxt_smart2_hid_raw_event(struct hid_device *hdev,
691 struct drvdata *drvdata = hid_get_drvdata(hdev);
707 static int __maybe_unused nzxt_smart2_hid_reset_resume(struct hid_device *hdev)
709 struct drvdata *drvdata = hid_get_drvdata(hdev);
729 static int nzxt_smart2_hid_probe(struct hid_device *hdev,
735 drvdata = devm_kzalloc(&hdev->dev, sizeof(struct drvdata), GFP_KERNEL);
739 drvdata->hid = hdev;
740 hid_set_drvdata(hdev, drvdata);
745 ret = devm_add_action_or_reset(&hdev->dev, mutex_fini, &drvdata->mutex);
749 ret = hid_parse(hdev);
753 ret = hid_hw_start(hdev, HID_CONNECT_HIDRAW);
757 ret = hid_hw_open(hdev);
761 hid_device_io_start(hdev);
766 hwmon_device_register_with_info(&hdev->dev, "nzxtsmart2", drvdata,
776 hid_hw_close(hdev);
779 hid_hw_stop(hdev);
783 static void nzxt_smart2_hid_remove(struct hid_device *hdev)
785 struct drvdata *drvdata = hid_get_drvdata(hdev);
789 hid_hw_close(hdev);
790 hid_hw_stop(hdev);