Lines Matching refs:sc_mtx
105 struct mtx sc_mtx; member
184 mtx_lock(&sc->sc_mtx); in ulpt_reset()
186 if (usbd_do_request_flags(sc->sc_udev, &sc->sc_mtx, in ulpt_reset()
189 if (usbd_do_request_flags(sc->sc_udev, &sc->sc_mtx, in ulpt_reset()
194 mtx_unlock(&sc->sc_mtx); in ulpt_reset()
437 mtx_lock(&sc->sc_mtx); in unlpt_open()
439 mtx_unlock(&sc->sc_mtx); in unlpt_open()
450 mtx_lock(&sc->sc_mtx); in unlpt_open()
452 mtx_unlock(&sc->sc_mtx); in unlpt_open()
544 mtx_init(&sc->sc_mtx, "ulpt lock", NULL, MTX_DEF | MTX_RECURSE); in ulpt_attach()
546 usb_callout_init_mtx(&sc->sc_watchdog, &sc->sc_mtx, 0); in ulpt_attach()
595 sc, &sc->sc_mtx); in ulpt_attach()
638 error = usb_fifo_attach(uaa->device, sc, &sc->sc_mtx, in ulpt_attach()
645 error = usb_fifo_attach(uaa->device, sc, &sc->sc_mtx, in ulpt_attach()
654 mtx_lock(&sc->sc_mtx); in ulpt_attach()
656 mtx_unlock(&sc->sc_mtx); in ulpt_attach()
674 mtx_lock(&sc->sc_mtx); in ulpt_detach()
676 mtx_unlock(&sc->sc_mtx); in ulpt_detach()
680 mtx_destroy(&sc->sc_mtx); in ulpt_detach()
736 mtx_assert(&sc->sc_mtx, MA_OWNED); in ulpt_watchdog()