tag | line | file | source code |
kbd | 67 | drivers/char/kbd_kern.h | extern void setledstate(struct kbd_struct *kbd, unsigned int led); |
kbd | 74 | drivers/char/kbd_kern.h | extern inline int vc_kbd_mode(struct kbd_struct * kbd, int flag) |
kbd | 76 | drivers/char/kbd_kern.h | return ((kbd->modeflags >> flag) & 1); |
kbd | 79 | drivers/char/kbd_kern.h | extern inline int vc_kbd_led(struct kbd_struct * kbd, int flag) |
kbd | 81 | drivers/char/kbd_kern.h | return ((kbd->ledflagstate >> flag) & 1); |
kbd | 84 | drivers/char/kbd_kern.h | extern inline void set_vc_kbd_mode(struct kbd_struct * kbd, int flag) |
kbd | 86 | drivers/char/kbd_kern.h | kbd->modeflags |= 1 << flag; |
kbd | 89 | drivers/char/kbd_kern.h | extern inline void set_vc_kbd_led(struct kbd_struct * kbd, int flag) |
kbd | 91 | drivers/char/kbd_kern.h | kbd->ledflagstate |= 1 << flag; |
kbd | 94 | drivers/char/kbd_kern.h | extern inline void clr_vc_kbd_mode(struct kbd_struct * kbd, int flag) |
kbd | 96 | drivers/char/kbd_kern.h | kbd->modeflags &= ~(1 << flag); |
kbd | 99 | drivers/char/kbd_kern.h | extern inline void clr_vc_kbd_led(struct kbd_struct * kbd, int flag) |
kbd | 101 | drivers/char/kbd_kern.h | kbd->ledflagstate &= ~(1 << flag); |
kbd | 104 | drivers/char/kbd_kern.h | extern inline void chg_vc_kbd_lock(struct kbd_struct * kbd, int flag) |
kbd | 106 | drivers/char/kbd_kern.h | kbd->lockstate ^= 1 << flag; |
kbd | 109 | drivers/char/kbd_kern.h | extern inline void chg_vc_kbd_mode(struct kbd_struct * kbd, int flag) |
kbd | 111 | drivers/char/kbd_kern.h | kbd->modeflags ^= 1 << flag; |
kbd | 114 | drivers/char/kbd_kern.h | extern inline void chg_vc_kbd_led(struct kbd_struct * kbd, int flag) |
kbd | 116 | drivers/char/kbd_kern.h | kbd->ledflagstate ^= 1 << flag; |
kbd | 112 | drivers/char/keyboard.c | static struct kbd_struct * kbd = kbd_table; |
kbd | 376 | drivers/char/keyboard.c | kbd = kbd_table + fg_console; |
kbd | 377 | drivers/char/keyboard.c | if ((raw_mode = (kbd->kbdmode == VC_RAW))) { |
kbd | 504 | drivers/char/keyboard.c | if (kbd->kbdmode == VC_MEDIUMRAW) { |
kbd | 524 | drivers/char/keyboard.c | (vc_kbd_mode(kbd,VC_REPEAT) && tty && |
kbd | 530 | drivers/char/keyboard.c | int shift_final = shift_state ^ kbd->lockstate; |
kbd | 541 | drivers/char/keyboard.c | if (vc_kbd_led(kbd, VC_CAPSLOCK)) { |
kbd | 605 | drivers/char/keyboard.c | if (vc_kbd_mode(kbd,VC_CRLF)) |
kbd | 613 | drivers/char/keyboard.c | chg_vc_kbd_led(kbd, VC_CAPSLOCK); |
kbd | 620 | drivers/char/keyboard.c | set_vc_kbd_led(kbd, VC_CAPSLOCK); |
kbd | 647 | drivers/char/keyboard.c | if (vc_kbd_mode(kbd,VC_APPLIC)) |
kbd | 662 | drivers/char/keyboard.c | chg_vc_kbd_led(kbd,VC_NUMLOCK); |
kbd | 866 | drivers/char/keyboard.c | if (vc_kbd_mode(kbd,VC_APPLIC) && !k_down[KG_SHIFT]) { |
kbd | 871 | drivers/char/keyboard.c | if (!vc_kbd_led(kbd,VC_NUMLOCK)) |
kbd | 905 | drivers/char/keyboard.c | applkey('G', vc_kbd_mode(kbd, VC_APPLIC)); |
kbd | 910 | drivers/char/keyboard.c | if (value == KVAL(K_PENTER) && vc_kbd_mode(kbd, VC_CRLF)) |
kbd | 920 | drivers/char/keyboard.c | applkey(cur_chars[value], vc_kbd_mode(kbd,VC_CKMODE)); |
kbd | 935 | drivers/char/keyboard.c | clr_vc_kbd_led(kbd, VC_CAPSLOCK); |
kbd | 953 | drivers/char/keyboard.c | if (kbd->kbdmode == VC_UNICODE) |
kbd | 994 | drivers/char/keyboard.c | if (vc_kbd_mode(kbd, VC_META)) { |
kbd | 1025 | drivers/char/keyboard.c | chg_vc_kbd_lock(kbd, value); |
kbd | 1070 | drivers/char/keyboard.c | void setledstate(struct kbd_struct *kbd, unsigned int led) { |
kbd | 1073 | drivers/char/keyboard.c | kbd->ledmode = LED_SHOW_IOCTL; |
kbd | 1075 | drivers/char/keyboard.c | kbd->ledmode = LED_SHOW_FLAGS; |
kbd | 1087 | drivers/char/keyboard.c | struct kbd_struct *kbd = kbd_table + console; |
kbd | 1092 | drivers/char/keyboard.c | kbd->ledmode = LED_SHOW_MEM; |
kbd | 1094 | drivers/char/keyboard.c | kbd->ledmode = LED_SHOW_FLAGS; |
kbd | 1098 | drivers/char/keyboard.c | struct kbd_struct *kbd = kbd_table + fg_console; |
kbd | 1101 | drivers/char/keyboard.c | if (kbd->ledmode == LED_SHOW_IOCTL) |
kbd | 1103 | drivers/char/keyboard.c | leds = kbd->ledflagstate; |
kbd | 1104 | drivers/char/keyboard.c | if (kbd->ledmode == LED_SHOW_MEM) { |
kbd | 141 | drivers/char/vt.c | struct kbd_struct * kbd; |
kbd | 157 | drivers/char/vt.c | kbd = kbd_table + console; |
kbd | 257 | drivers/char/vt.c | kbd->kbdmode = VC_RAW; |
kbd | 260 | drivers/char/vt.c | kbd->kbdmode = VC_MEDIUMRAW; |
kbd | 263 | drivers/char/vt.c | kbd->kbdmode = VC_XLATE; |
kbd | 267 | drivers/char/vt.c | kbd->kbdmode = VC_UNICODE; |
kbd | 280 | drivers/char/vt.c | ucval = ((kbd->kbdmode == VC_RAW) ? K_RAW : |
kbd | 281 | drivers/char/vt.c | (kbd->kbdmode == VC_MEDIUMRAW) ? K_MEDIUMRAW : |
kbd | 282 | drivers/char/vt.c | (kbd->kbdmode == VC_UNICODE) ? K_UNICODE : |
kbd | 293 | drivers/char/vt.c | clr_vc_kbd_mode(kbd, VC_META); |
kbd | 296 | drivers/char/vt.c | set_vc_kbd_mode(kbd, VC_META); |
kbd | 306 | drivers/char/vt.c | ucval = (vc_kbd_mode(kbd, VC_META) ? K_ESCPREFIX : |
kbd | 360 | drivers/char/vt.c | if (kbd->kbdmode != VC_UNICODE && KTYP(val) >= NR_TYPES) |
kbd | 402 | drivers/char/vt.c | if (kbd->kbdmode != VC_UNICODE) |
kbd | 576 | drivers/char/vt.c | put_fs_byte(kbd->ledflagstate | |
kbd | 577 | drivers/char/vt.c | (kbd->default_ledflagstate << 4), (char *) arg); |
kbd | 585 | drivers/char/vt.c | kbd->ledflagstate = (arg & 7); |
kbd | 586 | drivers/char/vt.c | kbd->default_ledflagstate = ((arg >> 4) & 7); |
kbd | 602 | drivers/char/vt.c | setledstate(kbd, arg); |