Lines Matching refs:num
393 #define CREATE_SEDI_SPI_INSTANCE(num) \ argument
394 static void spi_##num##_irq_init(void) \
396 IRQ_CONNECT(DT_INST_IRQN(num), \
397 DT_INST_IRQ(num, priority), \
398 spi_isr, num, SPI_SEDI_IRQ_FLAGS(num)); \
399 irq_enable(DT_INST_IRQN(num)); \
401 static struct spi_sedi_data spi_##num##_data = { \
402 SPI_CONTEXT_INIT_LOCK(spi_##num##_data, ctx), \
403 SPI_CONTEXT_INIT_SYNC(spi_##num##_data, ctx), \
405 const static struct spi_sedi_config spi_##num##_config = { \
406 DEVICE_MMIO_ROM_INIT(DT_DRV_INST(num)), \
407 .spi_device = num, .irq_config = spi_##num##_irq_init, \
409 PM_DEVICE_DEFINE(spi_##num, spi_sedi_device_ctrl); \
410 SPI_DEVICE_DT_INST_DEFINE(num, \
412 PM_DEVICE_GET(spi_##num), \
413 &spi_##num##_data, \
414 &spi_##num##_config, \