Lines Matching refs:mbx
15 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbevf_poll_for_msg() local
16 int countdown = mbx->timeout; in ixgbevf_poll_for_msg()
18 while (countdown && mbx->ops.check_for_msg(hw)) { in ixgbevf_poll_for_msg()
20 udelay(mbx->udelay); in ixgbevf_poll_for_msg()
25 mbx->timeout = 0; in ixgbevf_poll_for_msg()
38 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbevf_poll_for_ack() local
39 int countdown = mbx->timeout; in ixgbevf_poll_for_ack()
41 while (countdown && mbx->ops.check_for_ack(hw)) { in ixgbevf_poll_for_ack()
43 udelay(mbx->udelay); in ixgbevf_poll_for_ack()
48 mbx->timeout = 0; in ixgbevf_poll_for_ack()
64 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbevf_read_posted_mbx() local
67 if (!mbx->ops.read) in ixgbevf_read_posted_mbx()
74 ret_val = mbx->ops.read(hw, msg, size); in ixgbevf_read_posted_mbx()
90 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbevf_write_posted_mbx() local
94 if (!mbx->ops.write || !mbx->timeout) in ixgbevf_write_posted_mbx()
98 ret_val = mbx->ops.write(hw, msg, size); in ixgbevf_write_posted_mbx()
118 v2p_mailbox |= hw->mbx.v2p_mailbox; in ixgbevf_read_v2p_mailbox()
119 hw->mbx.v2p_mailbox |= v2p_mailbox & IXGBE_VFMAILBOX_R2C_BITS; in ixgbevf_read_v2p_mailbox()
140 hw->mbx.v2p_mailbox &= ~mask; in ixgbevf_check_for_bit_vf()
157 hw->mbx.stats.reqs++; in ixgbevf_check_for_msg_vf()
175 hw->mbx.stats.acks++; in ixgbevf_check_for_ack_vf()
194 hw->mbx.stats.rsts++; in ixgbevf_check_for_rst_vf()
247 hw->mbx.stats.msgs_tx++; in ixgbevf_write_mbx_vf()
282 hw->mbx.stats.msgs_rx++; in ixgbevf_read_mbx_vf()
296 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbevf_init_mbx_params_vf() local
301 mbx->timeout = 0; in ixgbevf_init_mbx_params_vf()
302 mbx->udelay = IXGBE_VF_MBX_INIT_DELAY; in ixgbevf_init_mbx_params_vf()
304 mbx->size = IXGBE_VFMAILBOX_SIZE; in ixgbevf_init_mbx_params_vf()
306 mbx->stats.msgs_tx = 0; in ixgbevf_init_mbx_params_vf()
307 mbx->stats.msgs_rx = 0; in ixgbevf_init_mbx_params_vf()
308 mbx->stats.reqs = 0; in ixgbevf_init_mbx_params_vf()
309 mbx->stats.acks = 0; in ixgbevf_init_mbx_params_vf()
310 mbx->stats.rsts = 0; in ixgbevf_init_mbx_params_vf()