Home
last modified time | relevance | path

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

/freebsd/sys/dev/hid/
H A Dhkbd.c189 uint32_t sc_inputtail; member
398 tail = (sc->sc_inputtail + 1) % HKBD_IN_BUF_SIZE; in hkbd_put_key()
400 sc->sc_input[sc->sc_inputtail] = key; in hkbd_put_key()
401 atomic_store_rel_32(&sc->sc_inputtail, tail); in hkbd_put_key()
425 atomic_load_acq_32(&sc->sc_inputtail)) { in hkbd_do_poll()
437 while (sc->sc_inputhead == sc->sc_inputtail) { in hkbd_do_poll()
471 if (head == atomic_load_acq_32(&sc->sc_inputtail)) { in hkbd_get_key()
566 if (sc->sc_inputhead == atomic_load_acq_32(&sc->sc_inputtail)) in hkbd_event_keyinput()
607 atomic_load_acq_32(&sc->sc_inputhead) != sc->sc_inputtail) { in hkbd_timeout()
1214 if (sc->sc_inputhead != atomic_load_acq_32(&sc->sc_inputtail)) { in hkbd_check()
/freebsd/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/sys/dev/usb/input/
H A Dukbd.c200 uint16_t sc_inputtail; member
449 sc->sc_input[sc->sc_inputtail] = key; in ukbd_put_key()
451 ++(sc->sc_inputtail); in ukbd_put_key()
452 if (sc->sc_inputtail >= UKBD_IN_BUF_SIZE) { in ukbd_put_key()
453 sc->sc_inputtail = 0; in ukbd_put_key()