Lines Matching defs:kb
140 } kb = {
161 * kb_ischar() doesn't succeed without leaving kb.pending
164 ASSERT(kb.pending >= 0);
166 if (kb.pending & 0x100) {
168 kb.pending &= 0xff;
170 ret = kb.pending;
171 kb.pending = -1;
184 if (!kb.initialized) {
186 kb.initialized = B_TRUE;
189 if (kb.pending >= 0)
229 switch (kb.led_state) {
238 kb.led_commanded = leds;
239 kb.led_state = KB_LED_VALUE_SENT;
242 kb.led_state = KB_LED_IDLE;
304 kb.pending = kb_translate(code);
305 if (kb.pending >= 0) {
451 if (kb.led_state != KB_LED_IDLE) {
459 if (kb_calculate_leds() == kb.led_commanded) {
460 kb.led_state = KB_LED_IDLE;
463 kb.led_state = KB_LED_COMMAND_SENT;