Lines Matching refs:chcr
177 u32 chcr = chcr_read(sh_chan); in dmae_is_busy() local
179 if ((chcr & (CHCR_DE | CHCR_TE)) == CHCR_DE) in dmae_is_busy()
185 static unsigned int calc_xmit_shift(struct sh_dmae_chan *sh_chan, u32 chcr) in calc_xmit_shift() argument
189 int cnt = ((chcr & pdata->ts_low_mask) >> pdata->ts_low_shift) | in calc_xmit_shift()
190 ((chcr & pdata->ts_high_mask) >> pdata->ts_high_shift); in calc_xmit_shift()
225 u32 chcr = chcr_read(sh_chan); in dmae_start() local
230 chcr |= CHCR_DE | shdev->chcr_ie_bit; in dmae_start()
231 chcr_write(sh_chan, chcr & ~CHCR_TE); in dmae_start()
239 u32 chcr = DM_INC | SM_INC | RS_AUTO | log2size_to_chcr(sh_chan, in dmae_init() local
241 sh_chan->xmit_shift = calc_xmit_shift(sh_chan, chcr); in dmae_init()
242 chcr_write(sh_chan, chcr); in dmae_init()
315 dmae_set_chcr(sh_chan, cfg->chcr); in sh_dmae_setup_xfer()
371 u32 chcr = chcr_read(sh_chan); in dmae_halt() local
373 chcr &= ~(CHCR_DE | CHCR_TE | shdev->chcr_ie_bit); in dmae_halt()
374 chcr_write(sh_chan, chcr); in dmae_halt()
620 dmae_set_chcr(sh_chan, cfg->chcr); in sh_dmae_resume()