Lines Matching refs:ctbr
239 u32 ctbr; member
478 static void stm32_mdma_set_bus(struct stm32_mdma_device *dmadev, u32 *ctbr, in stm32_mdma_set_bus() argument
485 *ctbr &= ~ctbr_mask; in stm32_mdma_set_bus()
489 *ctbr |= ctbr_mask; in stm32_mdma_set_bus()
507 u32 ccr, ctcr, ctbr, tlen; in stm32_mdma_set_xfer_param() local
516 ctbr = stm32_mdma_read(dmadev, STM32_MDMA_CTBR(chan->id)); in stm32_mdma_set_xfer_param()
562 ctbr &= ~STM32_MDMA_CTBR_TSEL_MASK; in stm32_mdma_set_xfer_param()
563 ctbr |= STM32_MDMA_CTBR_TSEL(chan_config->request); in stm32_mdma_set_xfer_param()
605 stm32_mdma_set_bus(dmadev, &ctbr, STM32_MDMA_CTBR_DBUS, in stm32_mdma_set_xfer_param()
652 stm32_mdma_set_bus(dmadev, &ctbr, STM32_MDMA_CTBR_SBUS, in stm32_mdma_set_xfer_param()
669 *mdma_ctbr = ctbr; in stm32_mdma_set_xfer_param()
684 dev_dbg(chan2dev(chan), "CTBR: 0x%08x\n", node->hwdesc->ctbr); in stm32_mdma_dump_hwdesc()
693 u32 len, u32 ctcr, u32 ctbr, bool is_last, in stm32_mdma_setup_hwdesc() argument
710 hwdesc->ctbr = ctbr; in stm32_mdma_setup_hwdesc()
735 u32 ccr, ctcr, ctbr; in stm32_mdma_setup_xfer() local
748 &ctcr, &ctbr, src_addr, in stm32_mdma_setup_xfer()
750 stm32_mdma_set_bus(dmadev, &ctbr, STM32_MDMA_CTBR_SBUS, in stm32_mdma_setup_xfer()
756 &ctcr, &ctbr, dst_addr, in stm32_mdma_setup_xfer()
758 stm32_mdma_set_bus(dmadev, &ctbr, STM32_MDMA_CTBR_DBUS, in stm32_mdma_setup_xfer()
766 dst_addr, sg_dma_len(sg), ctcr, ctbr, in stm32_mdma_setup_xfer()
831 u32 ccr, ctcr, ctbr, count; in stm32_mdma_prep_dma_cyclic() local
865 &ctbr, src_addr, period_len); in stm32_mdma_prep_dma_cyclic()
866 stm32_mdma_set_bus(dmadev, &ctbr, STM32_MDMA_CTBR_SBUS, in stm32_mdma_prep_dma_cyclic()
871 &ctbr, dst_addr, period_len); in stm32_mdma_prep_dma_cyclic()
872 stm32_mdma_set_bus(dmadev, &ctbr, STM32_MDMA_CTBR_DBUS, in stm32_mdma_prep_dma_cyclic()
895 dst_addr, period_len, ctcr, ctbr, in stm32_mdma_prep_dma_cyclic()
920 u32 ccr, ctcr, ctbr, cbndtr, count, max_burst, mdma_burst; in stm32_mdma_prep_dma_memcpy() local
944 ctbr = stm32_mdma_read(dmadev, STM32_MDMA_CTBR(chan->id)); in stm32_mdma_prep_dma_memcpy()
965 ctbr &= ~STM32_MDMA_CTBR_TSEL_MASK; in stm32_mdma_prep_dma_memcpy()
968 stm32_mdma_set_bus(dmadev, &ctbr, STM32_MDMA_CTBR_SBUS, src); in stm32_mdma_prep_dma_memcpy()
969 stm32_mdma_set_bus(dmadev, &ctbr, STM32_MDMA_CTBR_DBUS, dest); in stm32_mdma_prep_dma_memcpy()
1027 hwdesc->ctbr = ctbr; in stm32_mdma_prep_dma_memcpy()
1078 xfer_count, ctcr, ctbr, in stm32_mdma_prep_dma_memcpy()
1141 stm32_mdma_write(dmadev, STM32_MDMA_CTBR(id), hwdesc->ctbr); in stm32_mdma_start_transfer()