• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/net/igbvf/

Lines Matching refs:hw

31 static s32 e1000_check_for_link_vf(struct e1000_hw *hw);
32 static s32 e1000_get_link_up_info_vf(struct e1000_hw *hw, u16 *speed,
34 static s32 e1000_init_hw_vf(struct e1000_hw *hw);
35 static s32 e1000_reset_hw_vf(struct e1000_hw *hw);
37 static void e1000_update_mc_addr_list_vf(struct e1000_hw *hw, u8 *,
45 * @hw: pointer to the HW structure
47 static s32 e1000_init_mac_params_vf(struct e1000_hw *hw)
49 struct e1000_mac_info *mac = &hw->mac;
59 /* hw initialization */
79 * @hw: pointer to the HW structure
81 void e1000_init_function_pointers_vf(struct e1000_hw *hw)
83 hw->mac.ops.init_params = e1000_init_mac_params_vf;
84 hw->mbx.ops.init_params = e1000_init_mbx_params_vf;
89 * @hw: pointer to the HW structure
96 static s32 e1000_get_link_up_info_vf(struct e1000_hw *hw, u16 *speed,
119 * @hw: pointer to the HW structure
124 static s32 e1000_reset_hw_vf(struct e1000_hw *hw)
126 struct e1000_mbx_info *mbx = &hw->mbx;
138 while (!mbx->ops.check_for_rst(hw) && timeout) {
149 mbx->ops.write_posted(hw, msgbuf, 1);
154 ret_val = mbx->ops.read_posted(hw, msgbuf, 3);
157 memcpy(hw->mac.perm_addr, addr, 6);
168 * @hw: pointer to the HW structure
172 static s32 e1000_init_hw_vf(struct e1000_hw *hw)
175 e1000_rar_set_vf(hw, hw->mac.addr, 0);
182 * @hw: pointer to the HW structure
189 static u32 e1000_hash_mc_addr_vf(struct e1000_hw *hw, u8 *mc_addr)
195 hash_mask = (hw->mac.mta_reg_count * 32) - 1;
212 * @hw: pointer to the HW structure
220 * The parameter rar_count will usually be hw->mac.rar_entry_count
223 void e1000_update_mc_addr_list_vf(struct e1000_hw *hw,
227 struct e1000_mbx_info *mbx = &hw->mbx;
247 hash_value = e1000_hash_mc_addr_vf(hw, mc_addr_list);
252 mbx->ops.write_posted(hw, msgbuf, E1000_VFMAILBOX_SIZE);
257 * @hw: pointer to the HW structure
261 static s32 e1000_set_vfta_vf(struct e1000_hw *hw, u16 vid, bool set)
263 struct e1000_mbx_info *mbx = &hw->mbx;
273 mbx->ops.write_posted(hw, msgbuf, 2);
275 err = mbx->ops.read_posted(hw, msgbuf, 2);
287 * @hw: pointer to the HW structure
290 void e1000_rlpml_set_vf(struct e1000_hw *hw, u16 max_size)
292 struct e1000_mbx_info *mbx = &hw->mbx;
298 mbx->ops.write_posted(hw, msgbuf, 2);
303 * @hw: pointer to the HW structure
307 static void e1000_rar_set_vf(struct e1000_hw *hw, u8 * addr, u32 index)
309 struct e1000_mbx_info *mbx = &hw->mbx;
317 ret_val = mbx->ops.write_posted(hw, msgbuf, 3);
320 ret_val = mbx->ops.read_posted(hw, msgbuf, 3);
327 e1000_read_mac_addr_vf(hw);
332 * @hw: pointer to the HW structure
334 static s32 e1000_read_mac_addr_vf(struct e1000_hw *hw)
339 hw->mac.addr[i] = hw->mac.perm_addr[i];
346 * @hw: pointer to the HW structure
352 static s32 e1000_check_for_link_vf(struct e1000_hw *hw)
354 struct e1000_mbx_info *mbx = &hw->mbx;
355 struct e1000_mac_info *mac = &hw->mac;
366 if (!mbx->ops.check_for_rst(hw))
378 if (mbx->ops.read(hw, &in_msg, 1))