Lines Matching refs:scancode

2055 static void hotkey_driver_event(const unsigned int scancode);
2274 static void tpacpi_input_send_key(const unsigned int scancode) in tpacpi_input_send_key() argument
2276 const unsigned int keycode = hotkey_keycode_map[scancode]; in tpacpi_input_send_key()
2281 input_event(tpacpi_inputdev, EV_MSC, MSC_SCAN, scancode); in tpacpi_input_send_key()
2285 input_event(tpacpi_inputdev, EV_MSC, MSC_SCAN, scancode); in tpacpi_input_send_key()
2294 static void tpacpi_input_send_key_masked(const unsigned int scancode) in tpacpi_input_send_key_masked() argument
2296 hotkey_driver_event(scancode); in tpacpi_input_send_key_masked()
2297 if (hotkey_user_mask & (1 << scancode)) in tpacpi_input_send_key_masked()
2298 tpacpi_input_send_key(scancode); in tpacpi_input_send_key_masked()
2305 static void tpacpi_hotkey_send_key(unsigned int scancode) in tpacpi_hotkey_send_key() argument
2307 tpacpi_input_send_key_masked(scancode); in tpacpi_hotkey_send_key()
3065 static void __init hotkey_unmap(const unsigned int scancode) in hotkey_unmap() argument
3067 if (hotkey_keycode_map[scancode] != KEY_RESERVED) { in hotkey_unmap()
3068 clear_bit(hotkey_keycode_map[scancode], in hotkey_unmap()
3070 hotkey_keycode_map[scancode] = KEY_RESERVED; in hotkey_unmap()
3624 static bool adaptive_keyboard_hotkey_notify_hotkey(unsigned int scancode) in adaptive_keyboard_hotkey_notify_hotkey() argument
3630 switch (scancode) { in adaptive_keyboard_hotkey_notify_hotkey()
3661 if (scancode < FIRST_ADAPTIVE_KEY || in adaptive_keyboard_hotkey_notify_hotkey()
3662 scancode >= FIRST_ADAPTIVE_KEY + TPACPI_HOTKEY_MAP_LEN - in adaptive_keyboard_hotkey_notify_hotkey()
3665 scancode); in adaptive_keyboard_hotkey_notify_hotkey()
3668 keycode = hotkey_keycode_map[scancode - FIRST_ADAPTIVE_KEY + ADAPTIVE_KEY_OFFSET]; in adaptive_keyboard_hotkey_notify_hotkey()
3689 unsigned int scancode = hkey & 0xfff; in hotkey_notify_hotkey() local
3694 if (scancode > 0 && scancode <= TPACPI_HOTKEY_MAP_LEN) { in hotkey_notify_hotkey()
3695 scancode--; in hotkey_notify_hotkey()
3696 if (!(hotkey_source_mask & (1 << scancode))) { in hotkey_notify_hotkey()
3697 tpacpi_input_send_key_masked(scancode); in hotkey_notify_hotkey()
3704 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()