Lines Matching refs:csr

74 	u32 csr = 0;  in ebus_dma_irq()  local
77 csr = readl(p->regs + EBDMA_CSR); in ebus_dma_irq()
78 writel(csr, p->regs + EBDMA_CSR); in ebus_dma_irq()
81 if (csr & EBDMA_CSR_ERR_PEND) { in ebus_dma_irq()
85 } else if (csr & EBDMA_CSR_INT_PEND) { in ebus_dma_irq()
87 (csr & EBDMA_CSR_TC) ? in ebus_dma_irq()
99 u32 csr; in ebus_dma_register() local
113 csr = EBDMA_CSR_BURST_SZ_16 | EBDMA_CSR_EN_CNT; in ebus_dma_register()
116 csr |= EBDMA_CSR_TCI_DIS; in ebus_dma_register()
118 writel(csr, p->regs + EBDMA_CSR); in ebus_dma_register()
127 u32 csr; in ebus_dma_irq_enable() local
136 csr = readl(p->regs + EBDMA_CSR); in ebus_dma_irq_enable()
137 csr |= EBDMA_CSR_INT_EN; in ebus_dma_irq_enable()
138 writel(csr, p->regs + EBDMA_CSR); in ebus_dma_irq_enable()
142 csr = readl(p->regs + EBDMA_CSR); in ebus_dma_irq_enable()
143 csr &= ~EBDMA_CSR_INT_EN; in ebus_dma_irq_enable()
144 writel(csr, p->regs + EBDMA_CSR); in ebus_dma_irq_enable()
159 u32 csr; in ebus_dma_unregister() local
163 csr = readl(p->regs + EBDMA_CSR); in ebus_dma_unregister()
164 if (csr & EBDMA_CSR_INT_EN) { in ebus_dma_unregister()
165 csr &= ~EBDMA_CSR_INT_EN; in ebus_dma_unregister()
166 writel(csr, p->regs + EBDMA_CSR); in ebus_dma_unregister()
179 u32 csr; in ebus_dma_request() local
186 csr = readl(p->regs + EBDMA_CSR); in ebus_dma_request()
188 if (!(csr & EBDMA_CSR_EN_DMA)) in ebus_dma_request()
191 if (csr & EBDMA_CSR_NA_LOADED) in ebus_dma_request()
208 u32 csr; in ebus_dma_prepare() local
213 csr = (EBDMA_CSR_INT_EN | in ebus_dma_prepare()
219 csr |= EBDMA_CSR_WRITE; in ebus_dma_prepare()
221 csr |= EBDMA_CSR_TCI_DIS; in ebus_dma_prepare()
223 writel(csr, p->regs + EBDMA_CSR); in ebus_dma_prepare()
244 u32 orig_csr, csr; in ebus_dma_enable() local
247 orig_csr = csr = readl(p->regs + EBDMA_CSR); in ebus_dma_enable()
249 csr |= EBDMA_CSR_EN_DMA; in ebus_dma_enable()
251 csr &= ~EBDMA_CSR_EN_DMA; in ebus_dma_enable()
253 (csr & EBDMA_CSR_EN_DMA)) in ebus_dma_enable()
254 writel(csr, p->regs + EBDMA_CSR); in ebus_dma_enable()