Lines Matching full:nvm
18 udelay(hw->nvm.delay_usec); in e1000_raise_eec_clk()
33 udelay(hw->nvm.delay_usec); in e1000_lower_eec_clk()
48 struct e1000_nvm_info *nvm = &hw->nvm; in e1000_shift_out_eec_bits() local
53 if (nvm->type == e1000_nvm_eeprom_spi) in e1000_shift_out_eec_bits()
65 udelay(nvm->delay_usec); in e1000_shift_out_eec_bits()
169 e_dbg("Could not acquire NVM grant\n"); in e1000e_acquire_nvm()
184 struct e1000_nvm_info *nvm = &hw->nvm; in e1000_standby_nvm() local
187 if (nvm->type == e1000_nvm_eeprom_spi) { in e1000_standby_nvm()
192 udelay(nvm->delay_usec); in e1000_standby_nvm()
196 udelay(nvm->delay_usec); in e1000_standby_nvm()
211 if (hw->nvm.type == e1000_nvm_eeprom_spi) { in e1000_stop_nvm()
243 struct e1000_nvm_info *nvm = &hw->nvm; in e1000_ready_nvm_eeprom() local
247 if (nvm->type == e1000_nvm_eeprom_spi) { in e1000_ready_nvm_eeprom()
263 hw->nvm.opcode_bits); in e1000_ready_nvm_eeprom()
274 e_dbg("SPI NVM Status error\n"); in e1000_ready_nvm_eeprom()
293 struct e1000_nvm_info *nvm = &hw->nvm; in e1000e_read_nvm_eerd() local
300 if ((offset >= nvm->word_size) || (words > (nvm->word_size - offset)) || in e1000e_read_nvm_eerd()
302 e_dbg("nvm parameter(s) out of bounds\n"); in e1000e_read_nvm_eerd()
313 e_dbg("NVM read error: %d\n", ret_val); in e1000e_read_nvm_eerd()
337 struct e1000_nvm_info *nvm = &hw->nvm; in e1000e_write_nvm_spi() local
344 if ((offset >= nvm->word_size) || (words > (nvm->word_size - offset)) || in e1000e_write_nvm_spi()
346 e_dbg("nvm parameter(s) out of bounds\n"); in e1000e_write_nvm_spi()
353 ret_val = nvm->ops.acquire(hw); in e1000e_write_nvm_spi()
359 nvm->ops.release(hw); in e1000e_write_nvm_spi()
367 nvm->opcode_bits); in e1000e_write_nvm_spi()
374 if ((nvm->address_bits == 8) && (offset >= 128)) in e1000e_write_nvm_spi()
378 e1000_shift_out_eec_bits(hw, write_opcode, nvm->opcode_bits); in e1000e_write_nvm_spi()
380 nvm->address_bits); in e1000e_write_nvm_spi()
390 if ((((offset + widx) * 2) % nvm->page_size) == 0) { in e1000e_write_nvm_spi()
396 nvm->ops.release(hw); in e1000e_write_nvm_spi()
427 e_dbg("NVM Read Error\n"); in e1000_read_pba_string_generic()
433 e_dbg("NVM Read Error\n"); in e1000_read_pba_string_generic()
442 e_dbg("NVM PBA number is not stored as string\n"); in e1000_read_pba_string_generic()
478 e_dbg("NVM Read Error\n"); in e1000_read_pba_string_generic()
483 e_dbg("NVM PBA number section invalid length\n"); in e1000_read_pba_string_generic()
499 e_dbg("NVM Read Error\n"); in e1000_read_pba_string_generic()
555 e_dbg("NVM Read Error\n"); in e1000e_validate_nvm_checksum_generic()
562 e_dbg("NVM Checksum Invalid\n"); in e1000e_validate_nvm_checksum_generic()
586 e_dbg("NVM Read Error while updating checksum.\n"); in e1000e_update_nvm_checksum_generic()
594 e_dbg("NVM Write Error while updating checksum.\n"); in e1000e_update_nvm_checksum_generic()