Lines Matching defs:hw

17  *  @hw: pointer to the HW structure
23 igc_init_mac_params(struct igc_hw *hw)
27 if (hw->mac.ops.init_params) {
28 ret_val = hw->mac.ops.init_params(hw);
43 * @hw: pointer to the HW structure
49 igc_init_nvm_params(struct igc_hw *hw)
53 if (hw->nvm.ops.init_params) {
54 ret_val = hw->nvm.ops.init_params(hw);
69 * @hw: pointer to the HW structure
75 igc_init_phy_params(struct igc_hw *hw)
79 if (hw->phy.ops.init_params) {
80 ret_val = hw->phy.ops.init_params(hw);
95 * @hw: pointer to the HW structure
98 * device ID stored in the hw structure.
103 igc_set_mac_type(struct igc_hw *hw)
105 struct igc_mac_info *mac = &hw->mac;
110 switch (hw->device_id) {
140 * @hw: pointer to the HW structure
151 igc_setup_init_funcs(struct igc_hw *hw, bool init_device)
156 ret_val = igc_set_mac_type(hw);
162 if (!hw->hw_addr) {
172 igc_init_mac_ops_generic(hw);
173 igc_init_phy_ops_generic(hw);
174 igc_init_nvm_ops_generic(hw);
181 switch (hw->mac.type) {
183 igc_init_function_pointers_i225(hw);
196 ret_val = igc_init_mac_params(hw);
200 ret_val = igc_init_nvm_params(hw);
204 ret_val = igc_init_phy_params(hw);
214 * @hw: pointer to the HW structure
222 igc_update_mc_addr_list(struct igc_hw *hw, uint8_t *mc_addr_list,
225 if (hw->mac.ops.update_mc_addr_list)
226 hw->mac.ops.update_mc_addr_list(hw, mc_addr_list,
232 * @hw: pointer to the HW structure
235 * results in the hw->mac structure. This is a function pointer entry
239 igc_check_for_link(struct igc_hw *hw)
241 if (hw->mac.ops.check_for_link)
242 return hw->mac.ops.check_for_link(hw);
249 * @hw: pointer to the HW structure
255 igc_reset_hw(struct igc_hw *hw)
257 if (hw->mac.ops.reset_hw)
258 return hw->mac.ops.reset_hw(hw);
265 * @hw: pointer to the HW structure
271 igc_init_hw(struct igc_hw *hw)
273 if (hw->mac.ops.init_hw)
274 return hw->mac.ops.init_hw(hw);
281 * @hw: pointer to the HW structure
290 igc_get_speed_and_duplex(struct igc_hw *hw, uint16_t *speed, uint16_t *duplex)
292 if (hw->mac.ops.get_link_up_info)
293 return hw->mac.ops.get_link_up_info(hw, speed, duplex);
300 * @hw: pointer to the HW structure
307 igc_rar_set(struct igc_hw *hw, uint8_t *addr, uint32_t index)
309 if (hw->mac.ops.rar_set)
310 return hw->mac.ops.rar_set(hw, addr, index);
317 * @hw: pointer to the HW structure
323 igc_check_reset_block(struct igc_hw *hw)
325 if (hw->phy.ops.check_reset_block)
326 return hw->phy.ops.check_reset_block(hw);
333 * @hw: pointer to the HW structure
336 * populates hw->phy values with it. This is a function pointer entry
340 igc_get_phy_info(struct igc_hw *hw)
342 if (hw->phy.ops.get_info)
343 return hw->phy.ops.get_info(hw);
350 * @hw: pointer to the HW structure
356 igc_phy_hw_reset(struct igc_hw *hw)
358 if (hw->phy.ops.reset)
359 return hw->phy.ops.reset(hw);
366 * @hw: pointer to the HW structure
373 igc_read_mac_addr(struct igc_hw *hw)
375 if (hw->mac.ops.read_mac_addr)
376 return hw->mac.ops.read_mac_addr(hw);
378 return igc_read_mac_addr_generic(hw);
383 * @hw: pointer to the HW structure
389 igc_validate_nvm_checksum(struct igc_hw *hw)
391 if (hw->nvm.ops.validate)
392 return hw->nvm.ops.validate(hw);