Lines Matching refs:sc
95 #define CSR_READ_1(sc, off) (bus_read_1((sc)->ioport, off))
96 #define CSR_READ_2(sc, off) (bus_read_2((sc)->ioport, off))
97 #define CSR_WRITE_1(sc, off, val) \
98 bus_write_1((sc)->ioport, off, val)
99 #define CSR_WRITE_2(sc, off, val) \
100 bus_write_2((sc)->ioport, off, val)
101 #define CSR_WRITE_MULTI_1(sc, off, addr, count) \
102 bus_write_multi_1((sc)->ioport, off, addr, count)
103 #define CSR_WRITE_MULTI_2(sc, off, addr, count) \
104 bus_write_multi_2((sc)->ioport, off, addr, count)
105 #define CSR_WRITE_MULTI_4(sc, off, addr, count) \
106 bus_write_multi_4((sc)->ioport, off, addr, count)
107 #define CSR_READ_MULTI_1(sc, off, addr, count) \
108 bus_read_multi_1((sc)->ioport, off, addr, count)
109 #define CSR_READ_MULTI_2(sc, off, addr, count) \
110 bus_read_multi_2((sc)->ioport, off, addr, count)
111 #define CSR_READ_MULTI_4(sc, off, addr, count) \
112 bus_read_multi_4((sc)->ioport, off, addr, count)
114 #define EX_LOCK(sc) mtx_lock(&(sc)->lock)
115 #define EX_UNLOCK(sc) mtx_unlock(&(sc)->lock)
116 #define EX_ASSERT_LOCKED(sc) mtx_assert(&(sc)->lock, MA_OWNED)