Lines Matching defs:_sc
97 #define WR4(_sc, _r, _v) bus_write_4((_sc)->mem_res, (_r), (_v))
98 #define RD4(_sc, _r) bus_read_4((_sc)->mem_res, (_r))
100 #define LOCK(_sc) mtx_lock(&(_sc)->mtx)
101 #define UNLOCK(_sc) mtx_unlock(&(_sc)->mtx)
102 #define SLEEP(_sc, timeout) mtx_sleep(sc, &sc->mtx, 0, "tegra_mc", timeout);
103 #define LOCK_INIT(_sc) \
104 mtx_init(&_sc->mtx, device_get_nameunit(_sc->dev), "tegra_mc", MTX_DEF)
105 #define LOCK_DESTROY(_sc) mtx_destroy(&_sc->mtx)
106 #define ASSERT_LOCKED(_sc) mtx_assert(&_sc->mtx, MA_OWNED)
107 #define ASSERT_UNLOCKED(_sc) mtx_assert(&_sc->mtx, MA_NOTOWNED)