Lines Matching refs:peek8
122 #define peek8(p) (*(p)) macro
268 poke8(kb_flag, peek8(kb_flag) & in kb_ischar()
272 poke8(kb_flag, peek8(kb_flag) & in kb_ischar()
276 poke8(kb_flag, peek8(kb_flag) & in kb_ischar()
280 poke8(kb_flag, peek8(kb_flag) & in kb_ischar()
284 poke8(kb_flag_1, peek8(kb_flag_1) & in kb_ischar()
288 poke8(kb_flag_1, peek8(kb_flag_1) & in kb_ischar()
292 poke8(kb_flag_1, peek8(kb_flag_1) & in kb_ischar()
322 shifted = (peek8(kb_flag) & BIOS_EITHER_SHIFT) != 0; in kb_translate()
326 if (peek8(kb_flag) & BIOS_NUM_STATE) in kb_translate()
330 if (peek8(kb_flag) & BIOS_CAPS_STATE) in kb_translate()
335 if (peek8(kb_flag) & BIOS_ALT_SHIFT) in kb_translate()
337 else if (peek8(kb_flag) & BIOS_CTL_SHIFT) in kb_translate()
373 poke8(kb_flag, peek8(kb_flag) | BIOS_LEFT_SHIFT); in kb_translate()
377 poke8(kb_flag, peek8(kb_flag) | BIOS_RIGHT_SHIFT); in kb_translate()
381 poke8(kb_flag, peek8(kb_flag) | BIOS_CTL_SHIFT); in kb_translate()
385 poke8(kb_flag, peek8(kb_flag) | BIOS_ALT_SHIFT); in kb_translate()
389 if (!(peek8(kb_flag_1) & BIOS_CAPS_SHIFT)) { in kb_translate()
390 poke8(kb_flag_1, peek8(kb_flag_1) | BIOS_CAPS_SHIFT); in kb_translate()
391 poke8(kb_flag, peek8(kb_flag) ^ BIOS_CAPS_STATE); in kb_translate()
396 if (!(peek8(kb_flag_1) & BIOS_NUM_SHIFT)) { in kb_translate()
397 poke8(kb_flag_1, peek8(kb_flag_1) | BIOS_NUM_SHIFT); in kb_translate()
398 poke8(kb_flag, peek8(kb_flag) ^ BIOS_NUM_STATE); in kb_translate()
403 if (!(peek8(kb_flag_1) & BIOS_SCROLL_SHIFT)) { in kb_translate()
404 poke8(kb_flag_1, peek8(kb_flag_1) | BIOS_SCROLL_SHIFT); in kb_translate()
405 poke8(kb_flag, peek8(kb_flag) ^ BIOS_SCROLL_STATE); in kb_translate()
411 if ((peek8(kb_flag) & (BIOS_CTL_SHIFT|BIOS_ALT_SHIFT)) == in kb_translate()
495 if (peek8(kb_flag) & BIOS_CAPS_STATE) in kb_calculate_leds()
498 if (peek8(kb_flag) & BIOS_NUM_STATE) in kb_calculate_leds()
501 if (peek8(kb_flag) & BIOS_SCROLL_STATE) in kb_calculate_leds()