Lines Matching defs:scancode
2031 static void hotkey_driver_event(const unsigned int scancode);
2363 /* Do NOT call without validating scancode first */
2364 static void tpacpi_input_send_key(const unsigned int scancode)
2366 const unsigned int keycode = hotkey_keycode_map[scancode];
2371 input_event(tpacpi_inputdev, EV_MSC, MSC_SCAN, scancode);
2375 input_event(tpacpi_inputdev, EV_MSC, MSC_SCAN, scancode);
2383 /* Do NOT call without validating scancode first */
2384 static void tpacpi_input_send_key_masked(const unsigned int scancode)
2386 hotkey_driver_event(scancode);
2387 if (hotkey_user_mask & (1 << scancode))
2388 tpacpi_input_send_key(scancode);
2394 /* Do NOT call without validating scancode first */
2395 static void tpacpi_hotkey_send_key(unsigned int scancode)
2397 tpacpi_input_send_key_masked(scancode);
3158 static void __init hotkey_unmap(const unsigned int scancode)
3160 if (hotkey_keycode_map[scancode] != KEY_RESERVED) {
3161 clear_bit(hotkey_keycode_map[scancode],
3163 hotkey_keycode_map[scancode] = KEY_RESERVED;
3806 static bool adaptive_keyboard_hotkey_notify_hotkey(unsigned int scancode)
3812 switch (scancode) {
3843 if (scancode < FIRST_ADAPTIVE_KEY ||
3844 scancode >= FIRST_ADAPTIVE_KEY +
3848 scancode);
3851 keycode = hotkey_keycode_map[scancode - FIRST_ADAPTIVE_KEY +
3873 unsigned int scancode = hkey & 0xfff;
3884 if (scancode > 0 &&
3885 scancode <= TP_ACPI_HOTKEYSCAN_ADAPTIVE_START) {
3886 /* HKEY event 0x1001 is scancode 0x00 */
3887 scancode--;
3888 if (!(hotkey_source_mask & (1 << scancode))) {
3889 tpacpi_input_send_key_masked(scancode);
3899 return adaptive_keyboard_hotkey_notify_hotkey(scancode);
3903 * TP_ACPI_HOTKEYSCAN_EXTENDED_START. The calculated scancode
3906 scancode -= (0x300 - TP_ACPI_HOTKEYSCAN_EXTENDED_START);
3907 if (scancode >= TP_ACPI_HOTKEYSCAN_EXTENDED_START &&
3908 scancode < TPACPI_HOTKEY_MAP_LEN) {
3909 tpacpi_input_send_key(scancode);
10004 static void hotkey_driver_event(const unsigned int scancode)
10006 tpacpi_driver_event(TP_HKEY_EV_HOTKEY_BASE + scancode);