Lines Matching refs:chcr

105 	u32 chcr = __raw_readl(dma_base_addr(chan->chan) + CHCR);  in calc_xmit_shift()  local
106 int cnt = ((chcr & CHCR_TS_LOW_MASK) >> CHCR_TS_LOW_SHIFT) | in calc_xmit_shift()
107 ((chcr & CHCR_TS_HIGH_MASK) >> CHCR_TS_HIGH_SHIFT); in calc_xmit_shift()
121 u32 chcr; in dma_tei() local
123 chcr = __raw_readl(dma_base_addr(chan->chan) + CHCR); in dma_tei()
125 if (!(chcr & CHCR_TE)) in dma_tei()
128 chcr &= ~(CHCR_IE | CHCR_DE); in dma_tei()
129 __raw_writel(chcr, (dma_base_addr(chan->chan) + CHCR)); in dma_tei()
151 sh_dmac_configure_channel(struct dma_channel *chan, unsigned long chcr) in sh_dmac_configure_channel() argument
153 if (!chcr) in sh_dmac_configure_channel()
154 chcr = RS_DUAL | CHCR_IE; in sh_dmac_configure_channel()
156 if (chcr & CHCR_IE) { in sh_dmac_configure_channel()
157 chcr &= ~CHCR_IE; in sh_dmac_configure_channel()
163 __raw_writel(chcr, (dma_base_addr(chan->chan) + CHCR)); in sh_dmac_configure_channel()
172 u32 chcr; in sh_dmac_enable_dma() local
174 chcr = __raw_readl(dma_base_addr(chan->chan) + CHCR); in sh_dmac_enable_dma()
175 chcr |= CHCR_DE; in sh_dmac_enable_dma()
178 chcr |= CHCR_IE; in sh_dmac_enable_dma()
180 __raw_writel(chcr, (dma_base_addr(chan->chan) + CHCR)); in sh_dmac_enable_dma()
191 u32 chcr; in sh_dmac_disable_dma() local
198 chcr = __raw_readl(dma_base_addr(chan->chan) + CHCR); in sh_dmac_disable_dma()
199 chcr &= ~(CHCR_DE | CHCR_TE | CHCR_IE); in sh_dmac_disable_dma()
200 __raw_writel(chcr, (dma_base_addr(chan->chan) + CHCR)); in sh_dmac_disable_dma()