Lines Matching full:nvm
117 * e1000_init_nvm_params_82571 - Init NVM func ptrs.
122 struct e1000_nvm_info *nvm = &hw->nvm; in e1000_init_nvm_params_82571() local
126 nvm->opcode_bits = 8; in e1000_init_nvm_params_82571()
127 nvm->delay_usec = 1; in e1000_init_nvm_params_82571()
128 switch (nvm->override) { in e1000_init_nvm_params_82571()
130 nvm->page_size = 32; in e1000_init_nvm_params_82571()
131 nvm->address_bits = 16; in e1000_init_nvm_params_82571()
134 nvm->page_size = 8; in e1000_init_nvm_params_82571()
135 nvm->address_bits = 8; in e1000_init_nvm_params_82571()
138 nvm->page_size = eecd & E1000_EECD_ADDR_BITS ? 32 : 8; in e1000_init_nvm_params_82571()
139 nvm->address_bits = eecd & E1000_EECD_ADDR_BITS ? 16 : 8; in e1000_init_nvm_params_82571()
148 nvm->type = e1000_nvm_flash_hw; in e1000_init_nvm_params_82571()
149 nvm->word_size = 2048; in e1000_init_nvm_params_82571()
159 nvm->type = e1000_nvm_eeprom_spi; in e1000_init_nvm_params_82571()
169 nvm->word_size = BIT(size); in e1000_init_nvm_params_82571()
177 nvm->ops.acquire = e1000_get_hw_semaphore_82574; in e1000_init_nvm_params_82571()
178 nvm->ops.release = e1000_put_hw_semaphore_82574; in e1000_init_nvm_params_82571()
270 * first NVM or PHY access. This should be done for single-port in e1000_init_mac_params_82571()
273 * inter-port accesses to the PHY & NVM. in e1000_init_mac_params_82571()
431 * Acquire the HW semaphore to access the PHY or NVM
436 s32 sw_timeout = hw->nvm.word_size + 1; in e1000_get_hw_semaphore_82571()
437 s32 fw_timeout = hw->nvm.word_size + 1; in e1000_get_hw_semaphore_82571()
479 e_dbg("Driver can't access the NVM\n"); in e1000_get_hw_semaphore_82571()
490 * Release hardware semaphore used to access the PHY or NVM
558 * Acquire the HW semaphore to access the PHY or NVM.
576 * Release hardware semaphore used to access the PHY or NVM
733 /* If our nvm is an EEPROM, then we're done in e1000_update_nvm_checksum_82571()
734 * otherwise, commit the checksum to the flash NVM. in e1000_update_nvm_checksum_82571()
736 if (hw->nvm.type != e1000_nvm_flash_hw) in e1000_update_nvm_checksum_82571()
784 if (hw->nvm.type == e1000_nvm_flash_hw) in e1000_validate_nvm_checksum_82571()
807 struct e1000_nvm_info *nvm = &hw->nvm; in e1000_write_nvm_eewr_82571() local
814 if ((offset >= nvm->word_size) || (words > (nvm->word_size - offset)) || in e1000_write_nvm_eewr_82571()
816 e_dbg("nvm parameter(s) out of bounds\n"); in e1000_write_nvm_eewr_82571()
1002 if (hw->nvm.type == e1000_nvm_flash_hw) { in e1000_reset_hw_82571()
1015 /* Phy configuration from NVM just starts after EECD_AUTO_RD is set. in e1000_reset_hw_82571()
1017 * NVM and Phy. in e1000_reset_hw_82571()
1316 * Reads the NVM Initialization Control Word 2 and returns true
1395 /* 82573 does not have a word in the NVM to determine in e1000_setup_link_82571()
1645 * @data: pointer to the NVM (EEPROM)
1656 e_dbg("NVM Read Error\n"); in e1000_valid_led_default_82571()
1729 struct e1000_nvm_info *nvm = &hw->nvm; in e1000_fix_nvm_checksum_82571() local
1733 if (nvm->type != e1000_nvm_flash_hw) in e1000_fix_nvm_checksum_82571()