Lines Matching refs:io_to_abort
1837 struct efct_hw_io *io_to_abort = NULL; in efct_hw_io_abort_all() local
1840 list_for_each_entry_safe(io_to_abort, next_io, in efct_hw_io_abort_all()
1842 efct_hw_io_abort(hw, io_to_abort, true, NULL, NULL); in efct_hw_io_abort_all()
1930 efct_hw_io_abort(struct efct_hw *hw, struct efct_hw_io *io_to_abort, in efct_hw_io_abort() argument
1936 if (!io_to_abort) { in efct_hw_io_abort()
1938 hw, io_to_abort); in efct_hw_io_abort()
1949 if (kref_get_unless_zero(&io_to_abort->ref) == 0) { in efct_hw_io_abort()
1953 io_to_abort->indicator, io_to_abort->reqtag); in efct_hw_io_abort()
1958 if (!io_to_abort->wq) { in efct_hw_io_abort()
1960 io_to_abort->indicator); in efct_hw_io_abort()
1962 kref_put(&io_to_abort->ref, io_to_abort->release); in efct_hw_io_abort()
1970 if (cmpxchg(&io_to_abort->abort_in_progress, false, true)) { in efct_hw_io_abort()
1972 kref_put(&io_to_abort->ref, io_to_abort->release); in efct_hw_io_abort()
1975 io_to_abort->indicator, io_to_abort->reqtag); in efct_hw_io_abort()
1993 io_to_abort->abort_done = cb; in efct_hw_io_abort()
1994 io_to_abort->abort_arg = arg; in efct_hw_io_abort()
1997 wqcb = efct_hw_reqtag_alloc(hw, efct_hw_wq_process_abort, io_to_abort); in efct_hw_io_abort()
2003 io_to_abort->abort_reqtag = wqcb->instance_index; in efct_hw_io_abort()
2004 io_to_abort->wqe.send_abts = send_abts; in efct_hw_io_abort()
2005 io_to_abort->wqe.id = io_to_abort->indicator; in efct_hw_io_abort()
2006 io_to_abort->wqe.abort_reqtag = io_to_abort->abort_reqtag; in efct_hw_io_abort()
2012 if (io_to_abort->wq) { in efct_hw_io_abort()
2013 spin_lock_irqsave(&io_to_abort->wq->queue->lock, flags); in efct_hw_io_abort()
2014 if (io_to_abort->wqe.list_entry.next) { in efct_hw_io_abort()
2015 io_to_abort->wqe.abort_wqe_submit_needed = true; in efct_hw_io_abort()
2016 spin_unlock_irqrestore(&io_to_abort->wq->queue->lock, in efct_hw_io_abort()
2020 spin_unlock_irqrestore(&io_to_abort->wq->queue->lock, flags); in efct_hw_io_abort()
2023 efct_hw_fill_abort_wqe(hw, &io_to_abort->wqe); in efct_hw_io_abort()
2029 if (efct_hw_wq_write(io_to_abort->wq, &io_to_abort->wqe)) { in efct_hw_io_abort()
2030 io_to_abort->abort_in_progress = false; in efct_hw_io_abort()
2032 kref_put(&io_to_abort->ref, io_to_abort->release); in efct_hw_io_abort()