tag | line | file | source code |
kbd | 65 | drivers/char/kbd_kern.h | extern void setledstate(struct kbd_struct *kbd, unsigned int led); |
kbd | 75 | drivers/char/kbd_kern.h | extern inline int vc_kbd_mode(struct kbd_struct * kbd, int flag) |
kbd | 77 | drivers/char/kbd_kern.h | return ((kbd->modeflags >> flag) & 1); |
kbd | 80 | drivers/char/kbd_kern.h | extern inline int vc_kbd_led(struct kbd_struct * kbd, int flag) |
kbd | 82 | drivers/char/kbd_kern.h | return ((kbd->ledflagstate >> flag) & 1); |
kbd | 85 | drivers/char/kbd_kern.h | extern inline void set_vc_kbd_mode(struct kbd_struct * kbd, int flag) |
kbd | 87 | drivers/char/kbd_kern.h | kbd->modeflags |= 1 << flag; |
kbd | 90 | drivers/char/kbd_kern.h | extern inline void set_vc_kbd_led(struct kbd_struct * kbd, int flag) |
kbd | 92 | drivers/char/kbd_kern.h | kbd->ledflagstate |= 1 << flag; |
kbd | 95 | drivers/char/kbd_kern.h | extern inline void clr_vc_kbd_mode(struct kbd_struct * kbd, int flag) |
kbd | 97 | drivers/char/kbd_kern.h | kbd->modeflags &= ~(1 << flag); |
kbd | 100 | drivers/char/kbd_kern.h | extern inline void clr_vc_kbd_led(struct kbd_struct * kbd, int flag) |
kbd | 102 | drivers/char/kbd_kern.h | kbd->ledflagstate &= ~(1 << flag); |
kbd | 105 | drivers/char/kbd_kern.h | extern inline void chg_vc_kbd_lock(struct kbd_struct * kbd, int flag) |
kbd | 107 | drivers/char/kbd_kern.h | kbd->lockstate ^= 1 << flag; |
kbd | 110 | drivers/char/kbd_kern.h | extern inline void chg_vc_kbd_mode(struct kbd_struct * kbd, int flag) |
kbd | 112 | drivers/char/kbd_kern.h | kbd->modeflags ^= 1 << flag; |
kbd | 115 | drivers/char/kbd_kern.h | extern inline void chg_vc_kbd_led(struct kbd_struct * kbd, int flag) |
kbd | 117 | drivers/char/kbd_kern.h | kbd->ledflagstate ^= 1 << flag; |
kbd | 107 | drivers/char/keyboard.c | static struct kbd_struct * kbd = kbd_table; |
kbd | 380 | drivers/char/keyboard.c | kbd = kbd_table + fg_console; |
kbd | 381 | drivers/char/keyboard.c | if ((raw_mode = (kbd->kbdmode == VC_RAW))) { |
kbd | 493 | drivers/char/keyboard.c | if (kbd->kbdmode == VC_MEDIUMRAW) { |
kbd | 513 | drivers/char/keyboard.c | (vc_kbd_mode(kbd,VC_REPEAT) && tty && |
kbd | 519 | drivers/char/keyboard.c | int shift_final = shift_state ^ kbd->lockstate; |
kbd | 530 | drivers/char/keyboard.c | if (vc_kbd_led(kbd, VC_CAPSLOCK)) { |
kbd | 594 | drivers/char/keyboard.c | if (vc_kbd_mode(kbd,VC_CRLF)) |
kbd | 602 | drivers/char/keyboard.c | chg_vc_kbd_led(kbd, VC_CAPSLOCK); |
kbd | 609 | drivers/char/keyboard.c | set_vc_kbd_led(kbd, VC_CAPSLOCK); |
kbd | 648 | drivers/char/keyboard.c | if (vc_kbd_mode(kbd,VC_APPLIC)) { |
kbd | 653 | drivers/char/keyboard.c | chg_vc_kbd_led(kbd,VC_NUMLOCK); |
kbd | 857 | drivers/char/keyboard.c | if (vc_kbd_mode(kbd,VC_APPLIC) && !k_down[KG_SHIFT]) { |
kbd | 862 | drivers/char/keyboard.c | if (!vc_kbd_led(kbd,VC_NUMLOCK)) |
kbd | 896 | drivers/char/keyboard.c | applkey('G', vc_kbd_mode(kbd, VC_APPLIC)); |
kbd | 901 | drivers/char/keyboard.c | if (value == KVAL(K_PENTER) && vc_kbd_mode(kbd, VC_CRLF)) |
kbd | 911 | drivers/char/keyboard.c | applkey(cur_chars[value], vc_kbd_mode(kbd,VC_CKMODE)); |
kbd | 926 | drivers/char/keyboard.c | clr_vc_kbd_led(kbd, VC_CAPSLOCK); |
kbd | 944 | drivers/char/keyboard.c | if (kbd->kbdmode == VC_UNICODE) |
kbd | 985 | drivers/char/keyboard.c | if (vc_kbd_mode(kbd, VC_META)) { |
kbd | 1016 | drivers/char/keyboard.c | chg_vc_kbd_lock(kbd, value); |
kbd | 1061 | drivers/char/keyboard.c | void setledstate(struct kbd_struct *kbd, unsigned int led) { |
kbd | 1064 | drivers/char/keyboard.c | kbd->ledmode = LED_SHOW_IOCTL; |
kbd | 1066 | drivers/char/keyboard.c | kbd->ledmode = LED_SHOW_FLAGS; |
kbd | 1078 | drivers/char/keyboard.c | struct kbd_struct *kbd = kbd_table + console; |
kbd | 1083 | drivers/char/keyboard.c | kbd->ledmode = LED_SHOW_MEM; |
kbd | 1085 | drivers/char/keyboard.c | kbd->ledmode = LED_SHOW_FLAGS; |
kbd | 1089 | drivers/char/keyboard.c | struct kbd_struct *kbd = kbd_table + fg_console; |
kbd | 1092 | drivers/char/keyboard.c | if (kbd->ledmode == LED_SHOW_IOCTL) |
kbd | 1094 | drivers/char/keyboard.c | leds = kbd->ledflagstate; |
kbd | 1095 | drivers/char/keyboard.c | if (kbd->ledmode == LED_SHOW_MEM) { |
kbd | 135 | drivers/char/vt.c | struct kbd_struct * kbd; |
kbd | 151 | drivers/char/vt.c | kbd = kbd_table + console; |
kbd | 251 | drivers/char/vt.c | kbd->kbdmode = VC_RAW; |
kbd | 254 | drivers/char/vt.c | kbd->kbdmode = VC_MEDIUMRAW; |
kbd | 257 | drivers/char/vt.c | kbd->kbdmode = VC_XLATE; |
kbd | 261 | drivers/char/vt.c | kbd->kbdmode = VC_UNICODE; |
kbd | 274 | drivers/char/vt.c | ucval = ((kbd->kbdmode == VC_RAW) ? K_RAW : |
kbd | 275 | drivers/char/vt.c | (kbd->kbdmode == VC_MEDIUMRAW) ? K_MEDIUMRAW : |
kbd | 276 | drivers/char/vt.c | (kbd->kbdmode == VC_UNICODE) ? K_UNICODE : |
kbd | 287 | drivers/char/vt.c | clr_vc_kbd_mode(kbd, VC_META); |
kbd | 290 | drivers/char/vt.c | set_vc_kbd_mode(kbd, VC_META); |
kbd | 300 | drivers/char/vt.c | ucval = (vc_kbd_mode(kbd, VC_META) ? K_ESCPREFIX : |
kbd | 354 | drivers/char/vt.c | if (kbd->kbdmode != VC_UNICODE && KTYP(val) >= NR_TYPES) |
kbd | 396 | drivers/char/vt.c | if (kbd->kbdmode != VC_UNICODE) |
kbd | 564 | drivers/char/vt.c | put_fs_byte(kbd->ledflagstate | |
kbd | 565 | drivers/char/vt.c | (kbd->default_ledflagstate << 4), (char *) arg); |
kbd | 573 | drivers/char/vt.c | kbd->ledflagstate = (arg & 7); |
kbd | 574 | drivers/char/vt.c | kbd->default_ledflagstate = ((arg >> 4) & 7); |
kbd | 590 | drivers/char/vt.c | setledstate(kbd, arg); |