Lines Matching refs:_num
948 #define DEFINE_SPI_MAX32_RTIO(_num) SPI_RTIO_DEFINE(max32_spi_rtio_##_num, \ argument
952 #define DEFINE_SPI_MAX32(_num) \ argument
953 PINCTRL_DT_INST_DEFINE(_num); \
954 SPI_MAX32_IRQ_CONFIG_FUNC(_num) \
955 COND_CODE_1(CONFIG_SPI_RTIO, (DEFINE_SPI_MAX32_RTIO(_num)), ()); \
956 static const struct max32_spi_config max32_spi_config_##_num = { \
957 .regs = (mxc_spi_regs_t *)DT_INST_REG_ADDR(_num), \
958 .pctrl = PINCTRL_DT_INST_DEV_CONFIG_GET(_num), \
959 .clock = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(_num)), \
960 .perclk.bus = DT_INST_CLOCKS_CELL(_num, offset), \
961 .perclk.bit = DT_INST_CLOCKS_CELL(_num, bit), \
962 MAX32_SPI_DMA_INIT(_num) SPI_MAX32_CONFIG_IRQ_FUNC(_num)}; \
963 static struct max32_spi_data max32_spi_data_##_num = { \
964 SPI_CONTEXT_INIT_LOCK(max32_spi_data_##_num, ctx), \
965 SPI_CONTEXT_INIT_SYNC(max32_spi_data_##_num, ctx), \
966 SPI_CONTEXT_CS_GPIOS_INITIALIZE(DT_DRV_INST(_num), ctx) \
967 IF_ENABLED(CONFIG_SPI_RTIO, (.rtio_ctx = &max32_spi_rtio_##_num))}; \
968 SPI_DEVICE_DT_INST_DEFINE(_num, spi_max32_init, NULL, &max32_spi_data_##_num, \
969 &max32_spi_config_##_num, PRE_KERNEL_2, CONFIG_SPI_INIT_PRIORITY, \