Lines Matching defs:nvm
140 struct e1000_nvm_info *nvm = &hw->nvm;
144 nvm->opcode_bits = 8;
145 nvm->delay_usec = 1;
146 switch (nvm->override) {
148 nvm->page_size = 32;
149 nvm->address_bits = 16;
152 nvm->page_size = 8;
153 nvm->address_bits = 8;
156 nvm->page_size = eecd & E1000_EECD_ADDR_BITS ? 32 : 8;
157 nvm->address_bits = eecd & E1000_EECD_ADDR_BITS ? 16 : 8;
166 nvm->type = e1000_nvm_flash_hw;
167 nvm->word_size = 2048;
177 nvm->type = e1000_nvm_eeprom_spi;
188 nvm->word_size = 1 << size;
196 nvm->ops.acquire = e1000_get_hw_semaphore_82574;
197 nvm->ops.release = e1000_put_hw_semaphore_82574;
455 s32 sw_timeout = hw->nvm.word_size + 1;
456 s32 fw_timeout = hw->nvm.word_size + 1;
752 /* If our nvm is an EEPROM, then we're done
755 if (hw->nvm.type != e1000_nvm_flash_hw)
803 if (hw->nvm.type == e1000_nvm_flash_hw)
826 struct e1000_nvm_info *nvm = &hw->nvm;
833 if ((offset >= nvm->word_size) || (words > (nvm->word_size - offset)) ||
835 e_dbg("nvm parameter(s) out of bounds\n");
1019 if (hw->nvm.type == e1000_nvm_flash_hw) {
1746 struct e1000_nvm_info *nvm = &hw->nvm;
1750 if (nvm->type != e1000_nvm_flash_hw)