Lines Matching refs:hw
29 static s32 e1000_check_for_link_vf(struct e1000_hw *hw);
30 static s32 e1000_get_link_up_info_vf(struct e1000_hw *hw, u16 *speed,
32 static s32 e1000_init_hw_vf(struct e1000_hw *hw);
33 static s32 e1000_reset_hw_vf(struct e1000_hw *hw);
35 static void e1000_update_mc_addr_list_vf(struct e1000_hw *hw, u8 *,
45 static s32 e1000_init_mac_params_vf(struct e1000_hw *hw) in e1000_init_mac_params_vf() argument
47 struct e1000_mac_info *mac = &hw->mac; in e1000_init_mac_params_vf()
79 void e1000_init_function_pointers_vf(struct e1000_hw *hw) in e1000_init_function_pointers_vf() argument
81 hw->mac.ops.init_params = e1000_init_mac_params_vf; in e1000_init_function_pointers_vf()
82 hw->mbx.ops.init_params = e1000_init_mbx_params_vf; in e1000_init_function_pointers_vf()
94 static s32 e1000_get_link_up_info_vf(struct e1000_hw *hw, u16 *speed, in e1000_get_link_up_info_vf() argument
122 static s32 e1000_reset_hw_vf(struct e1000_hw *hw) in e1000_reset_hw_vf() argument
124 struct e1000_mbx_info *mbx = &hw->mbx; in e1000_reset_hw_vf()
136 while (!mbx->ops.check_for_rst(hw) && timeout) { in e1000_reset_hw_vf()
147 mbx->ops.write_posted(hw, msgbuf, 1); in e1000_reset_hw_vf()
152 ret_val = mbx->ops.read_posted(hw, msgbuf, 3); in e1000_reset_hw_vf()
156 memcpy(hw->mac.perm_addr, addr, ETH_ALEN); in e1000_reset_hw_vf()
171 static s32 e1000_init_hw_vf(struct e1000_hw *hw) in e1000_init_hw_vf() argument
174 e1000_rar_set_vf(hw, hw->mac.addr, 0); in e1000_init_hw_vf()
188 static u32 e1000_hash_mc_addr_vf(struct e1000_hw *hw, u8 *mc_addr) in e1000_hash_mc_addr_vf() argument
194 hash_mask = (hw->mac.mta_reg_count * 32) - 1; in e1000_hash_mc_addr_vf()
221 static void e1000_update_mc_addr_list_vf(struct e1000_hw *hw, in e1000_update_mc_addr_list_vf() argument
225 struct e1000_mbx_info *mbx = &hw->mbx; in e1000_update_mc_addr_list_vf()
245 hash_value = e1000_hash_mc_addr_vf(hw, mc_addr_list); in e1000_update_mc_addr_list_vf()
250 mbx->ops.write_posted(hw, msgbuf, E1000_VFMAILBOX_SIZE); in e1000_update_mc_addr_list_vf()
259 static s32 e1000_set_vfta_vf(struct e1000_hw *hw, u16 vid, bool set) in e1000_set_vfta_vf() argument
261 struct e1000_mbx_info *mbx = &hw->mbx; in e1000_set_vfta_vf()
271 mbx->ops.write_posted(hw, msgbuf, 2); in e1000_set_vfta_vf()
273 err = mbx->ops.read_posted(hw, msgbuf, 2); in e1000_set_vfta_vf()
289 void e1000_rlpml_set_vf(struct e1000_hw *hw, u16 max_size) in e1000_rlpml_set_vf() argument
291 struct e1000_mbx_info *mbx = &hw->mbx; in e1000_rlpml_set_vf()
297 mbx->ops.write_posted(hw, msgbuf, 2); in e1000_rlpml_set_vf()
306 static void e1000_rar_set_vf(struct e1000_hw *hw, u8 *addr, u32 index) in e1000_rar_set_vf() argument
308 struct e1000_mbx_info *mbx = &hw->mbx; in e1000_rar_set_vf()
316 ret_val = mbx->ops.write_posted(hw, msgbuf, 3); in e1000_rar_set_vf()
319 ret_val = mbx->ops.read_posted(hw, msgbuf, 3); in e1000_rar_set_vf()
326 e1000_read_mac_addr_vf(hw); in e1000_rar_set_vf()
333 static s32 e1000_read_mac_addr_vf(struct e1000_hw *hw) in e1000_read_mac_addr_vf() argument
335 memcpy(hw->mac.addr, hw->mac.perm_addr, ETH_ALEN); in e1000_read_mac_addr_vf()
348 static s32 e1000_check_for_link_vf(struct e1000_hw *hw) in e1000_check_for_link_vf() argument
350 struct e1000_mbx_info *mbx = &hw->mbx; in e1000_check_for_link_vf()
351 struct e1000_mac_info *mac = &hw->mac; in e1000_check_for_link_vf()
361 if (!mbx->ops.check_for_rst(hw) || !mbx->timeout) in e1000_check_for_link_vf()
374 if (mbx->ops.read(hw, &in_msg, 1)) in e1000_check_for_link_vf()