Lines Matching defs:io_req

721 	struct qedf_ioreq *io_req;
744 io_req = qedf_priv(sc_cmd)->io_req;
745 if (!io_req) {
754 rval = kref_get_unless_zero(&io_req->refcount); /* ID: 005 */
758 /* If we got a valid io_req, confirm it belongs to this sc_cmd. */
759 if (!rval || io_req->sc_cmd != sc_cmd) {
761 "Freed/Incorrect io_req, io_req->sc_cmd=%p, sc_cmd=%p, port_id=%06x, bailing out.\n",
762 io_req->sc_cmd, sc_cmd, rdata->ids.port_id);
768 refcount = kref_read(&io_req->refcount);
770 "rport not ready, io_req=%p, xid=0x%x sc_cmd=%p op=0x%02x, refcount=%d, port_id=%06x\n",
771 io_req, io_req->xid, sc_cmd, sc_cmd->cmnd[0],
784 io_req->xid, rdata->ids.port_id);
785 while (io_req->sc_cmd && (wait_count != 0)) {
805 "Aborting io_req=%p sc_cmd=%p xid=0x%x fp_idx=%d, port_id=%06x.\n",
806 io_req, sc_cmd, io_req->xid, io_req->fp_idx,
815 init_completion(&io_req->abts_done);
816 rval = qedf_initiate_abts(io_req, true);
824 qedf_scsi_done(qedf, io_req, DID_ERROR);
828 wait_for_completion(&io_req->abts_done);
830 if (io_req->event == QEDF_IOREQ_EV_ABORT_SUCCESS ||
831 io_req->event == QEDF_IOREQ_EV_ABORT_FAILED ||
832 io_req->event == QEDF_IOREQ_EV_CLEANUP_SUCCESS) {
846 io_req->xid);
849 io_req->xid);
855 kref_put(&io_req->refcount, qedf_release_cmd);
2229 struct qedf_ioreq *io_req = NULL;
2271 io_req = &qedf->cmd_mgr->cmds[xid];
2277 if (!io_req)
2278 /* If there is not io_req assocated with this CQE
2283 cpu = io_req->cpu;
2284 io_req->int_cpu = smp_processor_id();
2805 struct qedf_ioreq *io_req;
2815 io_req = &qedf->cmd_mgr->cmds[xid];
2818 if (!io_req) {
2820 "io_req is NULL for xid=0x%x.\n", xid);
2824 fcport = io_req->fcport;
2828 "fcport is NULL for xid=0x%x io_req=%p.\n",
2829 xid, io_req);
2844 io_comp_type = io_req->cmd_type;
2852 qedf_scsi_completion(qedf, cqe, io_req);
2855 qedf_process_els_compl(qedf, cqe, io_req);
2858 qedf_process_tmf_compl(qedf, cqe, io_req);
2861 qedf_process_seq_cleanup_compl(qedf, cqe, io_req);
2869 qedf_process_error_detect(qedf, cqe, io_req);
2875 qedf_process_cleanup_compl(qedf, cqe, io_req);
2881 qedf_process_abts_compl(qedf, cqe, io_req);
2897 qedf_process_warning_compl(qedf, cqe, io_req);