diff options
author | Dan Williams <dan.j.williams@intel.com> | 2008-02-03 03:49:59 +0100 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2008-02-06 18:12:18 +0100 |
commit | 47437b2c9a64315efeb3d84e97ffefd6c3c67ef1 (patch) | |
tree | e0dec7b29bebb0a2113f143576d940c571869aa0 /crypto/async_tx/async_memcpy.c | |
parent | async_tx: replace 'int_en' with operation preparation flags (diff) | |
download | linux-47437b2c9a64315efeb3d84e97ffefd6c3c67ef1.tar.xz linux-47437b2c9a64315efeb3d84e97ffefd6c3c67ef1.zip |
async_tx: allow architecture specific async_tx_find_channel implementations
The source and destination addresses are included to allow channel
selection based on address alignment.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Reviewed-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Diffstat (limited to 'crypto/async_tx/async_memcpy.c')
-rw-r--r-- | crypto/async_tx/async_memcpy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/async_tx/async_memcpy.c b/crypto/async_tx/async_memcpy.c index 25dcf33bbc2d..0f6282207b32 100644 --- a/crypto/async_tx/async_memcpy.c +++ b/crypto/async_tx/async_memcpy.c @@ -46,7 +46,8 @@ async_memcpy(struct page *dest, struct page *src, unsigned int dest_offset, struct dma_async_tx_descriptor *depend_tx, dma_async_tx_callback cb_fn, void *cb_param) { - struct dma_chan *chan = async_tx_find_channel(depend_tx, DMA_MEMCPY); + struct dma_chan *chan = async_tx_find_channel(depend_tx, DMA_MEMCPY, + &dest, 1, &src, 1, len); struct dma_device *device = chan ? chan->device : NULL; struct dma_async_tx_descriptor *tx = NULL; |