Lines Matching refs:index
491 int index = find_lsb_set(config->source_data_size) - 1; in dma_stm32_configure() local
493 DMA_InitStruct.SrcDataWidth = table_src_size[index]; in dma_stm32_configure()
495 index = find_lsb_set(config->dest_data_size) - 1; in dma_stm32_configure()
496 DMA_InitStruct.DestDataWidth = table_dst_size[index]; in dma_stm32_configure()
740 #define DMA_STM32_IRQ_CONNECT(index) \ argument
741 static void dma_stm32_config_irq_##index(const struct device *dev) \
745 LISTIFY(DT_INST_PROP(index, dma_channels), \
746 DMA_STM32_IRQ_CONNECT_CHANNEL, (;), index); \
761 #define DMA_STM32_INIT_DEV(index) \ argument
762 BUILD_ASSERT(DT_INST_PROP(index, dma_channels) \
763 == DT_NUM_IRQS(DT_DRV_INST(index)), \
766 LISTIFY(DT_INST_PROP(index, dma_channels), \
767 DMA_STM32_DEFINE_IRQ_HANDLER, (;), index); \
769 DMA_STM32_IRQ_CONNECT(index); \
772 dma_stm32_streams_##index[DT_INST_PROP_OR(index, dma_channels, \
773 DT_NUM_IRQS(DT_DRV_INST(index)))]; \
775 const struct dma_stm32_config dma_stm32_config_##index = { \
776 .pclken = { .bus = DT_INST_CLOCKS_CELL(index, bus), \
777 .enr = DT_INST_CLOCKS_CELL(index, bits) }, \
778 .config_irq = dma_stm32_config_irq_##index, \
779 .base = DT_INST_REG_ADDR(index), \
780 .max_streams = DT_INST_PROP_OR(index, dma_channels, \
781 DT_NUM_IRQS(DT_DRV_INST(index)) \
783 .streams = dma_stm32_streams_##index, \
786 static struct dma_stm32_data dma_stm32_data_##index = { \
789 DEVICE_DT_INST_DEFINE(index, \
792 &dma_stm32_data_##index, &dma_stm32_config_##index, \