Lines Matching refs:nvm
598 struct e1000_nvm_info *nvm = &hw->nvm; in e1000_init_nvm_params_ich8lan() local
604 nvm->type = e1000_nvm_flash_sw; in e1000_init_nvm_params_ich8lan()
613 nvm->flash_base_addr = 0; in e1000_init_nvm_params_ich8lan()
616 nvm->flash_bank_size = nvm_size / 2; in e1000_init_nvm_params_ich8lan()
618 nvm->flash_bank_size /= sizeof(u16); in e1000_init_nvm_params_ich8lan()
638 nvm->flash_base_addr = sector_base_addr in e1000_init_nvm_params_ich8lan()
644 nvm->flash_bank_size = ((sector_end_addr - sector_base_addr) in e1000_init_nvm_params_ich8lan()
646 nvm->flash_bank_size /= 2; in e1000_init_nvm_params_ich8lan()
648 nvm->flash_bank_size /= sizeof(u16); in e1000_init_nvm_params_ich8lan()
651 nvm->word_size = E1000_ICH8_SHADOW_RAM_WORDS; in e1000_init_nvm_params_ich8lan()
654 for (i = 0; i < nvm->word_size; i++) { in e1000_init_nvm_params_ich8lan()
3176 struct e1000_nvm_info *nvm = &hw->nvm; in e1000_valid_nvm_bank_detect_ich8lan() local
3177 u32 bank1_offset = nvm->flash_bank_size * sizeof(u16); in e1000_valid_nvm_bank_detect_ich8lan()
3191 bank1_offset = nvm->flash_bank_size; in e1000_valid_nvm_bank_detect_ich8lan()
3282 struct e1000_nvm_info *nvm = &hw->nvm; in e1000_read_nvm_spt() local
3291 if ((offset >= nvm->word_size) || (words > nvm->word_size - offset) || in e1000_read_nvm_spt()
3298 nvm->ops.acquire(hw); in e1000_read_nvm_spt()
3306 act_offset = (bank) ? nvm->flash_bank_size : 0; in e1000_read_nvm_spt()
3354 nvm->ops.release(hw); in e1000_read_nvm_spt()
3375 struct e1000_nvm_info *nvm = &hw->nvm; in e1000_read_nvm_ich8lan() local
3382 if ((offset >= nvm->word_size) || (words > nvm->word_size - offset) || in e1000_read_nvm_ich8lan()
3389 nvm->ops.acquire(hw); in e1000_read_nvm_ich8lan()
3397 act_offset = (bank) ? nvm->flash_bank_size : 0; in e1000_read_nvm_ich8lan()
3414 nvm->ops.release(hw); in e1000_read_nvm_ich8lan()
3629 hw->nvm.flash_base_addr); in e1000_read_flash_data_ich8lan()
3703 hw->nvm.flash_base_addr); in e1000_read_flash_data32_ich8lan()
3769 struct e1000_nvm_info *nvm = &hw->nvm; in e1000_write_nvm_ich8lan() local
3773 if ((offset >= nvm->word_size) || (words > nvm->word_size - offset) || in e1000_write_nvm_ich8lan()
3779 nvm->ops.acquire(hw); in e1000_write_nvm_ich8lan()
3786 nvm->ops.release(hw); in e1000_write_nvm_ich8lan()
3804 struct e1000_nvm_info *nvm = &hw->nvm; in e1000_update_nvm_checksum_spt() local
3814 if (nvm->type != e1000_nvm_flash_sw) in e1000_update_nvm_checksum_spt()
3817 nvm->ops.acquire(hw); in e1000_update_nvm_checksum_spt()
3830 new_bank_offset = nvm->flash_bank_size; in e1000_update_nvm_checksum_spt()
3836 old_bank_offset = nvm->flash_bank_size; in e1000_update_nvm_checksum_spt()
3935 nvm->ops.release(hw); in e1000_update_nvm_checksum_spt()
3941 nvm->ops.reload(hw); in e1000_update_nvm_checksum_spt()
3965 struct e1000_nvm_info *nvm = &hw->nvm; in e1000_update_nvm_checksum_ich8lan() local
3975 if (nvm->type != e1000_nvm_flash_sw) in e1000_update_nvm_checksum_ich8lan()
3978 nvm->ops.acquire(hw); in e1000_update_nvm_checksum_ich8lan()
3991 new_bank_offset = nvm->flash_bank_size; in e1000_update_nvm_checksum_ich8lan()
3997 old_bank_offset = nvm->flash_bank_size; in e1000_update_nvm_checksum_ich8lan()
4086 nvm->ops.release(hw); in e1000_update_nvm_checksum_ich8lan()
4092 nvm->ops.reload(hw); in e1000_update_nvm_checksum_ich8lan()
4174 struct e1000_nvm_info *nvm = &hw->nvm; in e1000e_write_protect_nvm_ich8lan() local
4179 nvm->ops.acquire(hw); in e1000e_write_protect_nvm_ich8lan()
4199 nvm->ops.release(hw); in e1000e_write_protect_nvm_ich8lan()
4230 hw->nvm.flash_base_addr); in e1000_write_flash_data_ich8lan()
4316 hw->nvm.flash_base_addr); in e1000_write_flash_data32_ich8lan()
4470 struct e1000_nvm_info *nvm = &hw->nvm; in e1000_erase_flash_bank_ich8lan() local
4475 u32 flash_bank_size = nvm->flash_bank_size * 2; in e1000_erase_flash_bank_ich8lan()
4517 flash_linear_addr = hw->nvm.flash_base_addr; in e1000_erase_flash_bank_ich8lan()
4619 ret_val = hw->nvm.ops.valid_led_default(hw, &data); in e1000_id_led_init_pchlan()