diff options
Diffstat (limited to 'drivers/dma/virt-dma.c')
| -rw-r--r-- | drivers/dma/virt-dma.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/dma/virt-dma.c b/drivers/dma/virt-dma.c index bd85b052b481..a8054fc40cef 100644 --- a/drivers/dma/virt-dma.c +++ b/drivers/dma/virt-dma.c | |||
| @@ -39,6 +39,19 @@ dma_cookie_t vchan_tx_submit(struct dma_async_tx_descriptor *tx) | |||
| 39 | } | 39 | } |
| 40 | EXPORT_SYMBOL_GPL(vchan_tx_submit); | 40 | EXPORT_SYMBOL_GPL(vchan_tx_submit); |
| 41 | 41 | ||
| 42 | struct virt_dma_desc *vchan_find_desc(struct virt_dma_chan *vc, | ||
| 43 | dma_cookie_t cookie) | ||
| 44 | { | ||
| 45 | struct virt_dma_desc *vd; | ||
| 46 | |||
| 47 | list_for_each_entry(vd, &vc->desc_issued, node) | ||
| 48 | if (vd->tx.cookie == cookie) | ||
| 49 | return vd; | ||
| 50 | |||
| 51 | return NULL; | ||
| 52 | } | ||
| 53 | EXPORT_SYMBOL_GPL(vchan_find_desc); | ||
| 54 | |||
| 42 | /* | 55 | /* |
| 43 | * This tasklet handles the completion of a DMA descriptor by | 56 | * This tasklet handles the completion of a DMA descriptor by |
| 44 | * calling its callback and freeing it. | 57 | * calling its callback and freeing it. |
