Lines Matching refs:tx
90 struct dma_async_tx_descriptor *tx; in mic_dma_cleanup() local
103 tx = &ch->tx_array[last_tail]; in mic_dma_cleanup()
104 if (tx->cookie) { in mic_dma_cleanup()
105 dma_cookie_complete(tx); in mic_dma_cleanup()
106 if (tx->callback) { in mic_dma_cleanup()
107 tx->callback(tx->callback_param); in mic_dma_cleanup()
108 tx->callback = NULL; in mic_dma_cleanup()
242 static dma_cookie_t mic_dma_tx_submit_unlock(struct dma_async_tx_descriptor *tx) in mic_dma_tx_submit_unlock() argument
244 struct mic_dma_chan *mic_ch = to_mic_dma_chan(tx->chan); in mic_dma_tx_submit_unlock()
247 dma_cookie_assign(tx); in mic_dma_tx_submit_unlock()
248 cookie = tx->cookie; in mic_dma_tx_submit_unlock()
265 struct dma_async_tx_descriptor *tx = &ch->tx_array[idx]; in allocate_tx() local
267 dma_async_tx_descriptor_init(tx, &ch->api_ch); in allocate_tx()
268 tx->tx_submit = mic_dma_tx_submit_unlock; in allocate_tx()
269 return tx; in allocate_tx()
482 struct dma_async_tx_descriptor *tx; in mic_dma_drain_chan() local
486 tx = mic_dma_prep_memcpy_lock(&ch->api_ch, 0, 0, 0, DMA_PREP_FENCE); in mic_dma_drain_chan()
487 if (!tx) { in mic_dma_drain_chan()
492 cookie = tx->tx_submit(tx); in mic_dma_drain_chan()