Lines Matching defs:kb_flag
79 #define kb_flag ((unsigned char *)&kb_status[BIOS_KB_FLAG])
85 #define kb_flag ((unsigned char *)BIOS_KB_FLAG)
268 poke8(kb_flag, peek8(kb_flag) &
272 poke8(kb_flag, peek8(kb_flag) &
276 poke8(kb_flag, peek8(kb_flag) &
280 poke8(kb_flag, peek8(kb_flag) &
322 shifted = (peek8(kb_flag) & BIOS_EITHER_SHIFT) != 0;
326 if (peek8(kb_flag) & BIOS_NUM_STATE)
330 if (peek8(kb_flag) & BIOS_CAPS_STATE)
335 if (peek8(kb_flag) & BIOS_ALT_SHIFT)
337 else if (peek8(kb_flag) & BIOS_CTL_SHIFT)
373 poke8(kb_flag, peek8(kb_flag) | BIOS_LEFT_SHIFT);
377 poke8(kb_flag, peek8(kb_flag) | BIOS_RIGHT_SHIFT);
381 poke8(kb_flag, peek8(kb_flag) | BIOS_CTL_SHIFT);
385 poke8(kb_flag, peek8(kb_flag) | BIOS_ALT_SHIFT);
391 poke8(kb_flag, peek8(kb_flag) ^ BIOS_CAPS_STATE);
398 poke8(kb_flag, peek8(kb_flag) ^ BIOS_NUM_STATE);
405 poke8(kb_flag, peek8(kb_flag) ^ BIOS_SCROLL_STATE);
411 if ((peek8(kb_flag) & (BIOS_CTL_SHIFT|BIOS_ALT_SHIFT)) ==
495 if (peek8(kb_flag) & BIOS_CAPS_STATE)
498 if (peek8(kb_flag) & BIOS_NUM_STATE)
501 if (peek8(kb_flag) & BIOS_SCROLL_STATE)