Lines Matching refs:sc
67 #define L64854_GCSR(sc) bus_read_4((sc)->sc_res, L64854_REG_CSR)
68 #define L64854_SCSR(sc, csr) bus_write_4((sc)->sc_res, L64854_REG_CSR, csr)
73 #define DMA_RESET(sc) (((sc)->reset)(sc))
74 #define DMA_INTR(sc) (((sc)->intr)(sc))
75 #define DMA_SETUP(sc, a, l, d, s) (((sc)->setup)(sc, a, l, d, s))
76 #define DMA_ISACTIVE(sc) ((sc)->sc_active)
78 #define DMA_ENINTR(sc) do { \
79 uint32_t csr = L64854_GCSR(sc); \
81 L64854_SCSR(sc, csr); \
84 #define DMA_ISINTR(sc) (L64854_GCSR(sc) & (D_INT_PEND|D_ERR_PEND))
86 #define DMA_GO(sc) do { \
87 uint32_t csr = L64854_GCSR(sc); \
89 L64854_SCSR(sc, csr); \
90 sc->sc_active = 1; \