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);
485 static int ccp_probe(struct hid_device *hdev, const struct hid_device_id *id)
490 ccp = devm_kzalloc(&hdev->dev, sizeof(*ccp), GFP_KERNEL);
494 ccp->buffer = devm_kmalloc(&hdev->dev, OUT_BUFFER_SIZE, GFP_KERNEL);
498 ret = hid_parse(hdev);
502 ret = hid_hw_start(hdev, HID_CONNECT_HIDRAW);
506 ret = hid_hw_open(hdev);
510 ccp->hdev = hdev;
511 hid_set_drvdata(hdev, ccp);
515 hid_device_io_start(hdev);
525 ccp->hwmon_dev = hwmon_device_register_with_info(&hdev->dev, "corsaircpro",
535 hid_hw_close(hdev);
537 hid_hw_stop(hdev);
541 static void ccp_remove(struct hid_device *hdev)
543 struct ccp_device *ccp = hid_get_drvdata(hdev);
546 hid_hw_close(hdev);
547 hid_hw_stop(hdev);