Lines Matching defs:nvm
589 struct e1000_nvm_info *nvm = &hw->nvm;
600 nvm->type = e1000_nvm_flash_sw;
612 nvm->flash_base_addr = sector_base_addr << FLASH_SECTOR_ADDR_SHIFT;
617 nvm->flash_bank_size = ((sector_end_addr - sector_base_addr)
619 nvm->flash_bank_size /= 2;
621 nvm->flash_bank_size /= sizeof(u16);
623 nvm->word_size = E1000_ICH8_SHADOW_RAM_WORDS;
626 for (i = 0; i < nvm->word_size; i++) {
2957 struct e1000_nvm_info *nvm = &hw->nvm;
2958 u32 bank1_offset = nvm->flash_bank_size * sizeof(u16);
3022 struct e1000_nvm_info *nvm = &hw->nvm;
3029 if ((offset >= nvm->word_size) || (words > nvm->word_size - offset) ||
3031 e_dbg("nvm parameter(s) out of bounds\n");
3036 nvm->ops.acquire(hw);
3044 act_offset = (bank) ? nvm->flash_bank_size : 0;
3061 nvm->ops.release(hw);
3236 hw->nvm.flash_base_addr);
3301 struct e1000_nvm_info *nvm = &hw->nvm;
3305 if ((offset >= nvm->word_size) || (words > nvm->word_size - offset) ||
3307 e_dbg("nvm parameter(s) out of bounds\n");
3311 nvm->ops.acquire(hw);
3318 nvm->ops.release(hw);
3336 struct e1000_nvm_info *nvm = &hw->nvm;
3346 if (nvm->type != e1000_nvm_flash_sw)
3349 nvm->ops.acquire(hw);
3362 new_bank_offset = nvm->flash_bank_size;
3368 old_bank_offset = nvm->flash_bank_size;
3462 nvm->ops.release(hw);
3468 nvm->ops.reload(hw);
3539 struct e1000_nvm_info *nvm = &hw->nvm;
3544 nvm->ops.acquire(hw);
3564 nvm->ops.release(hw);
3591 hw->nvm.flash_base_addr);
3700 struct e1000_nvm_info *nvm = &hw->nvm;
3705 u32 flash_bank_size = nvm->flash_bank_size * 2;
3747 flash_linear_addr = hw->nvm.flash_base_addr;
3840 ret_val = hw->nvm.ops.valid_led_default(hw, &data);