Lines Matching refs:chcr
93 u32 chcr = __raw_readl(dma_base_addr(chan->chan) + CHCR); in calc_xmit_shift() local
94 int cnt = ((chcr & CHCR_TS_LOW_MASK) >> CHCR_TS_LOW_SHIFT) | in calc_xmit_shift()
95 ((chcr & CHCR_TS_HIGH_MASK) >> CHCR_TS_HIGH_SHIFT); in calc_xmit_shift()
109 u32 chcr; in dma_tei() local
111 chcr = __raw_readl(dma_base_addr(chan->chan) + CHCR); in dma_tei()
113 if (!(chcr & CHCR_TE)) in dma_tei()
116 chcr &= ~(CHCR_IE | CHCR_DE); in dma_tei()
117 __raw_writel(chcr, (dma_base_addr(chan->chan) + CHCR)); in dma_tei()
139 sh_dmac_configure_channel(struct dma_channel *chan, unsigned long chcr) in sh_dmac_configure_channel() argument
141 if (!chcr) in sh_dmac_configure_channel()
142 chcr = RS_DUAL | CHCR_IE; in sh_dmac_configure_channel()
144 if (chcr & CHCR_IE) { in sh_dmac_configure_channel()
145 chcr &= ~CHCR_IE; in sh_dmac_configure_channel()
151 __raw_writel(chcr, (dma_base_addr(chan->chan) + CHCR)); in sh_dmac_configure_channel()
160 u32 chcr; in sh_dmac_enable_dma() local
162 chcr = __raw_readl(dma_base_addr(chan->chan) + CHCR); in sh_dmac_enable_dma()
163 chcr |= CHCR_DE; in sh_dmac_enable_dma()
166 chcr |= CHCR_IE; in sh_dmac_enable_dma()
168 __raw_writel(chcr, (dma_base_addr(chan->chan) + CHCR)); in sh_dmac_enable_dma()
179 u32 chcr; in sh_dmac_disable_dma() local
186 chcr = __raw_readl(dma_base_addr(chan->chan) + CHCR); in sh_dmac_disable_dma()
187 chcr &= ~(CHCR_DE | CHCR_TE | CHCR_IE); in sh_dmac_disable_dma()
188 __raw_writel(chcr, (dma_base_addr(chan->chan) + CHCR)); in sh_dmac_disable_dma()