Lines Matching refs:dcsr
21 unsigned int dcsr; in reset_dma() local
23 writel(EBUS_DCSR_RESET, &sparc_ebus_dmas[dmanr]->dcsr); in reset_dma()
25 dcsr = EBUS_DCSR_BURST_SZ_16 | EBUS_DCSR_TCI_DIS | in reset_dma()
27 writel(dcsr, &sparc_ebus_dmas[dmanr]->dcsr); in reset_dma()
33 unsigned int dcsr; in enable_dma() local
35 dcsr = readl(&sparc_ebus_dmas[dmanr]->dcsr); in enable_dma()
36 dcsr |= EBUS_DCSR_EN_DMA; in enable_dma()
37 writel(dcsr, &sparc_ebus_dmas[dmanr]->dcsr); in enable_dma()
43 unsigned int dcsr; in disable_dma() local
45 dcsr = readl(&sparc_ebus_dmas[dmanr]->dcsr); in disable_dma()
46 if (dcsr & EBUS_DCSR_EN_DMA) { in disable_dma()
47 while (dcsr & EBUS_DCSR_DRAIN) { in disable_dma()
49 dcsr = readl(&sparc_ebus_dmas[dmanr]->dcsr); in disable_dma()
51 dcsr &= ~(EBUS_DCSR_EN_DMA); in disable_dma()
52 writel(dcsr, &sparc_ebus_dmas[dmanr]->dcsr); in disable_dma()
54 dcsr = readl(&sparc_ebus_dmas[dmanr]->dcsr); in disable_dma()
55 if (dcsr & EBUS_DCSR_ERR_PEND) in disable_dma()
69 unsigned int dcsr; in set_dma_mode() local
71 dcsr = readl(&sparc_ebus_dmas[dmanr]->dcsr); in set_dma_mode()
72 dcsr |= EBUS_DCSR_EN_CNT | EBUS_DCSR_TC; in set_dma_mode()
74 dcsr &= ~(EBUS_DCSR_WRITE); in set_dma_mode()
76 dcsr |= EBUS_DCSR_WRITE; in set_dma_mode()
77 writel(dcsr, &sparc_ebus_dmas[dmanr]->dcsr); in set_dma_mode()