Lines Matching refs:ctl
117 uint32_t ctl; in dma_init() local
133 ctl = DMA_CHCTL(dma_periph, channelx); in dma_init()
134 ctl &= ~(DMA_CHXCTL_PWIDTH | DMA_CHXCTL_MWIDTH | DMA_CHXCTL_PRIO); in dma_init()
135 ctl |= (init_struct->periph_width | init_struct->memory_width | init_struct->priority); in dma_init()
136 DMA_CHCTL(dma_periph, channelx) = ctl; in dma_init()
371 uint32_t ctl; in dma_priority_config() local
378 ctl = DMA_CHCTL(dma_periph, channelx); in dma_priority_config()
380 ctl &= ~DMA_CHXCTL_PRIO; in dma_priority_config()
381 ctl |= priority; in dma_priority_config()
382 DMA_CHCTL(dma_periph, channelx) = ctl; in dma_priority_config()
402 uint32_t ctl; in dma_memory_width_config() local
409 ctl = DMA_CHCTL(dma_periph, channelx); in dma_memory_width_config()
411 ctl &= ~DMA_CHXCTL_MWIDTH; in dma_memory_width_config()
412 ctl |= mwidth; in dma_memory_width_config()
413 DMA_CHCTL(dma_periph, channelx) = ctl; in dma_memory_width_config()
433 uint32_t ctl; in dma_periph_width_config() local
440 ctl = DMA_CHCTL(dma_periph, channelx); in dma_periph_width_config()
442 ctl &= ~DMA_CHXCTL_PWIDTH; in dma_periph_width_config()
443 ctl |= pwidth; in dma_periph_width_config()
444 DMA_CHCTL(dma_periph, channelx) = ctl; in dma_periph_width_config()