Lines Matching +full:0 +full:x25f

28 	  0,  0,  0,  0, 30, 48, 46, 32, 18, 33, 34, 35, 23, 36, 37, 38,
49 } hid_hat_to_axis[] = {{ 0, 0}, { 0,-1}, { 1,-1}, { 1, 0}, { 1, 1}, { 0, 1}, {-1, 1}, {-1, 0}, {-1…
71 * defined in the next 8 bits (defined by 0xff - slot).
136 unsigned int i, j, k, cur_idx = 0; in hidinput_find_key()
142 for (i = 0; i < report->maxfield; i++) { in hidinput_find_key()
143 for (j = 0; j < report->field[i]->maxusage; j++) { in hidinput_find_key()
145 if (usage->type == EV_KEY || usage->type == 0) { in hidinput_find_key()
169 else if (input_scancode_to_scalar(ke, &scancode) == 0) in hidinput_locate_usage()
192 return 0; in hidinput_getkeycode()
224 return 0; in hidinput_setkeycode()
256 if (logical_extents <= 0 || physical_extents <= 0) in hidinput_calc_abs_res()
257 return 0; in hidinput_calc_abs_res()
273 if (field->unit == 0x11) { /* If centimeters */ in hidinput_calc_abs_res()
276 } else if (field->unit == 0x13) { /* If inches */ in hidinput_calc_abs_res()
281 return 0; in hidinput_calc_abs_res()
284 return 0; in hidinput_calc_abs_res()
294 if (field->unit == 0x14) { /* If degrees */ in hidinput_calc_abs_res()
299 return 0; in hidinput_calc_abs_res()
301 } else if (field->unit != 0x12) { /* If not radians */ in hidinput_calc_abs_res()
302 return 0; in hidinput_calc_abs_res()
307 return 0; in hidinput_calc_abs_res()
311 for (; unit_exponent < 0; unit_exponent++) { in hidinput_calc_abs_res()
315 return 0; in hidinput_calc_abs_res()
318 for (; unit_exponent > 0; unit_exponent--) { in hidinput_calc_abs_res()
322 return 0; in hidinput_calc_abs_res()
340 #define HID_BATTERY_QUIRK_PERCENT (1 << 0) /* always reports percent */
393 unsigned quirks = 0; in find_battery_quirk()
441 int ret = 0; in hidinput_get_battery_property()
453 if (value < 0) in hidinput_get_battery_property()
470 if (value < 0) in hidinput_get_battery_property()
505 return 0; /* already initialized? */ in hidinput_setup_battery()
513 return 0; in hidinput_setup_battery()
530 psy_desc->use_for_apm = 0; in hidinput_setup_battery()
537 min = 0; in hidinput_setup_battery()
565 return 0; in hidinput_setup_battery()
596 if (value == 0 || value < dev->battery_min || value > dev->battery_max) in hidinput_update_battery()
615 return 0; in hidinput_setup_battery()
643 int max = 0, code; in hidinput_configure_usage()
644 unsigned int i = 0; in hidinput_configure_usage()
663 for (i = 0; i < ARRAY_SIZE(hidinput_usages_priorities); i++) { in hidinput_configure_usage()
682 (0xff - field->slot_idx) << 16; in hidinput_configure_usage()
687 if (ret > 0) in hidinput_configure_usage()
689 if (ret < 0) in hidinput_configure_usage()
715 if (code <= 0xf) in hidinput_configure_usage()
718 code += BTN_TRIGGER_HAPPY - 0x10; in hidinput_configure_usage()
721 if (code <= 0xf) in hidinput_configure_usage()
724 code += BTN_TRIGGER_HAPPY - 0x10; in hidinput_configure_usage()
730 if (code <= 0x1d) in hidinput_configure_usage()
733 code += BTN_TRIGGER_HAPPY - 0x1e; in hidinput_configure_usage()
751 switch (usage->hid & 0xffff) { in hidinput_configure_usage()
752 case 0xba: map_abs(ABS_RUDDER); break; in hidinput_configure_usage()
753 case 0xbb: map_abs(ABS_THROTTLE); break; in hidinput_configure_usage()
754 case 0xc4: map_abs(ABS_GAS); break; in hidinput_configure_usage()
755 case 0xc5: map_abs(ABS_BRAKE); break; in hidinput_configure_usage()
756 case 0xc8: map_abs(ABS_WHEEL); break; in hidinput_configure_usage()
762 if ((usage->hid & 0xf0) == 0x80) { /* SystemControl */ in hidinput_configure_usage()
763 switch (usage->hid & 0xf) { in hidinput_configure_usage()
764 case 0x1: map_key_clear(KEY_POWER); break; in hidinput_configure_usage()
765 case 0x2: map_key_clear(KEY_SLEEP); break; in hidinput_configure_usage()
766 case 0x3: map_key_clear(KEY_WAKEUP); break; in hidinput_configure_usage()
767 case 0x4: map_key_clear(KEY_CONTEXT_MENU); break; in hidinput_configure_usage()
768 case 0x5: map_key_clear(KEY_MENU); break; in hidinput_configure_usage()
769 case 0x6: map_key_clear(KEY_PROG1); break; in hidinput_configure_usage()
770 case 0x7: map_key_clear(KEY_HELP); break; in hidinput_configure_usage()
771 case 0x8: map_key_clear(KEY_EXIT); break; in hidinput_configure_usage()
772 case 0x9: map_key_clear(KEY_SELECT); break; in hidinput_configure_usage()
773 case 0xa: map_key_clear(KEY_RIGHT); break; in hidinput_configure_usage()
774 case 0xb: map_key_clear(KEY_LEFT); break; in hidinput_configure_usage()
775 case 0xc: map_key_clear(KEY_UP); break; in hidinput_configure_usage()
776 case 0xd: map_key_clear(KEY_DOWN); break; in hidinput_configure_usage()
777 case 0xe: map_key_clear(KEY_POWER2); break; in hidinput_configure_usage()
778 case 0xf: map_key_clear(KEY_RESTART); break; in hidinput_configure_usage()
784 if ((usage->hid & 0xf0) == 0xb0) { /* SC - Display */ in hidinput_configure_usage()
785 switch (usage->hid & 0xf) { in hidinput_configure_usage()
786 case 0x05: map_key_clear(KEY_SWITCHVIDEOMODE); break; in hidinput_configure_usage()
801 if ((usage->hid & 0xf0) == 0x90) { /* D-pad */ in hidinput_configure_usage()
822 map_rel(usage->hid & 0xf); in hidinput_configure_usage()
824 map_abs_clear(usage->hid & 0xf); in hidinput_configure_usage()
832 map_abs(usage->hid & 0xf); in hidinput_configure_usage()
837 map_rel(usage->hid & 0xf); in hidinput_configure_usage()
839 map_abs(usage->hid & 0xf); in hidinput_configure_usage()
867 switch (usage->hid & 0xffff) { /* HID-Value: */ in hidinput_configure_usage()
868 case 0x01: map_led (LED_NUML); break; /* "Num Lock" */ in hidinput_configure_usage()
869 case 0x02: map_led (LED_CAPSL); break; /* "Caps Lock" */ in hidinput_configure_usage()
870 case 0x03: map_led (LED_SCROLLL); break; /* "Scroll Lock" */ in hidinput_configure_usage()
871 case 0x04: map_led (LED_COMPOSE); break; /* "Compose" */ in hidinput_configure_usage()
872 case 0x05: map_led (LED_KANA); break; /* "Kana" */ in hidinput_configure_usage()
873 case 0x27: map_led (LED_SLEEP); break; /* "Stand-By" */ in hidinput_configure_usage()
874 case 0x4c: map_led (LED_SUSPEND); break; /* "System Suspend" */ in hidinput_configure_usage()
875 case 0x09: map_led (LED_MUTE); break; /* "Mute" */ in hidinput_configure_usage()
876 case 0x4b: map_led (LED_MISC); break; /* "Generic Indicator" */ in hidinput_configure_usage()
877 case 0x19: map_led (LED_MAIL); break; /* "Message Waiting" */ in hidinput_configure_usage()
878 case 0x4d: map_led (LED_CHARGING); break; /* "External Power Connected" */ in hidinput_configure_usage()
885 if ((field->application & 0xff) == 0x01) /* Digitizer */ in hidinput_configure_usage()
887 else if ((field->application & 0xff) == 0x02) /* Pen */ in hidinput_configure_usage()
890 switch (usage->hid & 0xff) { in hidinput_configure_usage()
891 case 0x00: /* Undefined */ in hidinput_configure_usage()
894 case 0x30: /* TipPressure */ in hidinput_configure_usage()
903 case 0x32: /* InRange */ in hidinput_configure_usage()
932 case 0x3b: /* Battery Strength */ in hidinput_configure_usage()
937 case 0x3c: /* Invert */ in hidinput_configure_usage()
941 case 0x3d: /* X Tilt */ in hidinput_configure_usage()
945 case 0x3e: /* Y Tilt */ in hidinput_configure_usage()
949 case 0x33: /* Touch */ in hidinput_configure_usage()
950 case 0x42: /* TipSwitch */ in hidinput_configure_usage()
951 case 0x43: /* TipSwitch2 */ in hidinput_configure_usage()
956 case 0x44: /* BarrelSwitch */ in hidinput_configure_usage()
960 case 0x45: /* ERASER */ in hidinput_configure_usage()
969 case 0x46: /* TabletPick */ in hidinput_configure_usage()
970 case 0x5a: /* SecondaryBarrelSwitch */ in hidinput_configure_usage()
974 case 0x5b: /* TransducerSerialNumber */ in hidinput_configure_usage()
975 case 0x6e: /* TransducerSerialNumber2 */ in hidinput_configure_usage()
985 case 0x2f: map_key_clear(KEY_MICMUTE); break; in hidinput_configure_usage()
986 case 0xb0: map_key_clear(KEY_NUMERIC_0); break; in hidinput_configure_usage()
987 case 0xb1: map_key_clear(KEY_NUMERIC_1); break; in hidinput_configure_usage()
988 case 0xb2: map_key_clear(KEY_NUMERIC_2); break; in hidinput_configure_usage()
989 case 0xb3: map_key_clear(KEY_NUMERIC_3); break; in hidinput_configure_usage()
990 case 0xb4: map_key_clear(KEY_NUMERIC_4); break; in hidinput_configure_usage()
991 case 0xb5: map_key_clear(KEY_NUMERIC_5); break; in hidinput_configure_usage()
992 case 0xb6: map_key_clear(KEY_NUMERIC_6); break; in hidinput_configure_usage()
993 case 0xb7: map_key_clear(KEY_NUMERIC_7); break; in hidinput_configure_usage()
994 case 0xb8: map_key_clear(KEY_NUMERIC_8); break; in hidinput_configure_usage()
995 case 0xb9: map_key_clear(KEY_NUMERIC_9); break; in hidinput_configure_usage()
996 case 0xba: map_key_clear(KEY_NUMERIC_STAR); break; in hidinput_configure_usage()
997 case 0xbb: map_key_clear(KEY_NUMERIC_POUND); break; in hidinput_configure_usage()
998 case 0xbc: map_key_clear(KEY_NUMERIC_A); break; in hidinput_configure_usage()
999 case 0xbd: map_key_clear(KEY_NUMERIC_B); break; in hidinput_configure_usage()
1000 case 0xbe: map_key_clear(KEY_NUMERIC_C); break; in hidinput_configure_usage()
1001 case 0xbf: map_key_clear(KEY_NUMERIC_D); break; in hidinput_configure_usage()
1008 case 0x000: goto ignore; in hidinput_configure_usage()
1009 case 0x030: map_key_clear(KEY_POWER); break; in hidinput_configure_usage()
1010 case 0x031: map_key_clear(KEY_RESTART); break; in hidinput_configure_usage()
1011 case 0x032: map_key_clear(KEY_SLEEP); break; in hidinput_configure_usage()
1012 case 0x034: map_key_clear(KEY_SLEEP); break; in hidinput_configure_usage()
1013 case 0x035: map_key_clear(KEY_KBDILLUMTOGGLE); break; in hidinput_configure_usage()
1014 case 0x036: map_key_clear(BTN_MISC); break; in hidinput_configure_usage()
1016 case 0x040: map_key_clear(KEY_MENU); break; /* Menu */ in hidinput_configure_usage()
1017 case 0x041: map_key_clear(KEY_SELECT); break; /* Menu Pick */ in hidinput_configure_usage()
1018 case 0x042: map_key_clear(KEY_UP); break; /* Menu Up */ in hidinput_configure_usage()
1019 case 0x043: map_key_clear(KEY_DOWN); break; /* Menu Down */ in hidinput_configure_usage()
1020 case 0x044: map_key_clear(KEY_LEFT); break; /* Menu Left */ in hidinput_configure_usage()
1021 case 0x045: map_key_clear(KEY_RIGHT); break; /* Menu Right */ in hidinput_configure_usage()
1022 case 0x046: map_key_clear(KEY_ESC); break; /* Menu Escape */ in hidinput_configure_usage()
1023 case 0x047: map_key_clear(KEY_KPPLUS); break; /* Menu Value Increase */ in hidinput_configure_usage()
1024 case 0x048: map_key_clear(KEY_KPMINUS); break; /* Menu Value Decrease */ in hidinput_configure_usage()
1026 case 0x060: map_key_clear(KEY_INFO); break; /* Data On Screen */ in hidinput_configure_usage()
1027 case 0x061: map_key_clear(KEY_SUBTITLE); break; /* Closed Caption */ in hidinput_configure_usage()
1028 case 0x063: map_key_clear(KEY_VCR); break; /* VCR/TV */ in hidinput_configure_usage()
1029 case 0x065: map_key_clear(KEY_CAMERA); break; /* Snapshot */ in hidinput_configure_usage()
1030 case 0x069: map_key_clear(KEY_RED); break; in hidinput_configure_usage()
1031 case 0x06a: map_key_clear(KEY_GREEN); break; in hidinput_configure_usage()
1032 case 0x06b: map_key_clear(KEY_BLUE); break; in hidinput_configure_usage()
1033 case 0x06c: map_key_clear(KEY_YELLOW); break; in hidinput_configure_usage()
1034 case 0x06d: map_key_clear(KEY_ASPECT_RATIO); break; in hidinput_configure_usage()
1036 case 0x06f: map_key_clear(KEY_BRIGHTNESSUP); break; in hidinput_configure_usage()
1037 case 0x070: map_key_clear(KEY_BRIGHTNESSDOWN); break; in hidinput_configure_usage()
1038 case 0x072: map_key_clear(KEY_BRIGHTNESS_TOGGLE); break; in hidinput_configure_usage()
1039 case 0x073: map_key_clear(KEY_BRIGHTNESS_MIN); break; in hidinput_configure_usage()
1040 case 0x074: map_key_clear(KEY_BRIGHTNESS_MAX); break; in hidinput_configure_usage()
1041 case 0x075: map_key_clear(KEY_BRIGHTNESS_AUTO); break; in hidinput_configure_usage()
1043 case 0x079: map_key_clear(KEY_KBDILLUMUP); break; in hidinput_configure_usage()
1044 case 0x07a: map_key_clear(KEY_KBDILLUMDOWN); break; in hidinput_configure_usage()
1045 case 0x07c: map_key_clear(KEY_KBDILLUMTOGGLE); break; in hidinput_configure_usage()
1047 case 0x082: map_key_clear(KEY_VIDEO_NEXT); break; in hidinput_configure_usage()
1048 case 0x083: map_key_clear(KEY_LAST); break; in hidinput_configure_usage()
1049 case 0x084: map_key_clear(KEY_ENTER); break; in hidinput_configure_usage()
1050 case 0x088: map_key_clear(KEY_PC); break; in hidinput_configure_usage()
1051 case 0x089: map_key_clear(KEY_TV); break; in hidinput_configure_usage()
1052 case 0x08a: map_key_clear(KEY_WWW); break; in hidinput_configure_usage()
1053 case 0x08b: map_key_clear(KEY_DVD); break; in hidinput_configure_usage()
1054 case 0x08c: map_key_clear(KEY_PHONE); break; in hidinput_configure_usage()
1055 case 0x08d: map_key_clear(KEY_PROGRAM); break; in hidinput_configure_usage()
1056 case 0x08e: map_key_clear(KEY_VIDEOPHONE); break; in hidinput_configure_usage()
1057 case 0x08f: map_key_clear(KEY_GAMES); break; in hidinput_configure_usage()
1058 case 0x090: map_key_clear(KEY_MEMO); break; in hidinput_configure_usage()
1059 case 0x091: map_key_clear(KEY_CD); break; in hidinput_configure_usage()
1060 case 0x092: map_key_clear(KEY_VCR); break; in hidinput_configure_usage()
1061 case 0x093: map_key_clear(KEY_TUNER); break; in hidinput_configure_usage()
1062 case 0x094: map_key_clear(KEY_EXIT); break; in hidinput_configure_usage()
1063 case 0x095: map_key_clear(KEY_HELP); break; in hidinput_configure_usage()
1064 case 0x096: map_key_clear(KEY_TAPE); break; in hidinput_configure_usage()
1065 case 0x097: map_key_clear(KEY_TV2); break; in hidinput_configure_usage()
1066 case 0x098: map_key_clear(KEY_SAT); break; in hidinput_configure_usage()
1067 case 0x09a: map_key_clear(KEY_PVR); break; in hidinput_configure_usage()
1069 case 0x09c: map_key_clear(KEY_CHANNELUP); break; in hidinput_configure_usage()
1070 case 0x09d: map_key_clear(KEY_CHANNELDOWN); break; in hidinput_configure_usage()
1071 case 0x0a0: map_key_clear(KEY_VCR2); break; in hidinput_configure_usage()
1073 case 0x0b0: map_key_clear(KEY_PLAY); break; in hidinput_configure_usage()
1074 case 0x0b1: map_key_clear(KEY_PAUSE); break; in hidinput_configure_usage()
1075 case 0x0b2: map_key_clear(KEY_RECORD); break; in hidinput_configure_usage()
1076 case 0x0b3: map_key_clear(KEY_FASTFORWARD); break; in hidinput_configure_usage()
1077 case 0x0b4: map_key_clear(KEY_REWIND); break; in hidinput_configure_usage()
1078 case 0x0b5: map_key_clear(KEY_NEXTSONG); break; in hidinput_configure_usage()
1079 case 0x0b6: map_key_clear(KEY_PREVIOUSSONG); break; in hidinput_configure_usage()
1080 case 0x0b7: map_key_clear(KEY_STOPCD); break; in hidinput_configure_usage()
1081 case 0x0b8: map_key_clear(KEY_EJECTCD); break; in hidinput_configure_usage()
1082 case 0x0bc: map_key_clear(KEY_MEDIA_REPEAT); break; in hidinput_configure_usage()
1083 case 0x0b9: map_key_clear(KEY_SHUFFLE); break; in hidinput_configure_usage()
1084 case 0x0bf: map_key_clear(KEY_SLOW); break; in hidinput_configure_usage()
1086 case 0x0cd: map_key_clear(KEY_PLAYPAUSE); break; in hidinput_configure_usage()
1087 case 0x0cf: map_key_clear(KEY_VOICECOMMAND); break; in hidinput_configure_usage()
1089 case 0x0d8: map_key_clear(KEY_DICTATE); break; in hidinput_configure_usage()
1090 case 0x0d9: map_key_clear(KEY_EMOJI_PICKER); break; in hidinput_configure_usage()
1092 case 0x0e0: map_abs_clear(ABS_VOLUME); break; in hidinput_configure_usage()
1093 case 0x0e2: map_key_clear(KEY_MUTE); break; in hidinput_configure_usage()
1094 case 0x0e5: map_key_clear(KEY_BASSBOOST); break; in hidinput_configure_usage()
1095 case 0x0e9: map_key_clear(KEY_VOLUMEUP); break; in hidinput_configure_usage()
1096 case 0x0ea: map_key_clear(KEY_VOLUMEDOWN); break; in hidinput_configure_usage()
1097 case 0x0f5: map_key_clear(KEY_SLOW); break; in hidinput_configure_usage()
1099 case 0x181: map_key_clear(KEY_BUTTONCONFIG); break; in hidinput_configure_usage()
1100 case 0x182: map_key_clear(KEY_BOOKMARKS); break; in hidinput_configure_usage()
1101 case 0x183: map_key_clear(KEY_CONFIG); break; in hidinput_configure_usage()
1102 case 0x184: map_key_clear(KEY_WORDPROCESSOR); break; in hidinput_configure_usage()
1103 case 0x185: map_key_clear(KEY_EDITOR); break; in hidinput_configure_usage()
1104 case 0x186: map_key_clear(KEY_SPREADSHEET); break; in hidinput_configure_usage()
1105 case 0x187: map_key_clear(KEY_GRAPHICSEDITOR); break; in hidinput_configure_usage()
1106 case 0x188: map_key_clear(KEY_PRESENTATION); break; in hidinput_configure_usage()
1107 case 0x189: map_key_clear(KEY_DATABASE); break; in hidinput_configure_usage()
1108 case 0x18a: map_key_clear(KEY_MAIL); break; in hidinput_configure_usage()
1109 case 0x18b: map_key_clear(KEY_NEWS); break; in hidinput_configure_usage()
1110 case 0x18c: map_key_clear(KEY_VOICEMAIL); break; in hidinput_configure_usage()
1111 case 0x18d: map_key_clear(KEY_ADDRESSBOOK); break; in hidinput_configure_usage()
1112 case 0x18e: map_key_clear(KEY_CALENDAR); break; in hidinput_configure_usage()
1113 case 0x18f: map_key_clear(KEY_TASKMANAGER); break; in hidinput_configure_usage()
1114 case 0x190: map_key_clear(KEY_JOURNAL); break; in hidinput_configure_usage()
1115 case 0x191: map_key_clear(KEY_FINANCE); break; in hidinput_configure_usage()
1116 case 0x192: map_key_clear(KEY_CALC); break; in hidinput_configure_usage()
1117 case 0x193: map_key_clear(KEY_PLAYER); break; in hidinput_configure_usage()
1118 case 0x194: map_key_clear(KEY_FILE); break; in hidinput_configure_usage()
1119 case 0x196: map_key_clear(KEY_WWW); break; in hidinput_configure_usage()
1120 case 0x199: map_key_clear(KEY_CHAT); break; in hidinput_configure_usage()
1121 case 0x19c: map_key_clear(KEY_LOGOFF); break; in hidinput_configure_usage()
1122 case 0x19e: map_key_clear(KEY_COFFEE); break; in hidinput_configure_usage()
1123 case 0x19f: map_key_clear(KEY_CONTROLPANEL); break; in hidinput_configure_usage()
1124 case 0x1a2: map_key_clear(KEY_APPSELECT); break; in hidinput_configure_usage()
1125 case 0x1a3: map_key_clear(KEY_NEXT); break; in hidinput_configure_usage()
1126 case 0x1a4: map_key_clear(KEY_PREVIOUS); break; in hidinput_configure_usage()
1127 case 0x1a6: map_key_clear(KEY_HELP); break; in hidinput_configure_usage()
1128 case 0x1a7: map_key_clear(KEY_DOCUMENTS); break; in hidinput_configure_usage()
1129 case 0x1ab: map_key_clear(KEY_SPELLCHECK); break; in hidinput_configure_usage()
1130 case 0x1ae: map_key_clear(KEY_KEYBOARD); break; in hidinput_configure_usage()
1131 case 0x1b1: map_key_clear(KEY_SCREENSAVER); break; in hidinput_configure_usage()
1132 case 0x1b4: map_key_clear(KEY_FILE); break; in hidinput_configure_usage()
1133 case 0x1b6: map_key_clear(KEY_IMAGES); break; in hidinput_configure_usage()
1134 case 0x1b7: map_key_clear(KEY_AUDIO); break; in hidinput_configure_usage()
1135 case 0x1b8: map_key_clear(KEY_VIDEO); break; in hidinput_configure_usage()
1136 case 0x1bc: map_key_clear(KEY_MESSENGER); break; in hidinput_configure_usage()
1137 case 0x1bd: map_key_clear(KEY_INFO); break; in hidinput_configure_usage()
1138 case 0x1cb: map_key_clear(KEY_ASSISTANT); break; in hidinput_configure_usage()
1139 case 0x201: map_key_clear(KEY_NEW); break; in hidinput_configure_usage()
1140 case 0x202: map_key_clear(KEY_OPEN); break; in hidinput_configure_usage()
1141 case 0x203: map_key_clear(KEY_CLOSE); break; in hidinput_configure_usage()
1142 case 0x204: map_key_clear(KEY_EXIT); break; in hidinput_configure_usage()
1143 case 0x207: map_key_clear(KEY_SAVE); break; in hidinput_configure_usage()
1144 case 0x208: map_key_clear(KEY_PRINT); break; in hidinput_configure_usage()
1145 case 0x209: map_key_clear(KEY_PROPS); break; in hidinput_configure_usage()
1146 case 0x21a: map_key_clear(KEY_UNDO); break; in hidinput_configure_usage()
1147 case 0x21b: map_key_clear(KEY_COPY); break; in hidinput_configure_usage()
1148 case 0x21c: map_key_clear(KEY_CUT); break; in hidinput_configure_usage()
1149 case 0x21d: map_key_clear(KEY_PASTE); break; in hidinput_configure_usage()
1150 case 0x21f: map_key_clear(KEY_FIND); break; in hidinput_configure_usage()
1151 case 0x221: map_key_clear(KEY_SEARCH); break; in hidinput_configure_usage()
1152 case 0x222: map_key_clear(KEY_GOTO); break; in hidinput_configure_usage()
1153 case 0x223: map_key_clear(KEY_HOMEPAGE); break; in hidinput_configure_usage()
1154 case 0x224: map_key_clear(KEY_BACK); break; in hidinput_configure_usage()
1155 case 0x225: map_key_clear(KEY_FORWARD); break; in hidinput_configure_usage()
1156 case 0x226: map_key_clear(KEY_STOP); break; in hidinput_configure_usage()
1157 case 0x227: map_key_clear(KEY_REFRESH); break; in hidinput_configure_usage()
1158 case 0x22a: map_key_clear(KEY_BOOKMARKS); break; in hidinput_configure_usage()
1159 case 0x22d: map_key_clear(KEY_ZOOMIN); break; in hidinput_configure_usage()
1160 case 0x22e: map_key_clear(KEY_ZOOMOUT); break; in hidinput_configure_usage()
1161 case 0x22f: map_key_clear(KEY_ZOOMRESET); break; in hidinput_configure_usage()
1162 case 0x232: map_key_clear(KEY_FULL_SCREEN); break; in hidinput_configure_usage()
1163 case 0x233: map_key_clear(KEY_SCROLLUP); break; in hidinput_configure_usage()
1164 case 0x234: map_key_clear(KEY_SCROLLDOWN); break; in hidinput_configure_usage()
1165 case 0x238: /* AC Pan */ in hidinput_configure_usage()
1169 case 0x23d: map_key_clear(KEY_EDIT); break; in hidinput_configure_usage()
1170 case 0x25f: map_key_clear(KEY_CANCEL); break; in hidinput_configure_usage()
1171 case 0x269: map_key_clear(KEY_INSERT); break; in hidinput_configure_usage()
1172 case 0x26a: map_key_clear(KEY_DELETE); break; in hidinput_configure_usage()
1173 case 0x279: map_key_clear(KEY_REDO); break; in hidinput_configure_usage()
1175 case 0x289: map_key_clear(KEY_REPLY); break; in hidinput_configure_usage()
1176 case 0x28b: map_key_clear(KEY_FORWARDMAIL); break; in hidinput_configure_usage()
1177 case 0x28c: map_key_clear(KEY_SEND); break; in hidinput_configure_usage()
1179 case 0x29d: map_key_clear(KEY_KBD_LAYOUT_NEXT); break; in hidinput_configure_usage()
1181 case 0x2a2: map_key_clear(KEY_ALL_APPLICATIONS); break; in hidinput_configure_usage()
1183 case 0x2c7: map_key_clear(KEY_KBDINPUTASSIST_PREV); break; in hidinput_configure_usage()
1184 case 0x2c8: map_key_clear(KEY_KBDINPUTASSIST_NEXT); break; in hidinput_configure_usage()
1185 case 0x2c9: map_key_clear(KEY_KBDINPUTASSIST_PREVGROUP); break; in hidinput_configure_usage()
1186 case 0x2ca: map_key_clear(KEY_KBDINPUTASSIST_NEXTGROUP); break; in hidinput_configure_usage()
1187 case 0x2cb: map_key_clear(KEY_KBDINPUTASSIST_ACCEPT); break; in hidinput_configure_usage()
1188 case 0x2cc: map_key_clear(KEY_KBDINPUTASSIST_CANCEL); break; in hidinput_configure_usage()
1190 case 0x29f: map_key_clear(KEY_SCALE); break; in hidinput_configure_usage()
1217 case 0x021: map_key_clear(KEY_PRINT); break; in hidinput_configure_usage()
1218 case 0x070: map_key_clear(KEY_HP); break; in hidinput_configure_usage()
1219 case 0x071: map_key_clear(KEY_CAMERA); break; in hidinput_configure_usage()
1220 case 0x072: map_key_clear(KEY_SOUND); break; in hidinput_configure_usage()
1221 case 0x073: map_key_clear(KEY_QUESTION); break; in hidinput_configure_usage()
1222 case 0x080: map_key_clear(KEY_EMAIL); break; in hidinput_configure_usage()
1223 case 0x081: map_key_clear(KEY_CHAT); break; in hidinput_configure_usage()
1224 case 0x082: map_key_clear(KEY_SEARCH); break; in hidinput_configure_usage()
1225 case 0x083: map_key_clear(KEY_CONNECT); break; in hidinput_configure_usage()
1226 case 0x084: map_key_clear(KEY_FINANCE); break; in hidinput_configure_usage()
1227 case 0x085: map_key_clear(KEY_SPORT); break; in hidinput_configure_usage()
1228 case 0x086: map_key_clear(KEY_SHOP); break; in hidinput_configure_usage()
1236 case 0x001: map_key_clear(KEY_MICMUTE); break; in hidinput_configure_usage()
1237 case 0x003: map_key_clear(KEY_BRIGHTNESSDOWN); break; in hidinput_configure_usage()
1238 case 0x004: map_key_clear(KEY_BRIGHTNESSUP); break; in hidinput_configure_usage()
1259 case 0xa4: map_key_clear(BTN_DEAD); break; in hidinput_configure_usage()
1289 &bit, &max) < 0) { in hidinput_configure_usage()
1334 a = field->logical_minimum = 0; in hidinput_configure_usage()
1340 else input_set_abs_params(input, usage->code, a, b, 0, 0); in hidinput_configure_usage()
1346 if (usage->code == ABS_MT_POSITION_X && input->hint_events_per_packet == 0) in hidinput_configure_usage()
1354 input_set_abs_params(input, i, -1, 1, 0, 0); in hidinput_configure_usage()
1379 usage->type = 0; in hidinput_configure_usage()
1380 usage->code = 0; in hidinput_configure_usage()
1390 if (value == 0) in hidinput_handle_scroll()
1426 input_event(input, EV_KEY, BTN_TOUCH, 0); in hid_report_release_tool()
1427 input_event(input, EV_KEY, tool, 0); in hid_report_release_tool()
1428 input_event(input, EV_SYN, SYN_REPORT, 0); in hid_report_release_tool()
1430 report->tool = 0; in hid_report_release_tool()
1466 if (hat_dir < 0 || hat_dir > 8) hat_dir = 0; in hidinput_hid_event()
1572 case HID_UP_PID | 0x83UL: /* Simultaneous Effects Max */ in hidinput_hid_event()
1576 case HID_UP_PID | 0x7fUL: in hidinput_hid_event()
1583 if (usage->code == 0) /* Key 0 is "unassigned", not KEY_UNKNOWN */ in hidinput_hid_event()
1599 int direction = value > 0 ? KEY_VOLUMEUP : KEY_VOLUMEDOWN; in hidinput_hid_event()
1602 for (i = 0; i < count; i++) { in hidinput_hid_event()
1605 input_event(input, EV_KEY, direction, 0); in hidinput_hid_event()
1620 * 0x31 and 0x32) report multiple keys, even though a localized keyboard in hidinput_hid_event()
1622 * report constant 0. As all map to the same keycode, they'd confuse in hidinput_hid_event()
1643 input_event(input, usage->type, usage->code, 0); in hidinput_hid_event()
1666 for (i = 0; i < report->maxfield; i++) { in hidinput_find_field()
1668 for (j = 0; j < (*field)->maxusage; j++) in hidinput_find_field()
1685 for (i = 0; i < report->maxfield; i++) { in hidinput_get_led_field()
1687 for (j = 0; j < field->maxusage; j++) in hidinput_get_led_field()
1701 unsigned int count = 0; in hidinput_count_leds()
1706 for (i = 0; i < report->maxfield; i++) { in hidinput_count_leds()
1708 for (j = 0; j < field->maxusage; j++) in hidinput_count_leds()
1787 return 0; in hidinput_input_event()
1812 if (report->maxfield == 0) in __hidinput_change_resolution_multipliers()
1815 for (i = 0; i < report->maxfield; i++) { in __hidinput_change_resolution_multipliers()
1827 for (j = 0; j < report->field[i]->maxusage; j++) { in __hidinput_change_resolution_multipliers()
1895 for (i = 0; i < rep->maxfield; i++) { in report_features()
1900 for (j = 0; j < rep->field[i]->maxusage; j++) { in report_features()
2019 unsigned long r = 0; in hidinput_has_been_populated()
2021 for (i = 0; i < BITS_TO_LONGS(EV_CNT); i++) in hidinput_has_been_populated()
2024 for (i = 0; i < BITS_TO_LONGS(KEY_CNT); i++) in hidinput_has_been_populated()
2027 for (i = 0; i < BITS_TO_LONGS(REL_CNT); i++) in hidinput_has_been_populated()
2030 for (i = 0; i < BITS_TO_LONGS(ABS_CNT); i++) in hidinput_has_been_populated()
2033 for (i = 0; i < BITS_TO_LONGS(MSC_CNT); i++) in hidinput_has_been_populated()
2036 for (i = 0; i < BITS_TO_LONGS(LED_CNT); i++) in hidinput_has_been_populated()
2039 for (i = 0; i < BITS_TO_LONGS(SND_CNT); i++) in hidinput_has_been_populated()
2042 for (i = 0; i < BITS_TO_LONGS(FF_CNT); i++) in hidinput_has_been_populated()
2045 for (i = 0; i < BITS_TO_LONGS(SW_CNT); i++) in hidinput_has_been_populated()
2069 for (i = 0; i < report->maxfield; i++) in hidinput_cleanup_hidinput()
2119 int first_field_index = 0; in hidinput_configure_usages()
2122 unsigned int slot_idx = 0; in hidinput_configure_usages()
2129 for (i = 0; i < report->maxfield; i++) { in hidinput_configure_usages()
2154 for (j = 0; j < field->maxusage; j++) { in hidinput_configure_usages()
2170 for (i = 0; i < report->maxfield; i++) in hidinput_configure_usages()
2171 for (j = 0; j < report->field[i]->maxusage; j++) in hidinput_configure_usages()
2197 for (i = 0; i < hid->maxcollection; i++) { in hidinput_connect()
2276 return 0; in hidinput_connect()