Lines Matching refs:io_to_abort
1838 struct efct_hw_io *io_to_abort = NULL; in efct_hw_io_abort_all() local
1841 list_for_each_entry_safe(io_to_abort, next_io, in efct_hw_io_abort_all()
1843 efct_hw_io_abort(hw, io_to_abort, true, NULL, NULL); in efct_hw_io_abort_all()
1931 efct_hw_io_abort(struct efct_hw *hw, struct efct_hw_io *io_to_abort, in efct_hw_io_abort() argument
1937 if (!io_to_abort) { in efct_hw_io_abort()
1939 hw, io_to_abort); in efct_hw_io_abort()
1950 if (kref_get_unless_zero(&io_to_abort->ref) == 0) { in efct_hw_io_abort()
1954 io_to_abort->indicator, io_to_abort->reqtag); in efct_hw_io_abort()
1959 if (!io_to_abort->wq) { in efct_hw_io_abort()
1961 io_to_abort->indicator); in efct_hw_io_abort()
1963 kref_put(&io_to_abort->ref, io_to_abort->release); in efct_hw_io_abort()
1971 if (cmpxchg(&io_to_abort->abort_in_progress, false, true)) { in efct_hw_io_abort()
1973 kref_put(&io_to_abort->ref, io_to_abort->release); in efct_hw_io_abort()
1976 io_to_abort->indicator, io_to_abort->reqtag); in efct_hw_io_abort()
1994 io_to_abort->abort_done = cb; in efct_hw_io_abort()
1995 io_to_abort->abort_arg = arg; in efct_hw_io_abort()
1998 wqcb = efct_hw_reqtag_alloc(hw, efct_hw_wq_process_abort, io_to_abort); in efct_hw_io_abort()
2004 io_to_abort->abort_reqtag = wqcb->instance_index; in efct_hw_io_abort()
2005 io_to_abort->wqe.send_abts = send_abts; in efct_hw_io_abort()
2006 io_to_abort->wqe.id = io_to_abort->indicator; in efct_hw_io_abort()
2007 io_to_abort->wqe.abort_reqtag = io_to_abort->abort_reqtag; in efct_hw_io_abort()
2013 if (io_to_abort->wq) { in efct_hw_io_abort()
2014 spin_lock_irqsave(&io_to_abort->wq->queue->lock, flags); in efct_hw_io_abort()
2015 if (io_to_abort->wqe.list_entry.next) { in efct_hw_io_abort()
2016 io_to_abort->wqe.abort_wqe_submit_needed = true; in efct_hw_io_abort()
2017 spin_unlock_irqrestore(&io_to_abort->wq->queue->lock, in efct_hw_io_abort()
2021 spin_unlock_irqrestore(&io_to_abort->wq->queue->lock, flags); in efct_hw_io_abort()
2024 efct_hw_fill_abort_wqe(hw, &io_to_abort->wqe); in efct_hw_io_abort()
2030 if (efct_hw_wq_write(io_to_abort->wq, &io_to_abort->wqe)) { in efct_hw_io_abort()
2031 io_to_abort->abort_in_progress = false; in efct_hw_io_abort()
2033 kref_put(&io_to_abort->ref, io_to_abort->release); in efct_hw_io_abort()