Lines Matching refs:io_req

635 	struct bnx2fc_cmd *io_req = NULL;  in bnx2fc_process_unsol_compl()  local
714 io_req = (struct bnx2fc_cmd *)hba->cmd_mgr->cmds[xid]; in bnx2fc_process_unsol_compl()
715 if (!io_req) in bnx2fc_process_unsol_compl()
718 if (io_req->cmd_type != BNX2FC_SCSI_CMD) { in bnx2fc_process_unsol_compl()
724 &io_req->req_flags)) { in bnx2fc_process_unsol_compl()
725 BNX2FC_IO_DBG(io_req, "unsol_err: cleanup in " in bnx2fc_process_unsol_compl()
747 if (test_bit(BNX2FC_FLAG_ISSUE_ABTS, &io_req->req_flags)) { in bnx2fc_process_unsol_compl()
764 memcpy(&io_req->err_entry, err_entry, in bnx2fc_process_unsol_compl()
767 &io_req->req_flags)) { in bnx2fc_process_unsol_compl()
769 rc = bnx2fc_send_rec(io_req); in bnx2fc_process_unsol_compl()
783 set_bit(BNX2FC_FLAG_ISSUE_ABTS, &io_req->req_flags); in bnx2fc_process_unsol_compl()
788 if (cancel_delayed_work(&io_req->timeout_work)) in bnx2fc_process_unsol_compl()
789 kref_put(&io_req->refcount, bnx2fc_cmd_release); in bnx2fc_process_unsol_compl()
791 rc = bnx2fc_initiate_abts(io_req); in bnx2fc_process_unsol_compl()
795 io_req->xid); in bnx2fc_process_unsol_compl()
796 bnx2fc_initiate_cleanup(io_req); in bnx2fc_process_unsol_compl()
838 io_req = (struct bnx2fc_cmd *)hba->cmd_mgr->cmds[xid]; in bnx2fc_process_unsol_compl()
839 if (!io_req) in bnx2fc_process_unsol_compl()
842 if (io_req->cmd_type != BNX2FC_SCSI_CMD) { in bnx2fc_process_unsol_compl()
847 memcpy(&io_req->err_entry, err_entry, in bnx2fc_process_unsol_compl()
873 struct bnx2fc_cmd *io_req; in bnx2fc_process_cq_compl() local
896 io_req = (struct bnx2fc_cmd *)hba->cmd_mgr->cmds[xid]; in bnx2fc_process_cq_compl()
898 if (io_req == NULL) { in bnx2fc_process_cq_compl()
905 cmd_type = io_req->cmd_type; in bnx2fc_process_cq_compl()
915 bnx2fc_process_scsi_cmd_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
921 bnx2fc_process_abts_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
924 bnx2fc_process_cleanup_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
931 BNX2FC_IO_DBG(io_req, "Processing TM complete\n"); in bnx2fc_process_cq_compl()
932 bnx2fc_process_tm_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
941 BNX2FC_IO_DBG(io_req, "cq_compl- ABTS sent out by fw\n"); in bnx2fc_process_cq_compl()
942 kref_put(&io_req->refcount, bnx2fc_cmd_release); in bnx2fc_process_cq_compl()
947 bnx2fc_process_els_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
949 bnx2fc_process_abts_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
952 bnx2fc_process_cleanup_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
959 BNX2FC_IO_DBG(io_req, "cq_compl- cleanup resp rcvd\n"); in bnx2fc_process_cq_compl()
960 kref_put(&io_req->refcount, bnx2fc_cmd_release); in bnx2fc_process_cq_compl()
964 BNX2FC_IO_DBG(io_req, "cq_compl(0x%x) - seq cleanup resp\n", in bnx2fc_process_cq_compl()
965 io_req->xid); in bnx2fc_process_cq_compl()
966 bnx2fc_process_seq_cleanup_compl(io_req, task, rx_state); in bnx2fc_process_cq_compl()
967 kref_put(&io_req->refcount, bnx2fc_cmd_release); in bnx2fc_process_cq_compl()
1533 void bnx2fc_init_cleanup_task(struct bnx2fc_cmd *io_req, in bnx2fc_init_cleanup_task() argument
1538 struct bnx2fc_rport *tgt = io_req->tgt; in bnx2fc_init_cleanup_task()
1571 void bnx2fc_init_mp_task(struct bnx2fc_cmd *io_req, in bnx2fc_init_mp_task() argument
1574 struct bnx2fc_mp_req *mp_req = &(io_req->mp_req); in bnx2fc_init_mp_task()
1575 struct bnx2fc_rport *tgt = io_req->tgt; in bnx2fc_init_mp_task()
1585 if ((io_req->cmd_type == BNX2FC_TASK_MGMT_CMD) || in bnx2fc_init_mp_task()
1586 (io_req->cmd_type == BNX2FC_ELS)) { in bnx2fc_init_mp_task()
1588 } else if (io_req->cmd_type == BNX2FC_ABTS) { in bnx2fc_init_mp_task()
1595 io_req->task = task; in bnx2fc_init_mp_task()
1597 BNX2FC_IO_DBG(io_req, "Init MP task for cmd_type = %d task_type = %d\n", in bnx2fc_init_mp_task()
1598 io_req->cmd_type, task_type); in bnx2fc_init_mp_task()
1630 task->rxwr_txrd.const_ctx.data_2_trns = io_req->data_xfer_len; in bnx2fc_init_mp_task()
1642 fc_hdr->fh_ox_id = cpu_to_be16(io_req->xid); in bnx2fc_init_mp_task()
1646 fc_hdr->fh_rx_id = cpu_to_be16(io_req->xid); in bnx2fc_init_mp_task()
1667 void bnx2fc_init_task(struct bnx2fc_cmd *io_req, in bnx2fc_init_task() argument
1671 struct scsi_cmnd *sc_cmd = io_req->sc_cmd; in bnx2fc_init_task()
1672 struct io_bdt *bd_tbl = io_req->bd_tbl; in bnx2fc_init_task()
1673 struct bnx2fc_rport *tgt = io_req->tgt; in bnx2fc_init_task()
1686 io_req->task = task; in bnx2fc_init_task()
1730 io_req->rec_retry = 0; in bnx2fc_init_task()
1731 io_req->rec_retry = 0; in bnx2fc_init_task()
1748 bnx2fc_build_fcp_cmnd(io_req, (struct fcp_cmnd *)&tmp_fcp_cmnd); in bnx2fc_init_task()
1759 task->rxwr_txrd.const_ctx.data_2_trns = io_req->data_xfer_len; in bnx2fc_init_task()