Lines Matching defs:hdev
98 struct hid_device *hdev;
126 ret = hid_hw_raw_request(ldev->hdev, buf[0], ldev->buf,
131 ret = hid_hw_output_report(ldev->hdev, ldev->buf,
156 ret = hid_hw_raw_request(ldev->hdev, buf[0], ldev->buf,
163 ret = hid_hw_raw_request(ldev->hdev, buf[0], ldev->buf,
427 return devm_led_classdev_register(&rgb->ldev->hdev->dev, &led->cdev);
448 static int hidled_probe(struct hid_device *hdev, const struct hid_device_id *id)
454 ldev = devm_kzalloc(&hdev->dev, sizeof(*ldev), GFP_KERNEL);
458 ldev->buf = devm_kmalloc(&hdev->dev, MAX_REPORT_SIZE, GFP_KERNEL);
462 ret = hid_parse(hdev);
466 ldev->hdev = hdev;
482 ldev->rgb = devm_kcalloc(&hdev->dev, ldev->config->num_leds,
487 ret = hid_hw_start(hdev, HID_CONNECT_HIDRAW);
491 minor = ((struct hidraw *) hdev->hidraw)->minor;
498 hid_hw_stop(hdev);
503 hid_info(hdev, "%s initialized\n", ldev->config->name);