Lines Matching defs:_sc
75 #define WR4(_sc, _r, _v) bus_write_4((_sc)->mem_res, (_r), (_v))
76 #define RD4(_sc, _r) bus_read_4((_sc)->mem_res, (_r))
78 #define LOCK(_sc) mtx_lock(&(_sc)->mtx)
79 #define UNLOCK(_sc) mtx_unlock(&(_sc)->mtx)
80 #define SLEEP(_sc, timeout) \
82 #define LOCK_INIT(_sc) \
83 mtx_init(&_sc->mtx, device_get_nameunit(_sc->dev), "tegra_rtc", MTX_DEF)
84 #define LOCK_DESTROY(_sc) mtx_destroy(&_sc->mtx)
85 #define ASSERT_LOCKED(_sc) mtx_assert(&_sc->mtx, MA_OWNED)
86 #define ASSERT_UNLOCKED(_sc) mtx_assert(&_sc->mtx, MA_NOTOWNED)