Lines Matching refs:iter

258 	struct mv_xor_desc_slot *iter, *_iter;  in mv_chan_clean_completed_slots()  local
261 list_for_each_entry_safe(iter, _iter, &mv_chan->completed_slots, in mv_chan_clean_completed_slots()
264 if (async_tx_test_ack(&iter->async_tx)) in mv_chan_clean_completed_slots()
265 list_move_tail(&iter->node, &mv_chan->free_slots); in mv_chan_clean_completed_slots()
292 struct mv_xor_desc_slot *iter, *_iter; in mv_chan_slot_cleanup() local
307 list_for_each_entry_safe(iter, _iter, &mv_chan->chain, in mv_chan_slot_cleanup()
311 hw_desc = iter->hw_desc; in mv_chan_slot_cleanup()
313 cookie = mv_desc_run_tx_complete_actions(iter, mv_chan, in mv_chan_slot_cleanup()
317 mv_desc_clean_slot(iter, mv_chan); in mv_chan_slot_cleanup()
320 if (iter->async_tx.phys == current_desc) { in mv_chan_slot_cleanup()
325 if (iter->async_tx.phys == current_desc) { in mv_chan_slot_cleanup()
338 iter = list_entry(mv_chan->chain.next, in mv_chan_slot_cleanup()
341 mv_chan_start_new_chain(mv_chan, iter); in mv_chan_slot_cleanup()
343 if (!list_is_last(&iter->node, &mv_chan->chain)) { in mv_chan_slot_cleanup()
348 iter = list_entry(iter->node.next, in mv_chan_slot_cleanup()
351 mv_chan_start_new_chain(mv_chan, iter); in mv_chan_slot_cleanup()
378 struct mv_xor_desc_slot *iter; in mv_chan_alloc_slot() local
383 iter = list_first_entry(&mv_chan->free_slots, in mv_chan_alloc_slot()
387 list_move_tail(&iter->node, &mv_chan->allocated_slots); in mv_chan_alloc_slot()
392 async_tx_ack(&iter->async_tx); in mv_chan_alloc_slot()
393 iter->async_tx.cookie = -EBUSY; in mv_chan_alloc_slot()
395 return iter; in mv_chan_alloc_slot()
568 struct mv_xor_desc_slot *iter, *_iter; in mv_xor_free_chan_resources() local
575 list_for_each_entry_safe(iter, _iter, &mv_chan->chain, in mv_xor_free_chan_resources()
578 list_move_tail(&iter->node, &mv_chan->free_slots); in mv_xor_free_chan_resources()
580 list_for_each_entry_safe(iter, _iter, &mv_chan->completed_slots, in mv_xor_free_chan_resources()
583 list_move_tail(&iter->node, &mv_chan->free_slots); in mv_xor_free_chan_resources()
585 list_for_each_entry_safe(iter, _iter, &mv_chan->allocated_slots, in mv_xor_free_chan_resources()
588 list_move_tail(&iter->node, &mv_chan->free_slots); in mv_xor_free_chan_resources()
591 iter, _iter, &mv_chan->free_slots, node) { in mv_xor_free_chan_resources()
592 list_del(&iter->node); in mv_xor_free_chan_resources()
593 kfree(iter); in mv_xor_free_chan_resources()