Lines Matching refs:channel
211 static int dma_nxp_sdma_channel_init(const struct device *dev, uint32_t channel) in dma_nxp_sdma_channel_init() argument
217 chan_data = &dev_data->chan[channel]; in dma_nxp_sdma_channel_init()
218 SDMA_CreateHandle(&chan_data->handle, dev_cfg->base, channel, &sdma_contexts[channel]); in dma_nxp_sdma_channel_init()
225 static void dma_nxp_sdma_setup_bd(const struct device *dev, uint32_t channel, in dma_nxp_sdma_setup_bd() argument
234 chan_data = &dev_data->chan[channel]; in dma_nxp_sdma_setup_bd()
237 chan_data->bd_pool = &dev_data->bd_pool[channel][0]; in dma_nxp_sdma_setup_bd()
266 static int dma_nxp_sdma_config(const struct device *dev, uint32_t channel, in dma_nxp_sdma_config() argument
274 if (channel >= FSL_FEATURE_SDMA_MODULE_CHANNEL) { in dma_nxp_sdma_config()
275 LOG_ERR("sdma_config() invalid channel %d", channel); in dma_nxp_sdma_config()
279 dma_nxp_sdma_channel_init(dev, channel); in dma_nxp_sdma_config()
281 chan_data = &dev_data->chan[channel]; in dma_nxp_sdma_config()
296 dma_nxp_sdma_setup_bd(dev, channel, config); in dma_nxp_sdma_config()
324 static int dma_nxp_sdma_start(const struct device *dev, uint32_t channel) in dma_nxp_sdma_start() argument
330 if (channel >= FSL_FEATURE_SDMA_MODULE_CHANNEL) { in dma_nxp_sdma_start()
331 LOG_ERR("%s: invalid channel %d", __func__, channel); in dma_nxp_sdma_start()
335 chan_data = &dev_data->chan[channel]; in dma_nxp_sdma_start()
337 SDMA_SetChannelPriority(dev_cfg->base, channel, DMA_NXP_SDMA_CHAN_DEFAULT_PRIO); in dma_nxp_sdma_start()
338 SDMA_StartChannelSoftware(dev_cfg->base, channel); in dma_nxp_sdma_start()
343 static int dma_nxp_sdma_stop(const struct device *dev, uint32_t channel) in dma_nxp_sdma_stop() argument
348 if (channel >= FSL_FEATURE_SDMA_MODULE_CHANNEL) { in dma_nxp_sdma_stop()
349 LOG_ERR("%s: invalid channel %d", __func__, channel); in dma_nxp_sdma_stop()
353 chan_data = &dev_data->chan[channel]; in dma_nxp_sdma_stop()
359 static int dma_nxp_sdma_get_status(const struct device *dev, uint32_t channel, in dma_nxp_sdma_get_status() argument
365 chan_data = &dev_data->chan[channel]; in dma_nxp_sdma_get_status()
373 static int dma_nxp_sdma_reload(const struct device *dev, uint32_t channel, uint32_t src, in dma_nxp_sdma_reload() argument
379 chan_data = &dev_data->chan[channel]; in dma_nxp_sdma_reload()