Lines Matching refs:hid

10  *  This code is partly based on hid-egalax.c:
16 * This code is partly based on hid-3m-pct.c:
27 * This driver is regularly tested thanks to the test suite in hid-tools[1].
31 * [1] https://gitlab.freedesktop.org/libevdev/hid-tools
35 #include <linux/hid.h>
49 #include "hid-ids.h"
484 switch (usage->hid) {
638 if (field->usage[n].hid == HID_DG_CONTACTID) {
728 (usage->hid & HID_USAGE_PAGE) == HID_UP_BUTTON) {
734 if ((usage->hid & HID_USAGE_PAGE) == HID_UP_BUTTON)
740 switch (usage->hid & HID_USAGE_PAGE) {
743 switch (usage->hid) {
745 if (prev_usage && (prev_usage->hid == usage->hid)) {
770 if (prev_usage && (prev_usage->hid == usage->hid)) {
785 switch (usage->hid) {
877 /* let hid-input decide for the others */
881 code = BTN_MOUSE + ((usage->hid - 1) & HID_USAGE);
888 (usage->hid & HID_USAGE) > 1)
892 code = BTN_0 + ((usage->hid - 1) & HID_USAGE);
997 static int mt_touch_event(struct hid_device *hid, struct hid_field *field,
1001 if (hid->claimed & HID_CLAIMED_HIDDEV && hid->hiddev_hid_event)
1002 hid->hiddev_hid_event(hid, field, usage, value);
1155 static void mt_process_mt_event(struct hid_device *hid,
1165 if (!usage->type || !(hid->claimed & HID_CLAIMED_INPUT))
1194 static void mt_touch_report(struct hid_device *hid,
1197 struct mt_device *td = hid_get_drvdata(hid);
1257 mt_process_mt_event(hid, app, field,
1383 (usage->hid & HID_USAGE_PAGE) == HID_UP_CUSTOM) {
1387 switch (usage->hid & HID_USAGE) {
1410 /* let hid-core decide for the others */
1423 /* We own these mappings, tell hid-input to ignore them */
1427 /* let hid-core decide for the others */
1431 static int mt_event(struct hid_device *hid, struct hid_field *field,
1434 struct mt_device *td = hid_get_drvdata(hid);
1439 return mt_touch_event(hid, field, usage, value);
1444 static void mt_report(struct hid_device *hid, struct hid_report *report)
1446 struct mt_device *td = hid_get_drvdata(hid);
1450 if (!(hid->claimed & HID_CLAIMED_INPUT))
1455 return mt_touch_report(hid, rdata);
1477 switch (usage->hid) {
1628 /* already handled by hid core */
1655 if (field->usage[0].hid != usage ||
1681 static void mt_release_contacts(struct hid_device *hid)
1685 struct mt_device *td = hid_get_drvdata(hid);
1687 list_for_each_entry(hidinput, &hid->inputs, list) {
2255 MODULE_DEVICE_TABLE(hid, mt_devices);
2263 .name = "hid-multitouch",