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()
778 set_bit(BNX2FC_FLAG_ISSUE_ABTS, &io_req->req_flags); in bnx2fc_process_unsol_compl()
783 if (cancel_delayed_work(&io_req->timeout_work)) in bnx2fc_process_unsol_compl()
784 kref_put(&io_req->refcount, bnx2fc_cmd_release); in bnx2fc_process_unsol_compl()
786 rc = bnx2fc_initiate_abts(io_req); in bnx2fc_process_unsol_compl()
790 io_req->xid); in bnx2fc_process_unsol_compl()
791 bnx2fc_initiate_cleanup(io_req); in bnx2fc_process_unsol_compl()
831 io_req = (struct bnx2fc_cmd *)hba->cmd_mgr->cmds[xid]; in bnx2fc_process_unsol_compl()
832 if (!io_req) in bnx2fc_process_unsol_compl()
835 if (io_req->cmd_type != BNX2FC_SCSI_CMD) { in bnx2fc_process_unsol_compl()
840 memcpy(&io_req->err_entry, err_entry, in bnx2fc_process_unsol_compl()
866 struct bnx2fc_cmd *io_req; in bnx2fc_process_cq_compl() local
875 io_req = (struct bnx2fc_cmd *)hba->cmd_mgr->cmds[xid]; in bnx2fc_process_cq_compl()
877 if (io_req == NULL) { in bnx2fc_process_cq_compl()
884 cmd_type = io_req->cmd_type; in bnx2fc_process_cq_compl()
894 bnx2fc_process_scsi_cmd_compl(io_req, task, num_rq, in bnx2fc_process_cq_compl()
901 bnx2fc_process_abts_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
904 bnx2fc_process_cleanup_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
911 BNX2FC_IO_DBG(io_req, "Processing TM complete\n"); in bnx2fc_process_cq_compl()
912 bnx2fc_process_tm_compl(io_req, task, num_rq, rq_data); in bnx2fc_process_cq_compl()
921 BNX2FC_IO_DBG(io_req, "cq_compl- ABTS sent out by fw\n"); in bnx2fc_process_cq_compl()
922 kref_put(&io_req->refcount, bnx2fc_cmd_release); in bnx2fc_process_cq_compl()
927 bnx2fc_process_els_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
929 bnx2fc_process_abts_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
932 bnx2fc_process_cleanup_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
939 BNX2FC_IO_DBG(io_req, "cq_compl- cleanup resp rcvd\n"); in bnx2fc_process_cq_compl()
940 kref_put(&io_req->refcount, bnx2fc_cmd_release); in bnx2fc_process_cq_compl()
944 BNX2FC_IO_DBG(io_req, "cq_compl(0x%x) - seq cleanup resp\n", in bnx2fc_process_cq_compl()
945 io_req->xid); in bnx2fc_process_cq_compl()
946 bnx2fc_process_seq_cleanup_compl(io_req, task, rx_state); in bnx2fc_process_cq_compl()
947 kref_put(&io_req->refcount, bnx2fc_cmd_release); in bnx2fc_process_cq_compl()
1568 void bnx2fc_init_cleanup_task(struct bnx2fc_cmd *io_req, in bnx2fc_init_cleanup_task() argument
1573 struct bnx2fc_rport *tgt = io_req->tgt; in bnx2fc_init_cleanup_task()
1606 void bnx2fc_init_mp_task(struct bnx2fc_cmd *io_req, in bnx2fc_init_mp_task() argument
1609 struct bnx2fc_mp_req *mp_req = &(io_req->mp_req); in bnx2fc_init_mp_task()
1610 struct bnx2fc_rport *tgt = io_req->tgt; in bnx2fc_init_mp_task()
1620 if ((io_req->cmd_type == BNX2FC_TASK_MGMT_CMD) || in bnx2fc_init_mp_task()
1621 (io_req->cmd_type == BNX2FC_ELS)) { in bnx2fc_init_mp_task()
1623 } else if (io_req->cmd_type == BNX2FC_ABTS) { in bnx2fc_init_mp_task()
1630 io_req->task = task; in bnx2fc_init_mp_task()
1632 BNX2FC_IO_DBG(io_req, "Init MP task for cmd_type = %d task_type = %d\n", in bnx2fc_init_mp_task()
1633 io_req->cmd_type, task_type); in bnx2fc_init_mp_task()
1665 task->rxwr_txrd.const_ctx.data_2_trns = io_req->data_xfer_len; in bnx2fc_init_mp_task()
1677 fc_hdr->fh_ox_id = cpu_to_be16(io_req->xid); in bnx2fc_init_mp_task()
1681 fc_hdr->fh_rx_id = cpu_to_be16(io_req->xid); in bnx2fc_init_mp_task()
1702 void bnx2fc_init_task(struct bnx2fc_cmd *io_req, in bnx2fc_init_task() argument
1706 struct scsi_cmnd *sc_cmd = io_req->sc_cmd; in bnx2fc_init_task()
1707 struct io_bdt *bd_tbl = io_req->bd_tbl; in bnx2fc_init_task()
1708 struct bnx2fc_rport *tgt = io_req->tgt; in bnx2fc_init_task()
1721 io_req->task = task; in bnx2fc_init_task()
1765 io_req->rec_retry = 0; in bnx2fc_init_task()
1766 io_req->rec_retry = 0; in bnx2fc_init_task()
1783 bnx2fc_build_fcp_cmnd(io_req, (struct fcp_cmnd *)&tmp_fcp_cmnd); in bnx2fc_init_task()
1794 task->rxwr_txrd.const_ctx.data_2_trns = io_req->data_xfer_len; in bnx2fc_init_task()