Lines Matching refs:hal_config
198 data->hal_config.dma_in = (spi_dma_dev_t *)cfg->spi; in spi_esp32_init_dma()
199 data->hal_config.dma_out = (spi_dma_dev_t *)cfg->spi; in spi_esp32_init_dma()
200 data->hal_config.dma_enabled = true; in spi_esp32_init_dma()
201 data->hal_config.tx_dma_chan = cfg->dma_host + channel_offset; in spi_esp32_init_dma()
202 data->hal_config.rx_dma_chan = cfg->dma_host + channel_offset; in spi_esp32_init_dma()
203 data->hal_config.dmadesc_n = 1; in spi_esp32_init_dma()
204 data->hal_config.dmadesc_rx = &data->dma_desc_rx; in spi_esp32_init_dma()
205 data->hal_config.dmadesc_tx = &data->dma_desc_tx; in spi_esp32_init_dma()
207 if (data->hal_config.dmadesc_tx == NULL || data->hal_config.dmadesc_rx == NULL) { in spi_esp32_init_dma()
208 k_free(data->hal_config.dmadesc_tx); in spi_esp32_init_dma()
209 k_free(data->hal_config.dmadesc_rx); in spi_esp32_init_dma()
213 spi_hal_init(&data->hal, cfg->dma_host + 1, &data->hal_config); in spi_esp32_init_dma()