Lines Matching refs:chcr
58 u32 chcr = __raw_readl(dma_base_addr[chan->chan] + CHCR);
59 int cnt = ((chcr & CHCR_TS_LOW_MASK) >> CHCR_TS_LOW_SHIFT) |
60 ((chcr & CHCR_TS_HIGH_MASK) >> CHCR_TS_HIGH_SHIFT);
66 * The transfer end interrupt must read the chcr register to end the
74 u32 chcr;
76 chcr = __raw_readl(dma_base_addr[chan->chan] + CHCR);
78 if (!(chcr & CHCR_TE))
81 chcr &= ~(CHCR_IE | CHCR_DE);
82 __raw_writel(chcr, (dma_base_addr[chan->chan] + CHCR));
109 sh_dmac_configure_channel(struct dma_channel *chan, unsigned long chcr)
111 if (!chcr)
112 chcr = RS_DUAL | CHCR_IE;
114 if (chcr & CHCR_IE) {
115 chcr &= ~CHCR_IE;
121 __raw_writel(chcr, (dma_base_addr[chan->chan] + CHCR));
130 u32 chcr;
132 chcr = __raw_readl(dma_base_addr[chan->chan] + CHCR);
133 chcr |= CHCR_DE;
136 chcr |= CHCR_IE;
138 __raw_writel(chcr, (dma_base_addr[chan->chan] + CHCR));
149 u32 chcr;
156 chcr = __raw_readl(dma_base_addr[chan->chan] + CHCR);
157 chcr &= ~(CHCR_DE | CHCR_TE | CHCR_IE);
158 __raw_writel(chcr, (dma_base_addr[chan->chan] + CHCR));