Lines Matching refs:depend_tx
46 struct dma_async_tx_descriptor *depend_tx = submit->depend_tx; in __async_tx_find_channel() local
49 if (depend_tx && in __async_tx_find_channel()
50 dma_has_cap(tx_type, depend_tx->chan->device->cap_mask)) in __async_tx_find_channel()
51 return depend_tx->chan; in __async_tx_find_channel()
65 async_tx_channel_switch(struct dma_async_tx_descriptor *depend_tx, in async_tx_channel_switch() argument
68 struct dma_chan *chan = depend_tx->chan; in async_tx_channel_switch()
73 txd_lock(depend_tx); in async_tx_channel_switch()
74 if (txd_parent(depend_tx) && depend_tx->chan == tx->chan) { in async_tx_channel_switch()
75 txd_chain(depend_tx, tx); in async_tx_channel_switch()
78 txd_unlock(depend_tx); in async_tx_channel_switch()
103 txd_lock(depend_tx); in async_tx_channel_switch()
104 if (txd_parent(depend_tx)) { in async_tx_channel_switch()
105 txd_chain(depend_tx, intr_tx); in async_tx_channel_switch()
109 txd_unlock(depend_tx); in async_tx_channel_switch()
118 if (dma_wait_for_async_tx(depend_tx) != DMA_COMPLETE) in async_tx_channel_switch()
146 struct dma_async_tx_descriptor *depend_tx = submit->depend_tx; in async_tx_submit() local
151 if (depend_tx) { in async_tx_submit()
160 BUG_ON(async_tx_test_ack(depend_tx) || txd_next(depend_tx) || in async_tx_submit()
166 txd_lock(depend_tx); in async_tx_submit()
167 if (txd_parent(depend_tx)) { in async_tx_submit()
172 if (depend_tx->chan == chan) { in async_tx_submit()
173 txd_chain(depend_tx, tx); in async_tx_submit()
181 if (depend_tx->chan == chan) in async_tx_submit()
186 txd_unlock(depend_tx); in async_tx_submit()
192 async_tx_channel_switch(depend_tx, tx); in async_tx_submit()
207 if (depend_tx) in async_tx_submit()
208 async_tx_ack(depend_tx); in async_tx_submit()
226 struct dma_async_tx_descriptor *depend_tx = submit->depend_tx; in async_trigger_callback() local
228 if (depend_tx) { in async_trigger_callback()
229 chan = depend_tx->chan; in async_trigger_callback()
250 async_tx_quiesce(&submit->depend_tx); in async_trigger_callback()