Lines Matching refs:scancode
104 int ec3104_kbd_setkeycode(unsigned int scancode, unsigned int keycode) in ec3104_kbd_setkeycode() argument
109 int ec3104_kbd_getkeycode(unsigned int scancode) in ec3104_kbd_getkeycode() argument
117 static inline unsigned char ec3104_scan2key(unsigned char scancode) in ec3104_scan2key() argument
119 switch (scancode) { in ec3104_scan2key()
124 return scancode; in ec3104_scan2key()
130 return scancode + 1; in ec3104_scan2key()
136 return scancode + 3; in ec3104_scan2key()
167 return scancode - 20; in ec3104_scan2key()
170 return scancode - 2; in ec3104_scan2key()
203 int ec3104_kbd_translate(unsigned char scancode, unsigned char *keycode, in ec3104_kbd_translate() argument
206 scancode &= 0x7f; in ec3104_kbd_translate()
208 *keycode = ec3104_scan2key(scancode); in ec3104_kbd_translate()
218 static inline void handle_keyboard_event(unsigned char scancode) in handle_keyboard_event() argument
221 handle_scancode(scancode, !(scancode & 0x80)); in handle_keyboard_event()