while (exit_cnt < 5) { val64 = readq(&bar0->i2c_control); if (I2C_CONTROL_CNTL_END(val64)) { if (!(val64 & I2C_CONTROL_NACK)) ret = 0; break; 
while (exit_cnt < 5) { val64 = readq(&bar0->i2c_control); if (I2C_CONTROL_CNTL_END(val64)) { if (!(val64 & I2C_CONTROL_NACK)) ret = 0; break; } msleep(50); exit_cnt++; 
static int write_eeprom(nic_t * sp, int off, u32 data, int cnt){	int exit_cnt = 0, ret = -1;	u64 val64;	XENA_dev_config_t __iomem *bar0 = sp->bar0;	val64 = I2C_CONTROL_DEV_ID(S2IO_DEV_ID) | I2C_CONTROL_ADDR(off) |	    I2C_CONTROL_BYTE_CNT(cnt) | I2C_CONTROL_SET_DATA(data) |	    I2C_CONTROL_CNTL_START;	SPECIAL_REG_WRITE(val64, &bar0->i2c_control, LF);	while (exit_cnt < 5) {		val64 = readq(&bar0->i2c_control);		if (I2C_CONTROL_CNTL_END(val64)) {			if (!(val64 & I2C_CONTROL_NACK))				ret = 0;			break;		}		msleep(50);		exit_cnt++;	}	return ret;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/ad4ebed00fbf570411edbf6eb6c391e16b71df25/s2io.c/clean/drivers/net/s2io.c