Lines Matching refs:eeprom_wc
599 u16 eeprom_wc; member
765 nic->eeprom_wc = 1 << addr_len; in e100_eeprom_load()
767 for (addr = 0; addr < nic->eeprom_wc; addr++) { in e100_eeprom_load()
769 if (addr < nic->eeprom_wc - 1) in e100_eeprom_load()
775 if (cpu_to_le16(0xBABA - checksum) != nic->eeprom[nic->eeprom_wc - 1]) { in e100_eeprom_load()
791 nic->eeprom_wc = 1 << addr_len; in e100_eeprom_save()
793 if (start + count >= nic->eeprom_wc) in e100_eeprom_save()
801 for (addr = 0; addr < nic->eeprom_wc - 1; addr++) in e100_eeprom_save()
803 nic->eeprom[nic->eeprom_wc - 1] = cpu_to_le16(0xBABA - checksum); in e100_eeprom_save()
804 e100_eeprom_write(nic, addr_len, nic->eeprom_wc - 1, in e100_eeprom_save()
805 nic->eeprom[nic->eeprom_wc - 1]); in e100_eeprom_save()
2525 return nic->eeprom_wc << 1; in e100_get_eeprom_len()