Lines Matching defs:hdev
78 struct hid_device *hdev;
103 hid_dbg(ccp->hdev, "unknown device response error: %d", ccp->buffer[0]);
122 ret = hid_hw_output_report(ccp->hdev, ccp->buffer, OUT_BUFFER_SIZE);
133 static int ccp_raw_event(struct hid_device *hdev, struct hid_report *report, u8 *data, int size)
135 struct ccp_device *ccp = hid_get_drvdata(hdev);
486 static int ccp_probe(struct hid_device *hdev, const struct hid_device_id *id)
491 ccp = devm_kzalloc(&hdev->dev, sizeof(*ccp), GFP_KERNEL);
495 ccp->buffer = devm_kmalloc(&hdev->dev, OUT_BUFFER_SIZE, GFP_KERNEL);
499 ret = hid_parse(hdev);
503 ret = hid_hw_start(hdev, HID_CONNECT_HIDRAW);
507 ret = hid_hw_open(hdev);
511 ccp->hdev = hdev;
512 hid_set_drvdata(hdev, ccp);
516 hid_device_io_start(hdev);
526 ccp->hwmon_dev = hwmon_device_register_with_info(&hdev->dev, "corsaircpro",
536 hid_hw_close(hdev);
538 hid_hw_stop(hdev);
542 static void ccp_remove(struct hid_device *hdev)
544 struct ccp_device *ccp = hid_get_drvdata(hdev);
547 hid_hw_close(hdev);
548 hid_hw_stop(hdev);