Lines Matching refs:kbd_head
1278 static int kbd_head, kbd_tail; variable
1295 next = (kbd_head + 1) % KBD_QSIZE; in push_kbd()
1297 kbd_queue [kbd_head].id = scan & KBD_KEYMASK; in push_kbd()
1298 kbd_queue [kbd_head].value=scan & KBD_UP ? VKEY_UP : VKEY_DOWN; in push_kbd()
1299 kbd_queue [kbd_head].time = xtime; in push_kbd()
1300 kbd_head = next; in push_kbd()
1316 if (kbd_head == kbd_tail){ in kbd_read()
1322 if (kbd_head == kbd_tail && !signal_pending(current)) { in kbd_read()
1333 for (; p < end && kbd_head != kbd_tail;){ in kbd_read()
1386 if (kbd_head != kbd_tail) in kbd_poll()
1502 count = kbd_head - kbd_tail; in kbd_ioctl()
1525 kbd_head = kbd_tail = 0; in kbd_open()