Lines Matching refs:sc_flags

165 	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()
561 if ((sc->sc_flags & HKBD_FLAG_POLLING) != 0) in hkbd_event_keyinput()
677 if ((sc->sc_flags & HKBD_FLAG_APPLE_EJECT) && in hkbd_intr_callback()
682 if ((sc->sc_flags & HKBD_FLAG_APPLE_FN) && in hkbd_intr_callback()
711 if (sc->sc_flags & HKBD_FLAG_APPLE_SWAP) in hkbd_intr_callback()
724 if (sc->sc_flags & HKBD_FLAG_APPLE_SWAP) in hkbd_intr_callback()
775 sc->sc_flags &= ~HKBD_FLAG_HID_MASK; in hkbd_parse_hid()
790 sc->sc_flags |= HKBD_FLAG_APPLE_EJECT | in hkbd_parse_hid()
799 sc->sc_flags |= HKBD_FLAG_APPLE_FN; in hkbd_parse_hid()
835 sc->sc_flags |= HKBD_FLAG_NUMLOCK; in hkbd_parse_hid()
842 if ((sc->sc_flags & HKBD_FLAG_NUMLOCK) == 0) in hkbd_parse_hid()
845 sc->sc_flags |= HKBD_FLAG_CAPSLOCK; in hkbd_parse_hid()
852 if ((sc->sc_flags & (HKBD_FLAG_NUMLOCK | HKBD_FLAG_CAPSLOCK)) in hkbd_parse_hid()
856 sc->sc_flags |= HKBD_FLAG_SCROLLLOCK; in hkbd_parse_hid()
860 if ((sc->sc_flags & (HKBD_FLAG_NUMLOCK | HKBD_FLAG_CAPSLOCK | in hkbd_parse_hid()
978 if (sc->sc_flags & (HKBD_FLAG_NUMLOCK | HKBD_FLAG_CAPSLOCK | in hkbd_attach()
985 if (sc->sc_flags & HKBD_FLAG_NUMLOCK) in hkbd_attach()
987 if (sc->sc_flags & HKBD_FLAG_CAPSLOCK) in hkbd_attach()
989 if (sc->sc_flags & HKBD_FLAG_SCROLLLOCK) in hkbd_attach()
998 sc->sc_flags |= HKBD_FLAG_ATTACHED; in hkbd_attach()
1027 sc->sc_flags |= HKBD_FLAG_GONE; in hkbd_detach()
1034 if (sc->sc_flags & HKBD_FLAG_ATTACHED) { in hkbd_detach()
1058 if (sc->sc_flags & HKBD_FLAG_ATTACHED) { in hkbd_detach()
1204 if (sc->sc_flags & HKBD_FLAG_POLLING) in hkbd_check()
1230 (!(sc->sc_flags & HKBD_FLAG_COMPOSE))) { in hkbd_check_char_locked()
1320 (!(sc->sc_flags & HKBD_FLAG_COMPOSE))) { in hkbd_read_char_locked()
1382 if (sc->sc_flags & HKBD_FLAG_COMPOSE) { in hkbd_read_char_locked()
1383 sc->sc_flags &= ~HKBD_FLAG_COMPOSE; in hkbd_read_char_locked()
1390 if (!(sc->sc_flags & HKBD_FLAG_COMPOSE)) { in hkbd_read_char_locked()
1391 sc->sc_flags |= HKBD_FLAG_COMPOSE; in hkbd_read_char_locked()
1406 if (sc->sc_flags & HKBD_FLAG_COMPOSE) { in hkbd_read_char_locked()
1452 sc->sc_flags &= ~HKBD_FLAG_COMPOSE; in hkbd_read_char_locked()
1531 if ((sc->sc_flags & HKBD_FLAG_POLLING) == 0) in hkbd_ioctl_locked()
1698 sc->sc_flags &= ~(HKBD_FLAG_COMPOSE | HKBD_FLAG_POLLING); in hkbd_clear_state()
1744 sc->sc_flags |= HKBD_FLAG_POLLING; in hkbd_poll()
1747 sc->sc_flags &= ~HKBD_FLAG_POLLING; in hkbd_poll()
1781 if (sc->sc_flags & HKBD_FLAG_NUMLOCK) { in hkbd_set_leds()
1787 if (sc->sc_flags & HKBD_FLAG_SCROLLLOCK) { in hkbd_set_leds()
1793 if (sc->sc_flags & HKBD_FLAG_CAPSLOCK) { in hkbd_set_leds()