Lines Matching refs:hid
352 switch (usage->hid) { in mt_feature_mapping()
425 f->usages[f->length++] = usage->hid; in mt_store_field()
444 (usage->hid & HID_USAGE_PAGE) == HID_UP_BUTTON) { in mt_touch_input_mapping()
450 if ((usage->hid & HID_USAGE_PAGE) == HID_UP_BUTTON) in mt_touch_input_mapping()
456 switch (usage->hid & HID_USAGE_PAGE) { in mt_touch_input_mapping()
459 switch (usage->hid) { in mt_touch_input_mapping()
461 if (prev_usage && (prev_usage->hid == usage->hid)) { in mt_touch_input_mapping()
476 if (prev_usage && (prev_usage->hid == usage->hid)) { in mt_touch_input_mapping()
494 switch (usage->hid) { in mt_touch_input_mapping()
564 code = BTN_MOUSE + ((usage->hid - 1) & HID_USAGE); in mt_touch_input_mapping()
668 static int mt_touch_event(struct hid_device *hid, struct hid_field *field, in mt_touch_event() argument
672 if (hid->claimed & HID_CLAIMED_HIDDEV && hid->hiddev_hid_event) in mt_touch_event()
673 hid->hiddev_hid_event(hid, field, usage, value); in mt_touch_event()
678 static void mt_process_mt_event(struct hid_device *hid, struct hid_field *field, in mt_process_mt_event() argument
681 struct mt_device *td = hid_get_drvdata(hid); in mt_process_mt_event()
685 if (hid->claimed & HID_CLAIMED_INPUT) { in mt_process_mt_event()
686 switch (usage->hid) { in mt_process_mt_event()
741 if (usage->hid == td->last_slot_field) in mt_process_mt_event()
748 static void mt_touch_report(struct hid_device *hid, struct hid_report *report) in mt_touch_report() argument
750 struct mt_device *td = hid_get_drvdata(hid); in mt_touch_report()
774 mt_process_mt_event(hid, field, &field->usage[n], in mt_touch_report()
877 static int mt_event(struct hid_device *hid, struct hid_field *field, in mt_event() argument
880 struct mt_device *td = hid_get_drvdata(hid); in mt_event()
883 return mt_touch_event(hid, field, usage, value); in mt_event()
888 static void mt_report(struct hid_device *hid, struct hid_report *report) in mt_report() argument
890 struct mt_device *td = hid_get_drvdata(hid); in mt_report()
893 if (!(hid->claimed & HID_CLAIMED_INPUT)) in mt_report()
897 return mt_touch_report(hid, report); in mt_report()
1470 MODULE_DEVICE_TABLE(hid, mt_devices);