Lines Matching refs:chan

294 	struct dma_chan *chan;  member
438 static inline const char *dma_chan_name(struct dma_chan *chan) in dma_chan_name() argument
440 return dev_name(&chan->dev->device); in dma_chan_name()
456 typedef bool (*dma_filter_fn)(struct dma_chan *chan, void *filter_param);
512 struct dma_chan *chan; member
762 int (*device_alloc_chan_resources)(struct dma_chan *chan);
763 void (*device_free_chan_resources)(struct dma_chan *chan);
766 struct dma_chan *chan, dma_addr_t dst, dma_addr_t src,
769 struct dma_chan *chan, dma_addr_t dst, dma_addr_t *src,
772 struct dma_chan *chan, dma_addr_t *src, unsigned int src_cnt,
775 struct dma_chan *chan, dma_addr_t *dst, dma_addr_t *src,
779 struct dma_chan *chan, dma_addr_t *pq, dma_addr_t *src,
783 struct dma_chan *chan, dma_addr_t dest, int value, size_t len,
786 struct dma_chan *chan, struct scatterlist *sg,
789 struct dma_chan *chan, unsigned long flags);
792 struct dma_chan *chan, struct scatterlist *sgl,
796 struct dma_chan *chan, dma_addr_t buf_addr, size_t buf_len,
800 struct dma_chan *chan, struct dma_interleaved_template *xt,
803 struct dma_chan *chan, dma_addr_t dst, u64 data,
806 int (*device_config)(struct dma_chan *chan,
808 int (*device_pause)(struct dma_chan *chan);
809 int (*device_resume)(struct dma_chan *chan);
810 int (*device_terminate_all)(struct dma_chan *chan);
811 void (*device_synchronize)(struct dma_chan *chan);
813 enum dma_status (*device_tx_status)(struct dma_chan *chan,
816 void (*device_issue_pending)(struct dma_chan *chan);
819 static inline int dmaengine_slave_config(struct dma_chan *chan, in dmaengine_slave_config() argument
822 if (chan->device->device_config) in dmaengine_slave_config()
823 return chan->device->device_config(chan, config); in dmaengine_slave_config()
834 struct dma_chan *chan, dma_addr_t buf, size_t len, in dmaengine_prep_slave_single() argument
842 if (!chan || !chan->device || !chan->device->device_prep_slave_sg) in dmaengine_prep_slave_single()
845 return chan->device->device_prep_slave_sg(chan, &sg, 1, in dmaengine_prep_slave_single()
850 struct dma_chan *chan, struct scatterlist *sgl, unsigned int sg_len, in dmaengine_prep_slave_sg() argument
853 if (!chan || !chan->device || !chan->device->device_prep_slave_sg) in dmaengine_prep_slave_sg()
856 return chan->device->device_prep_slave_sg(chan, sgl, sg_len, in dmaengine_prep_slave_sg()
863 struct dma_chan *chan, struct scatterlist *sgl, unsigned int sg_len, in dmaengine_prep_rio_sg() argument
867 if (!chan || !chan->device || !chan->device->device_prep_slave_sg) in dmaengine_prep_rio_sg()
870 return chan->device->device_prep_slave_sg(chan, sgl, sg_len, in dmaengine_prep_rio_sg()
876 struct dma_chan *chan, dma_addr_t buf_addr, size_t buf_len, in dmaengine_prep_dma_cyclic() argument
880 if (!chan || !chan->device || !chan->device->device_prep_dma_cyclic) in dmaengine_prep_dma_cyclic()
883 return chan->device->device_prep_dma_cyclic(chan, buf_addr, buf_len, in dmaengine_prep_dma_cyclic()
888 struct dma_chan *chan, struct dma_interleaved_template *xt, in dmaengine_prep_interleaved_dma() argument
891 if (!chan || !chan->device || !chan->device->device_prep_interleaved_dma) in dmaengine_prep_interleaved_dma()
894 return chan->device->device_prep_interleaved_dma(chan, xt, flags); in dmaengine_prep_interleaved_dma()
898 struct dma_chan *chan, dma_addr_t dest, int value, size_t len, in dmaengine_prep_dma_memset() argument
901 if (!chan || !chan->device || !chan->device->device_prep_dma_memset) in dmaengine_prep_dma_memset()
904 return chan->device->device_prep_dma_memset(chan, dest, value, in dmaengine_prep_dma_memset()
909 struct dma_chan *chan, dma_addr_t dest, dma_addr_t src, in dmaengine_prep_dma_memcpy() argument
912 if (!chan || !chan->device || !chan->device->device_prep_dma_memcpy) in dmaengine_prep_dma_memcpy()
915 return chan->device->device_prep_dma_memcpy(chan, dest, src, in dmaengine_prep_dma_memcpy()
926 static inline int dmaengine_terminate_all(struct dma_chan *chan) in dmaengine_terminate_all() argument
928 if (chan->device->device_terminate_all) in dmaengine_terminate_all()
929 return chan->device->device_terminate_all(chan); in dmaengine_terminate_all()
955 static inline int dmaengine_terminate_async(struct dma_chan *chan) in dmaengine_terminate_async() argument
957 if (chan->device->device_terminate_all) in dmaengine_terminate_async()
958 return chan->device->device_terminate_all(chan); in dmaengine_terminate_async()
981 static inline void dmaengine_synchronize(struct dma_chan *chan) in dmaengine_synchronize() argument
985 if (chan->device->device_synchronize) in dmaengine_synchronize()
986 chan->device->device_synchronize(chan); in dmaengine_synchronize()
1003 static inline int dmaengine_terminate_sync(struct dma_chan *chan) in dmaengine_terminate_sync() argument
1007 ret = dmaengine_terminate_async(chan); in dmaengine_terminate_sync()
1011 dmaengine_synchronize(chan); in dmaengine_terminate_sync()
1016 static inline int dmaengine_pause(struct dma_chan *chan) in dmaengine_pause() argument
1018 if (chan->device->device_pause) in dmaengine_pause()
1019 return chan->device->device_pause(chan); in dmaengine_pause()
1024 static inline int dmaengine_resume(struct dma_chan *chan) in dmaengine_resume() argument
1026 if (chan->device->device_resume) in dmaengine_resume()
1027 return chan->device->device_resume(chan); in dmaengine_resume()
1032 static inline enum dma_status dmaengine_tx_status(struct dma_chan *chan, in dmaengine_tx_status() argument
1035 return chan->device->device_tx_status(chan, cookie, state); in dmaengine_tx_status()
1197 struct dma_chan *chan);
1251 static inline void dma_async_issue_pending(struct dma_chan *chan) in dma_async_issue_pending() argument
1253 chan->device->device_issue_pending(chan); in dma_async_issue_pending()
1267 static inline enum dma_status dma_async_is_tx_complete(struct dma_chan *chan, in dma_async_is_tx_complete() argument
1273 status = chan->device->device_tx_status(chan, cookie, &state); in dma_async_is_tx_complete()
1315 enum dma_status dma_sync_wait(struct dma_chan *chan, dma_cookie_t cookie);
1325 void dma_release_channel(struct dma_chan *chan);
1326 int dma_get_slave_caps(struct dma_chan *chan, struct dma_slave_caps *caps);
1332 static inline enum dma_status dma_sync_wait(struct dma_chan *chan, dma_cookie_t cookie) in dma_sync_wait() argument
1363 static inline void dma_release_channel(struct dma_chan *chan) in dma_release_channel() argument
1366 static inline int dma_get_slave_caps(struct dma_chan *chan, in dma_get_slave_caps() argument
1380 ret = dma_get_slave_caps(tx->chan, &caps); in dmaengine_desc_set_reuse()
1417 struct dma_chan *dma_get_slave_channel(struct dma_chan *chan);
1428 struct dma_chan *chan; in __dma_request_slave_channel_compat() local
1430 chan = dma_request_slave_channel(dev, name); in __dma_request_slave_channel_compat()
1431 if (chan) in __dma_request_slave_channel_compat()
1432 return chan; in __dma_request_slave_channel_compat()