Lines Matching defs:hdev
79 struct hid_device *hdev;
107 hid_dbg(ccp->hdev, "unknown device response error: %d", ccp->buffer[0]);
134 ret = hid_hw_output_report(ccp->hdev, ccp->cmd_buffer, OUT_BUFFER_SIZE);
145 static int ccp_raw_event(struct hid_device *hdev, struct hid_report *report, u8 *data, int size)
147 struct ccp_device *ccp = hid_get_drvdata(hdev);
499 static int ccp_probe(struct hid_device *hdev, const struct hid_device_id *id)
504 ccp = devm_kzalloc(&hdev->dev, sizeof(*ccp), GFP_KERNEL);
508 ccp->cmd_buffer = devm_kmalloc(&hdev->dev, OUT_BUFFER_SIZE, GFP_KERNEL);
512 ccp->buffer = devm_kmalloc(&hdev->dev, IN_BUFFER_SIZE, GFP_KERNEL);
516 ret = hid_parse(hdev);
520 ret = hid_hw_start(hdev, HID_CONNECT_HIDRAW);
524 ret = hid_hw_open(hdev);
528 ccp->hdev = hdev;
529 hid_set_drvdata(hdev, ccp);
535 hid_device_io_start(hdev);
545 ccp->hwmon_dev = hwmon_device_register_with_info(&hdev->dev, "corsaircpro",
555 hid_hw_close(hdev);
557 hid_hw_stop(hdev);
561 static void ccp_remove(struct hid_device *hdev)
563 struct ccp_device *ccp = hid_get_drvdata(hdev);
566 hid_hw_close(hdev);
567 hid_hw_stop(hdev);