Lines Matching defs:scancode

1905 static void hotkey_driver_event(const unsigned int scancode);
2237 /* Do NOT call without validating scancode first */
2238 static void tpacpi_input_send_key(const unsigned int scancode)
2240 const unsigned int keycode = hotkey_keycode_map[scancode];
2245 input_event(tpacpi_inputdev, EV_MSC, MSC_SCAN, scancode);
2249 input_event(tpacpi_inputdev, EV_MSC, MSC_SCAN, scancode);
2257 /* Do NOT call without validating scancode first */
2258 static void tpacpi_input_send_key_masked(const unsigned int scancode)
2260 hotkey_driver_event(scancode);
2261 if (hotkey_user_mask & (1 << scancode))
2262 tpacpi_input_send_key(scancode);
2268 /* Do NOT call without validating scancode first */
2269 static void tpacpi_hotkey_send_key(unsigned int scancode)
2271 tpacpi_input_send_key_masked(scancode);
3060 static void __init hotkey_unmap(const unsigned int scancode)
3062 if (hotkey_keycode_map[scancode] != KEY_RESERVED) {
3063 clear_bit(hotkey_keycode_map[scancode],
3065 hotkey_keycode_map[scancode] = KEY_RESERVED;
3665 static bool adaptive_keyboard_hotkey_notify_hotkey(unsigned int scancode)
3671 switch (scancode) {
3702 if (scancode < FIRST_ADAPTIVE_KEY ||
3703 scancode >= FIRST_ADAPTIVE_KEY +
3707 scancode);
3710 keycode = hotkey_keycode_map[scancode - FIRST_ADAPTIVE_KEY +
3729 unsigned int scancode;
3739 * TP_ACPI_HOTKEYSCAN_EXTENDED_START. The calculated scancode
3742 scancode = (hkey & 0xfff) - (0x300 - TP_ACPI_HOTKEYSCAN_EXTENDED_START);
3743 if (scancode >= TP_ACPI_HOTKEYSCAN_EXTENDED_START &&
3744 scancode < TPACPI_HOTKEY_MAP_LEN) {
3745 tpacpi_input_send_key(scancode);
3757 unsigned int scancode = hkey & 0xfff;
3768 if (scancode > 0 &&
3769 scancode <= TP_ACPI_HOTKEYSCAN_ADAPTIVE_START) {
3770 /* HKEY event 0x1001 is scancode 0x00 */
3771 scancode--;
3772 if (!(hotkey_source_mask & (1 << scancode))) {
3773 tpacpi_input_send_key_masked(scancode);
3783 return adaptive_keyboard_hotkey_notify_hotkey(scancode);
11041 static void hotkey_driver_event(const unsigned int scancode)
11043 tpacpi_driver_event(TP_HKEY_EV_HOTKEY_BASE + scancode);