Lines Matching defs:attempts
45 * @attempts: number of check iterations
50 * up to @attempts times. If @valp is not NULL the value of the register
56 int polarity, int attempts, int delay, u32 *valp)
66 if (--attempts == 0)
163 int attempts = 10;
169 while ((val & F_BUSY) && attempts--)
616 int attempts = EEPROM_MAX_POLL;
627 } while (!(val & PCI_VPD_ADDR_F) && --attempts);
650 int attempts = EEPROM_MAX_POLL;
663 } while ((val & PCI_VPD_ADDR_F) && --attempts);
809 * @attempts: max number of polls of the status register
814 static int flash_wait_op(struct adapter *adapter, int attempts, int delay)
825 if (--attempts == 0)
3174 unsigned int width, density, slow, attempts;
3255 attempts = 50;
3259 } while ((val & F_BUSY) && --attempts);
3345 int err = -EIO, attempts, i;
3403 attempts = 100;
3406 } while (t3_read_reg(adapter, A_CIM_HOST_ACC_DATA) && --attempts);
3407 if (!attempts) {