Lines Matching refs:mbx
4 #include "mbx.h"
15 struct ixgbe_mbx_info *mbx = &hw->mbx;
16 int countdown = mbx->timeout;
18 if (!countdown || !mbx->ops.check_for_msg)
21 while (countdown && mbx->ops.check_for_msg(hw)) {
23 udelay(mbx->udelay);
37 struct ixgbe_mbx_info *mbx = &hw->mbx;
38 int countdown = mbx->timeout;
40 if (!countdown || !mbx->ops.check_for_ack)
43 while (countdown && mbx->ops.check_for_ack(hw)) {
45 udelay(mbx->udelay);
62 vf_mailbox |= hw->mbx.vf_mailbox;
63 hw->mbx.vf_mailbox |= vf_mailbox & IXGBE_VFMAILBOX_R2C_BITS;
79 hw->mbx.stats.reqs++;
80 hw->mbx.vf_mailbox &= ~IXGBE_VFMAILBOX_PFSTS;
95 hw->mbx.stats.acks++;
96 hw->mbx.vf_mailbox &= ~IXGBE_VFMAILBOX_PFACK;
112 hw->mbx.stats.rsts++;
113 hw->mbx.vf_mailbox &= ~(IXGBE_VFMAILBOX_RSTI |
149 hw->mbx.stats.reqs++;
168 hw->mbx.stats.acks++;
188 hw->mbx.stats.rsts++;
202 struct ixgbe_mbx_info *mbx = &hw->mbx;
204 int countdown = mbx->timeout;
207 if (!mbx->timeout)
223 udelay(mbx->udelay);
282 hw->mbx.stats.msgs_tx++;
293 hw->mbx.ops.release(hw);
327 hw->mbx.stats.msgs_tx++;
367 hw->mbx.stats.msgs_rx++;
398 hw->mbx.stats.msgs_rx++;
408 * Initializes the hw->mbx struct to correct values for VF mailbox
412 struct ixgbe_mbx_info *mbx = &hw->mbx;
417 mbx->timeout = IXGBE_VF_MBX_INIT_TIMEOUT;
418 mbx->udelay = IXGBE_VF_MBX_INIT_DELAY;
420 mbx->size = IXGBE_VFMAILBOX_SIZE;
422 mbx->stats.msgs_tx = 0;
423 mbx->stats.msgs_rx = 0;
424 mbx->stats.reqs = 0;
425 mbx->stats.acks = 0;
426 mbx->stats.rsts = 0;
441 struct ixgbe_mbx_info *mbx = &hw->mbx;
444 if (!mbx->ops.read || !mbx->ops.check_for_msg || !mbx->timeout)
448 if (size > mbx->size)
449 size = mbx->size;
454 ret_val = mbx->ops.read(hw, msg, size);
470 struct ixgbe_mbx_info *mbx = &hw->mbx;
477 if (!mbx->ops.write || !mbx->ops.check_for_ack || !mbx->ops.release ||
478 !mbx->timeout)
481 if (size > mbx->size)
484 ret_val = mbx->ops.write(hw, msg, size);