Lines Matching defs:mbx

49 	struct ixgbe_mbx_info *mbx = &hw->mbx;
55 if (size > mbx->size)
56 size = mbx->size;
58 if (mbx->ops.read)
59 ret_val = mbx->ops.read(hw, msg, size, mbx_id);
75 struct ixgbe_mbx_info *mbx = &hw->mbx;
80 if (size > mbx->size) {
84 } else if (mbx->ops.write)
85 ret_val = mbx->ops.write(hw, msg, size, mbx_id);
99 struct ixgbe_mbx_info *mbx = &hw->mbx;
104 if (mbx->ops.check_for_msg)
105 ret_val = mbx->ops.check_for_msg(hw, mbx_id);
119 struct ixgbe_mbx_info *mbx = &hw->mbx;
124 if (mbx->ops.check_for_ack)
125 ret_val = mbx->ops.check_for_ack(hw, mbx_id);
139 struct ixgbe_mbx_info *mbx = &hw->mbx;
144 if (mbx->ops.check_for_rst)
145 ret_val = mbx->ops.check_for_rst(hw, mbx_id);
159 struct ixgbe_mbx_info *mbx = &hw->mbx;
160 int countdown = mbx->timeout;
164 if (!countdown || !mbx->ops.check_for_msg)
167 while (countdown && mbx->ops.check_for_msg(hw, mbx_id)) {
171 usec_delay(mbx->usec_delay);
191 struct ixgbe_mbx_info *mbx = &hw->mbx;
192 int countdown = mbx->timeout;
196 if (!countdown || !mbx->ops.check_for_ack)
199 while (countdown && mbx->ops.check_for_ack(hw, mbx_id)) {
203 usec_delay(mbx->usec_delay);
226 struct ixgbe_mbx_info *mbx = &hw->mbx;
231 if (!mbx->ops.read)
238 ret_val = mbx->ops.read(hw, msg, size, mbx_id);
256 struct ixgbe_mbx_info *mbx = &hw->mbx;
262 if (!mbx->ops.write || !mbx->timeout)
266 ret_val = mbx->ops.write(hw, msg, size, mbx_id);
283 struct ixgbe_mbx_info *mbx = &hw->mbx;
285 mbx->ops.read_posted = ixgbe_read_posted_mbx;
286 mbx->ops.write_posted = ixgbe_write_posted_mbx;
300 v2p_mailbox |= hw->mbx.v2p_mailbox;
301 hw->mbx.v2p_mailbox |= v2p_mailbox & IXGBE_VFMAILBOX_R2C_BITS;
322 hw->mbx.v2p_mailbox &= ~mask;
343 hw->mbx.stats.reqs++;
365 hw->mbx.stats.acks++;
388 hw->mbx.stats.rsts++;
449 hw->mbx.stats.msgs_tx++;
489 hw->mbx.stats.msgs_rx++;
499 * Initializes the hw->mbx struct to correct values for vf mailbox
503 struct ixgbe_mbx_info *mbx = &hw->mbx;
507 mbx->timeout = 0;
508 mbx->usec_delay = IXGBE_VF_MBX_INIT_DELAY;
510 mbx->size = IXGBE_VFMAILBOX_SIZE;
512 mbx->ops.read = ixgbe_read_mbx_vf;
513 mbx->ops.write = ixgbe_write_mbx_vf;
514 mbx->ops.read_posted = ixgbe_read_posted_mbx;
515 mbx->ops.write_posted = ixgbe_write_posted_mbx;
516 mbx->ops.check_for_msg = ixgbe_check_for_msg_vf;
517 mbx->ops.check_for_ack = ixgbe_check_for_ack_vf;
518 mbx->ops.check_for_rst = ixgbe_check_for_rst_vf;
520 mbx->stats.msgs_tx = 0;
521 mbx->stats.msgs_rx = 0;
522 mbx->stats.reqs = 0;
523 mbx->stats.acks = 0;
524 mbx->stats.rsts = 0;
558 hw->mbx.stats.reqs++;
582 hw->mbx.stats.acks++;
620 hw->mbx.stats.rsts++;
689 hw->mbx.stats.msgs_tx++;
728 hw->mbx.stats.msgs_rx++;
738 * Initializes the hw->mbx struct to correct values for pf mailbox
742 struct ixgbe_mbx_info *mbx = &hw->mbx;
750 mbx->timeout = 0;
751 mbx->usec_delay = 0;
753 mbx->size = IXGBE_VFMAILBOX_SIZE;
755 mbx->ops.read = ixgbe_read_mbx_pf;
756 mbx->ops.write = ixgbe_write_mbx_pf;
757 mbx->ops.read_posted = ixgbe_read_posted_mbx;
758 mbx->ops.write_posted = ixgbe_write_posted_mbx;
759 mbx->ops.check_for_msg = ixgbe_check_for_msg_pf;
760 mbx->ops.check_for_ack = ixgbe_check_for_ack_pf;
761 mbx->ops.check_for_rst = ixgbe_check_for_rst_pf;
763 mbx->stats.msgs_tx = 0;
764 mbx->stats.msgs_rx = 0;
765 mbx->stats.reqs = 0;
766 mbx->stats.acks = 0;
767 mbx->stats.rsts = 0;