Lines Matching refs:tx
91 struct dma_async_tx_descriptor *tx; in mic_dma_cleanup() local
104 tx = &ch->tx_array[last_tail]; in mic_dma_cleanup()
105 if (tx->cookie) { in mic_dma_cleanup()
106 dma_cookie_complete(tx); in mic_dma_cleanup()
107 if (tx->callback) { in mic_dma_cleanup()
108 tx->callback(tx->callback_param); in mic_dma_cleanup()
109 tx->callback = NULL; in mic_dma_cleanup()
251 static dma_cookie_t mic_dma_tx_submit_unlock(struct dma_async_tx_descriptor *tx) in mic_dma_tx_submit_unlock() argument
253 struct mic_dma_chan *mic_ch = to_mic_dma_chan(tx->chan); in mic_dma_tx_submit_unlock()
256 dma_cookie_assign(tx); in mic_dma_tx_submit_unlock()
257 cookie = tx->cookie; in mic_dma_tx_submit_unlock()
274 struct dma_async_tx_descriptor *tx = &ch->tx_array[idx]; in allocate_tx() local
276 dma_async_tx_descriptor_init(tx, &ch->api_ch); in allocate_tx()
277 tx->tx_submit = mic_dma_tx_submit_unlock; in allocate_tx()
278 return tx; in allocate_tx()
518 struct dma_async_tx_descriptor *tx; in mic_dma_drain_chan() local
522 tx = mic_dma_prep_memcpy_lock(&ch->api_ch, 0, 0, 0, DMA_PREP_FENCE); in mic_dma_drain_chan()
523 if (!tx) { in mic_dma_drain_chan()
528 cookie = tx->tx_submit(tx); in mic_dma_drain_chan()