Searched refs:emac_mtx (Results 1 – 2 of 2) sorted by relevance
238 #define EMAC_LOCK(cs) mtx_lock(&(sc)->emac_mtx)239 #define EMAC_UNLOCK(cs) mtx_unlock(&(sc)->emac_mtx)240 #define EMAC_ASSERT_LOCKED(sc) mtx_assert(&(sc)->emac_mtx, MA_OWNED);
97 struct mtx emac_mtx; member831 if (mtx_initialized(&sc->emac_mtx)) in emac_detach()832 mtx_destroy(&sc->emac_mtx); in emac_detach()892 mtx_init(&sc->emac_mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK, in emac_attach()894 callout_init_mtx(&sc->emac_tick_ch, &sc->emac_mtx, 0); in emac_attach()