Lines Matching refs:scancode
2054 static void hotkey_driver_event(const unsigned int scancode);
2273 static void tpacpi_input_send_key(const unsigned int scancode) in tpacpi_input_send_key() argument
2275 const unsigned int keycode = hotkey_keycode_map[scancode]; in tpacpi_input_send_key()
2280 input_event(tpacpi_inputdev, EV_MSC, MSC_SCAN, scancode); in tpacpi_input_send_key()
2284 input_event(tpacpi_inputdev, EV_MSC, MSC_SCAN, scancode); in tpacpi_input_send_key()
2293 static void tpacpi_input_send_key_masked(const unsigned int scancode) in tpacpi_input_send_key_masked() argument
2295 hotkey_driver_event(scancode); in tpacpi_input_send_key_masked()
2296 if (hotkey_user_mask & (1 << scancode)) in tpacpi_input_send_key_masked()
2297 tpacpi_input_send_key(scancode); in tpacpi_input_send_key_masked()
2304 static void tpacpi_hotkey_send_key(unsigned int scancode) in tpacpi_hotkey_send_key() argument
2306 tpacpi_input_send_key_masked(scancode); in tpacpi_hotkey_send_key()
3064 static void __init hotkey_unmap(const unsigned int scancode) in hotkey_unmap() argument
3066 if (hotkey_keycode_map[scancode] != KEY_RESERVED) { in hotkey_unmap()
3067 clear_bit(hotkey_keycode_map[scancode], in hotkey_unmap()
3069 hotkey_keycode_map[scancode] = KEY_RESERVED; in hotkey_unmap()
3623 static bool adaptive_keyboard_hotkey_notify_hotkey(unsigned int scancode) in adaptive_keyboard_hotkey_notify_hotkey() argument
3629 switch (scancode) { in adaptive_keyboard_hotkey_notify_hotkey()
3660 if (scancode < FIRST_ADAPTIVE_KEY || in adaptive_keyboard_hotkey_notify_hotkey()
3661 scancode >= FIRST_ADAPTIVE_KEY + TPACPI_HOTKEY_MAP_LEN - in adaptive_keyboard_hotkey_notify_hotkey()
3664 scancode); in adaptive_keyboard_hotkey_notify_hotkey()
3667 keycode = hotkey_keycode_map[scancode - FIRST_ADAPTIVE_KEY + ADAPTIVE_KEY_OFFSET]; in adaptive_keyboard_hotkey_notify_hotkey()
3688 unsigned int scancode = hkey & 0xfff; in hotkey_notify_hotkey() local
3693 if (scancode > 0 && scancode <= TPACPI_HOTKEY_MAP_LEN) { in hotkey_notify_hotkey()
3694 scancode--; in hotkey_notify_hotkey()
3695 if (!(hotkey_source_mask & (1 << scancode))) { in hotkey_notify_hotkey()
3696 tpacpi_input_send_key_masked(scancode); in hotkey_notify_hotkey()
3703 return adaptive_keyboard_hotkey_notify_hotkey(scancode); in hotkey_notify_hotkey()
8841 static void hotkey_driver_event(const unsigned int scancode) in hotkey_driver_event() argument
8843 tpacpi_driver_event(TP_HKEY_EV_HOTKEY_BASE + scancode); in hotkey_driver_event()