• 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

32  *  @hw: pointer to the HW structure
36 static s32 e1000_poll_for_msg(struct e1000_hw *hw)
38 struct e1000_mbx_info *mbx = &hw->mbx;
44 while (countdown && mbx->ops.check_for_msg(hw)) {
58 * @hw: pointer to the HW structure
62 static s32 e1000_poll_for_ack(struct e1000_hw *hw)
64 struct e1000_mbx_info *mbx = &hw->mbx;
70 while (countdown && mbx->ops.check_for_ack(hw)) {
84 * @hw: pointer to the HW structure
91 static s32 e1000_read_posted_mbx(struct e1000_hw *hw, u32 *msg, u16 size)
93 struct e1000_mbx_info *mbx = &hw->mbx;
99 ret_val = e1000_poll_for_msg(hw);
103 ret_val = mbx->ops.read(hw, msg, size);
110 * @hw: pointer to the HW structure
117 static s32 e1000_write_posted_mbx(struct e1000_hw *hw, u32 *msg, u16 size)
119 struct e1000_mbx_info *mbx = &hw->mbx;
127 ret_val = mbx->ops.write(hw, msg, size);
131 ret_val = e1000_poll_for_ack(hw);
138 * @hw: pointer to the HW structure
143 static u32 e1000_read_v2p_mailbox(struct e1000_hw *hw)
147 v2p_mailbox |= hw->dev_spec.vf.v2p_mailbox;
148 hw->dev_spec.vf.v2p_mailbox |= v2p_mailbox & E1000_V2PMAILBOX_R2C_BITS;
155 * @hw: pointer to the HW structure
161 static s32 e1000_check_for_bit_vf(struct e1000_hw *hw, u32 mask)
163 u32 v2p_mailbox = e1000_read_v2p_mailbox(hw);
169 hw->dev_spec.vf.v2p_mailbox &= ~mask;
176 * @hw: pointer to the HW structure
180 static s32 e1000_check_for_msg_vf(struct e1000_hw *hw)
184 if (!e1000_check_for_bit_vf(hw, E1000_V2PMAILBOX_PFSTS)) {
186 hw->mbx.stats.reqs++;
194 * @hw: pointer to the HW structure
198 static s32 e1000_check_for_ack_vf(struct e1000_hw *hw)
202 if (!e1000_check_for_bit_vf(hw, E1000_V2PMAILBOX_PFACK)) {
204 hw->mbx.stats.acks++;
212 * @hw: pointer to the HW structure
216 static s32 e1000_check_for_rst_vf(struct e1000_hw *hw)
220 if (!e1000_check_for_bit_vf(hw, (E1000_V2PMAILBOX_RSTD |
223 hw->mbx.stats.rsts++;
231 * @hw: pointer to the HW structure
235 static s32 e1000_obtain_mbx_lock_vf(struct e1000_hw *hw)
243 if (e1000_read_v2p_mailbox(hw) & E1000_V2PMAILBOX_VFU)
251 * @hw: pointer to the HW structure
257 static s32 e1000_write_mbx_vf(struct e1000_hw *hw, u32 *msg, u16 size)
263 err = e1000_obtain_mbx_lock_vf(hw);
268 e1000_check_for_ack_vf(hw);
269 e1000_check_for_msg_vf(hw);
276 hw->mbx.stats.msgs_tx++;
287 * @hw: pointer to the HW structure
293 static s32 e1000_read_mbx_vf(struct e1000_hw *hw, u32 *msg, u16 size)
299 err = e1000_obtain_mbx_lock_vf(hw);
311 hw->mbx.stats.msgs_rx++;
319 * @hw: pointer to the HW structure
321 * Initializes the hw->mbx struct to correct values for vf mailbox
323 s32 e1000_init_mbx_params_vf(struct e1000_hw *hw)
325 struct e1000_mbx_info *mbx = &hw->mbx;