Lines Matching refs:chcr
100 u32 chcr = sh_dmae_readl(sh_chan, CHCR);
102 if ((chcr & (CHCR_DE | CHCR_TE)) == CHCR_DE)
108 static unsigned int calc_xmit_shift(struct sh_dmae_chan *sh_chan, u32 chcr)
113 int cnt = ((chcr & pdata->ts_low_mask) >> pdata->ts_low_shift) |
114 ((chcr & pdata->ts_high_mask) >> pdata->ts_high_shift);
149 u32 chcr = sh_dmae_readl(sh_chan, CHCR);
151 chcr |= CHCR_DE | CHCR_IE;
152 sh_dmae_writel(sh_chan, chcr & ~CHCR_TE, CHCR);
157 u32 chcr = sh_dmae_readl(sh_chan, CHCR);
159 chcr &= ~(CHCR_DE | CHCR_TE | CHCR_IE);
160 sh_dmae_writel(sh_chan, chcr, CHCR);
169 u32 chcr = DM_INC | SM_INC | 0x400 | log2size_to_chcr(sh_chan,
171 sh_chan->xmit_shift = calc_xmit_shift(sh_chan, chcr);
172 sh_dmae_writel(sh_chan, chcr, CHCR);
317 dmae_set_chcr(sh_chan, cfg->chcr);
807 u32 chcr = sh_dmae_readl(sh_chan, CHCR);
809 if (chcr & CHCR_TE) {