Lines Matching full:timeout
73 int timeout = req_to; in mac_busy() local
75 while (timeout--) { in mac_busy()
79 return 1; /* Timeout */ in mac_busy()
82 return 0; /* No timeout */ in mac_busy()
98 printf("get_mac_reg: timeout waiting for response from MAC\n"); in get_mac_reg()
138 ulong timeout = 100000; in eeprom_read_location() local
150 while ((timeout > 0) && (smc911x_reg_read(E2P_CMD) & E2P_CMD_EPC_BUSY_)) { in eeprom_read_location()
152 timeout--; in eeprom_read_location()
155 if (timeout == 0) { in eeprom_read_location()
156 printf("Timeout\n"); in eeprom_read_location()
167 ulong timeout = 100000; in eeprom_enable_erase_and_write() local
175 while ((timeout > 0) && (smc911x_reg_read(E2P_CMD) & E2P_CMD_EPC_BUSY_)) { in eeprom_enable_erase_and_write()
177 timeout--; in eeprom_enable_erase_and_write()
180 if (timeout == 0) { in eeprom_enable_erase_and_write()
181 printf("Timeout[1]\n"); in eeprom_enable_erase_and_write()
190 ulong timeout = 100000; in eeprom_disable_erase_and_write() local
198 while ((timeout > 0) && (smc911x_reg_read(E2P_CMD) & E2P_CMD_EPC_BUSY_)) { in eeprom_disable_erase_and_write()
200 timeout--; in eeprom_disable_erase_and_write()
203 if (timeout == 0) { in eeprom_disable_erase_and_write()
204 printf("Timeout[2]\n"); in eeprom_disable_erase_and_write()
213 ulong timeout = 100000; in eeprom_write_location() local
227 while ((timeout > 0) && (smc911x_reg_read(E2P_CMD) & E2P_CMD_EPC_BUSY_)) { in eeprom_write_location()
229 timeout--; in eeprom_write_location()
232 if (timeout == 0) { in eeprom_write_location()
233 printf("Timeout[3]\n"); in eeprom_write_location()
242 ulong timeout = 100000; in eeprom_erase_all() local
251 while ((timeout > 0) && (smc911x_reg_read(E2P_CMD) & E2P_CMD_EPC_BUSY_)) { in eeprom_erase_all()
253 timeout--; in eeprom_erase_all()
256 if (timeout == 0) { in eeprom_erase_all()
257 printf("Timeout[4]\n"); in eeprom_erase_all()
266 ulong timeout = 100000; in eeprom_reload() local
275 while ((timeout > 0) && (smc911x_reg_read(E2P_CMD) & E2P_CMD_EPC_BUSY_)) { in eeprom_reload()
277 timeout--; in eeprom_reload()
280 if (timeout == 0) in eeprom_reload()