Home
last modified time | relevance | path

Searched refs:sc_inputtail (Results 1 – 3 of 3) sorted by relevance

/freebsd-14.2/sys/dev/hid/
H A Dhkbd.c187 uint32_t sc_inputtail; member
396 tail = (sc->sc_inputtail + 1) % HKBD_IN_BUF_SIZE; in hkbd_put_key()
398 sc->sc_input[sc->sc_inputtail] = key; in hkbd_put_key()
399 atomic_store_rel_32(&sc->sc_inputtail, tail); in hkbd_put_key()
423 atomic_load_acq_32(&sc->sc_inputtail)) { in hkbd_do_poll()
435 while (sc->sc_inputhead == sc->sc_inputtail) { in hkbd_do_poll()
469 if (head == atomic_load_acq_32(&sc->sc_inputtail)) { in hkbd_get_key()
564 if (sc->sc_inputhead == atomic_load_acq_32(&sc->sc_inputtail)) in hkbd_event_keyinput()
605 atomic_load_acq_32(&sc->sc_inputhead) != sc->sc_inputtail) { in hkbd_timeout()
1212 if (sc->sc_inputhead != atomic_load_acq_32(&sc->sc_inputtail)) { in hkbd_check()
/freebsd-14.2/sys/dev/gpio/
H A Dgpiokeys.c146 uint16_t sc_inputtail; member
172 sc->sc_input[sc->sc_inputtail] = key; in gpiokeys_put_key()
174 ++(sc->sc_inputtail); in gpiokeys_put_key()
175 if (sc->sc_inputtail >= GPIOKEYS_GLOBAL_IN_BUF_SIZE) { in gpiokeys_put_key()
176 sc->sc_inputtail = 0; in gpiokeys_put_key()
/freebsd-14.2/sys/dev/usb/input/
H A Dukbd.c193 uint16_t sc_inputtail; member
400 sc->sc_input[sc->sc_inputtail] = key; in ukbd_put_key()
402 ++(sc->sc_inputtail); in ukbd_put_key()
403 if (sc->sc_inputtail >= UKBD_IN_BUF_SIZE) { in ukbd_put_key()
404 sc->sc_inputtail = 0; in ukbd_put_key()