Lines Matching full:quirks

51 /* quirks to control the device */
113 __s32 quirks; member
143 __s32 quirks; member
245 .quirks = MT_QUIRK_ALWAYS_VALID |
248 .quirks = MT_QUIRK_NOT_SEEN_MEANS_UP },
250 .quirks = MT_QUIRK_ALWAYS_VALID},
252 .quirks = MT_QUIRK_VALID_IS_CONFIDENCE },
254 .quirks = MT_QUIRK_VALID_IS_CONFIDENCE |
257 .quirks = MT_QUIRK_VALID_IS_CONFIDENCE |
260 .quirks = MT_QUIRK_VALID_IS_INRANGE |
264 .quirks = MT_QUIRK_VALID_IS_INRANGE |
268 .quirks = MT_QUIRK_VALID_IS_INRANGE |
271 .quirks = MT_QUIRK_ALWAYS_VALID |
279 .quirks = MT_QUIRK_ALWAYS_VALID |
283 .quirks = MT_QUIRK_ALWAYS_VALID |
292 .quirks = MT_QUIRK_IGNORE_DUPLICATES |
301 .quirks = MT_QUIRK_ALWAYS_VALID |
310 .quirks = MT_QUIRK_ALWAYS_VALID |
321 .quirks = MT_QUIRK_VALID_IS_CONFIDENCE |
330 .quirks = MT_QUIRK_SLOT_IS_CONTACTID |
336 .quirks = MT_QUIRK_SLOT_IS_CONTACTID |
342 .quirks = MT_QUIRK_ALWAYS_VALID,
347 .quirks = MT_QUIRK_NOT_SEEN_MEANS_UP,
350 .quirks = MT_QUIRK_NOT_SEEN_MEANS_UP |
356 .quirks = MT_QUIRK_NOT_SEEN_MEANS_UP |
361 .quirks = MT_QUIRK_NOT_SEEN_MEANS_UP |
367 .quirks = MT_QUIRK_ALWAYS_VALID |
373 .quirks = MT_QUIRK_ALWAYS_VALID |
377 .quirks = MT_QUIRK_ALWAYS_VALID |
382 .quirks = MT_QUIRK_ALWAYS_VALID |
388 .quirks = MT_QUIRK_ALWAYS_VALID |
395 .quirks = MT_QUIRK_ALWAYS_VALID |
410 return sprintf(buf, "%u\n", td->mtclass.quirks); in mt_show_quirks()
426 td->mtclass.quirks = val; in mt_set_quirks()
429 application->quirks = val; in mt_set_quirks()
431 application->quirks &= ~MT_QUIRK_CONTACT_CNT_ACCURATE; in mt_set_quirks()
437 static DEVICE_ATTR(quirks, S_IWUSR | S_IRUGO, mt_show_quirks, mt_set_quirks);
458 if (hdev->quirks & HID_QUIRK_NO_INIT_REPORTS) in mt_get_feature()
582 mt_application->quirks = td->mtclass.quirks; in mt_allocate_application()
598 if (!(td->mtclass.quirks & MT_QUIRK_SEPARATE_APP_REPORT) || in mt_find_application()
788 if (app->quirks & MT_QUIRK_HOVERING) { in mt_touch_input_mapping()
801 app->quirks |= MT_QUIRK_CONFIDENCE; in mt_touch_input_mapping()
803 if (app->quirks & MT_QUIRK_CONFIDENCE) in mt_touch_input_mapping()
822 if (!(app->quirks & MT_QUIRK_NO_AREA)) in mt_touch_input_mapping()
828 if (!(app->quirks & MT_QUIRK_NO_AREA)) { in mt_touch_input_mapping()
887 if ((app->quirks & MT_QUIRK_WIN8_PTP_BUTTONS) && in mt_touch_input_mapping()
913 __s32 quirks = app->quirks; in mt_compute_slot() local
915 if (quirks & MT_QUIRK_SLOT_IS_CONTACTID) in mt_compute_slot()
918 if (quirks & MT_QUIRK_CYPRESS) in mt_compute_slot()
921 if (quirks & MT_QUIRK_SLOT_IS_CONTACTNUMBER) in mt_compute_slot()
924 if (quirks & MT_QUIRK_SLOT_IS_CONTACTID_MINUS_ONE) in mt_compute_slot()
959 if (app->quirks & MT_QUIRK_WIN8_PTP_BUTTONS) in mt_sync_frame()
1014 __s32 quirks = app->quirks; in mt_process_slot() local
1025 if ((quirks & MT_QUIRK_CONTACT_CNT_ACCURATE) && in mt_process_slot()
1029 if (!(quirks & MT_QUIRK_ALWAYS_VALID)) { in mt_process_slot()
1030 if (quirks & MT_QUIRK_VALID_IS_INRANGE) in mt_process_slot()
1032 if (quirks & MT_QUIRK_NOT_SEEN_MEANS_UP) in mt_process_slot()
1034 if (quirks & MT_QUIRK_VALID_IS_CONFIDENCE) in mt_process_slot()
1045 if ((quirks & MT_QUIRK_IGNORE_DUPLICATES) && mt) { in mt_process_slot()
1053 if (quirks & MT_QUIRK_CONFIDENCE) in mt_process_slot()
1056 if (quirks & MT_QUIRK_HOVERING) in mt_process_slot()
1113 if (quirks & MT_QUIRK_ORIENTATION_INVERT) in mt_process_slot()
1118 if (quirks & MT_QUIRK_TOUCH_SIZE_SCALING) { in mt_process_slot()
1127 x = hdev->quirks & HID_QUIRK_X_INVERT ? in mt_process_slot()
1130 y = hdev->quirks & HID_QUIRK_Y_INVERT ? in mt_process_slot()
1133 cx = hdev->quirks & HID_QUIRK_X_INVERT ? in mt_process_slot()
1136 cy = hdev->quirks & HID_QUIRK_Y_INVERT ? in mt_process_slot()
1163 __s32 quirks = app->quirks; in mt_process_mt_event() local
1169 if (quirks & MT_QUIRK_WIN8_PTP_BUTTONS) { in mt_process_mt_event()
1231 if ((app->quirks & MT_QUIRK_WIN8_PTP_BUTTONS) && in mt_touch_report()
1284 if (app->quirks & MT_QUIRK_STICKY_FINGERS) { in mt_touch_report()
1314 if (app->quirks & MT_QUIRK_NOT_SEEN_MEANS_UP) in mt_touch_input_configured()
1374 application->quirks & MT_QUIRK_ASUS_CUSTOM_UP)) in mt_input_mapping()
1383 application->quirks & MT_QUIRK_ASUS_CUSTOM_UP && in mt_input_mapping()
1488 if (cls->quirks & MT_QUIRK_FORCE_GET_FEATURE) { in mt_need_to_apply_feature()
1574 __s32 quirks = app->quirks; in mt_post_parse_default_settings() local
1576 /* unknown serial device needs special quirks */ in mt_post_parse_default_settings()
1578 quirks |= MT_QUIRK_ALWAYS_VALID; in mt_post_parse_default_settings()
1579 quirks &= ~MT_QUIRK_NOT_SEEN_MEANS_UP; in mt_post_parse_default_settings()
1580 quirks &= ~MT_QUIRK_VALID_IS_INRANGE; in mt_post_parse_default_settings()
1581 quirks &= ~MT_QUIRK_VALID_IS_CONFIDENCE; in mt_post_parse_default_settings()
1582 quirks &= ~MT_QUIRK_CONTACT_CNT_ACCURATE; in mt_post_parse_default_settings()
1585 app->quirks = quirks; in mt_post_parse_default_settings()
1591 app->quirks &= ~MT_QUIRK_CONTACT_CNT_ACCURATE; in mt_post_parse()
1757 if (hdev->quirks & (HID_QUIRK_X_INVERT | HID_QUIRK_Y_INVERT) && in mt_probe()
1758 !((hdev->quirks & HID_QUIRK_X_INVERT) in mt_probe()
1759 && (hdev->quirks & HID_QUIRK_Y_INVERT))) in mt_probe()
1760 td->mtclass.quirks = MT_QUIRK_ORIENTATION_INVERT; in mt_probe()
1765 hdev->quirks |= HID_QUIRK_NO_INPUT_SYNC; in mt_probe()
1772 hdev->quirks |= HID_QUIRK_INPUT_PER_APP; in mt_probe()
1775 hdev->quirks |= HID_QUIRK_MULTI_INPUT; in mt_probe()
1777 if (mtclass->quirks & MT_QUIRK_FORCE_MULTI_INPUT) { in mt_probe()
1778 hdev->quirks &= ~HID_QUIRK_INPUT_PER_APP; in mt_probe()
1779 hdev->quirks |= HID_QUIRK_MULTI_INPUT; in mt_probe()
1788 if (mtclass->quirks & MT_QUIRK_FIX_CONST_CONTACT_ID) in mt_probe()
1811 if ((td->mtclass.quirks & MT_QUIRK_DISABLE_WAKEUP) || in mt_suspend()