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