Lines Matching refs:tx
73 static dma_cookie_t shdma_tx_submit(struct dma_async_tx_descriptor *tx) in shdma_tx_submit() argument
76 container_of(tx, struct shdma_desc, async_tx); in shdma_tx_submit()
77 struct shdma_chan *schan = to_shdma_chan(tx->chan); in shdma_tx_submit()
78 dma_async_tx_callback callback = tx->callback; in shdma_tx_submit()
86 cookie = dma_cookie_assign(tx); in shdma_tx_submit()
102 chunk->async_tx.callback_param = tx->callback_param; in shdma_tx_submit()
111 tx->cookie, &chunk->async_tx, schan->id); in shdma_tx_submit()
339 struct dma_async_tx_descriptor *tx = &desc->async_tx; in __ld_cleanup() local
341 BUG_ON(tx->cookie > 0 && tx->cookie != desc->cookie); in __ld_cleanup()
355 if (tx->cookie > 0) in __ld_cleanup()
356 cookie = tx->cookie; in __ld_cleanup()
368 if (desc->mark == DESC_COMPLETED && tx->callback) { in __ld_cleanup()
370 callback = tx->callback; in __ld_cleanup()
371 param = tx->callback_param; in __ld_cleanup()
373 tx->cookie, tx, schan->id); in __ld_cleanup()
378 if (tx->cookie > 0 || tx->cookie == -EBUSY) { in __ld_cleanup()
380 BUG_ON(tx->cookie < 0); in __ld_cleanup()
383 head_acked = async_tx_test_ack(tx); in __ld_cleanup()
396 tx, tx->cookie); in __ld_cleanup()
887 struct dma_async_tx_descriptor *tx = &sdesc->async_tx; in shdma_reset() local
889 if (tx->callback) in shdma_reset()
890 tx->callback(tx->callback_param); in shdma_reset()