Lines Matching refs:bdma
443 static int bdma_stm32_disable_channel(BDMA_TypeDef *bdma, uint32_t id) in bdma_stm32_disable_channel() argument
448 if (stm32_bdma_disable_channel(bdma, id) == 0) { in bdma_stm32_disable_channel()
487 BDMA_TypeDef *bdma = (BDMA_TypeDef *)dev_config->base; in bdma_stm32_configure() local
504 if (bdma_stm32_disable_channel(bdma, id) != 0) { in bdma_stm32_configure()
665 LL_BDMA_Init(bdma, bdma_stm32_id_to_channel(id), &BDMA_InitStruct); in bdma_stm32_configure()
667 LL_BDMA_EnableIT_TC(bdma, bdma_stm32_id_to_channel(id)); in bdma_stm32_configure()
671 LL_BDMA_EnableIT_HT(bdma, bdma_stm32_id_to_channel(id)); in bdma_stm32_configure()
682 BDMA_TypeDef *bdma = (BDMA_TypeDef *)(config->base); in bdma_stm32_reload() local
691 if (bdma_stm32_disable_channel(bdma, id) != 0) { in bdma_stm32_reload()
697 LL_BDMA_SetMemoryAddress(bdma, bdma_stm32_id_to_channel(id), src); in bdma_stm32_reload()
698 LL_BDMA_SetPeriphAddress(bdma, bdma_stm32_id_to_channel(id), dst); in bdma_stm32_reload()
702 LL_BDMA_SetPeriphAddress(bdma, bdma_stm32_id_to_channel(id), src); in bdma_stm32_reload()
703 LL_BDMA_SetMemoryAddress(bdma, bdma_stm32_id_to_channel(id), dst); in bdma_stm32_reload()
710 LL_BDMA_SetDataLength(bdma, bdma_stm32_id_to_channel(id), in bdma_stm32_reload()
713 LL_BDMA_SetDataLength(bdma, bdma_stm32_id_to_channel(id), in bdma_stm32_reload()
720 stm32_bdma_enable_channel(bdma, id); in bdma_stm32_reload()
728 BDMA_TypeDef *bdma = (BDMA_TypeDef *)(config->base); in bdma_stm32_start() local
737 if (stm32_bdma_is_enabled_channel(bdma, id)) { in bdma_stm32_start()
746 stm32_bdma_enable_channel(bdma, id); in bdma_stm32_start()
755 BDMA_TypeDef *bdma = (BDMA_TypeDef *)(config->base); in bdma_stm32_stop() local
767 if (!stm32_bdma_is_enabled_channel(bdma, id)) { in bdma_stm32_stop()
772 LL_BDMA_DisableIT_TC(bdma, bdma_stm32_id_to_channel(id)); in bdma_stm32_stop()
773 LL_BDMA_DisableIT_HT(bdma, bdma_stm32_id_to_channel(id)); in bdma_stm32_stop()
775 bdma_stm32_disable_channel(bdma, id); in bdma_stm32_stop()
837 BDMA_TypeDef *bdma = (BDMA_TypeDef *)(config->base); in bdma_stm32_get_status() local
845 stat->pending_length = LL_BDMA_GetDataLength(bdma, bdma_stm32_id_to_channel(id)); in bdma_stm32_get_status()
892 #define BDMA_STM32_DEFINE_IRQ_HANDLER(bdma, chan) \ argument
893 static void bdma_stm32_irq_##bdma##_##chan(const struct device *dev) \
899 #define BDMA_STM32_IRQ_CONNECT(bdma, chan) \ argument
901 IRQ_CONNECT(DT_INST_IRQ_BY_IDX(bdma, chan, irq), \
902 DT_INST_IRQ_BY_IDX(bdma, chan, priority), \
903 bdma_stm32_irq_##bdma##_##chan, \
904 DEVICE_DT_INST_GET(bdma), 0); \
905 irq_enable(DT_INST_IRQ_BY_IDX(bdma, chan, irq)); \