Lines Matching refs:kbd
111 static struct kbd_struct *kbd = kbd_table; variable
457 if (kbd->kbdmode == VC_UNICODE) in handle_diacr()
474 if (kbd->kbdmode == VC_UNICODE) in fn_enter()
485 if (vc_kbd_mode(kbd, VC_CRLF)) in fn_enter()
494 chg_vc_kbd_led(kbd, VC_CAPSLOCK); in fn_caps_toggle()
502 set_vc_kbd_led(kbd, VC_CAPSLOCK); in fn_caps_on()
533 if (vc_kbd_mode(kbd, VC_APPLIC)) in fn_num()
548 chg_vc_kbd_led(kbd, VC_NUMLOCK); in fn_bare_num()
662 if ((kbd->kbdmode == VC_RAW || in k_spec()
663 kbd->kbdmode == VC_MEDIUMRAW || in k_spec()
664 kbd->kbdmode == VC_OFF) && in k_spec()
688 if (kbd->kbdmode == VC_UNICODE) in k_unicode()
790 applkey(vc, cur_chars[value], vc_kbd_mode(kbd, VC_CKMODE)); in k_cur()
802 if (vc_kbd_mode(kbd, VC_APPLIC) && !shift_down[KG_SHIFT]) { in k_pad()
807 if (!vc_kbd_led(kbd, VC_NUMLOCK)) { in k_pad()
842 applkey(vc, 'G', vc_kbd_mode(kbd, VC_APPLIC)); in k_pad()
848 if (value == KVAL(K_PENTER) && vc_kbd_mode(kbd, VC_CRLF)) in k_pad()
865 clr_vc_kbd_led(kbd, VC_CAPSLOCK); in k_shift()
885 if (kbd->kbdmode == VC_UNICODE) in k_shift()
898 if (vc_kbd_mode(kbd, VC_META)) { in k_meta()
934 chg_vc_kbd_lock(kbd, value); in k_lock()
943 chg_vc_kbd_slock(kbd, value); in k_slock()
945 if (!key_maps[kbd->lockstate ^ kbd->slockstate]) { in k_slock()
946 kbd->slockstate = 0; in k_slock()
947 chg_vc_kbd_slock(kbd, value); in k_slock()
983 if (kbd->kbdmode != VC_UNICODE) { in k_brl()
1262 leds |= (unsigned int)kbd->lockstate << 8; in kbd_bh()
1392 kbd = &kbd_table[vc->vc_num]; in kbd_rawcode()
1393 if (kbd->kbdmode == VC_RAW) in kbd_rawcode()
1415 kbd = &kbd_table[vc->vc_num]; in kbd_keycode()
1424 raw_mode = (kbd->kbdmode == VC_RAW); in kbd_keycode()
1438 if (kbd->kbdmode == VC_MEDIUMRAW) { in kbd_keycode()
1461 (!vc_kbd_mode(kbd, VC_REPEAT) || in kbd_keycode()
1471 param.shift = shift_final = (shift_state | kbd->slockstate) ^ kbd->lockstate; in kbd_keycode()
1472 param.ledstate = kbd->ledflagstate; in kbd_keycode()
1481 kbd->slockstate = 0; in kbd_keycode()
1508 if (vc_kbd_led(kbd, VC_CAPSLOCK)) { in kbd_keycode()
1521 if ((raw_mode || kbd->kbdmode == VC_OFF) && type != KT_SPEC && type != KT_SHIFT) in kbd_keycode()
1526 param.ledstate = kbd->ledflagstate; in kbd_keycode()
1530 kbd->slockstate = 0; in kbd_keycode()