j++, flash++) {  if (val == flash->config1) { 
j++, flash++) { if ((val & FLASH_BACKUP_STRAP_MASK) == (flash->config1 & FLASH_BACKUP_STRAP_MASK)) { 
bnx2_init_nvram(struct bnx2 *bp){	u32 val;	int j, entry_count, rc;	struct flash_spec *flash;	/* Determine the selected interface. */	val = REG_RD(bp, BNX2_NVM_CFG1);	entry_count = sizeof(flash_table) / sizeof(struct flash_spec);	rc = 0;	if (val & 0x40000000) {		/* Flash interface has been reconfigured */		for (j = 0, flash = &flash_table[0]; j < entry_count;			j++, flash++) {			if (val == flash->config1) {				bp->flash_info = flash;				break;			}		}	}	else {		/* Not yet been reconfigured */		for (j = 0, flash = &flash_table[0]; j < entry_count;			j++, flash++) {			if ((val & FLASH_STRAP_MASK) == flash->strapping) {				bp->flash_info = flash;				/* Request access to the flash interface. */				if ((rc = bnx2_acquire_nvram_lock(bp)) != 0)					return rc;				/* Enable access to flash interface */				bnx2_enable_nvram_access(bp);				/* Reconfigure the flash interface */				REG_WR(bp, BNX2_NVM_CFG1, flash->config1);				REG_WR(bp, BNX2_NVM_CFG2, flash->config2);				REG_WR(bp, BNX2_NVM_CFG3, flash->config3);				REG_WR(bp, BNX2_NVM_WRITE1, flash->write1);				/* Disable access to flash interface */				bnx2_disable_nvram_access(bp);				bnx2_release_nvram_lock(bp);				break;			}		}	} /* if (val & 0x40000000) */	if (j == entry_count) {		bp->flash_info = NULL;		printk(KERN_ALERT "Unknown flash/EEPROM type.\n");		rc = -ENODEV;	}	return rc;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/371377091dff14090cbe995d0a9291364f8583cb/bnx2.c/buggy/drivers/net/bnx2.c