Lines Matching refs:hid

317 	switch (usage->hid) {  in mt_feature_mapping()
382 f->usages[f->length++] = usage->hid; in mt_store_field()
401 (usage->hid & HID_USAGE_PAGE) == HID_UP_BUTTON) { in mt_touch_input_mapping()
407 if ((usage->hid & HID_USAGE_PAGE) == HID_UP_BUTTON) in mt_touch_input_mapping()
413 switch (usage->hid & HID_USAGE_PAGE) { in mt_touch_input_mapping()
416 switch (usage->hid) { in mt_touch_input_mapping()
418 if (prev_usage && (prev_usage->hid == usage->hid)) { in mt_touch_input_mapping()
433 if (prev_usage && (prev_usage->hid == usage->hid)) { in mt_touch_input_mapping()
451 switch (usage->hid) { in mt_touch_input_mapping()
521 code = BTN_MOUSE + ((usage->hid - 1) & HID_USAGE); in mt_touch_input_mapping()
625 static int mt_touch_event(struct hid_device *hid, struct hid_field *field, in mt_touch_event() argument
629 if (hid->claimed & HID_CLAIMED_HIDDEV && hid->hiddev_hid_event) in mt_touch_event()
630 hid->hiddev_hid_event(hid, field, usage, value); in mt_touch_event()
635 static void mt_process_mt_event(struct hid_device *hid, struct hid_field *field, in mt_process_mt_event() argument
638 struct mt_device *td = hid_get_drvdata(hid); in mt_process_mt_event()
642 if (hid->claimed & HID_CLAIMED_INPUT) { in mt_process_mt_event()
643 switch (usage->hid) { in mt_process_mt_event()
698 if (usage->hid == td->last_slot_field) in mt_process_mt_event()
705 static void mt_touch_report(struct hid_device *hid, struct hid_report *report) in mt_touch_report() argument
707 struct mt_device *td = hid_get_drvdata(hid); in mt_touch_report()
731 mt_process_mt_event(hid, field, &field->usage[n], in mt_touch_report()
823 static int mt_event(struct hid_device *hid, struct hid_field *field, in mt_event() argument
826 struct mt_device *td = hid_get_drvdata(hid); in mt_event()
829 return mt_touch_event(hid, field, usage, value); in mt_event()
834 static void mt_report(struct hid_device *hid, struct hid_report *report) in mt_report() argument
836 struct mt_device *td = hid_get_drvdata(hid); in mt_report()
839 if (!(hid->claimed & HID_CLAIMED_INPUT)) in mt_report()
843 return mt_touch_report(hid, report); in mt_report()
1394 MODULE_DEVICE_TABLE(hid, mt_devices);