Lines Matching refs:scancode
38 int kbd_setkeycode(unsigned int scancode, unsigned int keycode) in kbd_setkeycode() argument
40 return (scancode == keycode) ? 0 : -EINVAL; in kbd_setkeycode()
43 int kbd_getkeycode(unsigned int scancode) in kbd_getkeycode() argument
45 return scancode; in kbd_getkeycode()
69 int kbd_translate(unsigned char scancode, unsigned char *keycode, in kbd_translate() argument
80 if (scancode == 0xe0 || scancode == 0xe1) { in kbd_translate()
81 prev_scancode = scancode; in kbd_translate()
85 scancode &= 0x7f; in kbd_translate()
89 if (prev_scancode == 0xe1 && scancode == 0x1d) { in kbd_translate()
92 } else if (prev_scancode == 0x100 && scancode == 0x45) { in kbd_translate()
103 if (scancode == 0x2a || scancode == 0x36) in kbd_translate()
106 if (e0_keys[scancode]) in kbd_translate()
107 *keycode = e0_keys[scancode]; in kbd_translate()
111 scancode); in kbd_translate()
115 switch (scancode) { in kbd_translate()
116 case 91: scancode = KEY_LINEFEED; break; in kbd_translate()
117 case 92: scancode = KEY_KPEQUAL; break; in kbd_translate()
118 case 125: scancode = KEY_INTL1; break; in kbd_translate()
120 *keycode = scancode; in kbd_translate()
126 int kbd_translate(unsigned char scancode, unsigned char *keycode, in kbd_translate() argument
129 *keycode = scancode; in kbd_translate()