diff options
Diffstat (limited to 'include/linux/dmaengine.h')
-rw-r--r-- | include/linux/dmaengine.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h index feee6ec6a13b..533680860865 100644 --- a/include/linux/dmaengine.h +++ b/include/linux/dmaengine.h | |||
@@ -894,6 +894,17 @@ static inline struct dma_async_tx_descriptor *dmaengine_prep_dma_memset( | |||
894 | len, flags); | 894 | len, flags); |
895 | } | 895 | } |
896 | 896 | ||
897 | static inline struct dma_async_tx_descriptor *dmaengine_prep_dma_memcpy( | ||
898 | struct dma_chan *chan, dma_addr_t dest, dma_addr_t src, | ||
899 | size_t len, unsigned long flags) | ||
900 | { | ||
901 | if (!chan || !chan->device || !chan->device->device_prep_dma_memcpy) | ||
902 | return NULL; | ||
903 | |||
904 | return chan->device->device_prep_dma_memcpy(chan, dest, src, | ||
905 | len, flags); | ||
906 | } | ||
907 | |||
897 | static inline struct dma_async_tx_descriptor *dmaengine_prep_dma_sg( | 908 | static inline struct dma_async_tx_descriptor *dmaengine_prep_dma_sg( |
898 | struct dma_chan *chan, | 909 | struct dma_chan *chan, |
899 | struct scatterlist *dst_sg, unsigned int dst_nents, | 910 | struct scatterlist *dst_sg, unsigned int dst_nents, |