/Zephyr-latest/drivers/spi/ |
D | spi_xmc4xxx.c | 51 const struct device *dev_dma; member 72 static void spi_xmc4xxx_dma_callback(const struct device *dev_dma, void *arg, uint32_t dma_channel, in spi_xmc4xxx_dma_callback() argument 81 if (dev_dma == data->dma_tx.dev_dma && dma_channel == data->dma_tx.dma_channel) { in spi_xmc4xxx_dma_callback() 83 } else if (dev_dma == data->dma_rx.dev_dma && in spi_xmc4xxx_dma_callback() 409 ret = dma_config(dma_rx->dev_dma, dma_rx->dma_channel, &dma_rx->dma_cfg); in spi_xmc4xxx_transceive_dma() 418 ret = dma_start(dma_rx->dev_dma, dma_rx->dma_channel); in spi_xmc4xxx_transceive_dma() 439 ret = dma_config(dma_tx->dev_dma, dma_tx->dma_channel, &dma_tx->dma_cfg); in spi_xmc4xxx_transceive_dma() 450 ret = dma_start(dma_tx->dev_dma, dma_tx->dma_channel); in spi_xmc4xxx_transceive_dma() 465 dma_stop(dma_tx->dev_dma, dma_tx->dma_channel); in spi_xmc4xxx_transceive_dma() 466 dma_stop(dma_rx->dev_dma, dma_rx->dma_channel); in spi_xmc4xxx_transceive_dma() [all …]
|
/Zephyr-latest/drivers/i2s/ |
D | i2s_sam_ssc.c | 70 const struct device *dev_dma; member 165 static int reload_dma(const struct device *dev_dma, uint32_t channel, in reload_dma() argument 170 ret = dma_reload(dev_dma, channel, (uint32_t)src, (uint32_t)dst, size); in reload_dma() 175 ret = dma_start(dev_dma, channel); in reload_dma() 180 static int start_dma(const struct device *dev_dma, uint32_t channel, in start_dma() argument 194 ret = dma_config(dev_dma, channel, cfg); in start_dma() 199 ret = dma_start(dev_dma, channel); in start_dma() 250 ret = reload_dma(dev_cfg->dev_dma, stream->dma_channel, in dma_rx_callback() 261 rx_stream_disable(stream, ssc, dev_cfg->dev_dma); in dma_rx_callback() 311 ret = reload_dma(dev_cfg->dev_dma, stream->dma_channel, in dma_tx_callback() [all …]
|
D | i2s_mcux_flexcomm.c | 35 const struct device *dev_dma; member 344 dma_stop(stream->dev_dma, stream->channel); in i2s_mcux_tx_stream_disable() 385 dma_stop(stream->dev_dma, stream->channel); in i2s_mcux_rx_stream_disable() 446 dma_config(stream->dev_dma, stream->channel, &stream->dma_cfg); in i2s_mcux_config_dma_blocks() 505 dma_start(stream->dev_dma, stream->channel); in i2s_mcux_dma_tx_callback() 574 dma_reload(stream->dev_dma, stream->channel, in i2s_mcux_dma_rx_callback() 583 dma_start(stream->dev_dma, stream->channel); in i2s_mcux_dma_rx_callback() 627 ret = dma_start(stream->dev_dma, stream->channel); in i2s_mcux_tx_stream_start() 683 ret = dma_start(stream->dev_dma, stream->channel); in i2s_mcux_rx_stream_start() 908 if (data->tx.dev_dma != NULL) { in i2s_mcux_init() [all …]
|
D | i2s_ll_stm32.c | 497 static int reload_dma(const struct device *dev_dma, uint32_t channel, in reload_dma() argument 503 ret = dma_reload(dev_dma, channel, (uint32_t)src, (uint32_t)dst, blk_size); in reload_dma() 508 ret = dma_start(dev_dma, channel); in reload_dma() 513 static int start_dma(const struct device *dev_dma, uint32_t channel, in start_dma() argument 540 ret = dma_config(dev_dma, channel, dcfg); in start_dma() 545 ret = dma_start(dev_dma, channel); in start_dma() 589 ret = reload_dma(stream->dev_dma, stream->dma_channel, in dma_rx_callback() 699 ret = reload_dma(stream->dev_dma, stream->dma_channel, in dma_tx_callback() 778 if (!device_is_ready(dev_data->tx.dev_dma)) { in i2s_stm32_initialize() 779 LOG_ERR("%s device not ready", dev_data->tx.dev_dma->name); in i2s_stm32_initialize() [all …]
|
D | i2s_mcux_sai.c | 105 const struct device *dev_dma; member 140 const struct device *dev_dma = dev_data->dev_dma; in i2s_tx_stream_disable() local 148 dma_stop(dev_dma, strm->dma_channel); in i2s_tx_stream_disable() 177 const struct device *dev_dma = dev_data->dev_dma; in i2s_rx_stream_disable() local 181 dma_stop(dev_dma, strm->dma_channel); in i2s_rx_stream_disable() 231 ret = dma_reload(dev_data->dev_dma, strm->dma_channel, (uint32_t)buffer, in i2s_tx_reload_multiple_dma_blocks() 375 ret = dma_reload(dev_data->dev_dma, strm->dma_channel, in i2s_dma_rx_callback() 702 const struct device *dev_dma = dev_data->dev_dma; in i2s_tx_stream_start() local 736 dma_config(dev_dma, strm->dma_channel, &strm->dma_cfg); in i2s_tx_stream_start() 753 ret = dma_start(dev_dma, strm->dma_channel); in i2s_tx_stream_start() [all …]
|
D | i2s_ll_stm32.h | 37 const struct device *dev_dma; member
|
/Zephyr-latest/drivers/dma/ |
D | dmamux_stm32.c | 35 const struct device *dev_dma; member 149 if (dma_device->configure(dev_config->mux_channels[id].dev_dma, in dmamux_stm32_configure() 176 if (dma_device->start(dev_config->mux_channels[id].dev_dma, in dmamux_stm32_start() 196 if (dma_device->stop(dev_config->mux_channels[id].dev_dma, in dmamux_stm32_stop() 217 if (dma_device->reload(dev_config->mux_channels[id].dev_dma, in dmamux_stm32_reload() 239 if (dma_device->get_status(dev_config->mux_channels[id].dev_dma, in dmamux_stm32_get_status() 353 { .dev_dma = DEV_DMA_BINDING(x), .dma_id = DMA_CHANNEL(x), } 355 { .dev_dma = DEV_BDMA_BINDING(x), .dma_id = BDMA_CHANNEL(x), }
|
/Zephyr-latest/drivers/adc/ |
D | adc_mcux_adc16.c | 63 const struct device *dev_dma; member 214 dma_stop(data->dev_dma, data->adc_dma_config.dma_channel); in start_read() 268 dma_start(data->dev_dma, data->adc_dma_config.dma_channel); in mcux_adc16_start_channel() 287 dma_config(data->dev_dma, data->adc_dma_config.dma_channel, in adc_context_start_sampling() 404 if (data->dev_dma == NULL || !device_is_ready(data->dev_dma)) { in mcux_adc16_init() 413 dma_request_channel(data->dev_dma, (void *)&adc_filter); in mcux_adc16_init() 418 dma_request_channel(data->dev_dma, (void *)&adc_filter); in mcux_adc16_init() 453 .dev_dma = DEVICE_DT_GET(DT_INST_DMAS_CTLR_BY_NAME(n, adc##n))
|