Lines Matching refs:index
147 #define HANDLE_IRQS(index) \ argument
148 static const struct device *const dev_##index = \
149 DEVICE_DT_INST_GET(index); \
150 const struct dma_stm32_config *cfg_##index = dev_##index->config; \
151 DMA_TypeDef *dma_##index = (DMA_TypeDef *)(cfg_##index->base); \
153 for (id = 0; id < cfg_##index->max_streams; ++id) { \
154 if (stm32_dma_is_irq_active(dma_##index, id)) { \
155 dma_stm32_irq_handler(dev_##index, id); \
445 int index = find_lsb_set(config->source_data_size) - 1; in dma_stm32_configure() local
446 DMA_InitStruct.PeriphOrM2MSrcDataSize = table_p_size[index]; in dma_stm32_configure()
447 index = find_lsb_set(config->dest_data_size) - 1; in dma_stm32_configure()
448 DMA_InitStruct.MemoryOrM2MDstDataSize = table_m_size[index]; in dma_stm32_configure()
697 #define DMA_STM32_INIT_DEV(index) \ argument
699 dma_stm32_streams_##index[DMA_STM32_##index##_STREAM_COUNT]; \
701 const struct dma_stm32_config dma_stm32_config_##index = { \
702 .pclken = { .bus = DT_INST_CLOCKS_CELL(index, bus), \
703 .enr = DT_INST_CLOCKS_CELL(index, bits) }, \
704 .config_irq = dma_stm32_config_irq_##index, \
705 .base = DT_INST_REG_ADDR(index), \
707 (.support_m2m = DT_INST_PROP(index, st_mem2mem),)) \
708 .max_streams = DMA_STM32_##index##_STREAM_COUNT, \
709 .streams = dma_stm32_streams_##index, \
711 (.offset = DT_INST_PROP(index, dma_offset),)) \
714 static struct dma_stm32_data dma_stm32_data_##index = { \
717 DEVICE_DT_INST_DEFINE(index, \
720 &dma_stm32_data_##index, &dma_stm32_config_##index, \