• Home
  • Raw
  • Download

Lines Matching refs:kbd

113 static struct kbd_struct *kbd = kbd_table;  variable
452 if (kbd->kbdmode == VC_UNICODE) in handle_diacr()
469 if (kbd->kbdmode == VC_UNICODE) in fn_enter()
480 if (vc_kbd_mode(kbd, VC_CRLF)) in fn_enter()
489 chg_vc_kbd_led(kbd, VC_CAPSLOCK); in fn_caps_toggle()
497 set_vc_kbd_led(kbd, VC_CAPSLOCK); in fn_caps_on()
528 if (vc_kbd_mode(kbd, VC_APPLIC)) in fn_num()
543 chg_vc_kbd_led(kbd, VC_NUMLOCK); in fn_bare_num()
661 if ((kbd->kbdmode == VC_RAW || in k_spec()
662 kbd->kbdmode == VC_MEDIUMRAW || in k_spec()
663 kbd->kbdmode == VC_OFF) && in k_spec()
687 if (kbd->kbdmode == VC_UNICODE) in k_unicode()
756 applkey(vc, cur_chars[value], vc_kbd_mode(kbd, VC_CKMODE)); in k_cur()
768 if (vc_kbd_mode(kbd, VC_APPLIC) && !shift_down[KG_SHIFT]) { in k_pad()
773 if (!vc_kbd_led(kbd, VC_NUMLOCK)) { in k_pad()
808 applkey(vc, 'G', vc_kbd_mode(kbd, VC_APPLIC)); in k_pad()
814 if (value == KVAL(K_PENTER) && vc_kbd_mode(kbd, VC_CRLF)) in k_pad()
831 clr_vc_kbd_led(kbd, VC_CAPSLOCK); in k_shift()
851 if (kbd->kbdmode == VC_UNICODE) in k_shift()
864 if (vc_kbd_mode(kbd, VC_META)) { in k_meta()
898 chg_vc_kbd_lock(kbd, value); in k_lock()
907 chg_vc_kbd_slock(kbd, value); in k_slock()
909 if (!key_maps[kbd->lockstate ^ kbd->slockstate]) { in k_slock()
910 kbd->slockstate = 0; in k_slock()
911 chg_vc_kbd_slock(kbd, value); in k_slock()
947 if (kbd->kbdmode != VC_UNICODE) { in k_brl()
996 void setledstate(struct kbd_struct *kbd, unsigned int led) in setledstate() argument
1002 kbd->ledmode = LED_SHOW_IOCTL; in setledstate()
1004 kbd->ledmode = LED_SHOW_FLAGS; in setledstate()
1012 struct kbd_struct *kbd = kbd_table + fg_console; in getleds() local
1016 if (kbd->ledmode == LED_SHOW_IOCTL) in getleds()
1019 leds = kbd->ledflagstate; in getleds()
1021 if (kbd->ledmode == LED_SHOW_MEM) { in getleds()
1056 struct kbd_struct * kbd = kbd_table + console; in vt_get_leds() local
1059 ret = vc_kbd_led(kbd, flag); in vt_get_leds()
1075 struct kbd_struct * kbd = kbd_table + console; in vt_set_led_state() local
1076 setledstate(kbd, leds); in vt_set_led_state()
1094 struct kbd_struct * kbd = kbd_table + console; in vt_kbd_con_start() local
1097 clr_vc_kbd_led(kbd, VC_SCROLLOCK); in vt_kbd_con_start()
1117 struct kbd_struct * kbd = kbd_table + console; in vt_kbd_con_stop() local
1120 set_vc_kbd_led(kbd, VC_SCROLLOCK); in vt_kbd_con_stop()
1253 kbd = kbd_table + vc->vc_num; in kbd_rawcode()
1254 if (kbd->kbdmode == VC_RAW) in kbd_rawcode()
1276 kbd = kbd_table + vc->vc_num; in kbd_keycode()
1285 raw_mode = (kbd->kbdmode == VC_RAW); in kbd_keycode()
1299 if (kbd->kbdmode == VC_MEDIUMRAW) { in kbd_keycode()
1325 (!vc_kbd_mode(kbd, VC_REPEAT) || in kbd_keycode()
1335 param.shift = shift_final = (shift_state | kbd->slockstate) ^ kbd->lockstate; in kbd_keycode()
1336 param.ledstate = kbd->ledflagstate; in kbd_keycode()
1345 kbd->slockstate = 0; in kbd_keycode()
1372 if (vc_kbd_led(kbd, VC_CAPSLOCK)) { in kbd_keycode()
1385 if ((raw_mode || kbd->kbdmode == VC_OFF) && type != KT_SPEC && type != KT_SHIFT) in kbd_keycode()
1390 param.ledstate = kbd->ledflagstate; in kbd_keycode()
1394 kbd->slockstate = 0; in kbd_keycode()
1715 struct kbd_struct * kbd = kbd_table + console; in vt_do_kdskbmode() local
1722 kbd->kbdmode = VC_RAW; in vt_do_kdskbmode()
1725 kbd->kbdmode = VC_MEDIUMRAW; in vt_do_kdskbmode()
1728 kbd->kbdmode = VC_XLATE; in vt_do_kdskbmode()
1732 kbd->kbdmode = VC_UNICODE; in vt_do_kdskbmode()
1736 kbd->kbdmode = VC_OFF; in vt_do_kdskbmode()
1755 struct kbd_struct * kbd = kbd_table + console; in vt_do_kdskbmeta() local
1762 clr_vc_kbd_mode(kbd, VC_META); in vt_do_kdskbmeta()
1765 set_vc_kbd_mode(kbd, VC_META); in vt_do_kdskbmeta()
1804 struct kbd_struct * kbd = kbd_table + console; in vt_do_kdsk_ioctl() local
1822 if (kbd->kbdmode != VC_UNICODE && KTYP(val) >= NR_TYPES) in vt_do_kdsk_ioctl()
1850 if (kbd->kbdmode != VC_UNICODE) in vt_do_kdsk_ioctl()
2021 struct kbd_struct * kbd = kbd_table + console; in vt_do_kdskled() local
2030 ucval = kbd->ledflagstate | (kbd->default_ledflagstate << 4); in vt_do_kdskled()
2040 kbd->ledflagstate = (arg & 7); in vt_do_kdskled()
2041 kbd->default_ledflagstate = ((arg >> 4) & 7); in vt_do_kdskled()
2055 setledstate(kbd, arg); in vt_do_kdskled()
2063 struct kbd_struct * kbd = kbd_table + console; in vt_do_kdgkbmode() local
2065 switch (kbd->kbdmode) { in vt_do_kdgkbmode()
2087 struct kbd_struct * kbd = kbd_table + console; in vt_do_kdgkbmeta() local
2089 return vc_kbd_mode(kbd, VC_META) ? K_ESCPREFIX : K_METABIT; in vt_do_kdgkbmeta()
2128 struct kbd_struct * kbd = kbd_table + console; in vt_reset_keyboard() local
2132 set_vc_kbd_mode(kbd, VC_REPEAT); in vt_reset_keyboard()
2133 clr_vc_kbd_mode(kbd, VC_CKMODE); in vt_reset_keyboard()
2134 clr_vc_kbd_mode(kbd, VC_APPLIC); in vt_reset_keyboard()
2135 clr_vc_kbd_mode(kbd, VC_CRLF); in vt_reset_keyboard()
2136 kbd->lockstate = 0; in vt_reset_keyboard()
2137 kbd->slockstate = 0; in vt_reset_keyboard()
2138 kbd->ledmode = LED_SHOW_FLAGS; in vt_reset_keyboard()
2139 kbd->ledflagstate = kbd->default_ledflagstate; in vt_reset_keyboard()
2156 struct kbd_struct * kbd = kbd_table + console; in vt_get_kbd_mode_bit() local
2157 return vc_kbd_mode(kbd, bit); in vt_get_kbd_mode_bit()
2171 struct kbd_struct * kbd = kbd_table + console; in vt_set_kbd_mode_bit() local
2175 set_vc_kbd_mode(kbd, bit); in vt_set_kbd_mode_bit()
2190 struct kbd_struct * kbd = kbd_table + console; in vt_clr_kbd_mode_bit() local
2194 clr_vc_kbd_mode(kbd, bit); in vt_clr_kbd_mode_bit()