Lines Matching refs:kbd_state
256 static unsigned char kbd_state = KBD_INITRST; in handle_rawcode() local
259 if (keyval == HRST && kbd_state != KBD_INITRST && kbd_state != KBD_ID) { in handle_rawcode()
262 kbd_state = KBD_INITRST; in handle_rawcode()
263 } else switch(kbd_state) { in handle_rawcode()
267 kbd_state = KBD_RAK1; in handle_rawcode()
282 kbd_state = KBD_RAK2; in handle_rawcode()
292 kbd_state = KBD_ID; in handle_rawcode()
295 kbd_state = KBD_IDLE; in handle_rawcode()
306 kbd_state = KBD_INITRST; in handle_rawcode()
311 kbd_state = KBD_IDLE; in handle_rawcode()
320 kbd_state = KBD_MOUSE; in handle_rawcode()
334 kbd_state = KBD_KEYDOWN; in handle_rawcode()
340 kbd_state = KBD_KEYUP; in handle_rawcode()
354 kbd_state = KBD_IDLE; in handle_rawcode()
365 kbd_state = KBD_IDLE; in handle_rawcode()
376 kbd_state = KBD_IDLE; in handle_rawcode()
385 return kbd_state == KBD_IDLE ? 1 : 0; in handle_rawcode()
390 kbd_state, keyval); in handle_rawcode()
395 kbd_state = KBD_INITRST; in handle_rawcode()
403 kbd_state = KBD_INITRST; in handle_rawcode()