tag | line | file | source code |
kbd | 47 | drivers/char/kbd_kern.h | extern inline int vc_kbd_led(struct kbd_struct * kbd, int flag) |
kbd | 49 | drivers/char/kbd_kern.h | return ((kbd->ledstate >> flag) & 1); |
kbd | 52 | drivers/char/kbd_kern.h | extern inline int vc_kbd_lock(struct kbd_struct * kbd, int flag) |
kbd | 54 | drivers/char/kbd_kern.h | return ((kbd->lockstate >> flag) & 1); |
kbd | 57 | drivers/char/kbd_kern.h | extern inline int vc_kbd_mode(struct kbd_struct * kbd, int flag) |
kbd | 59 | drivers/char/kbd_kern.h | return ((kbd->modeflags >> flag) & 1); |
kbd | 62 | drivers/char/kbd_kern.h | extern inline void set_vc_kbd_led(struct kbd_struct * kbd, int flag) |
kbd | 64 | drivers/char/kbd_kern.h | kbd->ledstate |= 1 << flag; |
kbd | 67 | drivers/char/kbd_kern.h | extern inline void set_vc_kbd_lock(struct kbd_struct * kbd, int flag) |
kbd | 69 | drivers/char/kbd_kern.h | kbd->lockstate |= 1 << flag; |
kbd | 72 | drivers/char/kbd_kern.h | extern inline void set_vc_kbd_mode(struct kbd_struct * kbd, int flag) |
kbd | 74 | drivers/char/kbd_kern.h | kbd->modeflags |= 1 << flag; |
kbd | 77 | drivers/char/kbd_kern.h | extern inline void clr_vc_kbd_led(struct kbd_struct * kbd, int flag) |
kbd | 79 | drivers/char/kbd_kern.h | kbd->ledstate &= ~(1 << flag); |
kbd | 82 | drivers/char/kbd_kern.h | extern inline void clr_vc_kbd_lock(struct kbd_struct * kbd, int flag) |
kbd | 84 | drivers/char/kbd_kern.h | kbd->lockstate &= ~(1 << flag); |
kbd | 87 | drivers/char/kbd_kern.h | extern inline void clr_vc_kbd_mode(struct kbd_struct * kbd, int flag) |
kbd | 89 | drivers/char/kbd_kern.h | kbd->modeflags &= ~(1 << flag); |
kbd | 92 | drivers/char/kbd_kern.h | extern inline void chg_vc_kbd_led(struct kbd_struct * kbd, int flag) |
kbd | 94 | drivers/char/kbd_kern.h | kbd->ledstate ^= 1 << flag; |
kbd | 97 | drivers/char/kbd_kern.h | extern inline void chg_vc_kbd_lock(struct kbd_struct * kbd, int flag) |
kbd | 99 | drivers/char/kbd_kern.h | kbd->lockstate ^= 1 << flag; |
kbd | 102 | drivers/char/kbd_kern.h | extern inline void chg_vc_kbd_mode(struct kbd_struct * kbd, int flag) |
kbd | 104 | drivers/char/kbd_kern.h | kbd->modeflags ^= 1 << flag; |
kbd | 92 | drivers/char/keyboard.c | static struct kbd_struct * kbd = kbd_table; |
kbd | 228 | drivers/char/keyboard.c | kbd = kbd_table + fg_console; |
kbd | 229 | drivers/char/keyboard.c | if ((raw_mode = vc_kbd_mode(kbd,VC_RAW))) { |
kbd | 315 | drivers/char/keyboard.c | if (vc_kbd_mode(kbd, VC_MEDIUMRAW)) { |
kbd | 334 | drivers/char/keyboard.c | (vc_kbd_mode(kbd,VC_REPEAT) && tty && |
kbd | 341 | drivers/char/keyboard.c | int shift_final = shift_state ^ kbd->lockstate; |
kbd | 348 | drivers/char/keyboard.c | if (vc_kbd_led(kbd,VC_CAPSLOCK)) |
kbd | 404 | drivers/char/keyboard.c | if (vc_kbd_mode(kbd,VC_CRLF)) |
kbd | 412 | drivers/char/keyboard.c | chg_vc_kbd_led(kbd,VC_CAPSLOCK); |
kbd | 419 | drivers/char/keyboard.c | set_vc_kbd_led(kbd,VC_CAPSLOCK); |
kbd | 460 | drivers/char/keyboard.c | chg_vc_kbd_mode(kbd,VC_PAUSE); |
kbd | 466 | drivers/char/keyboard.c | if (vc_kbd_mode(kbd,VC_APPLIC)) { |
kbd | 471 | drivers/char/keyboard.c | chg_vc_kbd_led(kbd,VC_NUMLOCK); |
kbd | 619 | drivers/char/keyboard.c | if (vc_kbd_mode(kbd,VC_APPLIC) && !k_down[KG_SHIFT]) { |
kbd | 624 | drivers/char/keyboard.c | if (!vc_kbd_led(kbd,VC_NUMLOCK)) |
kbd | 658 | drivers/char/keyboard.c | applkey('G', vc_kbd_mode(kbd, VC_APPLIC)); |
kbd | 663 | drivers/char/keyboard.c | if (value == KVAL(K_PENTER) && vc_kbd_mode(kbd, VC_CRLF)) |
kbd | 673 | drivers/char/keyboard.c | applkey(cur_chars[value], vc_kbd_mode(kbd,VC_CKMODE)); |
kbd | 686 | drivers/char/keyboard.c | clr_vc_kbd_led(kbd, VC_CAPSLOCK); |
kbd | 739 | drivers/char/keyboard.c | if (vc_kbd_mode(kbd, VC_META)) { |
kbd | 761 | drivers/char/keyboard.c | chg_vc_kbd_lock(kbd, value); |
kbd | 879 | drivers/char/keyboard.c | struct kbd_struct * kbd; |
kbd | 881 | drivers/char/keyboard.c | kbd = kbd_table + 0; |
kbd | 882 | drivers/char/keyboard.c | for (i = 0 ; i < NR_CONSOLES ; i++,kbd++) { |
kbd | 883 | drivers/char/keyboard.c | kbd->ledstate = KBD_DEFLEDS; |
kbd | 884 | drivers/char/keyboard.c | kbd->default_ledstate = KBD_DEFLEDS; |
kbd | 885 | drivers/char/keyboard.c | kbd->lockstate = KBD_DEFLOCK; |
kbd | 886 | drivers/char/keyboard.c | kbd->modeflags = KBD_DEFMODE; |
kbd | 121 | drivers/char/vt.c | struct kbd_struct * kbd; |
kbd | 128 | drivers/char/vt.c | kbd = kbd_table + console; |
kbd | 222 | drivers/char/vt.c | set_vc_kbd_mode(kbd, VC_RAW); |
kbd | 223 | drivers/char/vt.c | clr_vc_kbd_mode(kbd, VC_MEDIUMRAW); |
kbd | 226 | drivers/char/vt.c | clr_vc_kbd_mode(kbd, VC_RAW); |
kbd | 227 | drivers/char/vt.c | set_vc_kbd_mode(kbd, VC_MEDIUMRAW); |
kbd | 230 | drivers/char/vt.c | clr_vc_kbd_mode(kbd, VC_RAW); |
kbd | 231 | drivers/char/vt.c | clr_vc_kbd_mode(kbd, VC_MEDIUMRAW); |
kbd | 243 | drivers/char/vt.c | ucval = (vc_kbd_mode(kbd, VC_RAW) ? K_RAW : |
kbd | 244 | drivers/char/vt.c | vc_kbd_mode(kbd, VC_MEDIUMRAW) ? K_MEDIUMRAW : |
kbd | 255 | drivers/char/vt.c | clr_vc_kbd_mode(kbd, VC_META); |
kbd | 258 | drivers/char/vt.c | set_vc_kbd_mode(kbd, VC_META); |
kbd | 268 | drivers/char/vt.c | ucval = (vc_kbd_mode(kbd, VC_META) ? K_ESCPREFIX : |
kbd | 415 | drivers/char/vt.c | put_fs_byte(kbd->ledstate, (char *) arg); |
kbd | 421 | drivers/char/vt.c | kbd->ledstate = arg; |