Lines Matching defs:hid
20 #include <linux/hid.h>
23 #include "hid-ids.h"
34 struct hid_device *hid = input_get_drvdata(dev);
57 hid_hw_request(hid, drff->report, HID_REQ_SET_REPORT);
69 hid_hw_request(hid, drff->report, HID_REQ_SET_REPORT);
74 static int drff_init(struct hid_device *hid)
80 &hid->report_enum[HID_OUTPUT_REPORT].report_list;
84 if (list_empty(&hid->inputs)) {
85 hid_err(hid, "no inputs found\n");
88 hidinput = list_first_entry(&hid->inputs, struct hid_input, list);
92 hid_err(hid, "no output reports found\n");
98 hid_err(hid, "no fields in the report\n");
103 hid_err(hid, "not enough values in the field\n");
127 hid_hw_request(hid, drff->report, HID_REQ_SET_REPORT);
129 hid_info(hid, "Force Feedback for DragonRise Inc. "
135 static inline int drff_init(struct hid_device *hid)
252 switch (usage->hid) {
254 * revert to the old hid-input behavior where axes
255 * can be randomly assigned when hid->usage is reused.
260 map_rel(usage->hid & 0xf);
262 map_abs(usage->hid & 0xf);
308 MODULE_DEVICE_TABLE(hid, dr_devices);