Lines Matching refs:ccr
252 u32 ccr; member
429 u32 ccr, cisr, id, reg; in stm32_mdma_disable_chan() local
438 ccr = stm32_mdma_read(dmadev, reg); in stm32_mdma_disable_chan()
439 if (ccr & STM32_MDMA_CCR_EN) { in stm32_mdma_disable_chan()
506 u32 ccr, ctcr, ctbr, tlen; in stm32_mdma_set_xfer_param() local
513 ccr = stm32_mdma_read(dmadev, STM32_MDMA_CCR(chan->id)); in stm32_mdma_set_xfer_param()
556 ccr &= ~(STM32_MDMA_CCR_SWRQ | STM32_MDMA_CCR_WEX | STM32_MDMA_CCR_HEX | in stm32_mdma_set_xfer_param()
558 ccr |= STM32_MDMA_CCR_PL(chan_config->priority_level); in stm32_mdma_set_xfer_param()
666 *mdma_ccr = ccr; in stm32_mdma_set_xfer_param()
734 u32 ccr, ctcr, ctbr; in stm32_mdma_setup_xfer() local
746 ret = stm32_mdma_set_xfer_param(chan, direction, &ccr, in stm32_mdma_setup_xfer()
754 ret = stm32_mdma_set_xfer_param(chan, direction, &ccr, in stm32_mdma_setup_xfer()
770 ccr &= ~STM32_MDMA_CCR_IRQ_MASK; in stm32_mdma_setup_xfer()
771 ccr |= STM32_MDMA_CCR_TEIE | STM32_MDMA_CCR_CTCIE; in stm32_mdma_setup_xfer()
773 ccr |= STM32_MDMA_CCR_BTIE; in stm32_mdma_setup_xfer()
774 desc->ccr = ccr; in stm32_mdma_setup_xfer()
830 u32 ccr, ctcr, ctbr, count; in stm32_mdma_prep_dma_cyclic() local
863 ret = stm32_mdma_set_xfer_param(chan, direction, &ccr, &ctcr, in stm32_mdma_prep_dma_cyclic()
869 ret = stm32_mdma_set_xfer_param(chan, direction, &ccr, &ctcr, in stm32_mdma_prep_dma_cyclic()
879 ccr &= ~STM32_MDMA_CCR_IRQ_MASK; in stm32_mdma_prep_dma_cyclic()
880 ccr |= STM32_MDMA_CCR_TEIE | STM32_MDMA_CCR_CTCIE | STM32_MDMA_CCR_BTIE; in stm32_mdma_prep_dma_cyclic()
881 desc->ccr = ccr; in stm32_mdma_prep_dma_cyclic()
919 u32 ccr, ctcr, ctbr, cbndtr, count, max_burst, mdma_burst; in stm32_mdma_prep_dma_memcpy() local
941 ccr = stm32_mdma_read(dmadev, STM32_MDMA_CCR(chan->id)); in stm32_mdma_prep_dma_memcpy()
947 ccr &= ~(STM32_MDMA_CCR_WEX | STM32_MDMA_CCR_HEX | in stm32_mdma_prep_dma_memcpy()
950 ccr |= STM32_MDMA_CCR_TEIE; in stm32_mdma_prep_dma_memcpy()
978 ccr |= STM32_MDMA_CCR_TCIE | STM32_MDMA_CCR_CTCIE; in stm32_mdma_prep_dma_memcpy()
982 ccr |= STM32_MDMA_CCR_BTIE | STM32_MDMA_CCR_CTCIE; in stm32_mdma_prep_dma_memcpy()
1035 ccr |= STM32_MDMA_CCR_BTIE | STM32_MDMA_CCR_CTCIE; in stm32_mdma_prep_dma_memcpy()
1082 desc->ccr = ccr; in stm32_mdma_prep_dma_memcpy()
1135 stm32_mdma_write(dmadev, STM32_MDMA_CCR(id), chan->desc->ccr); in stm32_mdma_start_transfer()
1215 stm32_mdma_write(dmadev, STM32_MDMA_CCR(chan->id), chan->desc->ccr); in stm32_mdma_resume()
1714 u32 ccr, id; in stm32_mdma_pm_suspend() local
1722 ccr = stm32_mdma_read(dmadev, STM32_MDMA_CCR(id)); in stm32_mdma_pm_suspend()
1723 if (ccr & STM32_MDMA_CCR_EN) { in stm32_mdma_pm_suspend()