Lines Matching refs:hid

175 	struct hid_device *hid;  member
235 hid_hw_raw_request(bigben->hid, bigben->report->id, buf, len, in bigben_worker()
259 hid_hw_raw_request(bigben->hid, bigben->report->id, buf, len, in bigben_worker()
269 struct hid_device *hid = input_get_drvdata(dev); in hid_bigben_play_effect() local
270 struct bigben_device *bigben = hid_get_drvdata(hid); in hid_bigben_play_effect()
276 hid_err(hid, "no device data\n"); in hid_bigben_play_effect()
304 struct hid_device *hid = to_hid_device(dev); in bigben_set_led() local
305 struct bigben_device *bigben = hid_get_drvdata(hid); in bigben_set_led()
311 hid_err(hid, "no device data\n"); in bigben_set_led()
339 struct hid_device *hid = to_hid_device(dev); in bigben_get_led() local
340 struct bigben_device *bigben = hid_get_drvdata(hid); in bigben_get_led()
344 hid_err(hid, "no device data\n"); in bigben_get_led()
356 static void bigben_remove(struct hid_device *hid) in bigben_remove() argument
358 struct bigben_device *bigben = hid_get_drvdata(hid); in bigben_remove()
366 hid_hw_stop(hid); in bigben_remove()
369 static int bigben_probe(struct hid_device *hid, in bigben_probe() argument
379 bigben = devm_kzalloc(&hid->dev, sizeof(*bigben), GFP_KERNEL); in bigben_probe()
382 hid_set_drvdata(hid, bigben); in bigben_probe()
383 bigben->hid = hid; in bigben_probe()
386 error = hid_parse(hid); in bigben_probe()
388 hid_err(hid, "parse failed\n"); in bigben_probe()
392 error = hid_hw_start(hid, HID_CONNECT_DEFAULT & ~HID_CONNECT_FF); in bigben_probe()
394 hid_err(hid, "hw start failed\n"); in bigben_probe()
398 bigben->report = hid_validate_values(hid, HID_OUTPUT_REPORT, 0, 0, 8); in bigben_probe()
400 hid_err(hid, "no output report found\n"); in bigben_probe()
405 if (list_empty(&hid->inputs)) { in bigben_probe()
406 hid_err(hid, "no inputs found\n"); in bigben_probe()
411 hidinput = list_first_entry(&hid->inputs, struct hid_input, list); in bigben_probe()
422 name_sz = strlen(dev_name(&hid->dev)) + strlen(":red:bigben#") + 1; in bigben_probe()
426 &hid->dev, in bigben_probe()
437 dev_name(&hid->dev), n + 1 in bigben_probe()
445 error = devm_led_classdev_register(&hid->dev, led); in bigben_probe()
458 hid_info(hid, "LED and force feedback support for BigBen gamepad\n"); in bigben_probe()
463 hid_hw_stop(hid); in bigben_probe()
467 static const __u8 *bigben_report_fixup(struct hid_device *hid, __u8 *rdesc, in bigben_report_fixup() argument
474 hid_warn(hid, "unexpected rdesc, please submit for review\n"); in bigben_report_fixup()
482 MODULE_DEVICE_TABLE(hid, bigben_devices);