Lines Matching refs:io_req
720 struct qedf_ioreq *io_req; in qedf_eh_abort() local
743 io_req = qedf_priv(sc_cmd)->io_req; in qedf_eh_abort()
744 if (!io_req) { in qedf_eh_abort()
753 rval = kref_get_unless_zero(&io_req->refcount); /* ID: 005 */ in qedf_eh_abort()
758 if (!rval || io_req->sc_cmd != sc_cmd) { in qedf_eh_abort()
761 io_req->sc_cmd, sc_cmd, rdata->ids.port_id); in qedf_eh_abort()
767 refcount = kref_read(&io_req->refcount); in qedf_eh_abort()
770 io_req, io_req->xid, sc_cmd, sc_cmd->cmnd[0], in qedf_eh_abort()
783 io_req->xid, rdata->ids.port_id); in qedf_eh_abort()
784 while (io_req->sc_cmd && (wait_count != 0)) { in qedf_eh_abort()
805 io_req, sc_cmd, io_req->xid, io_req->fp_idx, in qedf_eh_abort()
814 init_completion(&io_req->abts_done); in qedf_eh_abort()
815 rval = qedf_initiate_abts(io_req, true); in qedf_eh_abort()
823 qedf_scsi_done(qedf, io_req, DID_ERROR); in qedf_eh_abort()
827 wait_for_completion(&io_req->abts_done); in qedf_eh_abort()
829 if (io_req->event == QEDF_IOREQ_EV_ABORT_SUCCESS || in qedf_eh_abort()
830 io_req->event == QEDF_IOREQ_EV_ABORT_FAILED || in qedf_eh_abort()
831 io_req->event == QEDF_IOREQ_EV_CLEANUP_SUCCESS) { in qedf_eh_abort()
845 io_req->xid); in qedf_eh_abort()
848 io_req->xid); in qedf_eh_abort()
854 kref_put(&io_req->refcount, qedf_release_cmd); in qedf_eh_abort()
2229 struct qedf_ioreq *io_req = NULL; in qedf_process_completions() local
2272 io_req = &qedf->cmd_mgr->cmds[xid]; in qedf_process_completions()
2278 if (!io_req) in qedf_process_completions()
2284 cpu = io_req->cpu; in qedf_process_completions()
2285 io_req->int_cpu = smp_processor_id(); in qedf_process_completions()
2806 struct qedf_ioreq *io_req; in qedf_process_cqe() local
2814 io_req = &qedf->cmd_mgr->cmds[xid]; in qedf_process_cqe()
2817 if (!io_req) { in qedf_process_cqe()
2823 fcport = io_req->fcport; in qedf_process_cqe()
2828 xid, io_req); in qedf_process_cqe()
2846 switch (io_req->cmd_type) { in qedf_process_cqe()
2848 qedf_scsi_completion(qedf, cqe, io_req); in qedf_process_cqe()
2851 qedf_process_els_compl(qedf, cqe, io_req); in qedf_process_cqe()
2854 qedf_process_tmf_compl(qedf, cqe, io_req); in qedf_process_cqe()
2857 qedf_process_seq_cleanup_compl(qedf, cqe, io_req); in qedf_process_cqe()
2865 qedf_process_error_detect(qedf, cqe, io_req); in qedf_process_cqe()
2871 qedf_process_cleanup_compl(qedf, cqe, io_req); in qedf_process_cqe()
2877 qedf_process_abts_compl(qedf, cqe, io_req); in qedf_process_cqe()
2893 qedf_process_warning_compl(qedf, cqe, io_req); in qedf_process_cqe()