qla2x00_update_fcport(scsi_qla_host_t *ha, fc_port_t *fcport){	uint16_t	index;	unsigned long flags;	srb_t *sp;	fcport->ha = ha;	fcport->login_retry = 0;	fcport->port_login_retry_count = ha->port_down_retry_count *	    PORT_RETRY_TIME;	atomic_set(&fcport->port_down_timer, ha->port_down_retry_count *	    PORT_RETRY_TIME);	fcport->flags &= ~FCF_LOGIN_NEEDED;	/*	 * Check for outstanding cmd on tape Bypass LUN discovery if active	 * command on tape.	 */	if (fcport->flags & FCF_TAPE_PRESENT) {		spin_lock_irqsave(&ha->hardware_lock, flags);		for (index = 1; index < MAX_OUTSTANDING_COMMANDS; index++) {			if ((sp = ha->outstanding_cmds[index]) != 0) {				if (sp->fclun->fcport == fcport) {					atomic_set(&fcport->state, FCS_ONLINE);					spin_unlock_irqrestore(					    &ha->hardware_lock, flags);					return;				}			}		}		spin_unlock_irqrestore(&ha->hardware_lock, flags);	}	/* Do LUN discovery. */	if (fcport->port_type == FCT_INITIATOR ||	    fcport->port_type == FCT_BROADCAST) {		fcport->device_type = TYPE_PROCESSOR;	} else {		qla2x00_lun_discovery(ha, fcport);	}	atomic_set(&fcport->state, FCS_ONLINE);	if (ha->flags.init_done)		qla2x00_reg_remote_port(ha, fcport);}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/bdf796210e01145fd77bbb3ae644d04f982b6c3b/qla_init.c/clean/drivers/scsi/qla2xxx/qla_init.c