Lines Matching refs:hdev
55 struct hid_device *hdev; member
73 struct hid_device *hdev = container_of(dev, struct hid_device, dev); in gt683r_brightness_set() local
74 struct gt683r_led *led = hid_get_drvdata(hdev); in gt683r_brightness_set()
92 struct hid_device *hdev = container_of(dev->parent, in mode_show() local
94 struct gt683r_led *led = hid_get_drvdata(hdev); in mode_show()
111 struct hid_device *hdev = container_of(dev->parent, in mode_store() local
113 struct gt683r_led *led = hid_get_drvdata(hdev); in mode_store()
138 ret = hid_hw_raw_request(led->hdev, msg[0], msg, GT683R_BUFFER_SIZE, in gt683r_led_snd_msg()
141 hid_err(led->hdev, in gt683r_led_snd_msg()
234 static int gt683r_led_probe(struct hid_device *hdev, in gt683r_led_probe() argument
243 led = devm_kzalloc(&hdev->dev, sizeof(*led), GFP_KERNEL); in gt683r_led_probe()
251 led->hdev = hdev; in gt683r_led_probe()
252 hid_set_drvdata(hdev, led); in gt683r_led_probe()
254 ret = hid_parse(hdev); in gt683r_led_probe()
256 hid_err(hdev, "hid parsing failed\n"); in gt683r_led_probe()
260 ret = hid_hw_start(hdev, HID_CONNECT_HIDRAW); in gt683r_led_probe()
262 hid_err(hdev, "hw start failed\n"); in gt683r_led_probe()
267 name_sz = strlen(dev_name(&hdev->dev)) + in gt683r_led_probe()
270 name = devm_kzalloc(&hdev->dev, name_sz, GFP_KERNEL); in gt683r_led_probe()
277 dev_name(&hdev->dev), gt683r_panel_names[i]); in gt683r_led_probe()
283 ret = led_classdev_register(&hdev->dev, &led->led_devs[i]); in gt683r_led_probe()
285 hid_err(hdev, "could not register led device\n"); in gt683r_led_probe()
295 hid_hw_stop(hdev); in gt683r_led_probe()
299 static void gt683r_led_remove(struct hid_device *hdev) in gt683r_led_remove() argument
302 struct gt683r_led *led = hid_get_drvdata(hdev); in gt683r_led_remove()
307 hid_hw_stop(hdev); in gt683r_led_remove()