Lines Matching refs:sc_mtx
91 struct mtx sc_mtx; /* hidbus private mutex */ member
221 mtx_init(&sc->sc_mtx, "hidraw lock", NULL, MTX_DEF); in hidraw_attach()
222 knlist_init_mtx(&sc->sc_rsel.si_note, &sc->sc_mtx); in hidraw_attach()
242 hidbus_set_lock(self, &sc->sc_mtx); in hidraw_attach()
256 mtx_lock(&sc->sc_mtx); in hidraw_detach()
260 mtx_unlock(&sc->sc_mtx); in hidraw_detach()
267 mtx_destroy(&sc->sc_mtx); in hidraw_detach()
303 mtx_assert(&sc->sc_mtx, MA_OWNED); in hidraw_lock_queue()
315 error = mtx_sleep(&sc->sc_sleepcnt, &sc->sc_mtx, in hidraw_lock_queue()
331 mtx_assert(&sc->sc_mtx, MA_OWNED); in hidraw_unlock_queue()
351 mtx_lock(&sc->sc_mtx); in hidraw_open()
353 mtx_unlock(&sc->sc_mtx); in hidraw_open()
357 mtx_unlock(&sc->sc_mtx); in hidraw_open()
361 mtx_lock(&sc->sc_mtx); in hidraw_open()
363 mtx_unlock(&sc->sc_mtx); in hidraw_open()
401 mtx_lock(&sc->sc_mtx); in hidraw_dtor()
403 mtx_unlock(&sc->sc_mtx); in hidraw_dtor()
419 mtx_lock(&sc->sc_mtx); in hidraw_read()
422 mtx_unlock(&sc->sc_mtx); in hidraw_read()
427 mtx_unlock(&sc->sc_mtx); in hidraw_read()
435 mtx_lock(&sc->sc_mtx); in hidraw_read()
446 error = mtx_sleep(&sc->sc_q, &sc->sc_mtx, PZERO | PCATCH, in hidraw_read()
460 mtx_unlock(&sc->sc_mtx); in hidraw_read()
467 mtx_lock(&sc->sc_mtx); in hidraw_read()
481 mtx_unlock(&sc->sc_mtx); in hidraw_read()
617 mtx_lock(&sc->sc_mtx); in hidraw_ioctl()
626 mtx_unlock(&sc->sc_mtx); in hidraw_ioctl()
631 mtx_lock(&sc->sc_mtx); in hidraw_ioctl()
636 mtx_unlock(&sc->sc_mtx); in hidraw_ioctl()
642 mtx_lock(&sc->sc_mtx); in hidraw_ioctl()
644 mtx_unlock(&sc->sc_mtx); in hidraw_ioctl()
671 mtx_lock(&sc->sc_mtx); in hidraw_ioctl()
676 mtx_unlock(&sc->sc_mtx); in hidraw_ioctl()
697 mtx_lock(&sc->sc_mtx); in hidraw_ioctl()
700 mtx_unlock(&sc->sc_mtx); in hidraw_ioctl()
715 mtx_lock(&sc->sc_mtx); in hidraw_ioctl()
717 mtx_unlock(&sc->sc_mtx); in hidraw_ioctl()
719 mtx_lock(&sc->sc_mtx); in hidraw_ioctl()
721 mtx_unlock(&sc->sc_mtx); in hidraw_ioctl()
910 mtx_lock(&sc->sc_mtx); in hidraw_poll()
917 mtx_unlock(&sc->sc_mtx); in hidraw_poll()
956 mtx_assert(&sc->sc_mtx, MA_OWNED); in hidraw_kqread()
980 mtx_assert(&sc->sc_mtx, MA_OWNED); in hidraw_notify()