Lines Matching refs:sc_flags
167 uint32_t sc_flags; /* flags */ member
410 KASSERT((sc->sc_flags & HKBD_FLAG_POLLING) != 0, in hkbd_do_poll()
462 (sc->sc_flags & HKBD_FLAG_POLLING) != 0, in hkbd_get_key()
465 if (sc->sc_flags & HKBD_FLAG_POLLING) in hkbd_get_key()
559 if ((sc->sc_flags & HKBD_FLAG_POLLING) != 0) in hkbd_event_keyinput()
675 if ((sc->sc_flags & HKBD_FLAG_APPLE_EJECT) && in hkbd_intr_callback()
680 if ((sc->sc_flags & HKBD_FLAG_APPLE_FN) && in hkbd_intr_callback()
709 if (sc->sc_flags & HKBD_FLAG_APPLE_SWAP) in hkbd_intr_callback()
722 if (sc->sc_flags & HKBD_FLAG_APPLE_SWAP) in hkbd_intr_callback()
773 sc->sc_flags &= ~HKBD_FLAG_HID_MASK; in hkbd_parse_hid()
788 sc->sc_flags |= HKBD_FLAG_APPLE_EJECT | in hkbd_parse_hid()
797 sc->sc_flags |= HKBD_FLAG_APPLE_FN; in hkbd_parse_hid()
833 sc->sc_flags |= HKBD_FLAG_NUMLOCK; in hkbd_parse_hid()
840 if ((sc->sc_flags & HKBD_FLAG_NUMLOCK) == 0) in hkbd_parse_hid()
843 sc->sc_flags |= HKBD_FLAG_CAPSLOCK; in hkbd_parse_hid()
850 if ((sc->sc_flags & (HKBD_FLAG_NUMLOCK | HKBD_FLAG_CAPSLOCK)) in hkbd_parse_hid()
854 sc->sc_flags |= HKBD_FLAG_SCROLLLOCK; in hkbd_parse_hid()
858 if ((sc->sc_flags & (HKBD_FLAG_NUMLOCK | HKBD_FLAG_CAPSLOCK | in hkbd_parse_hid()
976 if (sc->sc_flags & (HKBD_FLAG_NUMLOCK | HKBD_FLAG_CAPSLOCK | in hkbd_attach()
983 if (sc->sc_flags & HKBD_FLAG_NUMLOCK) in hkbd_attach()
985 if (sc->sc_flags & HKBD_FLAG_CAPSLOCK) in hkbd_attach()
987 if (sc->sc_flags & HKBD_FLAG_SCROLLLOCK) in hkbd_attach()
996 sc->sc_flags |= HKBD_FLAG_ATTACHED; in hkbd_attach()
1025 sc->sc_flags |= HKBD_FLAG_GONE; in hkbd_detach()
1032 if (sc->sc_flags & HKBD_FLAG_ATTACHED) { in hkbd_detach()
1056 if (sc->sc_flags & HKBD_FLAG_ATTACHED) { in hkbd_detach()
1202 if (sc->sc_flags & HKBD_FLAG_POLLING) in hkbd_check()
1228 (!(sc->sc_flags & HKBD_FLAG_COMPOSE))) { in hkbd_check_char_locked()
1318 (!(sc->sc_flags & HKBD_FLAG_COMPOSE))) { in hkbd_read_char_locked()
1380 if (sc->sc_flags & HKBD_FLAG_COMPOSE) { in hkbd_read_char_locked()
1381 sc->sc_flags &= ~HKBD_FLAG_COMPOSE; in hkbd_read_char_locked()
1388 if (!(sc->sc_flags & HKBD_FLAG_COMPOSE)) { in hkbd_read_char_locked()
1389 sc->sc_flags |= HKBD_FLAG_COMPOSE; in hkbd_read_char_locked()
1404 if (sc->sc_flags & HKBD_FLAG_COMPOSE) { in hkbd_read_char_locked()
1450 sc->sc_flags &= ~HKBD_FLAG_COMPOSE; in hkbd_read_char_locked()
1529 if ((sc->sc_flags & HKBD_FLAG_POLLING) == 0) in hkbd_ioctl_locked()
1692 sc->sc_flags &= ~(HKBD_FLAG_COMPOSE | HKBD_FLAG_POLLING); in hkbd_clear_state()
1738 sc->sc_flags |= HKBD_FLAG_POLLING; in hkbd_poll()
1741 sc->sc_flags &= ~HKBD_FLAG_POLLING; in hkbd_poll()
1775 if (sc->sc_flags & HKBD_FLAG_NUMLOCK) { in hkbd_set_leds()
1781 if (sc->sc_flags & HKBD_FLAG_SCROLLLOCK) { in hkbd_set_leds()
1787 if (sc->sc_flags & HKBD_FLAG_CAPSLOCK) { in hkbd_set_leds()