Lines Matching refs:hw
35 s32 igb_read_mbx(struct e1000_hw *hw, u32 *msg, u16 size, u16 mbx_id) in igb_read_mbx() argument
37 struct e1000_mbx_info *mbx = &hw->mbx; in igb_read_mbx()
45 ret_val = mbx->ops.read(hw, msg, size, mbx_id); in igb_read_mbx()
59 s32 igb_write_mbx(struct e1000_hw *hw, u32 *msg, u16 size, u16 mbx_id) in igb_write_mbx() argument
61 struct e1000_mbx_info *mbx = &hw->mbx; in igb_write_mbx()
68 ret_val = mbx->ops.write(hw, msg, size, mbx_id); in igb_write_mbx()
80 s32 igb_check_for_msg(struct e1000_hw *hw, u16 mbx_id) in igb_check_for_msg() argument
82 struct e1000_mbx_info *mbx = &hw->mbx; in igb_check_for_msg()
86 ret_val = mbx->ops.check_for_msg(hw, mbx_id); in igb_check_for_msg()
98 s32 igb_check_for_ack(struct e1000_hw *hw, u16 mbx_id) in igb_check_for_ack() argument
100 struct e1000_mbx_info *mbx = &hw->mbx; in igb_check_for_ack()
104 ret_val = mbx->ops.check_for_ack(hw, mbx_id); in igb_check_for_ack()
116 s32 igb_check_for_rst(struct e1000_hw *hw, u16 mbx_id) in igb_check_for_rst() argument
118 struct e1000_mbx_info *mbx = &hw->mbx; in igb_check_for_rst()
122 ret_val = mbx->ops.check_for_rst(hw, mbx_id); in igb_check_for_rst()
134 static s32 igb_poll_for_msg(struct e1000_hw *hw, u16 mbx_id) in igb_poll_for_msg() argument
136 struct e1000_mbx_info *mbx = &hw->mbx; in igb_poll_for_msg()
142 while (countdown && mbx->ops.check_for_msg(hw, mbx_id)) { in igb_poll_for_msg()
163 static s32 igb_poll_for_ack(struct e1000_hw *hw, u16 mbx_id) in igb_poll_for_ack() argument
165 struct e1000_mbx_info *mbx = &hw->mbx; in igb_poll_for_ack()
171 while (countdown && mbx->ops.check_for_ack(hw, mbx_id)) { in igb_poll_for_ack()
195 static s32 igb_read_posted_mbx(struct e1000_hw *hw, u32 *msg, u16 size, in igb_read_posted_mbx() argument
198 struct e1000_mbx_info *mbx = &hw->mbx; in igb_read_posted_mbx()
204 ret_val = igb_poll_for_msg(hw, mbx_id); in igb_read_posted_mbx()
207 ret_val = mbx->ops.read(hw, msg, size, mbx_id); in igb_read_posted_mbx()
222 static s32 igb_write_posted_mbx(struct e1000_hw *hw, u32 *msg, u16 size, in igb_write_posted_mbx() argument
225 struct e1000_mbx_info *mbx = &hw->mbx; in igb_write_posted_mbx()
233 ret_val = mbx->ops.write(hw, msg, size, mbx_id); in igb_write_posted_mbx()
237 ret_val = igb_poll_for_ack(hw, mbx_id); in igb_write_posted_mbx()
242 static s32 igb_check_for_bit_pf(struct e1000_hw *hw, u32 mask) in igb_check_for_bit_pf() argument
262 static s32 igb_check_for_msg_pf(struct e1000_hw *hw, u16 vf_number) in igb_check_for_msg_pf() argument
266 if (!igb_check_for_bit_pf(hw, E1000_MBVFICR_VFREQ_VF1 << vf_number)) { in igb_check_for_msg_pf()
268 hw->mbx.stats.reqs++; in igb_check_for_msg_pf()
281 static s32 igb_check_for_ack_pf(struct e1000_hw *hw, u16 vf_number) in igb_check_for_ack_pf() argument
285 if (!igb_check_for_bit_pf(hw, E1000_MBVFICR_VFACK_VF1 << vf_number)) { in igb_check_for_ack_pf()
287 hw->mbx.stats.acks++; in igb_check_for_ack_pf()
300 static s32 igb_check_for_rst_pf(struct e1000_hw *hw, u16 vf_number) in igb_check_for_rst_pf() argument
308 hw->mbx.stats.rsts++; in igb_check_for_rst_pf()
321 static s32 igb_obtain_mbx_lock_pf(struct e1000_hw *hw, u16 vf_number) in igb_obtain_mbx_lock_pf() argument
346 static s32 igb_write_mbx_pf(struct e1000_hw *hw, u32 *msg, u16 size, in igb_write_mbx_pf() argument
353 ret_val = igb_obtain_mbx_lock_pf(hw, vf_number); in igb_write_mbx_pf()
358 igb_check_for_msg_pf(hw, vf_number); in igb_write_mbx_pf()
359 igb_check_for_ack_pf(hw, vf_number); in igb_write_mbx_pf()
369 hw->mbx.stats.msgs_tx++; in igb_write_mbx_pf()
387 static s32 igb_read_mbx_pf(struct e1000_hw *hw, u32 *msg, u16 size, in igb_read_mbx_pf() argument
394 ret_val = igb_obtain_mbx_lock_pf(hw, vf_number); in igb_read_mbx_pf()
406 hw->mbx.stats.msgs_rx++; in igb_read_mbx_pf()
418 s32 igb_init_mbx_params_pf(struct e1000_hw *hw) in igb_init_mbx_params_pf() argument
420 struct e1000_mbx_info *mbx = &hw->mbx; in igb_init_mbx_params_pf()