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 if (!countdown || !mbx->ops.check_for_msg) in ixgbevf_poll_for_msg()
21 while (countdown && mbx->ops.check_for_msg(hw)) { in ixgbevf_poll_for_msg()
23 udelay(mbx->udelay); in ixgbevf_poll_for_msg()
37 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbevf_poll_for_ack() local
38 int countdown = mbx->timeout; in ixgbevf_poll_for_ack()
40 if (!countdown || !mbx->ops.check_for_ack) in ixgbevf_poll_for_ack()
43 while (countdown && mbx->ops.check_for_ack(hw)) { in ixgbevf_poll_for_ack()
45 udelay(mbx->udelay); in ixgbevf_poll_for_ack()
62 vf_mailbox |= hw->mbx.vf_mailbox; in ixgbevf_read_mailbox_vf()
63 hw->mbx.vf_mailbox |= vf_mailbox & IXGBE_VFMAILBOX_R2C_BITS; in ixgbevf_read_mailbox_vf()
79 hw->mbx.stats.reqs++; in ixgbevf_clear_msg_vf()
80 hw->mbx.vf_mailbox &= ~IXGBE_VFMAILBOX_PFSTS; in ixgbevf_clear_msg_vf()
95 hw->mbx.stats.acks++; in ixgbevf_clear_ack_vf()
96 hw->mbx.vf_mailbox &= ~IXGBE_VFMAILBOX_PFACK; in ixgbevf_clear_ack_vf()
112 hw->mbx.stats.rsts++; in ixgbevf_clear_rst_vf()
113 hw->mbx.vf_mailbox &= ~(IXGBE_VFMAILBOX_RSTI | in ixgbevf_clear_rst_vf()
149 hw->mbx.stats.reqs++; in ixgbevf_check_for_msg_vf()
168 hw->mbx.stats.acks++; in ixgbevf_check_for_ack_vf()
188 hw->mbx.stats.rsts++; in ixgbevf_check_for_rst_vf()
202 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbevf_obtain_mbx_lock_vf() local
204 int countdown = mbx->timeout; in ixgbevf_obtain_mbx_lock_vf()
207 if (!mbx->timeout) in ixgbevf_obtain_mbx_lock_vf()
223 udelay(mbx->udelay); in ixgbevf_obtain_mbx_lock_vf()
282 hw->mbx.stats.msgs_tx++; in ixgbevf_write_mbx_vf()
293 hw->mbx.ops.release(hw); in ixgbevf_write_mbx_vf()
327 hw->mbx.stats.msgs_tx++; in ixgbevf_write_mbx_vf_legacy()
367 hw->mbx.stats.msgs_rx++; in ixgbevf_read_mbx_vf()
398 hw->mbx.stats.msgs_rx++; in ixgbevf_read_mbx_vf_legacy()
412 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbevf_init_mbx_params_vf() local
417 mbx->timeout = IXGBE_VF_MBX_INIT_TIMEOUT; in ixgbevf_init_mbx_params_vf()
418 mbx->udelay = IXGBE_VF_MBX_INIT_DELAY; in ixgbevf_init_mbx_params_vf()
420 mbx->size = IXGBE_VFMAILBOX_SIZE; in ixgbevf_init_mbx_params_vf()
422 mbx->stats.msgs_tx = 0; in ixgbevf_init_mbx_params_vf()
423 mbx->stats.msgs_rx = 0; in ixgbevf_init_mbx_params_vf()
424 mbx->stats.reqs = 0; in ixgbevf_init_mbx_params_vf()
425 mbx->stats.acks = 0; in ixgbevf_init_mbx_params_vf()
426 mbx->stats.rsts = 0; in ixgbevf_init_mbx_params_vf()
441 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbevf_poll_mbx() local
444 if (!mbx->ops.read || !mbx->ops.check_for_msg || !mbx->timeout) in ixgbevf_poll_mbx()
448 if (size > mbx->size) in ixgbevf_poll_mbx()
449 size = mbx->size; in ixgbevf_poll_mbx()
454 ret_val = mbx->ops.read(hw, msg, size); in ixgbevf_poll_mbx()
470 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbevf_write_mbx() local
477 if (!mbx->ops.write || !mbx->ops.check_for_ack || !mbx->ops.release || in ixgbevf_write_mbx()
478 !mbx->timeout) in ixgbevf_write_mbx()
481 if (size > mbx->size) in ixgbevf_write_mbx()
484 ret_val = mbx->ops.write(hw, msg, size); in ixgbevf_write_mbx()