Lines Matching +full:1 +full:kb

116 	[ KT_FN		] = ARRAY_SIZE(func_table) - 1,
117 [ KT_SPEC ] = ARRAY_SIZE(fn_handler) - 1,
118 [ KT_PAD ] = NR_PAD - 1,
119 [ KT_DEAD ] = NR_DEAD - 1,
122 [ KT_SHIFT ] = NR_SHIFT - 1,
124 [ KT_ASCII ] = NR_ASCII - 1,
125 [ KT_LOCK ] = NR_LOCK - 1,
127 [ KT_SLOCK ] = NR_LOCK - 1,
129 [ KT_BRL ] = NR_BRL - 1,
154 static unsigned int ledstate = -1U; /* undefined */
261 input_inject_event(handle, EV_SND, SND_BELL, *hz ? 1 : 0); in kd_sound_helper()
305 rpt[1].delay = dev->rep[REP_DELAY]; in kbd_rate_helper()
306 rpt[1].period = dev->rep[REP_PERIOD]; in kbd_rate_helper()
317 *rpt = data[1]; /* Copy currently used settings */ in kbd_rate()
341 buf[1] = (mode ? 'O' : '['); in applkey()
461 if (c != -1) in handle_diacr()
478 if (c != -1) in fn_enter()
534 applkey(vc, 'P', 1); in fn_num()
562 if (want_console != -1) in fn_dec_console()
565 for (i = cur - 1; i != cur; i--) { in fn_dec_console()
566 if (i == -1) in fn_dec_console()
567 i = MAX_NR_CONSOLES - 1; in fn_dec_console()
579 if (want_console != -1) in fn_inc_console()
582 for (i = cur+1; i != cur; i++) { in fn_inc_console()
631 if (kill_pid(vt_spawn_con.pid, vt_spawn_con.sig, 1)) { in fn_spawn_con()
692 if (c != -1) in k_unicode()
803 applkey(vc, app_map[value], 1); in k_pad()
956 static unsigned brl_nbchords = 1;
998 pressed |= BIT(value - 1); in k_brl()
1008 pressed &= ~BIT(value - 1); in k_brl()
1018 pressed &= ~BIT(value - 1); in k_brl()
1035 if (ledstate != -1U) in kbd_led_trigger_activate()
1117 input_inject_event(handle, EV_LED, LED_NUML, !!(leds & BIT(1))); in kbd_update_leds_helper()
1148 void setledstate(struct kbd_struct *kb, unsigned int led) in setledstate() argument
1154 kb->ledmode = LED_SHOW_IOCTL; in setledstate()
1156 kb->ledmode = LED_SHOW_FLAGS; in setledstate()
1164 struct kbd_struct *kb = kbd_table + fg_console; in getleds() local
1166 if (kb->ledmode == LED_SHOW_IOCTL) in getleds()
1169 return kb->ledflagstate; in getleds()
1181 struct kbd_struct *kb = &kbd_table[console]; in vt_get_leds() local
1186 ret = vc_kbd_led(kb, flag); in vt_get_leds()
1203 struct kbd_struct *kb = &kbd_table[console]; in vt_set_led_state() local
1204 setledstate(kb, leds); in vt_set_led_state()
1222 struct kbd_struct *kb = &kbd_table[console]; in vt_kbd_con_start() local
1225 clr_vc_kbd_led(kb, VC_SCROLLOCK); in vt_kbd_con_start()
1239 struct kbd_struct *kb = &kbd_table[console]; in vt_kbd_con_stop() local
1242 set_vc_kbd_led(kb, VC_SCROLLOCK); in vt_kbd_con_stop()
1289 { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
1353 return -1; in emulate_raw()
1357 return -1; in emulate_raw()
1379 return -1; in emulate_raw()
1486 keysym = U(K(KT_BRL, keycode - KEY_BRL_DOT1 + 1)); in kbd_keycode()
1546 do_poke_blanked_console = 1; in kbd_event()
1559 if (find_next_bit(dev->keybit, KEY_BRL_DOT10 + 1, in kbd_match()
1619 if (ledstate != -1U) in kbd_start()
1838 struct kbd_struct *kb = &kbd_table[console]; in vt_do_kdskbmode() local
1845 kb->kbdmode = VC_RAW; in vt_do_kdskbmode()
1848 kb->kbdmode = VC_MEDIUMRAW; in vt_do_kdskbmode()
1851 kb->kbdmode = VC_XLATE; in vt_do_kdskbmode()
1855 kb->kbdmode = VC_UNICODE; in vt_do_kdskbmode()
1859 kb->kbdmode = VC_OFF; in vt_do_kdskbmode()
1878 struct kbd_struct *kb = &kbd_table[console]; in vt_do_kdskbmeta() local
1885 clr_vc_kbd_mode(kb, VC_META); in vt_do_kdskbmeta()
1888 set_vc_kbd_mode(kb, VC_META); in vt_do_kdskbmeta()
1993 for (j = 1; j < NR_KEYS; j++) in vt_kdskbent()
2021 struct kbd_struct *kb = &kbd_table[console]; in vt_do_kdsk_ioctl() local
2029 return put_user(vt_kdgkbent(kb->kbdmode, kbe.kb_index, in vt_do_kdsk_ioctl()
2035 return vt_kdskbent(kb->kbdmode, kbe.kb_index, kbe.kb_table, in vt_do_kdsk_ioctl()
2085 ret = copy_to_user(user_kdgkb->kb_string, kbs, len + 1) ? in vt_do_kdgkb_ioctl()
2113 struct kbd_struct *kb = &kbd_table[console]; in vt_do_kdskled() local
2122 ucval = kb->ledflagstate | (kb->default_ledflagstate << 4); in vt_do_kdskled()
2132 kb->ledflagstate = (arg & 7); in vt_do_kdskled()
2133 kb->default_ledflagstate = ((arg >> 4) & 7); in vt_do_kdskled()
2147 setledstate(kb, arg); in vt_do_kdskled()
2155 struct kbd_struct *kb = &kbd_table[console]; in vt_do_kdgkbmode() local
2157 switch (kb->kbdmode) { in vt_do_kdgkbmode()
2179 struct kbd_struct *kb = &kbd_table[console]; in vt_do_kdgkbmeta() local
2181 return vc_kbd_mode(kb, VC_META) ? K_ESCPREFIX : K_METABIT; in vt_do_kdgkbmeta()
2220 struct kbd_struct *kb = &kbd_table[console]; in vt_reset_keyboard() local
2224 set_vc_kbd_mode(kb, VC_REPEAT); in vt_reset_keyboard()
2225 clr_vc_kbd_mode(kb, VC_CKMODE); in vt_reset_keyboard()
2226 clr_vc_kbd_mode(kb, VC_APPLIC); in vt_reset_keyboard()
2227 clr_vc_kbd_mode(kb, VC_CRLF); in vt_reset_keyboard()
2228 kb->lockstate = 0; in vt_reset_keyboard()
2229 kb->slockstate = 0; in vt_reset_keyboard()
2231 kb->ledmode = LED_SHOW_FLAGS; in vt_reset_keyboard()
2232 kb->ledflagstate = kb->default_ledflagstate; in vt_reset_keyboard()
2250 struct kbd_struct *kb = &kbd_table[console]; in vt_get_kbd_mode_bit() local
2251 return vc_kbd_mode(kb, bit); in vt_get_kbd_mode_bit()
2265 struct kbd_struct *kb = &kbd_table[console]; in vt_set_kbd_mode_bit() local
2269 set_vc_kbd_mode(kb, bit); in vt_set_kbd_mode_bit()
2284 struct kbd_struct *kb = &kbd_table[console]; in vt_clr_kbd_mode_bit() local
2288 clr_vc_kbd_mode(kb, bit); in vt_clr_kbd_mode_bit()