Home
last modified time | relevance | path

Searched refs:LOCK_MASK (Results 1 – 12 of 12) sorted by relevance

/freebsd/sys/dev/hyperv/input/
H A Dhv_kbd.c560 sc->sc_state &= LOCK_MASK; /* preserve locking key state */ in hvkbd_clear_state()
592 sc->sc_state &= ~LOCK_MASK; in hvkbd_ioctl_locked()
610 *(int *)arg = sc->sc_state & LOCK_MASK; in hvkbd_ioctl_locked()
620 if (*(int *)arg & ~LOCK_MASK) { in hvkbd_ioctl_locked()
623 sc->sc_state &= ~LOCK_MASK; in hvkbd_ioctl_locked()
638 if (*(int *)arg & ~LOCK_MASK) in hvkbd_ioctl_locked()
/freebsd/sys/dev/kbdmux/
H A Dkbdmux.c1025 mode = state->ks_state & LOCK_MASK; in kbdmux_ioctl()
1093 state->ks_state &= ~LOCK_MASK; in kbdmux_ioctl()
1130 if (*(int *)arg & ~LOCK_MASK) { in kbdmux_ioctl()
1151 *(int *)arg = state->ks_state & LOCK_MASK; in kbdmux_ioctl()
1164 if (*(int *)arg & ~LOCK_MASK) { in kbdmux_ioctl()
1170 state->ks_state &= ~LOCK_MASK; in kbdmux_ioctl()
1274 state->ks_state &= LOCK_MASK; /* preserve locking key state */ in kbdmux_clear_state_locked()
/freebsd/sys/dev/vkbd/
H A Dvkbd.c326 status.lock = state->ks_state & LOCK_MASK; in vkbd_dev_read()
1114 state->ks_state &= ~LOCK_MASK; in vkbd_ioctl()
1147 if (*(int *)arg & ~LOCK_MASK) { in vkbd_ioctl()
1167 *(int *)arg = state->ks_state & LOCK_MASK; in vkbd_ioctl()
1177 if (*(int *)arg & ~LOCK_MASK) { in vkbd_ioctl()
1181 state->ks_state &= ~LOCK_MASK; in vkbd_ioctl()
1242 state->ks_state &= LOCK_MASK; /* preserve locking key state */ in vkbd_clear_state_locked()
/freebsd/sys/dev/gpio/
H A Dgpiokeys.c817 sc->sc_state &= ~LOCK_MASK; in gpiokeys_ioctl_locked()
848 *(int *)arg = sc->sc_state & LOCK_MASK; in gpiokeys_ioctl_locked()
858 if (*(int *)arg & ~LOCK_MASK) { in gpiokeys_ioctl_locked()
861 sc->sc_state &= ~LOCK_MASK; in gpiokeys_ioctl_locked()
940 sc->sc_state &= LOCK_MASK; /* preserve locking key state */ in gpiokeys_clear_state()
/freebsd/sys/dev/adb/
H A Dadb_kbd.c713 sc->sc_state &= ~LOCK_MASK; in akbd_ioctl()
734 if (*(int *)data & ~LOCK_MASK) { in akbd_ioctl()
738 sc->sc_state &= ~LOCK_MASK; in akbd_ioctl()
764 *(int *)data = sc->sc_state & LOCK_MASK; in akbd_ioctl()
/freebsd/sys/dev/atkbdc/
H A Datkbd.c968 state->ks_state &= ~LOCK_MASK; in atkbd_ioctl()
997 if (*(int *)arg & ~LOCK_MASK) { in atkbd_ioctl()
1028 *(int *)arg = state->ks_state & LOCK_MASK; in atkbd_ioctl()
1038 if (*(int *)arg & ~LOCK_MASK) { in atkbd_ioctl()
1042 state->ks_state &= ~LOCK_MASK; in atkbd_ioctl()
1122 state->ks_state &= LOCK_MASK; /* preserve locking key state */ in atkbd_clear_state()
/freebsd/sys/dev/hid/
H A Dhkbd.c1524 sc->sc_state &= ~LOCK_MASK; in hkbd_ioctl_locked()
1553 if (*(int *)arg & ~LOCK_MASK) in hkbd_ioctl_locked()
1583 *(int *)arg = sc->sc_state & LOCK_MASK; in hkbd_ioctl_locked()
1593 if (*(int *)arg & ~LOCK_MASK) { in hkbd_ioctl_locked()
1596 sc->sc_state &= ~LOCK_MASK; in hkbd_ioctl_locked()
1699 sc->sc_state &= LOCK_MASK; /* preserve locking key state */ in hkbd_clear_state()
/freebsd/sys/dev/usb/input/
H A Dukbd.c1820 sc->sc_state &= ~LOCK_MASK; in ukbd_ioctl_locked()
1849 if (*(int *)arg & ~LOCK_MASK) in ukbd_ioctl_locked()
1868 *(int *)arg = sc->sc_state & LOCK_MASK; in ukbd_ioctl_locked()
1878 if (*(int *)arg & ~LOCK_MASK) { in ukbd_ioctl_locked()
1881 sc->sc_state &= ~LOCK_MASK; in ukbd_ioctl_locked()
1981 sc->sc_state &= LOCK_MASK; /* preserve locking key state */ in ukbd_clear_state()
/freebsd/sys/sys/
H A Dkbio.h34 #define LOCK_MASK (CLKED | NLKED | SLKED | ALKED) macro
/freebsd/sys/dev/syscons/
H A Dsyscons.c628 update_kbd_state(scp, scp->status, LOCK_MASK); in sc_attach_unit()
1034 ptr->mk_keylock = scp->status & LOCK_MASK; in sctty_ioctl()
1361 if (*(int *)data & ~LOCK_MASK) in sctty_ioctl()
1363 scp->status &= ~LOCK_MASK; in sctty_ioctl()
1366 update_kbd_state(scp, scp->status, LOCK_MASK); in sctty_ioctl()
1372 *(int *)data = scp->status & LOCK_MASK; in sctty_ioctl()
1529 sc->cur_scp->status, LOCK_MASK); in sctty_ioctl()
2221 sc->cur_scp->status, LOCK_MASK); in scrn_timer()
3023 update_kbd_state(scp, scp->status, LOCK_MASK); in exchange_scr()
4125 scp->status &= ~LOCK_MASK; in save_kbd_state()
[all …]
/freebsd/sys/dev/vt/
H A Dvt_core.c389 vw->vw_kbdstate &= ~LOCK_MASK; in vt_save_kbd_state()
390 vw->vw_kbdstate |= state & LOCK_MASK; in vt_save_kbd_state()
400 state = vw->vw_kbdstate & LOCK_MASK; in vt_update_kbd_state()
2654 *(int *)data = vw->vw_kbdstate & LOCK_MASK; in vtterm_ioctl()
2662 if (state & ~LOCK_MASK) in vtterm_ioctl()
2665 vw->vw_kbdstate &= ~LOCK_MASK; in vtterm_ioctl()
2815 vi->mk_keylock = vw->vw_kbdstate & LOCK_MASK; in vtterm_ioctl()
/freebsd/sys/dev/kbd/
H A Dkbd.c1167 i = (s) & LOCK_MASK; \