Lines Matching refs:hw
16 * @hw: pointer to the HW structure
21 igc_init_nvm_ops_generic(struct igc_hw *hw)
23 struct igc_nvm_info *nvm = &hw->nvm;
39 * @hw: pointer to the HW structure
45 igc_null_read_nvm(struct igc_hw IGC_UNUSEDARG *hw, uint16_t IGC_UNUSEDARG a,
54 * @hw: pointer to the HW structure
57 igc_null_nvm_generic(struct igc_hw IGC_UNUSEDARG *hw)
65 * @hw: pointer to the HW structure
71 igc_reload_nvm_generic(struct igc_hw *hw)
78 ctrl_ext = IGC_READ_REG(hw, IGC_CTRL_EXT);
80 IGC_WRITE_REG(hw, IGC_CTRL_EXT, ctrl_ext);
81 IGC_WRITE_FLUSH(hw);
86 * @hw: pointer to the HW structure
92 igc_null_write_nvm(struct igc_hw IGC_UNUSEDARG *hw, uint16_t IGC_UNUSEDARG a,
101 * @hw: pointer to the HW structure
108 igc_poll_eerd_eewr_done(struct igc_hw *hw, int ee_reg)
117 reg = IGC_READ_REG(hw, IGC_EERD);
119 reg = IGC_READ_REG(hw, IGC_EEWR);
132 * @hw: pointer to the HW structure
140 igc_read_nvm_eerd(struct igc_hw *hw, uint16_t offset, uint16_t words,
143 struct igc_nvm_info *nvm = &hw->nvm;
162 IGC_WRITE_REG(hw, IGC_EERD, eerd);
163 ret_val = igc_poll_eerd_eewr_done(hw, IGC_NVM_POLL_READ);
167 data[i] = (IGC_READ_REG(hw, IGC_EERD) >> IGC_NVM_RW_REG_DATA);
178 * @hw: pointer to the HW structure
185 igc_read_mac_addr_generic(struct igc_hw *hw)
190 rar_high = IGC_READ_REG(hw, IGC_RAH(0));
191 rar_low = IGC_READ_REG(hw, IGC_RAL(0));
194 hw->mac.perm_addr[i] = (uint8_t)(rar_low >> (i * 8));
197 hw->mac.perm_addr[i+4] = (uint8_t)(rar_high >> (i * 8));
200 hw->mac.addr[i] = hw->mac.perm_addr[i];
207 * @hw: pointer to the HW structure
213 igc_validate_nvm_checksum_generic(struct igc_hw *hw)
222 ret_val = hw->nvm.ops.read(hw, i, 1, &nvm_data);