Lines Matching defs:scancode
2046 static void hotkey_driver_event(const unsigned int scancode);
2269 /* Do NOT call without validating scancode first */
2270 static void tpacpi_input_send_key(const unsigned int scancode)
2272 const unsigned int keycode = hotkey_keycode_map[scancode];
2280 scancode);
2286 scancode);
2293 /* Do NOT call without validating scancode first */
2294 static void tpacpi_input_send_key_masked(const unsigned int scancode)
2296 hotkey_driver_event(scancode);
2297 if (hotkey_user_mask & (1 << scancode))
2298 tpacpi_input_send_key(scancode);
2304 /* Do NOT call without validating scancode first */
2305 static void tpacpi_hotkey_send_key(unsigned int scancode)
2307 tpacpi_input_send_key_masked(scancode);
2310 0x80, TP_HKEY_EV_HOTKEY_BASE + scancode);
3058 static void __init hotkey_unmap(const unsigned int scancode)
3060 if (hotkey_keycode_map[scancode] != KEY_RESERVED) {
3061 clear_bit(hotkey_keycode_map[scancode],
3063 hotkey_keycode_map[scancode] = KEY_RESERVED;
3503 unsigned int scancode = hkey & 0xfff;
3507 /* HKEY event 0x1001 is scancode 0x00 */
3508 if (scancode > 0 && scancode <= TPACPI_HOTKEY_MAP_LEN) {
3509 scancode--;
3510 if (!(hotkey_source_mask & (1 << scancode))) {
3511 tpacpi_input_send_key_masked(scancode);
8448 static void hotkey_driver_event(const unsigned int scancode)
8450 tpacpi_driver_event(TP_HKEY_EV_HOTKEY_BASE + scancode);