Lines Matching refs:ctrla
277 static inline int atc_calc_bytes_left(int current_len, u32 ctrla) in atc_calc_bytes_left() argument
279 u32 btsize = (ctrla & ATC_BTSIZE_MAX); in atc_calc_bytes_left()
280 u32 src_width = ATC_REG_TO_SRC_WIDTH(ctrla); in atc_calc_bytes_left()
302 u32 ctrla, dscr; in atc_get_bytes_left() local
372 ctrla = channel_readl(atchan, CTRLA); in atc_get_bytes_left()
397 ctrla = channel_readl(atchan, CTRLA); in atc_get_bytes_left()
404 return atc_calc_bytes_left(ret, ctrla); in atc_get_bytes_left()
418 ret = atc_calc_bytes_left(ret, ctrla); in atc_get_bytes_left()
421 ctrla = channel_readl(atchan, CTRLA); in atc_get_bytes_left()
422 ret = atc_calc_bytes_left(ret, ctrla); in atc_get_bytes_left()
670 u32 ctrla; in atc_prep_dma_interleaved() local
715 ctrla = ATC_SRC_WIDTH(dwidth) | in atc_prep_dma_interleaved()
735 desc->lli.ctrla = ctrla | xfer_count; in atc_prep_dma_interleaved()
773 u32 ctrla; in atc_prep_dma_memcpy() local
795 ctrla = ATC_SRC_WIDTH(src_width) | in atc_prep_dma_memcpy()
808 desc->lli.ctrla = ctrla | xfer_count; in atc_prep_dma_memcpy()
842 u32 ctrla = ATC_SRC_WIDTH(2) | ATC_DST_WIDTH(2); in atc_create_memset_desc() local
864 desc->lli.ctrla = ctrla | xfer_count; in atc_create_memset_desc()
1034 u32 ctrla; in atc_prep_slave_sg() local
1053 ctrla = ATC_SCSIZE(sconfig->src_maxburst) in atc_prep_slave_sg()
1060 ctrla |= ATC_DST_WIDTH(reg_width); in atc_prep_slave_sg()
1088 desc->lli.ctrla = ctrla in atc_prep_slave_sg()
1100 ctrla |= ATC_SRC_WIDTH(reg_width); in atc_prep_slave_sg()
1129 desc->lli.ctrla = ctrla in atc_prep_slave_sg()
1194 u32 ctrla; in atc_dma_cyclic_fill_desc() local
1197 ctrla = ATC_SCSIZE(sconfig->src_maxburst) in atc_dma_cyclic_fill_desc()
1207 desc->lli.ctrla = ctrla; in atc_dma_cyclic_fill_desc()
1219 desc->lli.ctrla = ctrla; in atc_dma_cyclic_fill_desc()