Lines Matching refs:txd
193 struct owl_dma_txd *txd; member
337 static struct owl_dma_lli *owl_dma_add_lli(struct owl_dma_txd *txd, in owl_dma_add_lli() argument
341 list_add_tail(&next->node, &txd->lli_list); in owl_dma_add_lli()
451 struct owl_dma_txd *txd = to_owl_txd(&vd->tx); in owl_dma_start_next_txd() local
458 vchan->txd = txd; in owl_dma_start_next_txd()
464 lli = list_first_entry(&txd->lli_list, in owl_dma_start_next_txd()
549 struct owl_dma_txd *txd; in owl_dma_interrupt() local
562 txd = vchan->txd; in owl_dma_interrupt()
563 if (txd) { in owl_dma_interrupt()
564 vchan->txd = NULL; in owl_dma_interrupt()
566 vchan_cookie_complete(&txd->vd); in owl_dma_interrupt()
584 static void owl_dma_free_txd(struct owl_dma *od, struct owl_dma_txd *txd) in owl_dma_free_txd() argument
588 if (unlikely(!txd)) in owl_dma_free_txd()
591 list_for_each_entry_safe(lli, _lli, &txd->lli_list, node) in owl_dma_free_txd()
594 kfree(txd); in owl_dma_free_txd()
600 struct owl_dma_txd *txd = to_owl_txd(&vd->tx); in owl_dma_desc_free() local
602 owl_dma_free_txd(od, txd); in owl_dma_desc_free()
617 if (vchan->txd) { in owl_dma_terminate_all()
618 owl_dma_desc_free(&vchan->txd->vd); in owl_dma_terminate_all()
619 vchan->txd = NULL; in owl_dma_terminate_all()
633 struct owl_dma_txd *txd; in owl_dma_getbytes_chan() local
639 txd = vchan->txd; in owl_dma_getbytes_chan()
641 if (!pchan || !txd) in owl_dma_getbytes_chan()
650 list_for_each_entry(lli, &txd->lli_list, node) { in owl_dma_getbytes_chan()
653 list_for_each_entry(lli, &txd->lli_list, node) in owl_dma_getbytes_chan()
670 struct owl_dma_txd *txd; in owl_dma_tx_status() local
683 txd = to_owl_txd(&vd->tx); in owl_dma_tx_status()
684 list_for_each_entry(lli, &txd->lli_list, node) in owl_dma_tx_status()
732 struct owl_dma_txd *txd; in owl_dma_prep_memcpy() local
740 txd = kzalloc(sizeof(*txd), GFP_NOWAIT); in owl_dma_prep_memcpy()
741 if (!txd) in owl_dma_prep_memcpy()
744 INIT_LIST_HEAD(&txd->lli_list); in owl_dma_prep_memcpy()
763 prev = owl_dma_add_lli(txd, prev, lli); in owl_dma_prep_memcpy()
766 return vchan_tx_prep(&vchan->vc, &txd->vd, flags); in owl_dma_prep_memcpy()
769 owl_dma_free_txd(od, txd); in owl_dma_prep_memcpy()