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 | 100 | drivers/char/keyboard.c | static struct kbd_struct * kbd = kbd_table; |
kbd | 235 | drivers/char/keyboard.c | kbd = kbd_table + fg_console; |
kbd | 236 | drivers/char/keyboard.c | if ((raw_mode = vc_kbd_mode(kbd,VC_RAW))) { |
kbd | 322 | drivers/char/keyboard.c | if (vc_kbd_mode(kbd, VC_MEDIUMRAW)) { |
kbd | 341 | drivers/char/keyboard.c | (vc_kbd_mode(kbd,VC_REPEAT) && tty && |
kbd | 347 | drivers/char/keyboard.c | int shift_final = shift_state ^ kbd->lockstate; |
kbd | 354 | drivers/char/keyboard.c | if (vc_kbd_led(kbd,VC_CAPSLOCK)) |
kbd | 398 | drivers/char/keyboard.c | if (vc_kbd_mode(kbd,VC_CRLF)) |
kbd | 406 | drivers/char/keyboard.c | chg_vc_kbd_led(kbd,VC_CAPSLOCK); |
kbd | 413 | drivers/char/keyboard.c | set_vc_kbd_led(kbd,VC_CAPSLOCK); |
kbd | 454 | drivers/char/keyboard.c | chg_vc_kbd_mode(kbd,VC_PAUSE); |
kbd | 460 | drivers/char/keyboard.c | if (vc_kbd_mode(kbd,VC_APPLIC)) { |
kbd | 465 | drivers/char/keyboard.c | chg_vc_kbd_led(kbd,VC_NUMLOCK); |
kbd | 514 | drivers/char/keyboard.c | clr_vc_kbd_flag(kbd, VC_RAW); |
kbd | 515 | drivers/char/keyboard.c | clr_vc_kbd_flag(kbd, VC_MEDIUMRAW); |
kbd | 642 | drivers/char/keyboard.c | if (vc_kbd_mode(kbd,VC_APPLIC) && !k_down[KG_SHIFT]) { |
kbd | 647 | drivers/char/keyboard.c | if (!vc_kbd_led(kbd,VC_NUMLOCK)) |
kbd | 681 | drivers/char/keyboard.c | applkey('G', vc_kbd_mode(kbd, VC_APPLIC)); |
kbd | 686 | drivers/char/keyboard.c | if (value == KVAL(K_PENTER) && vc_kbd_mode(kbd, VC_CRLF)) |
kbd | 696 | drivers/char/keyboard.c | applkey(cur_chars[value], vc_kbd_mode(kbd,VC_CKMODE)); |
kbd | 710 | drivers/char/keyboard.c | clr_vc_kbd_led(kbd, VC_CAPSLOCK); |
kbd | 763 | drivers/char/keyboard.c | if (vc_kbd_mode(kbd, VC_META)) { |
kbd | 785 | drivers/char/keyboard.c | chg_vc_kbd_lock(kbd, value); |
kbd | 883 | drivers/char/keyboard.c | struct kbd_struct * kbd; |
kbd | 886 | drivers/char/keyboard.c | kbd = kbd_table + 0; |
kbd | 887 | drivers/char/keyboard.c | for (i = 0 ; i < NR_CONSOLES ; i++,kbd++) { |
kbd | 888 | drivers/char/keyboard.c | kbd->ledstate = KBD_DEFLEDS; |
kbd | 889 | drivers/char/keyboard.c | kbd->default_ledstate = KBD_DEFLEDS; |
kbd | 890 | drivers/char/keyboard.c | kbd->lockstate = KBD_DEFLOCK; |
kbd | 891 | drivers/char/keyboard.c | kbd->modeflags = KBD_DEFMODE; |
kbd | 123 | drivers/char/vt.c | struct kbd_struct * kbd; |
kbd | 131 | drivers/char/vt.c | kbd = kbd_table + console; |
kbd | 225 | drivers/char/vt.c | set_vc_kbd_mode(kbd, VC_RAW); |
kbd | 226 | drivers/char/vt.c | clr_vc_kbd_mode(kbd, VC_MEDIUMRAW); |
kbd | 229 | drivers/char/vt.c | clr_vc_kbd_mode(kbd, VC_RAW); |
kbd | 230 | drivers/char/vt.c | set_vc_kbd_mode(kbd, VC_MEDIUMRAW); |
kbd | 233 | drivers/char/vt.c | clr_vc_kbd_mode(kbd, VC_RAW); |
kbd | 234 | drivers/char/vt.c | clr_vc_kbd_mode(kbd, VC_MEDIUMRAW); |
kbd | 247 | drivers/char/vt.c | ucval = (vc_kbd_mode(kbd, VC_RAW) ? K_RAW : |
kbd | 248 | drivers/char/vt.c | vc_kbd_mode(kbd, VC_MEDIUMRAW) ? K_MEDIUMRAW : |
kbd | 259 | drivers/char/vt.c | clr_vc_kbd_mode(kbd, VC_META); |
kbd | 262 | drivers/char/vt.c | set_vc_kbd_mode(kbd, VC_META); |
kbd | 272 | drivers/char/vt.c | ucval = (vc_kbd_mode(kbd, VC_META) ? K_ESCPREFIX : |
kbd | 426 | drivers/char/vt.c | put_fs_byte(kbd->ledstate, (char *) arg); |
kbd | 432 | drivers/char/vt.c | kbd->ledstate = arg; |