Lines Matching refs:chan_id
79 static int sof_host_dma_reload(const struct device *dev, uint32_t chan_id, in sof_host_dma_reload() argument
92 if (chan_id >= data->ctx.dma_channels) { in sof_host_dma_reload()
93 LOG_ERR("channel %d is not a valid channel ID", chan_id); in sof_host_dma_reload()
98 chan = &data->channels[chan_id]; in sof_host_dma_reload()
102 LOG_ERR("attempting to reload unconfigured DMA channel %d", chan_id); in sof_host_dma_reload()
162 static int sof_host_dma_config(const struct device *dev, uint32_t chan_id, in sof_host_dma_config() argument
171 if (chan_id >= data->ctx.dma_channels) { in sof_host_dma_config()
172 LOG_ERR("channel %d is not a valid channel ID", chan_id); in sof_host_dma_config()
177 chan = &data->channels[chan_id]; in sof_host_dma_config()
182 LOG_ERR("failed to change channel %d's state to CONFIGURED", chan_id); in sof_host_dma_config()
222 chan_id, chan->src, chan->dest, chan->size); in sof_host_dma_config()
227 static int sof_host_dma_start(const struct device *dev, uint32_t chan_id) in sof_host_dma_start() argument
233 static int sof_host_dma_stop(const struct device *dev, uint32_t chan_id) in sof_host_dma_stop() argument
239 static int sof_host_dma_suspend(const struct device *dev, uint32_t chan_id) in sof_host_dma_suspend() argument
245 static int sof_host_dma_resume(const struct device *dev, uint32_t chan_id) in sof_host_dma_resume() argument
252 uint32_t chan_id, struct dma_status *stat) in sof_host_dma_get_status() argument