Lines Matching full:hid
25 #include <linux/hid.h>
28 #include "hid-ids.h"
36 struct hid_device *hid = input_get_drvdata(dev); in mf_play() local
52 hid_hw_request(hid, mf->report, HID_REQ_SET_REPORT); in mf_play()
57 static int mf_init(struct hid_device *hid) in mf_init() argument
62 &hid->report_enum[HID_OUTPUT_REPORT].report_list; in mf_init()
67 struct list_head *input_ptr = &hid->inputs; in mf_init()
79 hid_err(hid, "Invalid report, this should never happen!\n"); in mf_init()
83 if (list_is_last(input_ptr, &hid->inputs)) { in mf_init()
84 hid_err(hid, "Missing input, this should never happen!\n"); in mf_init()
107 hid_hw_request(hid, mf->report, HID_REQ_SET_REPORT); in mf_init()
110 hid_info(hid, "Force feedback for HJZ Mayflash game controller " in mf_init()
116 static int mf_probe(struct hid_device *hid, const struct hid_device_id *id) in mf_probe() argument
120 dev_dbg(&hid->dev, "Mayflash HID hardware probe...\n"); in mf_probe()
123 hid->quirks |= id->driver_data; in mf_probe()
125 error = hid_parse(hid); in mf_probe()
127 hid_err(hid, "HID parse failed.\n"); in mf_probe()
131 error = hid_hw_start(hid, HID_CONNECT_DEFAULT & ~HID_CONNECT_FF); in mf_probe()
133 hid_err(hid, "HID hw start failed\n"); in mf_probe()
137 error = mf_init(hid); in mf_probe()
139 hid_err(hid, "Force feedback init failed.\n"); in mf_probe()
140 hid_hw_stop(hid); in mf_probe()
160 MODULE_DEVICE_TABLE(hid, mf_devices);