Lines Matching refs:channel

191 			       uint32_t channel, int status);
315 typedef int (*dma_api_config)(const struct device *dev, uint32_t channel,
319 typedef int (*dma_api_reload)(const struct device *dev, uint32_t channel,
322 typedef int (*dma_api_reload)(const struct device *dev, uint32_t channel,
326 typedef int (*dma_api_start)(const struct device *dev, uint32_t channel);
328 typedef int (*dma_api_stop)(const struct device *dev, uint32_t channel);
330 typedef int (*dma_api_suspend)(const struct device *dev, uint32_t channel);
332 typedef int (*dma_api_resume)(const struct device *dev, uint32_t channel);
334 typedef int (*dma_api_get_status)(const struct device *dev, uint32_t channel,
353 int channel, void *filter_param);
367 uint32_t channel);
396 static inline int dma_config(const struct device *dev, uint32_t channel, in dma_config() argument
402 return api->config(dev, channel, config); in dma_config()
419 static inline int dma_reload(const struct device *dev, uint32_t channel, in dma_reload() argument
422 static inline int dma_reload(const struct device *dev, uint32_t channel, in dma_reload()
430 return api->reload(dev, channel, src, dst, size); in dma_reload()
455 __syscall int dma_start(const struct device *dev, uint32_t channel);
457 static inline int z_impl_dma_start(const struct device *dev, uint32_t channel) in z_impl_dma_start() argument
462 return api->start(dev, channel); in z_impl_dma_start()
483 __syscall int dma_stop(const struct device *dev, uint32_t channel);
485 static inline int z_impl_dma_stop(const struct device *dev, uint32_t channel) in z_impl_dma_stop() argument
490 return api->stop(dev, channel); in z_impl_dma_stop()
510 __syscall int dma_suspend(const struct device *dev, uint32_t channel);
512 static inline int z_impl_dma_suspend(const struct device *dev, uint32_t channel) in z_impl_dma_suspend() argument
519 return api->suspend(dev, channel); in z_impl_dma_suspend()
538 __syscall int dma_resume(const struct device *dev, uint32_t channel);
540 static inline int z_impl_dma_resume(const struct device *dev, uint32_t channel) in z_impl_dma_resume() argument
547 return api->resume(dev, channel); in z_impl_dma_resume()
573 int channel = -EINVAL; in z_impl_dma_request_channel() local
580 return channel; in z_impl_dma_request_channel()
590 channel = i; in z_impl_dma_request_channel()
595 return channel; in z_impl_dma_request_channel()
612 uint32_t channel);
615 uint32_t channel) in z_impl_dma_release_channel() argument
625 if ((int)channel < dma_ctx->dma_channels) { in z_impl_dma_release_channel()
627 api->chan_release(dev, channel); in z_impl_dma_release_channel()
630 atomic_clear_bit(dma_ctx->atomic, channel); in z_impl_dma_release_channel()
648 int channel, void *filter_param);
651 int channel, void *filter_param) in z_impl_dma_chan_filter() argument
657 return api->chan_filter(dev, channel, filter_param); in z_impl_dma_chan_filter()
679 static inline int dma_get_status(const struct device *dev, uint32_t channel, in dma_get_status() argument
686 return api->get_status(dev, channel, stat); in dma_get_status()