Lines Matching refs:dev_dma

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()
322 tx_stream_disable(stream, ssc, dev_cfg->dev_dma); in dma_tx_callback()
635 const struct device *dev_dma) in rx_stream_start() argument
662 ret = start_dma(dev_dma, stream->dma_channel, &dma_cfg, in rx_stream_start()
681 const struct device *dev_dma) in tx_stream_start() argument
714 ret = start_dma(dev_dma, stream->dma_channel, &dma_cfg, in tx_stream_start()
733 const struct device *dev_dma) in rx_stream_disable() argument
737 dma_stop(dev_dma, stream->dma_channel); in rx_stream_disable()
745 const struct device *dev_dma) in tx_stream_disable() argument
749 dma_stop(dev_dma, stream->dma_channel); in tx_stream_disable()
814 ret = stream->stream_start(stream, ssc, dev_cfg->dev_dma); in i2s_sam_trigger()
852 stream->stream_disable(stream, ssc, dev_cfg->dev_dma); in i2s_sam_trigger()
967 if (!device_is_ready(dev_cfg->dev_dma)) { in i2s_sam_initialize()
968 LOG_ERR("%s device not ready", dev_cfg->dev_dma->name); in i2s_sam_initialize()
1017 .dev_dma = DEVICE_DT_GET(DT_INST_DMAS_CTLR_BY_NAME(0, tx)),