Lines Matching refs:io_req
635 struct bnx2fc_cmd *io_req = NULL; in bnx2fc_process_unsol_compl() local
718 io_req = (struct bnx2fc_cmd *)hba->cmd_mgr->cmds[xid]; in bnx2fc_process_unsol_compl()
719 if (!io_req) in bnx2fc_process_unsol_compl()
722 if (io_req->cmd_type != BNX2FC_SCSI_CMD) { in bnx2fc_process_unsol_compl()
728 &io_req->req_flags)) { in bnx2fc_process_unsol_compl()
729 BNX2FC_IO_DBG(io_req, "unsol_err: cleanup in " in bnx2fc_process_unsol_compl()
751 if (test_bit(BNX2FC_FLAG_ISSUE_ABTS, &io_req->req_flags)) { in bnx2fc_process_unsol_compl()
768 memcpy(&io_req->err_entry, err_entry, in bnx2fc_process_unsol_compl()
771 &io_req->req_flags)) { in bnx2fc_process_unsol_compl()
773 rc = bnx2fc_send_rec(io_req); in bnx2fc_process_unsol_compl()
787 set_bit(BNX2FC_FLAG_ISSUE_ABTS, &io_req->req_flags); in bnx2fc_process_unsol_compl()
792 if (cancel_delayed_work(&io_req->timeout_work)) in bnx2fc_process_unsol_compl()
793 kref_put(&io_req->refcount, bnx2fc_cmd_release); in bnx2fc_process_unsol_compl()
795 rc = bnx2fc_initiate_abts(io_req); in bnx2fc_process_unsol_compl()
799 io_req->xid); in bnx2fc_process_unsol_compl()
800 bnx2fc_initiate_cleanup(io_req); in bnx2fc_process_unsol_compl()
845 io_req = (struct bnx2fc_cmd *)hba->cmd_mgr->cmds[xid]; in bnx2fc_process_unsol_compl()
846 if (!io_req) in bnx2fc_process_unsol_compl()
849 if (io_req->cmd_type != BNX2FC_SCSI_CMD) { in bnx2fc_process_unsol_compl()
854 memcpy(&io_req->err_entry, err_entry, in bnx2fc_process_unsol_compl()
880 struct bnx2fc_cmd *io_req; in bnx2fc_process_cq_compl() local
903 io_req = (struct bnx2fc_cmd *)hba->cmd_mgr->cmds[xid]; in bnx2fc_process_cq_compl()
905 if (io_req == NULL) { in bnx2fc_process_cq_compl()
912 cmd_type = io_req->cmd_type; in bnx2fc_process_cq_compl()
922 bnx2fc_process_scsi_cmd_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
928 bnx2fc_process_abts_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
931 bnx2fc_process_cleanup_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
938 BNX2FC_IO_DBG(io_req, "Processing TM complete\n"); in bnx2fc_process_cq_compl()
939 bnx2fc_process_tm_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
948 BNX2FC_IO_DBG(io_req, "cq_compl- ABTS sent out by fw\n"); in bnx2fc_process_cq_compl()
949 kref_put(&io_req->refcount, bnx2fc_cmd_release); in bnx2fc_process_cq_compl()
954 bnx2fc_process_els_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
956 bnx2fc_process_abts_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
959 bnx2fc_process_cleanup_compl(io_req, task, num_rq); in bnx2fc_process_cq_compl()
966 BNX2FC_IO_DBG(io_req, "cq_compl- cleanup resp rcvd\n"); in bnx2fc_process_cq_compl()
967 kref_put(&io_req->refcount, bnx2fc_cmd_release); in bnx2fc_process_cq_compl()
971 BNX2FC_IO_DBG(io_req, "cq_compl(0x%x) - seq cleanup resp\n", in bnx2fc_process_cq_compl()
972 io_req->xid); in bnx2fc_process_cq_compl()
973 bnx2fc_process_seq_cleanup_compl(io_req, task, rx_state); in bnx2fc_process_cq_compl()
974 kref_put(&io_req->refcount, bnx2fc_cmd_release); in bnx2fc_process_cq_compl()
1551 void bnx2fc_init_cleanup_task(struct bnx2fc_cmd *io_req, in bnx2fc_init_cleanup_task() argument
1556 struct bnx2fc_rport *tgt = io_req->tgt; in bnx2fc_init_cleanup_task()
1589 void bnx2fc_init_mp_task(struct bnx2fc_cmd *io_req, in bnx2fc_init_mp_task() argument
1592 struct bnx2fc_mp_req *mp_req = &(io_req->mp_req); in bnx2fc_init_mp_task()
1593 struct bnx2fc_rport *tgt = io_req->tgt; in bnx2fc_init_mp_task()
1603 if ((io_req->cmd_type == BNX2FC_TASK_MGMT_CMD) || in bnx2fc_init_mp_task()
1604 (io_req->cmd_type == BNX2FC_ELS)) { in bnx2fc_init_mp_task()
1606 } else if (io_req->cmd_type == BNX2FC_ABTS) { in bnx2fc_init_mp_task()
1613 io_req->task = task; in bnx2fc_init_mp_task()
1615 BNX2FC_IO_DBG(io_req, "Init MP task for cmd_type = %d task_type = %d\n", in bnx2fc_init_mp_task()
1616 io_req->cmd_type, task_type); in bnx2fc_init_mp_task()
1648 task->rxwr_txrd.const_ctx.data_2_trns = io_req->data_xfer_len; in bnx2fc_init_mp_task()
1660 fc_hdr->fh_ox_id = cpu_to_be16(io_req->xid); in bnx2fc_init_mp_task()
1664 fc_hdr->fh_rx_id = cpu_to_be16(io_req->xid); in bnx2fc_init_mp_task()
1685 void bnx2fc_init_task(struct bnx2fc_cmd *io_req, in bnx2fc_init_task() argument
1689 struct scsi_cmnd *sc_cmd = io_req->sc_cmd; in bnx2fc_init_task()
1690 struct io_bdt *bd_tbl = io_req->bd_tbl; in bnx2fc_init_task()
1691 struct bnx2fc_rport *tgt = io_req->tgt; in bnx2fc_init_task()
1704 io_req->task = task; in bnx2fc_init_task()
1748 io_req->rec_retry = 0; in bnx2fc_init_task()
1749 io_req->rec_retry = 0; in bnx2fc_init_task()
1766 bnx2fc_build_fcp_cmnd(io_req, (struct fcp_cmnd *)&tmp_fcp_cmnd); in bnx2fc_init_task()
1777 task->rxwr_txrd.const_ctx.data_2_trns = io_req->data_xfer_len; in bnx2fc_init_task()