Lines Matching refs:kb
1143 void setledstate(struct kbd_struct *kb, unsigned int led) in setledstate() argument
1149 kb->ledmode = LED_SHOW_IOCTL; in setledstate()
1151 kb->ledmode = LED_SHOW_FLAGS; in setledstate()
1159 struct kbd_struct *kb = kbd_table + fg_console; in getleds() local
1161 if (kb->ledmode == LED_SHOW_IOCTL) in getleds()
1164 return kb->ledflagstate; in getleds()
1176 struct kbd_struct *kb = &kbd_table[console]; in vt_get_leds() local
1181 ret = vc_kbd_led(kb, flag); in vt_get_leds()
1198 struct kbd_struct *kb = &kbd_table[console]; in vt_set_led_state() local
1199 setledstate(kb, leds); in vt_set_led_state()
1217 struct kbd_struct *kb = &kbd_table[console]; in vt_kbd_con_start() local
1220 clr_vc_kbd_led(kb, VC_SCROLLOCK); in vt_kbd_con_start()
1234 struct kbd_struct *kb = &kbd_table[console]; in vt_kbd_con_stop() local
1237 set_vc_kbd_led(kb, VC_SCROLLOCK); in vt_kbd_con_stop()
1830 struct kbd_struct *kb = &kbd_table[console]; in vt_do_kdskbmode() local
1837 kb->kbdmode = VC_RAW; in vt_do_kdskbmode()
1840 kb->kbdmode = VC_MEDIUMRAW; in vt_do_kdskbmode()
1843 kb->kbdmode = VC_XLATE; in vt_do_kdskbmode()
1847 kb->kbdmode = VC_UNICODE; in vt_do_kdskbmode()
1851 kb->kbdmode = VC_OFF; in vt_do_kdskbmode()
1870 struct kbd_struct *kb = &kbd_table[console]; in vt_do_kdskbmeta() local
1877 clr_vc_kbd_mode(kb, VC_META); in vt_do_kdskbmeta()
1880 set_vc_kbd_mode(kb, VC_META); in vt_do_kdskbmeta()
2013 struct kbd_struct *kb = &kbd_table[console]; in vt_do_kdsk_ioctl() local
2021 return put_user(vt_kdgkbent(kb->kbdmode, kbe.kb_index, in vt_do_kdsk_ioctl()
2027 return vt_kdskbent(kb->kbdmode, kbe.kb_index, kbe.kb_table, in vt_do_kdsk_ioctl()
2102 struct kbd_struct *kb = &kbd_table[console]; in vt_do_kdskled() local
2111 ucval = kb->ledflagstate | (kb->default_ledflagstate << 4); in vt_do_kdskled()
2121 kb->ledflagstate = (arg & 7); in vt_do_kdskled()
2122 kb->default_ledflagstate = ((arg >> 4) & 7); in vt_do_kdskled()
2136 setledstate(kb, arg); in vt_do_kdskled()
2144 struct kbd_struct *kb = &kbd_table[console]; in vt_do_kdgkbmode() local
2146 switch (kb->kbdmode) { in vt_do_kdgkbmode()
2168 struct kbd_struct *kb = &kbd_table[console]; in vt_do_kdgkbmeta() local
2170 return vc_kbd_mode(kb, VC_META) ? K_ESCPREFIX : K_METABIT; in vt_do_kdgkbmeta()
2209 struct kbd_struct *kb = &kbd_table[console]; in vt_reset_keyboard() local
2213 set_vc_kbd_mode(kb, VC_REPEAT); in vt_reset_keyboard()
2214 clr_vc_kbd_mode(kb, VC_CKMODE); in vt_reset_keyboard()
2215 clr_vc_kbd_mode(kb, VC_APPLIC); in vt_reset_keyboard()
2216 clr_vc_kbd_mode(kb, VC_CRLF); in vt_reset_keyboard()
2217 kb->lockstate = 0; in vt_reset_keyboard()
2218 kb->slockstate = 0; in vt_reset_keyboard()
2220 kb->ledmode = LED_SHOW_FLAGS; in vt_reset_keyboard()
2221 kb->ledflagstate = kb->default_ledflagstate; in vt_reset_keyboard()
2239 struct kbd_struct *kb = &kbd_table[console]; in vt_get_kbd_mode_bit() local
2240 return vc_kbd_mode(kb, bit); in vt_get_kbd_mode_bit()
2254 struct kbd_struct *kb = &kbd_table[console]; in vt_set_kbd_mode_bit() local
2258 set_vc_kbd_mode(kb, bit); in vt_set_kbd_mode_bit()
2273 struct kbd_struct *kb = &kbd_table[console]; in vt_clr_kbd_mode_bit() local
2277 clr_vc_kbd_mode(kb, bit); in vt_clr_kbd_mode_bit()