Lines Matching refs:io_req

635 	struct bnx2fc_cmd *io_req = NULL;  in bnx2fc_process_unsol_compl()  local
710 io_req = (struct bnx2fc_cmd *)hba->cmd_mgr->cmds[xid]; in bnx2fc_process_unsol_compl()
711 if (!io_req) in bnx2fc_process_unsol_compl()
714 if (io_req->cmd_type != BNX2FC_SCSI_CMD) { in bnx2fc_process_unsol_compl()
720 &io_req->req_flags)) { in bnx2fc_process_unsol_compl()
721 BNX2FC_IO_DBG(io_req, "unsol_err: cleanup in " in bnx2fc_process_unsol_compl()
743 if (test_bit(BNX2FC_FLAG_ISSUE_ABTS, &io_req->req_flags)) { in bnx2fc_process_unsol_compl()
760 memcpy(&io_req->err_entry, err_entry, in bnx2fc_process_unsol_compl()
763 &io_req->req_flags)) { in bnx2fc_process_unsol_compl()
765 rc = bnx2fc_send_rec(io_req); in bnx2fc_process_unsol_compl()
779 set_bit(BNX2FC_FLAG_ISSUE_ABTS, &io_req->req_flags); in bnx2fc_process_unsol_compl()
784 if (cancel_delayed_work(&io_req->timeout_work)) in bnx2fc_process_unsol_compl()
785 kref_put(&io_req->refcount, bnx2fc_cmd_release); in bnx2fc_process_unsol_compl()
787 rc = bnx2fc_initiate_abts(io_req); in bnx2fc_process_unsol_compl()
791 io_req->xid); in bnx2fc_process_unsol_compl()
792 bnx2fc_initiate_cleanup(io_req); in bnx2fc_process_unsol_compl()
832 io_req = (struct bnx2fc_cmd *)hba->cmd_mgr->cmds[xid]; in bnx2fc_process_unsol_compl()
833 if (!io_req) in bnx2fc_process_unsol_compl()
836 if (io_req->cmd_type != BNX2FC_SCSI_CMD) { in bnx2fc_process_unsol_compl()
841 memcpy(&io_req->err_entry, err_entry, in bnx2fc_process_unsol_compl()
867 struct bnx2fc_cmd *io_req; in bnx2fc_process_cq_compl() local
876 io_req = (struct bnx2fc_cmd *)hba->cmd_mgr->cmds[xid]; in bnx2fc_process_cq_compl()
878 if (io_req == NULL) { in bnx2fc_process_cq_compl()
885 cmd_type = io_req->cmd_type; in bnx2fc_process_cq_compl()
895 bnx2fc_process_scsi_cmd_compl(io_req, task, num_rq, in bnx2fc_process_cq_compl()
902 bnx2fc_process_abts_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
905 bnx2fc_process_cleanup_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
912 BNX2FC_IO_DBG(io_req, "Processing TM complete\n"); in bnx2fc_process_cq_compl()
913 bnx2fc_process_tm_compl(io_req, task, num_rq, rq_data); in bnx2fc_process_cq_compl()
922 BNX2FC_IO_DBG(io_req, "cq_compl- ABTS sent out by fw\n"); in bnx2fc_process_cq_compl()
923 kref_put(&io_req->refcount, bnx2fc_cmd_release); in bnx2fc_process_cq_compl()
928 bnx2fc_process_els_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
930 bnx2fc_process_abts_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
933 bnx2fc_process_cleanup_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
940 BNX2FC_IO_DBG(io_req, "cq_compl- cleanup resp rcvd\n"); in bnx2fc_process_cq_compl()
941 kref_put(&io_req->refcount, bnx2fc_cmd_release); in bnx2fc_process_cq_compl()
945 BNX2FC_IO_DBG(io_req, "cq_compl(0x%x) - seq cleanup resp\n", in bnx2fc_process_cq_compl()
946 io_req->xid); in bnx2fc_process_cq_compl()
947 bnx2fc_process_seq_cleanup_compl(io_req, task, rx_state); in bnx2fc_process_cq_compl()
948 kref_put(&io_req->refcount, bnx2fc_cmd_release); in bnx2fc_process_cq_compl()
1569 void bnx2fc_init_cleanup_task(struct bnx2fc_cmd *io_req, in bnx2fc_init_cleanup_task() argument
1574 struct bnx2fc_rport *tgt = io_req->tgt; in bnx2fc_init_cleanup_task()
1607 void bnx2fc_init_mp_task(struct bnx2fc_cmd *io_req, in bnx2fc_init_mp_task() argument
1610 struct bnx2fc_mp_req *mp_req = &(io_req->mp_req); in bnx2fc_init_mp_task()
1611 struct bnx2fc_rport *tgt = io_req->tgt; in bnx2fc_init_mp_task()
1621 if ((io_req->cmd_type == BNX2FC_TASK_MGMT_CMD) || in bnx2fc_init_mp_task()
1622 (io_req->cmd_type == BNX2FC_ELS)) { in bnx2fc_init_mp_task()
1624 } else if (io_req->cmd_type == BNX2FC_ABTS) { in bnx2fc_init_mp_task()
1631 io_req->task = task; in bnx2fc_init_mp_task()
1633 BNX2FC_IO_DBG(io_req, "Init MP task for cmd_type = %d task_type = %d\n", in bnx2fc_init_mp_task()
1634 io_req->cmd_type, task_type); in bnx2fc_init_mp_task()
1666 task->rxwr_txrd.const_ctx.data_2_trns = io_req->data_xfer_len; in bnx2fc_init_mp_task()
1678 fc_hdr->fh_ox_id = cpu_to_be16(io_req->xid); in bnx2fc_init_mp_task()
1682 fc_hdr->fh_rx_id = cpu_to_be16(io_req->xid); in bnx2fc_init_mp_task()
1703 void bnx2fc_init_task(struct bnx2fc_cmd *io_req, in bnx2fc_init_task() argument
1707 struct scsi_cmnd *sc_cmd = io_req->sc_cmd; in bnx2fc_init_task()
1708 struct io_bdt *bd_tbl = io_req->bd_tbl; in bnx2fc_init_task()
1709 struct bnx2fc_rport *tgt = io_req->tgt; in bnx2fc_init_task()
1722 io_req->task = task; in bnx2fc_init_task()
1766 io_req->rec_retry = 0; in bnx2fc_init_task()
1767 io_req->rec_retry = 0; in bnx2fc_init_task()
1784 bnx2fc_build_fcp_cmnd(io_req, (struct fcp_cmnd *)&tmp_fcp_cmnd); in bnx2fc_init_task()
1795 task->rxwr_txrd.const_ctx.data_2_trns = io_req->data_xfer_len; in bnx2fc_init_task()