Lines Matching refs:usec_delay_step
125 unsigned long usec_delay_step; /* For adaptive algorithm */ member
199 eeprom.usec_delay_step = 128; in eeprom_init()
631 eeprom.usec_delay_writecycles, eeprom.usec_delay_step)); in eeprom_write()
633 if (eeprom.usec_delay_step < 4) in eeprom_write()
635 eeprom.usec_delay_step++; in eeprom_write()
636 eeprom.usec_delay_writecycles += eeprom.usec_delay_step; in eeprom_write()
644 eeprom.usec_delay_step *= 2; in eeprom_write()
645 if (eeprom.usec_delay_step > 2) in eeprom_write()
647 eeprom.usec_delay_step--; in eeprom_write()
649 eeprom.usec_delay_writecycles += eeprom.usec_delay_step; in eeprom_write()
654 eeprom.usec_delay_writecycles += eeprom.usec_delay_step; in eeprom_write()
655 if (eeprom.usec_delay_step > 1) in eeprom_write()
657 eeprom.usec_delay_step /= 2; in eeprom_write()
658 eeprom.usec_delay_step--; in eeprom_write()
669 eeprom.usec_delay_writecycles, eeprom.usec_delay_step)); in eeprom_write()
674 if (eeprom.usec_delay_step > 1) in eeprom_write()
676 eeprom.usec_delay_step *= 2; in eeprom_write()
677 eeprom.usec_delay_step--; in eeprom_write()
679 if (eeprom.usec_delay_writecycles > eeprom.usec_delay_step) in eeprom_write()
681 eeprom.usec_delay_writecycles -= eeprom.usec_delay_step; in eeprom_write()
688 if (eeprom.usec_delay_writecycles > eeprom.usec_delay_step) in eeprom_write()
690 eeprom.usec_delay_writecycles -= eeprom.usec_delay_step; in eeprom_write()
692 if (eeprom.usec_delay_step > 1) in eeprom_write()
694 eeprom.usec_delay_step /= 2; in eeprom_write()
695 eeprom.usec_delay_step--; in eeprom_write()
709 eeprom.usec_delay_step++; in eeprom_write()