Lines Matching defs:io_req
721 struct qedf_ioreq *io_req;
744 io_req = (struct qedf_ioreq *)sc_cmd->SCp.ptr;
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);
2226 struct qedf_ioreq *io_req = NULL;
2269 io_req = &qedf->cmd_mgr->cmds[xid];
2275 if (!io_req)
2276 /* If there is not io_req assocated with this CQE
2281 cpu = io_req->cpu;
2282 io_req->int_cpu = smp_processor_id();
2803 struct qedf_ioreq *io_req;
2813 io_req = &qedf->cmd_mgr->cmds[xid];
2816 if (!io_req) {
2818 "io_req is NULL for xid=0x%x.\n", xid);
2822 fcport = io_req->fcport;
2826 "fcport is NULL for xid=0x%x io_req=%p.\n",
2827 xid, io_req);
2842 io_comp_type = io_req->cmd_type;
2850 qedf_scsi_completion(qedf, cqe, io_req);
2853 qedf_process_els_compl(qedf, cqe, io_req);
2856 qedf_process_tmf_compl(qedf, cqe, io_req);
2859 qedf_process_seq_cleanup_compl(qedf, cqe, io_req);
2867 qedf_process_error_detect(qedf, cqe, io_req);
2873 qedf_process_cleanup_compl(qedf, cqe, io_req);
2879 qedf_process_abts_compl(qedf, cqe, io_req);
2895 qedf_process_warning_compl(qedf, cqe, io_req);