Lines Matching refs:ctrla
286 static inline int atc_calc_bytes_left(int current_len, u32 ctrla, in atc_calc_bytes_left() argument
289 return current_len - ((ctrla & ATC_BTSIZE_MAX) << desc->tx_width); in atc_calc_bytes_left()
303 u32 ctrla = channel_readl(atchan, CTRLA); in atc_calc_bytes_left_from_reg() local
305 return atc_calc_bytes_left(current_len, ctrla, desc); in atc_calc_bytes_left_from_reg()
319 u32 ctrla, dscr; in atc_get_bytes_left() local
347 ctrla = channel_readl(atchan, CTRLA); in atc_get_bytes_left()
353 return atc_calc_bytes_left(ret, ctrla, desc_first); in atc_get_bytes_left()
657 u32 ctrla; in atc_prep_dma_memcpy() local
679 ctrla = ATC_SRC_WIDTH(src_width) | in atc_prep_dma_memcpy()
692 desc->lli.ctrla = ctrla | xfer_count; in atc_prep_dma_memcpy()
741 u32 ctrla; in atc_prep_slave_sg() local
760 ctrla = ATC_SCSIZE(sconfig->src_maxburst) in atc_prep_slave_sg()
767 ctrla |= ATC_DST_WIDTH(reg_width); in atc_prep_slave_sg()
795 desc->lli.ctrla = ctrla in atc_prep_slave_sg()
807 ctrla |= ATC_SRC_WIDTH(reg_width); in atc_prep_slave_sg()
836 desc->lli.ctrla = ctrla in atc_prep_slave_sg()
895 u32 ctrla; in atc_prep_dma_sg() local
952 ctrla = ATC_SRC_WIDTH(src_width) | in atc_prep_dma_sg()
972 desc->lli.ctrla = ctrla | xfer_count; in atc_prep_dma_sg()
1043 u32 ctrla; in atc_dma_cyclic_fill_desc() local
1046 ctrla = ATC_SCSIZE(sconfig->src_maxburst) in atc_dma_cyclic_fill_desc()
1056 desc->lli.ctrla = ctrla; in atc_dma_cyclic_fill_desc()
1068 desc->lli.ctrla = ctrla; in atc_dma_cyclic_fill_desc()