Lines Matching refs:ccr
251 u32 ccr; member
428 u32 ccr, cisr, id, reg; in stm32_mdma_disable_chan() local
437 ccr = stm32_mdma_read(dmadev, reg); in stm32_mdma_disable_chan()
438 if (ccr & STM32_MDMA_CCR_EN) { in stm32_mdma_disable_chan()
505 u32 ccr, ctcr, ctbr, tlen; in stm32_mdma_set_xfer_param() local
512 ccr = stm32_mdma_read(dmadev, STM32_MDMA_CCR(chan->id)) & ~STM32_MDMA_CCR_EN; in stm32_mdma_set_xfer_param()
555 ccr &= ~(STM32_MDMA_CCR_SWRQ | STM32_MDMA_CCR_WEX | STM32_MDMA_CCR_HEX | in stm32_mdma_set_xfer_param()
557 ccr |= STM32_MDMA_CCR_PL(chan_config->priority_level); in stm32_mdma_set_xfer_param()
665 *mdma_ccr = ccr; in stm32_mdma_set_xfer_param()
733 u32 ccr, ctcr, ctbr; in stm32_mdma_setup_xfer() local
745 ret = stm32_mdma_set_xfer_param(chan, direction, &ccr, in stm32_mdma_setup_xfer()
753 ret = stm32_mdma_set_xfer_param(chan, direction, &ccr, in stm32_mdma_setup_xfer()
769 ccr &= ~STM32_MDMA_CCR_IRQ_MASK; in stm32_mdma_setup_xfer()
770 ccr |= STM32_MDMA_CCR_TEIE | STM32_MDMA_CCR_CTCIE; in stm32_mdma_setup_xfer()
772 ccr |= STM32_MDMA_CCR_BTIE; in stm32_mdma_setup_xfer()
773 desc->ccr = ccr; in stm32_mdma_setup_xfer()
829 u32 ccr, ctcr, ctbr, count; in stm32_mdma_prep_dma_cyclic() local
862 ret = stm32_mdma_set_xfer_param(chan, direction, &ccr, &ctcr, in stm32_mdma_prep_dma_cyclic()
868 ret = stm32_mdma_set_xfer_param(chan, direction, &ccr, &ctcr, in stm32_mdma_prep_dma_cyclic()
878 ccr &= ~STM32_MDMA_CCR_IRQ_MASK; in stm32_mdma_prep_dma_cyclic()
879 ccr |= STM32_MDMA_CCR_TEIE | STM32_MDMA_CCR_CTCIE | STM32_MDMA_CCR_BTIE; in stm32_mdma_prep_dma_cyclic()
880 desc->ccr = ccr; in stm32_mdma_prep_dma_cyclic()
918 u32 ccr, ctcr, ctbr, cbndtr, count, max_burst, mdma_burst; in stm32_mdma_prep_dma_memcpy() local
940 ccr = stm32_mdma_read(dmadev, STM32_MDMA_CCR(chan->id)) & ~STM32_MDMA_CCR_EN; in stm32_mdma_prep_dma_memcpy()
946 ccr &= ~(STM32_MDMA_CCR_WEX | STM32_MDMA_CCR_HEX | in stm32_mdma_prep_dma_memcpy()
949 ccr |= STM32_MDMA_CCR_TEIE; in stm32_mdma_prep_dma_memcpy()
977 ccr |= STM32_MDMA_CCR_TCIE | STM32_MDMA_CCR_CTCIE; in stm32_mdma_prep_dma_memcpy()
981 ccr |= STM32_MDMA_CCR_BTIE | STM32_MDMA_CCR_CTCIE; in stm32_mdma_prep_dma_memcpy()
1034 ccr |= STM32_MDMA_CCR_BTIE | STM32_MDMA_CCR_CTCIE; in stm32_mdma_prep_dma_memcpy()
1081 desc->ccr = ccr; in stm32_mdma_prep_dma_memcpy()
1134 stm32_mdma_write(dmadev, STM32_MDMA_CCR(id), chan->desc->ccr); in stm32_mdma_start_transfer()
1218 stm32_mdma_write(dmadev, STM32_MDMA_CCR(chan->id), chan->desc->ccr); in stm32_mdma_resume()
1352 u32 reg, id, ccr, ien, status; in stm32_mdma_irq_handler() local
1373 ccr = stm32_mdma_read(dmadev, STM32_MDMA_CCR(id)); in stm32_mdma_irq_handler()
1374 ien = (ccr & STM32_MDMA_CCR_IRQ_MASK) >> 1; in stm32_mdma_irq_handler()
1423 if (!(ccr & STM32_MDMA_CCR_EN)) in stm32_mdma_irq_handler()
1711 u32 ccr, id; in stm32_mdma_pm_suspend() local
1719 ccr = stm32_mdma_read(dmadev, STM32_MDMA_CCR(id)); in stm32_mdma_pm_suspend()
1720 if (ccr & STM32_MDMA_CCR_EN) { in stm32_mdma_pm_suspend()