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