Lines Matching refs:scancode
100 static inline void handle_mouse_event(unsigned char scancode);
101 static inline void handle_keyboard_event(unsigned char scancode, int down);
357 int kbd_setkeycode(unsigned int scancode, unsigned int keycode) in kbd_setkeycode() argument
359 printk("kbd_setkeycode scancode %x keycode %x\n", scancode, keycode); in kbd_setkeycode()
363 int kbd_getkeycode(unsigned int scancode) in kbd_getkeycode() argument
365 return scancode; in kbd_getkeycode()
369 int kbd_translate(unsigned char scancode, unsigned char *keycode, in kbd_translate() argument
374 if (scancode == 0x00 || scancode == 0xff) { in kbd_translate()
380 if (!prev_scancode && scancode == 160) { /* Fn key down */ in kbd_translate()
385 else if (prev_scancode && scancode == 160) { /* Fn key up */ in kbd_translate()
393 if (scancode <= NUM_FN_KEYS) { in kbd_translate()
394 *keycode = fn_keys[scancode]; in kbd_translate()
400 else if (scancode <= 127) { in kbd_translate()
401 *keycode = scancode; in kbd_translate()
418 static inline void handle_keyboard_event(unsigned char scancode, int down) in handle_keyboard_event() argument
421 handle_scancode(scancode, down); in handle_keyboard_event()
437 static inline void handle_mouse_event(unsigned char scancode) in handle_mouse_event() argument
439 if(scancode == AUX_RECONNECT){ in handle_mouse_event()
445 add_mouse_randomness(scancode); in handle_mouse_event()
449 queue->buf[head] = scancode; in handle_mouse_event()