sc_cmd, host_byte(sc_cmd->result), sc_cmd->retries,
                sc_cmd->allowed);
        scsi_set_resid(sc_cmd, scsi_bufflen(sc_cmd));
-       sc_cmd->SCp.ptr = NULL;
+       bnx2fc_priv(sc_cmd)->io_req = NULL;
        scsi_done(sc_cmd);
 }
 
        task = &(task_page[index]);
        bnx2fc_init_mp_task(io_req, task);
 
-       sc_cmd->SCp.ptr = (char *)io_req;
+       bnx2fc_priv(sc_cmd)->io_req = io_req;
 
        /* Obtain free SQ entry */
        spin_lock_bh(&tgt->tgt_lock);
        BNX2FC_TGT_DBG(tgt, "Entered bnx2fc_eh_abort\n");
 
        spin_lock_bh(&tgt->tgt_lock);
-       io_req = (struct bnx2fc_cmd *)sc_cmd->SCp.ptr;
+       io_req = bnx2fc_priv(sc_cmd)->io_req;
        if (!io_req) {
                /* Command might have just completed */
                printk(KERN_ERR PFX "eh_abort: io_req is NULL\n");
                printk(KERN_ERR PFX "tmf's fc_hdr r_ctl = 0x%x\n",
                        fc_hdr->fh_r_ctl);
        }
-       if (!sc_cmd->SCp.ptr) {
-               printk(KERN_ERR PFX "tm_compl: SCp.ptr is NULL\n");
+       if (!bnx2fc_priv(sc_cmd)->io_req) {
+               printk(KERN_ERR PFX "tm_compl: io_req is NULL\n");
                return;
        }
        switch (io_req->fcp_status) {
                return;
        }
 
-       sc_cmd->SCp.ptr = NULL;
+       bnx2fc_priv(sc_cmd)->io_req = NULL;
        scsi_done(sc_cmd);
 
        kref_put(&io_req->refcount, bnx2fc_cmd_release);
                io_req->fcp_resid = fcp_rsp->fcp_resid;
 
        io_req->scsi_comp_flags = rsp_flags;
-       CMD_SCSI_STATUS(sc_cmd) = io_req->cdb_status =
-                               fcp_rsp->scsi_status_code;
+       io_req->cdb_status = fcp_rsp->scsi_status_code;
 
        /* Fetch fcp_rsp_info and fcp_sns_info if available */
        if (num_rq) {
        /* parse fcp_rsp and obtain sense data from RQ if available */
        bnx2fc_parse_fcp_rsp(io_req, fcp_rsp, num_rq, rq_data);
 
-       if (!sc_cmd->SCp.ptr) {
-               printk(KERN_ERR PFX "SCp.ptr is NULL\n");
+       if (!bnx2fc_priv(sc_cmd)->io_req) {
+               printk(KERN_ERR PFX "io_req is NULL\n");
                return;
        }
 
                        io_req->fcp_status);
                break;
        }
-       sc_cmd->SCp.ptr = NULL;
+       bnx2fc_priv(sc_cmd)->io_req = NULL;
        scsi_done(sc_cmd);
        kref_put(&io_req->refcount, bnx2fc_cmd_release);
 }
        io_req->port = port;
        io_req->tgt = tgt;
        io_req->data_xfer_len = scsi_bufflen(sc_cmd);
-       sc_cmd->SCp.ptr = (char *)io_req;
+       bnx2fc_priv(sc_cmd)->io_req = io_req;
 
        stats = per_cpu_ptr(lport->stats, get_cpu());
        if (sc_cmd->sc_data_direction == DMA_FROM_DEVICE) {