Lines Matching refs:index
898 #define I2S_ESP32_DMA_CHANNEL_INIT(index, dir) \ argument
901 .dma_dev = UTIL_AND(DT_INST_DMAS_HAS_NAME(index, dir), \
902 DEVICE_DT_GET(DT_INST_DMAS_CTLR_BY_NAME(index, dir))), \
903 .dma_channel = UTIL_AND(DT_INST_DMAS_HAS_NAME(index, dir), \
904 DT_INST_DMAS_CELL_BY_NAME(index, dir, channel)), \
913 #define I2S_ESP32_INIT(index) \ argument
914 PINCTRL_DT_INST_DEFINE(index); \
916 static const struct i2s_esp32_cfg i2s_esp32_config_##index = { \
917 .unit = DT_PROP(DT_DRV_INST(index), unit), \
918 .hal_cxt = {.dev = (i2s_dev_t *)DT_INST_REG_ADDR(index)}, \
919 .pcfg = PINCTRL_DT_INST_DEV_CONFIG_GET(index), \
920 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(index)), \
921 .clock_subsys = (clock_control_subsys_t)DT_INST_CLOCKS_CELL(index, offset)}; \
923 static struct i2s_esp32_data i2s_esp32_data_##index = { \
924 I2S_ESP32_DMA_CHANNEL_INIT(index, rx), I2S_ESP32_DMA_CHANNEL_INIT(index, tx)}; \
926 DEVICE_DT_INST_DEFINE(index, &i2s_esp32_initialize, NULL, &i2s_esp32_data_##index, \
927 &i2s_esp32_config_##index, POST_KERNEL, CONFIG_I2S_INIT_PRIORITY, \