Lines Matching full:kb

1150 void setledstate(struct kbd_struct *kb, unsigned int led)  in setledstate()  argument
1156 kb->ledmode = LED_SHOW_IOCTL; in setledstate()
1158 kb->ledmode = LED_SHOW_FLAGS; in setledstate()
1166 struct kbd_struct *kb = kbd_table + fg_console; in getleds() local
1168 if (kb->ledmode == LED_SHOW_IOCTL) in getleds()
1171 return kb->ledflagstate; in getleds()
1183 struct kbd_struct *kb = &kbd_table[console]; in vt_get_leds() local
1188 ret = vc_kbd_led(kb, flag); in vt_get_leds()
1205 struct kbd_struct *kb = &kbd_table[console]; in vt_set_led_state() local
1206 setledstate(kb, leds); in vt_set_led_state()
1224 struct kbd_struct *kb = &kbd_table[console]; in vt_kbd_con_start() local
1227 clr_vc_kbd_led(kb, VC_SCROLLOCK); in vt_kbd_con_start()
1241 struct kbd_struct *kb = &kbd_table[console]; in vt_kbd_con_stop() local
1244 set_vc_kbd_led(kb, VC_SCROLLOCK); in vt_kbd_con_stop()
1842 struct kbd_struct *kb = &kbd_table[console]; in vt_do_kdskbmode() local
1849 kb->kbdmode = VC_RAW; in vt_do_kdskbmode()
1852 kb->kbdmode = VC_MEDIUMRAW; in vt_do_kdskbmode()
1855 kb->kbdmode = VC_XLATE; in vt_do_kdskbmode()
1859 kb->kbdmode = VC_UNICODE; in vt_do_kdskbmode()
1863 kb->kbdmode = VC_OFF; in vt_do_kdskbmode()
1882 struct kbd_struct *kb = &kbd_table[console]; in vt_do_kdskbmeta() local
1889 clr_vc_kbd_mode(kb, VC_META); in vt_do_kdskbmeta()
1892 set_vc_kbd_mode(kb, VC_META); in vt_do_kdskbmeta()
2025 struct kbd_struct *kb = &kbd_table[console]; in vt_do_kdsk_ioctl() local
2033 return put_user(vt_kdgkbent(kb->kbdmode, kbe.kb_index, in vt_do_kdsk_ioctl()
2039 return vt_kdskbent(kb->kbdmode, kbe.kb_index, kbe.kb_table, in vt_do_kdsk_ioctl()
2114 struct kbd_struct *kb = &kbd_table[console]; in vt_do_kdskled() local
2123 ucval = kb->ledflagstate | (kb->default_ledflagstate << 4); in vt_do_kdskled()
2133 kb->ledflagstate = (arg & 7); in vt_do_kdskled()
2134 kb->default_ledflagstate = ((arg >> 4) & 7); in vt_do_kdskled()
2148 setledstate(kb, arg); in vt_do_kdskled()
2156 struct kbd_struct *kb = &kbd_table[console]; in vt_do_kdgkbmode() local
2158 switch (kb->kbdmode) { in vt_do_kdgkbmode()
2180 struct kbd_struct *kb = &kbd_table[console]; in vt_do_kdgkbmeta() local
2182 return vc_kbd_mode(kb, VC_META) ? K_ESCPREFIX : K_METABIT; in vt_do_kdgkbmeta()
2221 struct kbd_struct *kb = &kbd_table[console]; in vt_reset_keyboard() local
2225 set_vc_kbd_mode(kb, VC_REPEAT); in vt_reset_keyboard()
2226 clr_vc_kbd_mode(kb, VC_CKMODE); in vt_reset_keyboard()
2227 clr_vc_kbd_mode(kb, VC_APPLIC); in vt_reset_keyboard()
2228 clr_vc_kbd_mode(kb, VC_CRLF); in vt_reset_keyboard()
2229 kb->lockstate = 0; in vt_reset_keyboard()
2230 kb->slockstate = 0; in vt_reset_keyboard()
2232 kb->ledmode = LED_SHOW_FLAGS; in vt_reset_keyboard()
2233 kb->ledflagstate = kb->default_ledflagstate; in vt_reset_keyboard()
2251 struct kbd_struct *kb = &kbd_table[console]; in vt_get_kbd_mode_bit() local
2252 return vc_kbd_mode(kb, bit); in vt_get_kbd_mode_bit()
2266 struct kbd_struct *kb = &kbd_table[console]; in vt_set_kbd_mode_bit() local
2270 set_vc_kbd_mode(kb, bit); in vt_set_kbd_mode_bit()
2285 struct kbd_struct *kb = &kbd_table[console]; in vt_clr_kbd_mode_bit() local
2289 clr_vc_kbd_mode(kb, bit); in vt_clr_kbd_mode_bit()