Lines Matching full:scancode
36 int scancode, scanstatus; in kdb_get_kbd_char() local
53 * Fetch the scancode in kdb_get_kbd_char()
55 scancode = inb(KBD_DATA_REG); in kdb_get_kbd_char()
71 if (((scancode&0x7f) == 0x2a) || ((scancode&0x7f) == 0x36)) { in kdb_get_kbd_char()
75 if ((scancode & 0x80) == 0) in kdb_get_kbd_char()
82 if ((scancode&0x7f) == 0x1d) { in kdb_get_kbd_char()
86 if ((scancode & 0x80) == 0) in kdb_get_kbd_char()
93 if ((scancode & 0x80) != 0) { in kdb_get_kbd_char()
94 if (scancode == 0x9c) in kdb_get_kbd_char()
99 scancode &= 0x7f; in kdb_get_kbd_char()
102 * Translate scancode in kdb_get_kbd_char()
105 if (scancode == 0x3a) { in kdb_get_kbd_char()
117 if (scancode == 0x0e) { in kdb_get_kbd_char()
125 switch (scancode) { in kdb_get_kbd_char()
144 if (scancode == 0xe0) in kdb_get_kbd_char()
152 if (scancode == 0x73) in kdb_get_kbd_char()
153 scancode = 0x59; in kdb_get_kbd_char()
154 else if (scancode == 0x7d) in kdb_get_kbd_char()
155 scancode = 0x7c; in kdb_get_kbd_char()
158 keychar = plain_map[scancode]; in kdb_get_kbd_char()
160 keychar = key_maps[1][scancode]; in kdb_get_kbd_char()
162 keychar = key_maps[4][scancode]; in kdb_get_kbd_char()
165 kdb_printf("Unknown state/scancode (%d)\n", scancode); in kdb_get_kbd_char()
184 if (scancode == 0x1c) { in kdb_get_kbd_char()
200 int scancode, scanstatus; in kdb_kbd_cleanup_state() local
230 * Fetch the scancode. in kdb_kbd_cleanup_state()
232 scancode = inb(KBD_DATA_REG); in kdb_kbd_cleanup_state()
257 if (scancode != 0x9c) in kdb_kbd_cleanup_state()