fcport = sp->fclun->fcport;  
fcport = sp->fcport; 
qla2x00_abort_command(scsi_qla_host_t *ha, srb_t *sp){	unsigned long   flags = 0;	fc_port_t	*fcport;	int		rval;	uint32_t	handle;	mbx_cmd_t	mc;	mbx_cmd_t	*mcp = &mc;	DEBUG11(printk("qla2x00_abort_command(%ld): entered.\n", ha->host_no);)	fcport = sp->fclun->fcport;	if (atomic_read(&ha->loop_state) == LOOP_DOWN ||	    atomic_read(&fcport->state) == FCS_DEVICE_LOST) {		return 1;	}	spin_lock_irqsave(&ha->hardware_lock, flags);	for (handle = 1; handle < MAX_OUTSTANDING_COMMANDS; handle++) {		if (ha->outstanding_cmds[handle] == sp)			break;	}	spin_unlock_irqrestore(&ha->hardware_lock, flags);	if (handle == MAX_OUTSTANDING_COMMANDS) {		/* command not found */		return QLA_FUNCTION_FAILED;	}	mcp->mb[0] = MBC_ABORT_COMMAND;	if (HAS_EXTENDED_IDS(ha))		mcp->mb[1] = fcport->loop_id;	else		mcp->mb[1] = fcport->loop_id << 8;	mcp->mb[2] = (uint16_t)handle;	mcp->mb[3] = (uint16_t)(handle >> 16);	mcp->mb[6] = (uint16_t)sp->fclun->lun;	mcp->out_mb = MBX_6|MBX_3|MBX_2|MBX_1|MBX_0;	mcp->in_mb = MBX_0;	mcp->tov = 30;	mcp->flags = 0;	rval = qla2x00_mailbox_command(ha, mcp);	if (rval != QLA_SUCCESS) {		DEBUG2_3_11(printk("qla2x00_abort_command(%ld): failed=%x.\n",		    ha->host_no, rval);)	} else {		sp->flags |= SRB_ABORT_PENDING;		DEBUG11(printk("qla2x00_abort_command(%ld): done.\n",		    ha->host_no);)	}	return rval;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/bdf796210e01145fd77bbb3ae644d04f982b6c3b/qla_mbx.c/buggy/drivers/scsi/qla2xxx/qla_mbx.c