Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321117
b: refs/heads/master
c: fe04587
h: refs/heads/master
i:
  321115: 008bcbe
v: v3
  • Loading branch information
Russell King committed Jul 1, 2012
1 parent 32d74f1 commit f57d0cc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 50437bff7f7374f86837986f66e15e73a364f894
refs/heads/master: fe045874aaf4480386c65baf1acae82af4c5e21f
13 changes: 13 additions & 0 deletions trunk/drivers/dma/virt-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,19 @@ dma_cookie_t vchan_tx_submit(struct dma_async_tx_descriptor *tx)
}
EXPORT_SYMBOL_GPL(vchan_tx_submit);

struct virt_dma_desc *vchan_find_desc(struct virt_dma_chan *vc,
dma_cookie_t cookie)
{
struct virt_dma_desc *vd;

list_for_each_entry(vd, &vc->desc_issued, node)
if (vd->tx.cookie == cookie)
return vd;

return NULL;
}
EXPORT_SYMBOL_GPL(vchan_find_desc);

/*
* This tasklet handles the completion of a DMA descriptor by
* calling its callback and freeing it.
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/dma/virt-dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ static inline struct virt_dma_chan *to_virt_chan(struct dma_chan *chan)
}

void vchan_dma_desc_free_list(struct virt_dma_chan *vc, struct list_head *head);

void vchan_init(struct virt_dma_chan *vc, struct dma_device *dmadev);
struct virt_dma_desc *vchan_find_desc(struct virt_dma_chan *, dma_cookie_t);

/**
* vchan_tx_prep - prepare a descriptor
Expand Down

0 comments on commit f57d0cc

Please sign in to comment.