Lines Matching refs:async_tx

39 	container_of(tx, struct mv_xor_desc_slot, async_tx)
201 mv_chan_set_next_descriptor(mv_chan, sw_desc->async_tx.phys); in mv_xor_start_new_chain()
211 BUG_ON(desc->async_tx.cookie < 0); in mv_xor_run_tx_complete_actions()
213 if (desc->async_tx.cookie > 0) { in mv_xor_run_tx_complete_actions()
214 cookie = desc->async_tx.cookie; in mv_xor_run_tx_complete_actions()
219 if (desc->async_tx.callback) in mv_xor_run_tx_complete_actions()
220 desc->async_tx.callback( in mv_xor_run_tx_complete_actions()
221 desc->async_tx.callback_param); in mv_xor_run_tx_complete_actions()
223 dma_descriptor_unmap(&desc->async_tx); in mv_xor_run_tx_complete_actions()
227 dma_run_dependencies(&desc->async_tx); in mv_xor_run_tx_complete_actions()
241 if (async_tx_test_ack(&iter->async_tx)) { in mv_xor_clean_completed_slots()
254 __func__, __LINE__, desc, desc->async_tx.flags); in mv_xor_clean_slot()
259 if (!async_tx_test_ack(&desc->async_tx)) { in mv_xor_clean_slot()
300 if (iter->async_tx.phys == current_desc) { in mv_xor_slot_cleanup()
305 if (iter->async_tx.phys == current_desc) { in mv_xor_slot_cleanup()
377 prefetch(&_iter->async_tx); in mv_xor_alloc_slot()
388 async_tx_ack(&iter->async_tx); in mv_xor_alloc_slot()
392 iter->async_tx.cookie = -EBUSY; in mv_xor_alloc_slot()
420 __func__, sw_desc, &sw_desc->async_tx); in mv_xor_tx_submit()
436 &old_chain_tail->async_tx.phys); in mv_xor_tx_submit()
439 mv_desc_set_next_desc(old_chain_tail, sw_desc->async_tx.phys); in mv_xor_tx_submit()
448 if (current_desc == old_chain_tail->async_tx.phys) in mv_xor_tx_submit()
484 dma_async_tx_descriptor_init(&slot->async_tx, chan); in mv_xor_alloc_chan_resources()
485 slot->async_tx.tx_submit = mv_xor_tx_submit; in mv_xor_alloc_chan_resources()
489 slot->async_tx.phys = dma_desc + idx * MV_XOR_SLOT_SIZE; in mv_xor_alloc_chan_resources()
530 sw_desc->async_tx.flags = flags; in mv_xor_prep_dma_xor()
538 __func__, sw_desc, &sw_desc->async_tx); in mv_xor_prep_dma_xor()
539 return sw_desc ? &sw_desc->async_tx : NULL; in mv_xor_prep_dma_xor()