/** * vchan_issue_pending - move submitted descriptors to issued list * @vc: virtual channel to update * * vc.lock must be held by caller
*/ staticinlinebool vchan_issue_pending(struct virt_dma_chan *vc)
{
lockdep_assert_held(&vc->lock);
/** * vchan_cyclic_callback - report the completion of a period * @vd: virtual descriptor
*/ staticinlinevoid vchan_cyclic_callback(struct virt_dma_desc *vd)
{ struct virt_dma_chan *vc = to_virt_chan(vd->tx.chan);
vc->cyclic = vd;
tasklet_schedule(&vc->task);
}
/** * vchan_terminate_vdesc - Disable pending cyclic callback * @vd: virtual descriptor to be terminated * * vc.lock must be held by caller
*/ staticinlinevoid vchan_terminate_vdesc(struct virt_dma_desc *vd)
{ struct virt_dma_chan *vc = to_virt_chan(vd->tx.chan);
lockdep_assert_held(&vc->lock);
list_add_tail(&vd->node, &vc->desc_terminated);
if (vc->cyclic == vd)
vc->cyclic = NULL;
}
/** * vchan_next_desc - peek at the next descriptor to be processed * @vc: virtual channel to obtain descriptor from * * vc.lock must be held by caller
*/ staticinlinestruct virt_dma_desc *vchan_next_desc(struct virt_dma_chan *vc)
{
lockdep_assert_held(&vc->lock);
/** * vchan_get_all_descriptors - obtain all submitted and issued descriptors * @vc: virtual channel to get descriptors from * @head: list of descriptors found * * vc.lock must be held by caller * * Removes all submitted and issued descriptors from internal lists, and * provides a list of all descriptors found
*/ staticinlinevoid vchan_get_all_descriptors(struct virt_dma_chan *vc, struct list_head *head)
{
lockdep_assert_held(&vc->lock);
/** * vchan_synchronize() - synchronize callback execution to the current context * @vc: virtual channel to synchronize * * Makes sure that all scheduled or active callbacks have finished running. For * proper operation the caller has to ensure that no new callbacks are scheduled * after the invocation of this function started. * Free up the terminated cyclic descriptor to prevent memory leakage.
*/ staticinlinevoid vchan_synchronize(struct virt_dma_chan *vc)
{
LIST_HEAD(head); unsignedlong flags;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.