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 */
398 unsigned quirks = 0; in find_battery_quirk()
446 int ret = 0; in hidinput_get_battery_property()
458 if (value < 0) in hidinput_get_battery_property()
475 if (value < 0) in hidinput_get_battery_property()
510 return 0; /* already initialized? */ in hidinput_setup_battery()
518 return 0; in hidinput_setup_battery()
535 psy_desc->use_for_apm = 0; in hidinput_setup_battery()
542 min = 0; in hidinput_setup_battery()
574 return 0; in hidinput_setup_battery()
605 if (value == 0 || value < dev->battery_min || value > dev->battery_max) in hidinput_update_battery()
638 return 0; in hidinput_setup_battery()
672 int max = 0, code; in hidinput_configure_usage()
673 unsigned int i = 0; in hidinput_configure_usage()
692 for (i = 0; i < ARRAY_SIZE(hidinput_usages_priorities); i++) { in hidinput_configure_usage()
711 (0xff - field->slot_idx) << 16; in hidinput_configure_usage()
716 if (ret > 0) in hidinput_configure_usage()
718 if (ret < 0) in hidinput_configure_usage()
744 if (code <= 0xf) in hidinput_configure_usage()
747 code += BTN_TRIGGER_HAPPY - 0x10; in hidinput_configure_usage()
750 if (code <= 0xf) in hidinput_configure_usage()
753 code += BTN_TRIGGER_HAPPY - 0x10; in hidinput_configure_usage()
759 if (code <= 0x1d) in hidinput_configure_usage()
762 code += BTN_TRIGGER_HAPPY - 0x1e; in hidinput_configure_usage()
780 switch (usage->hid & 0xffff) { in hidinput_configure_usage()
781 case 0xba: map_abs(ABS_RUDDER); break; in hidinput_configure_usage()
782 case 0xbb: map_abs(ABS_THROTTLE); break; in hidinput_configure_usage()
783 case 0xc4: map_abs(ABS_GAS); break; in hidinput_configure_usage()
784 case 0xc5: map_abs(ABS_BRAKE); break; in hidinput_configure_usage()
785 case 0xc8: map_abs(ABS_WHEEL); break; in hidinput_configure_usage()
791 if ((usage->hid & 0xf0) == 0x80) { /* SystemControl */ in hidinput_configure_usage()
792 switch (usage->hid & 0xf) { in hidinput_configure_usage()
793 case 0x1: map_key_clear(KEY_POWER); break; in hidinput_configure_usage()
794 case 0x2: map_key_clear(KEY_SLEEP); break; in hidinput_configure_usage()
795 case 0x3: map_key_clear(KEY_WAKEUP); break; in hidinput_configure_usage()
796 case 0x4: map_key_clear(KEY_CONTEXT_MENU); break; in hidinput_configure_usage()
797 case 0x5: map_key_clear(KEY_MENU); break; in hidinput_configure_usage()
798 case 0x6: map_key_clear(KEY_PROG1); break; in hidinput_configure_usage()
799 case 0x7: map_key_clear(KEY_HELP); break; in hidinput_configure_usage()
800 case 0x8: map_key_clear(KEY_EXIT); break; in hidinput_configure_usage()
801 case 0x9: map_key_clear(KEY_SELECT); break; in hidinput_configure_usage()
802 case 0xa: map_key_clear(KEY_RIGHT); break; in hidinput_configure_usage()
803 case 0xb: map_key_clear(KEY_LEFT); break; in hidinput_configure_usage()
804 case 0xc: map_key_clear(KEY_UP); break; in hidinput_configure_usage()
805 case 0xd: map_key_clear(KEY_DOWN); break; in hidinput_configure_usage()
806 case 0xe: map_key_clear(KEY_POWER2); break; in hidinput_configure_usage()
807 case 0xf: map_key_clear(KEY_RESTART); break; in hidinput_configure_usage()
813 if ((usage->hid & 0xf0) == 0x90) { /* SystemControl*/ in hidinput_configure_usage()
814 switch (usage->hid & 0xf) { in hidinput_configure_usage()
815 case 0xb: map_key_clear(KEY_DO_NOT_DISTURB); break; in hidinput_configure_usage()
821 if ((usage->hid & 0xf0) == 0xa0) { /* SystemControl */ in hidinput_configure_usage()
822 switch (usage->hid & 0xf) { in hidinput_configure_usage()
823 case 0x9: map_key_clear(KEY_MICMUTE); break; in hidinput_configure_usage()
824 case 0xa: map_key_clear(KEY_ACCESSIBILITY); break; in hidinput_configure_usage()
830 if ((usage->hid & 0xf0) == 0xb0) { /* SC - Display */ in hidinput_configure_usage()
831 switch (usage->hid & 0xf) { in hidinput_configure_usage()
832 case 0x05: map_key_clear(KEY_SWITCHVIDEOMODE); break; in hidinput_configure_usage()
847 if ((usage->hid & 0xf0) == 0x90) { /* D-pad */ in hidinput_configure_usage()
868 map_rel(usage->hid & 0xf); in hidinput_configure_usage()
870 map_abs_clear(usage->hid & 0xf); in hidinput_configure_usage()
878 map_abs(usage->hid & 0xf); in hidinput_configure_usage()
883 map_rel(usage->hid & 0xf); in hidinput_configure_usage()
885 map_abs(usage->hid & 0xf); in hidinput_configure_usage()
913 switch (usage->hid & 0xffff) { /* HID-Value: */ in hidinput_configure_usage()
914 case 0x01: map_led (LED_NUML); break; /* "Num Lock" */ in hidinput_configure_usage()
915 case 0x02: map_led (LED_CAPSL); break; /* "Caps Lock" */ in hidinput_configure_usage()
916 case 0x03: map_led (LED_SCROLLL); break; /* "Scroll Lock" */ in hidinput_configure_usage()
917 case 0x04: map_led (LED_COMPOSE); break; /* "Compose" */ in hidinput_configure_usage()
918 case 0x05: map_led (LED_KANA); break; /* "Kana" */ in hidinput_configure_usage()
919 case 0x27: map_led (LED_SLEEP); break; /* "Stand-By" */ in hidinput_configure_usage()
920 case 0x4c: map_led (LED_SUSPEND); break; /* "System Suspend" */ in hidinput_configure_usage()
921 case 0x09: map_led (LED_MUTE); break; /* "Mute" */ in hidinput_configure_usage()
922 case 0x4b: map_led (LED_MISC); break; /* "Generic Indicator" */ in hidinput_configure_usage()
923 case 0x19: map_led (LED_MAIL); break; /* "Message Waiting" */ in hidinput_configure_usage()
924 case 0x4d: map_led (LED_CHARGING); break; /* "External Power Connected" */ in hidinput_configure_usage()
931 if ((field->application & 0xff) == 0x01) /* Digitizer */ in hidinput_configure_usage()
933 else if ((field->application & 0xff) == 0x02) /* Pen */ in hidinput_configure_usage()
936 switch (usage->hid & 0xff) { in hidinput_configure_usage()
937 case 0x00: /* Undefined */ in hidinput_configure_usage()
940 case 0x30: /* TipPressure */ in hidinput_configure_usage()
949 case 0x32: /* InRange */ in hidinput_configure_usage()
978 case 0x3b: /* Battery Strength */ in hidinput_configure_usage()
983 case 0x3c: /* Invert */ in hidinput_configure_usage()
988 case 0x3d: /* X Tilt */ in hidinput_configure_usage()
992 case 0x3e: /* Y Tilt */ in hidinput_configure_usage()
996 case 0x33: /* Touch */ in hidinput_configure_usage()
997 case 0x42: /* TipSwitch */ in hidinput_configure_usage()
998 case 0x43: /* TipSwitch2 */ in hidinput_configure_usage()
1003 case 0x44: /* BarrelSwitch */ in hidinput_configure_usage()
1007 case 0x45: /* ERASER */ in hidinput_configure_usage()
1020 case 0x46: /* TabletPick */ in hidinput_configure_usage()
1021 case 0x5a: /* SecondaryBarrelSwitch */ in hidinput_configure_usage()
1025 case 0x5b: /* TransducerSerialNumber */ in hidinput_configure_usage()
1026 case 0x6e: /* TransducerSerialNumber2 */ in hidinput_configure_usage()
1036 case 0x2f: map_key_clear(KEY_MICMUTE); break; in hidinput_configure_usage()
1037 case 0xb0: map_key_clear(KEY_NUMERIC_0); break; in hidinput_configure_usage()
1038 case 0xb1: map_key_clear(KEY_NUMERIC_1); break; in hidinput_configure_usage()
1039 case 0xb2: map_key_clear(KEY_NUMERIC_2); break; in hidinput_configure_usage()
1040 case 0xb3: map_key_clear(KEY_NUMERIC_3); break; in hidinput_configure_usage()
1041 case 0xb4: map_key_clear(KEY_NUMERIC_4); break; in hidinput_configure_usage()
1042 case 0xb5: map_key_clear(KEY_NUMERIC_5); break; in hidinput_configure_usage()
1043 case 0xb6: map_key_clear(KEY_NUMERIC_6); break; in hidinput_configure_usage()
1044 case 0xb7: map_key_clear(KEY_NUMERIC_7); break; in hidinput_configure_usage()
1045 case 0xb8: map_key_clear(KEY_NUMERIC_8); break; in hidinput_configure_usage()
1046 case 0xb9: map_key_clear(KEY_NUMERIC_9); break; in hidinput_configure_usage()
1047 case 0xba: map_key_clear(KEY_NUMERIC_STAR); break; in hidinput_configure_usage()
1048 case 0xbb: map_key_clear(KEY_NUMERIC_POUND); break; in hidinput_configure_usage()
1049 case 0xbc: map_key_clear(KEY_NUMERIC_A); break; in hidinput_configure_usage()
1050 case 0xbd: map_key_clear(KEY_NUMERIC_B); break; in hidinput_configure_usage()
1051 case 0xbe: map_key_clear(KEY_NUMERIC_C); break; in hidinput_configure_usage()
1052 case 0xbf: map_key_clear(KEY_NUMERIC_D); break; in hidinput_configure_usage()
1059 case 0x000: goto ignore; in hidinput_configure_usage()
1060 case 0x030: map_key_clear(KEY_POWER); break; in hidinput_configure_usage()
1061 case 0x031: map_key_clear(KEY_RESTART); break; in hidinput_configure_usage()
1062 case 0x032: map_key_clear(KEY_SLEEP); break; in hidinput_configure_usage()
1063 case 0x034: map_key_clear(KEY_SLEEP); break; in hidinput_configure_usage()
1064 case 0x035: map_key_clear(KEY_KBDILLUMTOGGLE); break; in hidinput_configure_usage()
1065 case 0x036: map_key_clear(BTN_MISC); break; in hidinput_configure_usage()
1067 case 0x040: map_key_clear(KEY_MENU); break; /* Menu */ in hidinput_configure_usage()
1068 case 0x041: map_key_clear(KEY_SELECT); break; /* Menu Pick */ in hidinput_configure_usage()
1069 case 0x042: map_key_clear(KEY_UP); break; /* Menu Up */ in hidinput_configure_usage()
1070 case 0x043: map_key_clear(KEY_DOWN); break; /* Menu Down */ in hidinput_configure_usage()
1071 case 0x044: map_key_clear(KEY_LEFT); break; /* Menu Left */ in hidinput_configure_usage()
1072 case 0x045: map_key_clear(KEY_RIGHT); break; /* Menu Right */ in hidinput_configure_usage()
1073 case 0x046: map_key_clear(KEY_ESC); break; /* Menu Escape */ in hidinput_configure_usage()
1074 case 0x047: map_key_clear(KEY_KPPLUS); break; /* Menu Value Increase */ in hidinput_configure_usage()
1075 case 0x048: map_key_clear(KEY_KPMINUS); break; /* Menu Value Decrease */ in hidinput_configure_usage()
1077 case 0x060: map_key_clear(KEY_INFO); break; /* Data On Screen */ in hidinput_configure_usage()
1078 case 0x061: map_key_clear(KEY_SUBTITLE); break; /* Closed Caption */ in hidinput_configure_usage()
1079 case 0x063: map_key_clear(KEY_VCR); break; /* VCR/TV */ in hidinput_configure_usage()
1080 case 0x065: map_key_clear(KEY_CAMERA); break; /* Snapshot */ in hidinput_configure_usage()
1081 case 0x069: map_key_clear(KEY_RED); break; in hidinput_configure_usage()
1082 case 0x06a: map_key_clear(KEY_GREEN); break; in hidinput_configure_usage()
1083 case 0x06b: map_key_clear(KEY_BLUE); break; in hidinput_configure_usage()
1084 case 0x06c: map_key_clear(KEY_YELLOW); break; in hidinput_configure_usage()
1085 case 0x06d: map_key_clear(KEY_ASPECT_RATIO); break; in hidinput_configure_usage()
1087 case 0x06f: map_key_clear(KEY_BRIGHTNESSUP); break; in hidinput_configure_usage()
1088 case 0x070: map_key_clear(KEY_BRIGHTNESSDOWN); break; in hidinput_configure_usage()
1089 case 0x072: map_key_clear(KEY_BRIGHTNESS_TOGGLE); break; in hidinput_configure_usage()
1090 case 0x073: map_key_clear(KEY_BRIGHTNESS_MIN); break; in hidinput_configure_usage()
1091 case 0x074: map_key_clear(KEY_BRIGHTNESS_MAX); break; in hidinput_configure_usage()
1092 case 0x075: map_key_clear(KEY_BRIGHTNESS_AUTO); break; in hidinput_configure_usage()
1094 case 0x076: map_key_clear(KEY_CAMERA_ACCESS_ENABLE); break; in hidinput_configure_usage()
1095 case 0x077: map_key_clear(KEY_CAMERA_ACCESS_DISABLE); break; in hidinput_configure_usage()
1096 case 0x078: map_key_clear(KEY_CAMERA_ACCESS_TOGGLE); break; in hidinput_configure_usage()
1098 case 0x079: map_key_clear(KEY_KBDILLUMUP); break; in hidinput_configure_usage()
1099 case 0x07a: map_key_clear(KEY_KBDILLUMDOWN); break; in hidinput_configure_usage()
1100 case 0x07c: map_key_clear(KEY_KBDILLUMTOGGLE); break; in hidinput_configure_usage()
1102 case 0x082: map_key_clear(KEY_VIDEO_NEXT); break; in hidinput_configure_usage()
1103 case 0x083: map_key_clear(KEY_LAST); break; in hidinput_configure_usage()
1104 case 0x084: map_key_clear(KEY_ENTER); break; in hidinput_configure_usage()
1105 case 0x088: map_key_clear(KEY_PC); break; in hidinput_configure_usage()
1106 case 0x089: map_key_clear(KEY_TV); break; in hidinput_configure_usage()
1107 case 0x08a: map_key_clear(KEY_WWW); break; in hidinput_configure_usage()
1108 case 0x08b: map_key_clear(KEY_DVD); break; in hidinput_configure_usage()
1109 case 0x08c: map_key_clear(KEY_PHONE); break; in hidinput_configure_usage()
1110 case 0x08d: map_key_clear(KEY_PROGRAM); break; in hidinput_configure_usage()
1111 case 0x08e: map_key_clear(KEY_VIDEOPHONE); break; in hidinput_configure_usage()
1112 case 0x08f: map_key_clear(KEY_GAMES); break; in hidinput_configure_usage()
1113 case 0x090: map_key_clear(KEY_MEMO); break; in hidinput_configure_usage()
1114 case 0x091: map_key_clear(KEY_CD); break; in hidinput_configure_usage()
1115 case 0x092: map_key_clear(KEY_VCR); break; in hidinput_configure_usage()
1116 case 0x093: map_key_clear(KEY_TUNER); break; in hidinput_configure_usage()
1117 case 0x094: map_key_clear(KEY_EXIT); break; in hidinput_configure_usage()
1118 case 0x095: map_key_clear(KEY_HELP); break; in hidinput_configure_usage()
1119 case 0x096: map_key_clear(KEY_TAPE); break; in hidinput_configure_usage()
1120 case 0x097: map_key_clear(KEY_TV2); break; in hidinput_configure_usage()
1121 case 0x098: map_key_clear(KEY_SAT); break; in hidinput_configure_usage()
1122 case 0x09a: map_key_clear(KEY_PVR); break; in hidinput_configure_usage()
1124 case 0x09c: map_key_clear(KEY_CHANNELUP); break; in hidinput_configure_usage()
1125 case 0x09d: map_key_clear(KEY_CHANNELDOWN); break; in hidinput_configure_usage()
1126 case 0x0a0: map_key_clear(KEY_VCR2); break; in hidinput_configure_usage()
1128 case 0x0b0: map_key_clear(KEY_PLAY); break; in hidinput_configure_usage()
1129 case 0x0b1: map_key_clear(KEY_PAUSE); break; in hidinput_configure_usage()
1130 case 0x0b2: map_key_clear(KEY_RECORD); break; in hidinput_configure_usage()
1131 case 0x0b3: map_key_clear(KEY_FASTFORWARD); break; in hidinput_configure_usage()
1132 case 0x0b4: map_key_clear(KEY_REWIND); break; in hidinput_configure_usage()
1133 case 0x0b5: map_key_clear(KEY_NEXTSONG); break; in hidinput_configure_usage()
1134 case 0x0b6: map_key_clear(KEY_PREVIOUSSONG); break; in hidinput_configure_usage()
1135 case 0x0b7: map_key_clear(KEY_STOPCD); break; in hidinput_configure_usage()
1136 case 0x0b8: map_key_clear(KEY_EJECTCD); break; in hidinput_configure_usage()
1137 case 0x0bc: map_key_clear(KEY_MEDIA_REPEAT); break; in hidinput_configure_usage()
1138 case 0x0b9: map_key_clear(KEY_SHUFFLE); break; in hidinput_configure_usage()
1139 case 0x0bf: map_key_clear(KEY_SLOW); break; in hidinput_configure_usage()
1141 case 0x0cd: map_key_clear(KEY_PLAYPAUSE); break; in hidinput_configure_usage()
1142 case 0x0cf: map_key_clear(KEY_VOICECOMMAND); break; in hidinput_configure_usage()
1144 case 0x0d8: map_key_clear(KEY_DICTATE); break; in hidinput_configure_usage()
1145 case 0x0d9: map_key_clear(KEY_EMOJI_PICKER); break; in hidinput_configure_usage()
1147 case 0x0e0: map_abs_clear(ABS_VOLUME); break; in hidinput_configure_usage()
1148 case 0x0e2: map_key_clear(KEY_MUTE); break; in hidinput_configure_usage()
1149 case 0x0e5: map_key_clear(KEY_BASSBOOST); break; in hidinput_configure_usage()
1150 case 0x0e9: map_key_clear(KEY_VOLUMEUP); break; in hidinput_configure_usage()
1151 case 0x0ea: map_key_clear(KEY_VOLUMEDOWN); break; in hidinput_configure_usage()
1152 case 0x0f5: map_key_clear(KEY_SLOW); break; in hidinput_configure_usage()
1154 case 0x181: map_key_clear(KEY_BUTTONCONFIG); break; in hidinput_configure_usage()
1155 case 0x182: map_key_clear(KEY_BOOKMARKS); break; in hidinput_configure_usage()
1156 case 0x183: map_key_clear(KEY_CONFIG); break; in hidinput_configure_usage()
1157 case 0x184: map_key_clear(KEY_WORDPROCESSOR); break; in hidinput_configure_usage()
1158 case 0x185: map_key_clear(KEY_EDITOR); break; in hidinput_configure_usage()
1159 case 0x186: map_key_clear(KEY_SPREADSHEET); break; in hidinput_configure_usage()
1160 case 0x187: map_key_clear(KEY_GRAPHICSEDITOR); break; in hidinput_configure_usage()
1161 case 0x188: map_key_clear(KEY_PRESENTATION); break; in hidinput_configure_usage()
1162 case 0x189: map_key_clear(KEY_DATABASE); break; in hidinput_configure_usage()
1163 case 0x18a: map_key_clear(KEY_MAIL); break; in hidinput_configure_usage()
1164 case 0x18b: map_key_clear(KEY_NEWS); break; in hidinput_configure_usage()
1165 case 0x18c: map_key_clear(KEY_VOICEMAIL); break; in hidinput_configure_usage()
1166 case 0x18d: map_key_clear(KEY_ADDRESSBOOK); break; in hidinput_configure_usage()
1167 case 0x18e: map_key_clear(KEY_CALENDAR); break; in hidinput_configure_usage()
1168 case 0x18f: map_key_clear(KEY_TASKMANAGER); break; in hidinput_configure_usage()
1169 case 0x190: map_key_clear(KEY_JOURNAL); break; in hidinput_configure_usage()
1170 case 0x191: map_key_clear(KEY_FINANCE); break; in hidinput_configure_usage()
1171 case 0x192: map_key_clear(KEY_CALC); break; in hidinput_configure_usage()
1172 case 0x193: map_key_clear(KEY_PLAYER); break; in hidinput_configure_usage()
1173 case 0x194: map_key_clear(KEY_FILE); break; in hidinput_configure_usage()
1174 case 0x196: map_key_clear(KEY_WWW); break; in hidinput_configure_usage()
1175 case 0x199: map_key_clear(KEY_CHAT); break; in hidinput_configure_usage()
1176 case 0x19c: map_key_clear(KEY_LOGOFF); break; in hidinput_configure_usage()
1177 case 0x19e: map_key_clear(KEY_COFFEE); break; in hidinput_configure_usage()
1178 case 0x19f: map_key_clear(KEY_CONTROLPANEL); break; in hidinput_configure_usage()
1179 case 0x1a2: map_key_clear(KEY_APPSELECT); break; in hidinput_configure_usage()
1180 case 0x1a3: map_key_clear(KEY_NEXT); break; in hidinput_configure_usage()
1181 case 0x1a4: map_key_clear(KEY_PREVIOUS); break; in hidinput_configure_usage()
1182 case 0x1a6: map_key_clear(KEY_HELP); break; in hidinput_configure_usage()
1183 case 0x1a7: map_key_clear(KEY_DOCUMENTS); break; in hidinput_configure_usage()
1184 case 0x1ab: map_key_clear(KEY_SPELLCHECK); break; in hidinput_configure_usage()
1185 case 0x1ae: map_key_clear(KEY_KEYBOARD); break; in hidinput_configure_usage()
1186 case 0x1b1: map_key_clear(KEY_SCREENSAVER); break; in hidinput_configure_usage()
1187 case 0x1b4: map_key_clear(KEY_FILE); break; in hidinput_configure_usage()
1188 case 0x1b6: map_key_clear(KEY_IMAGES); break; in hidinput_configure_usage()
1189 case 0x1b7: map_key_clear(KEY_AUDIO); break; in hidinput_configure_usage()
1190 case 0x1b8: map_key_clear(KEY_VIDEO); break; in hidinput_configure_usage()
1191 case 0x1bc: map_key_clear(KEY_MESSENGER); break; in hidinput_configure_usage()
1192 case 0x1bd: map_key_clear(KEY_INFO); break; in hidinput_configure_usage()
1193 case 0x1cb: map_key_clear(KEY_ASSISTANT); break; in hidinput_configure_usage()
1194 case 0x201: map_key_clear(KEY_NEW); break; in hidinput_configure_usage()
1195 case 0x202: map_key_clear(KEY_OPEN); break; in hidinput_configure_usage()
1196 case 0x203: map_key_clear(KEY_CLOSE); break; in hidinput_configure_usage()
1197 case 0x204: map_key_clear(KEY_EXIT); break; in hidinput_configure_usage()
1198 case 0x207: map_key_clear(KEY_SAVE); break; in hidinput_configure_usage()
1199 case 0x208: map_key_clear(KEY_PRINT); break; in hidinput_configure_usage()
1200 case 0x209: map_key_clear(KEY_PROPS); break; in hidinput_configure_usage()
1201 case 0x21a: map_key_clear(KEY_UNDO); break; in hidinput_configure_usage()
1202 case 0x21b: map_key_clear(KEY_COPY); break; in hidinput_configure_usage()
1203 case 0x21c: map_key_clear(KEY_CUT); break; in hidinput_configure_usage()
1204 case 0x21d: map_key_clear(KEY_PASTE); break; in hidinput_configure_usage()
1205 case 0x21f: map_key_clear(KEY_FIND); break; in hidinput_configure_usage()
1206 case 0x221: map_key_clear(KEY_SEARCH); break; in hidinput_configure_usage()
1207 case 0x222: map_key_clear(KEY_GOTO); break; in hidinput_configure_usage()
1208 case 0x223: map_key_clear(KEY_HOMEPAGE); break; in hidinput_configure_usage()
1209 case 0x224: map_key_clear(KEY_BACK); break; in hidinput_configure_usage()
1210 case 0x225: map_key_clear(KEY_FORWARD); break; in hidinput_configure_usage()
1211 case 0x226: map_key_clear(KEY_STOP); break; in hidinput_configure_usage()
1212 case 0x227: map_key_clear(KEY_REFRESH); break; in hidinput_configure_usage()
1213 case 0x22a: map_key_clear(KEY_BOOKMARKS); break; in hidinput_configure_usage()
1214 case 0x22d: map_key_clear(KEY_ZOOMIN); break; in hidinput_configure_usage()
1215 case 0x22e: map_key_clear(KEY_ZOOMOUT); break; in hidinput_configure_usage()
1216 case 0x22f: map_key_clear(KEY_ZOOMRESET); break; in hidinput_configure_usage()
1217 case 0x232: map_key_clear(KEY_FULL_SCREEN); break; in hidinput_configure_usage()
1218 case 0x233: map_key_clear(KEY_SCROLLUP); break; in hidinput_configure_usage()
1219 case 0x234: map_key_clear(KEY_SCROLLDOWN); break; in hidinput_configure_usage()
1220 case 0x238: /* AC Pan */ in hidinput_configure_usage()
1224 case 0x23d: map_key_clear(KEY_EDIT); break; in hidinput_configure_usage()
1225 case 0x25f: map_key_clear(KEY_CANCEL); break; in hidinput_configure_usage()
1226 case 0x269: map_key_clear(KEY_INSERT); break; in hidinput_configure_usage()
1227 case 0x26a: map_key_clear(KEY_DELETE); break; in hidinput_configure_usage()
1228 case 0x279: map_key_clear(KEY_REDO); break; in hidinput_configure_usage()
1230 case 0x289: map_key_clear(KEY_REPLY); break; in hidinput_configure_usage()
1231 case 0x28b: map_key_clear(KEY_FORWARDMAIL); break; in hidinput_configure_usage()
1232 case 0x28c: map_key_clear(KEY_SEND); break; in hidinput_configure_usage()
1234 case 0x29d: map_key_clear(KEY_KBD_LAYOUT_NEXT); break; in hidinput_configure_usage()
1236 case 0x2a2: map_key_clear(KEY_ALL_APPLICATIONS); break; in hidinput_configure_usage()
1238 case 0x2c7: map_key_clear(KEY_KBDINPUTASSIST_PREV); break; in hidinput_configure_usage()
1239 case 0x2c8: map_key_clear(KEY_KBDINPUTASSIST_NEXT); break; in hidinput_configure_usage()
1240 case 0x2c9: map_key_clear(KEY_KBDINPUTASSIST_PREVGROUP); break; in hidinput_configure_usage()
1241 case 0x2ca: map_key_clear(KEY_KBDINPUTASSIST_NEXTGROUP); break; in hidinput_configure_usage()
1242 case 0x2cb: map_key_clear(KEY_KBDINPUTASSIST_ACCEPT); break; in hidinput_configure_usage()
1243 case 0x2cc: map_key_clear(KEY_KBDINPUTASSIST_CANCEL); break; in hidinput_configure_usage()
1245 case 0x29f: map_key_clear(KEY_SCALE); break; in hidinput_configure_usage()
1273 case 0x020: in hidinput_configure_usage()
1275 case 0x021: in hidinput_configure_usage()
1285 case 0x021: map_key_clear(KEY_PRINT); break; in hidinput_configure_usage()
1286 case 0x070: map_key_clear(KEY_HP); break; in hidinput_configure_usage()
1287 case 0x071: map_key_clear(KEY_CAMERA); break; in hidinput_configure_usage()
1288 case 0x072: map_key_clear(KEY_SOUND); break; in hidinput_configure_usage()
1289 case 0x073: map_key_clear(KEY_QUESTION); break; in hidinput_configure_usage()
1290 case 0x080: map_key_clear(KEY_EMAIL); break; in hidinput_configure_usage()
1291 case 0x081: map_key_clear(KEY_CHAT); break; in hidinput_configure_usage()
1292 case 0x082: map_key_clear(KEY_SEARCH); break; in hidinput_configure_usage()
1293 case 0x083: map_key_clear(KEY_CONNECT); break; in hidinput_configure_usage()
1294 case 0x084: map_key_clear(KEY_FINANCE); break; in hidinput_configure_usage()
1295 case 0x085: map_key_clear(KEY_SPORT); break; in hidinput_configure_usage()
1296 case 0x086: map_key_clear(KEY_SHOP); break; in hidinput_configure_usage()
1304 case 0x001: map_key_clear(KEY_MICMUTE); break; in hidinput_configure_usage()
1305 case 0x003: map_key_clear(KEY_BRIGHTNESSDOWN); break; in hidinput_configure_usage()
1306 case 0x004: map_key_clear(KEY_BRIGHTNESSUP); break; in hidinput_configure_usage()
1327 case 0xa4: map_key_clear(BTN_DEAD); break; in hidinput_configure_usage()
1357 &bit, &max) < 0) { in hidinput_configure_usage()
1402 a = field->logical_minimum = 0; in hidinput_configure_usage()
1408 else input_set_abs_params(input, usage->code, a, b, 0, 0); in hidinput_configure_usage()
1414 if (usage->code == ABS_MT_POSITION_X && input->hint_events_per_packet == 0) in hidinput_configure_usage()
1422 input_set_abs_params(input, i, -1, 1, 0, 0); in hidinput_configure_usage()
1447 usage->type = 0; in hidinput_configure_usage()
1448 usage->code = 0; in hidinput_configure_usage()
1458 if (value == 0) in hidinput_handle_scroll()
1494 input_event(input, EV_KEY, BTN_TOUCH, 0); in hid_report_release_tool()
1495 input_event(input, EV_KEY, tool, 0); in hid_report_release_tool()
1496 input_event(input, EV_SYN, SYN_REPORT, 0); in hid_report_release_tool()
1498 report->tool = 0; in hid_report_release_tool()
1538 if (hat_dir < 0 || hat_dir > 8) hat_dir = 0; in hidinput_hid_event()
1653 case HID_UP_PID | 0x83UL: /* Simultaneous Effects Max */ in hidinput_hid_event()
1657 case HID_UP_PID | 0x7fUL: in hidinput_hid_event()
1664 if (usage->code == 0) /* Key 0 is "unassigned", not KEY_UNKNOWN */ in hidinput_hid_event()
1680 int direction = value > 0 ? KEY_VOLUMEUP : KEY_VOLUMEDOWN; in hidinput_hid_event()
1683 for (i = 0; i < count; i++) { in hidinput_hid_event()
1686 input_event(input, EV_KEY, direction, 0); in hidinput_hid_event()
1701 * 0x31 and 0x32) report multiple keys, even though a localized keyboard in hidinput_hid_event()
1703 * report constant 0. As all map to the same keycode, they'd confuse in hidinput_hid_event()
1724 input_event(input, usage->type, usage->code, 0); in hidinput_hid_event()
1747 for (i = 0; i < report->maxfield; i++) { in hidinput_find_field()
1749 for (j = 0; j < (*field)->maxusage; j++) in hidinput_find_field()
1766 for (i = 0; i < report->maxfield; i++) { in hidinput_get_led_field()
1768 for (j = 0; j < field->maxusage; j++) in hidinput_get_led_field()
1782 unsigned int count = 0; in hidinput_count_leds()
1787 for (i = 0; i < report->maxfield; i++) { in hidinput_count_leds()
1789 for (j = 0; j < field->maxusage; j++) in hidinput_count_leds()
1868 return 0; in hidinput_input_event()
1893 if (report->maxfield == 0) in __hidinput_change_resolution_multipliers()
1896 for (i = 0; i < report->maxfield; i++) { in __hidinput_change_resolution_multipliers()
1908 for (j = 0; j < report->field[i]->maxusage; j++) { in __hidinput_change_resolution_multipliers()
1976 for (i = 0; i < rep->maxfield; i++) { in report_features()
1981 for (j = 0; j < rep->field[i]->maxusage; j++) { in report_features()
2100 unsigned long r = 0; in hidinput_has_been_populated()
2102 for (i = 0; i < BITS_TO_LONGS(EV_CNT); i++) in hidinput_has_been_populated()
2105 for (i = 0; i < BITS_TO_LONGS(KEY_CNT); i++) in hidinput_has_been_populated()
2108 for (i = 0; i < BITS_TO_LONGS(REL_CNT); i++) in hidinput_has_been_populated()
2111 for (i = 0; i < BITS_TO_LONGS(ABS_CNT); i++) in hidinput_has_been_populated()
2114 for (i = 0; i < BITS_TO_LONGS(MSC_CNT); i++) in hidinput_has_been_populated()
2117 for (i = 0; i < BITS_TO_LONGS(LED_CNT); i++) in hidinput_has_been_populated()
2120 for (i = 0; i < BITS_TO_LONGS(SND_CNT); i++) in hidinput_has_been_populated()
2123 for (i = 0; i < BITS_TO_LONGS(FF_CNT); i++) in hidinput_has_been_populated()
2126 for (i = 0; i < BITS_TO_LONGS(SW_CNT); i++) in hidinput_has_been_populated()
2150 for (i = 0; i < report->maxfield; i++) in hidinput_cleanup_hidinput()
2200 int first_field_index = 0; in hidinput_configure_usages()
2203 unsigned int slot_idx = 0; in hidinput_configure_usages()
2210 for (i = 0; i < report->maxfield; i++) { in hidinput_configure_usages()
2235 for (j = 0; j < field->maxusage; j++) { in hidinput_configure_usages()
2251 for (i = 0; i < report->maxfield; i++) in hidinput_configure_usages()
2252 for (j = 0; j < report->field[i]->maxusage; j++) in hidinput_configure_usages()
2278 for (i = 0; i < hid->maxcollection; i++) { in hidinput_connect()
2357 return 0; in hidinput_connect()