Lines Matching refs:consoles
15 Console consoles;
32 Spinlock_Init(&consoles.keyLock, "Console Keyboard Lock", SPINLOCK_TYPE_NORMAL);
33 consoles.nextKey = 0;
34 consoles.lastKey = 0;
50 Spinlock_Lock(&consoles.keyLock);
51 if (consoles.nextKey != consoles.lastKey) {
52 char key = consoles.keyBuf[consoles.nextKey];
53 consoles.nextKey = (consoles.nextKey + 1) % CONSOLE_KEYBUF_MAXLEN;
54 Spinlock_Unlock(&consoles.keyLock);
57 Spinlock_Unlock(&consoles.keyLock);
77 Spinlock_Lock(&consoles.keyLock);
78 if (((consoles.lastKey + 1) % CONSOLE_KEYBUF_MAXLEN) == consoles.lastKey) {
79 Spinlock_Unlock(&consoles.keyLock);
82 consoles.keyBuf[consoles.lastKey] = key;
83 consoles.lastKey = (consoles.lastKey + 1) % CONSOLE_KEYBUF_MAXLEN;
84 Spinlock_Unlock(&consoles.keyLock);