Home
last modified time | relevance | path

Searched refs:vr_mtx (Results 1 – 2 of 2) sorted by relevance

/haiku/src/add-ons/kernel/drivers/network/ether/via_rhine/dev/vr/
H A Dif_vrreg.h732 struct mtx vr_mtx; member
742 #define VR_LOCK(_sc) mtx_lock(&(_sc)->vr_mtx)
743 #define VR_UNLOCK(_sc) mtx_unlock(&(_sc)->vr_mtx)
744 #define VR_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->vr_mtx, MA_OWNED)
H A Dif_vr.c619 mtx_init(&sc->vr_mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK, in vr_attach()
621 callout_init_mtx(&sc->vr_stat_callout, &sc->vr_mtx, 0); in vr_attach()
829 KASSERT(mtx_initialized(&sc->vr_mtx), ("vr mutex not initialized")); in vr_detach()
863 mtx_destroy(&sc->vr_mtx); in vr_detach()