Lines Matching refs: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)
83 else if (mbx->ops.write)
84 ret_val = mbx->ops.write(hw, msg, size, mbx_id);
98 struct ixgbe_mbx_info *mbx = &hw->mbx;
103 if (mbx->ops.check_for_msg)
104 ret_val = mbx->ops.check_for_msg(hw, mbx_id);
118 struct ixgbe_mbx_info *mbx = &hw->mbx;
123 if (mbx->ops.check_for_ack)
124 ret_val = mbx->ops.check_for_ack(hw, mbx_id);
138 struct ixgbe_mbx_info *mbx = &hw->mbx;
143 if (mbx->ops.check_for_rst)
144 ret_val = mbx->ops.check_for_rst(hw, mbx_id);
158 struct ixgbe_mbx_info *mbx = &hw->mbx;
159 int countdown = mbx->timeout;
163 if (!countdown || !mbx->ops.check_for_msg)
166 while (countdown && mbx->ops.check_for_msg(hw, mbx_id)) {
170 usec_delay(mbx->usec_delay);
186 struct ixgbe_mbx_info *mbx = &hw->mbx;
187 int countdown = mbx->timeout;
191 if (!countdown || !mbx->ops.check_for_ack)
194 while (countdown && mbx->ops.check_for_ack(hw, mbx_id)) {
198 usec_delay(mbx->usec_delay);
217 struct ixgbe_mbx_info *mbx = &hw->mbx;
222 if (!mbx->ops.read)
229 ret_val = mbx->ops.read(hw, msg, size, mbx_id);
247 struct ixgbe_mbx_info *mbx = &hw->mbx;
253 if (!mbx->ops.write || !mbx->timeout)
257 ret_val = mbx->ops.write(hw, msg, size, mbx_id);
274 struct ixgbe_mbx_info *mbx = &hw->mbx;
276 mbx->ops.read_posted = ixgbe_read_posted_mbx;
277 mbx->ops.write_posted = ixgbe_write_posted_mbx;
291 v2p_mailbox |= hw->mbx.v2p_mailbox;
292 hw->mbx.v2p_mailbox |= v2p_mailbox & IXGBE_VFMAILBOX_R2C_BITS;
313 hw->mbx.v2p_mailbox &= ~mask;
334 hw->mbx.stats.reqs++;
356 hw->mbx.stats.acks++;
379 hw->mbx.stats.rsts++;
440 hw->mbx.stats.msgs_tx++;
480 hw->mbx.stats.msgs_rx++;
490 * Initializes the hw->mbx struct to correct values for vf mailbox
494 struct ixgbe_mbx_info *mbx = &hw->mbx;
498 mbx->timeout = 0;
499 mbx->usec_delay = IXGBE_VF_MBX_INIT_DELAY;
501 mbx->size = IXGBE_VFMAILBOX_SIZE;
503 mbx->ops.read = ixgbe_read_mbx_vf;
504 mbx->ops.write = ixgbe_write_mbx_vf;
505 mbx->ops.read_posted = ixgbe_read_posted_mbx;
506 mbx->ops.write_posted = ixgbe_write_posted_mbx;
507 mbx->ops.check_for_msg = ixgbe_check_for_msg_vf;
508 mbx->ops.check_for_ack = ixgbe_check_for_ack_vf;
509 mbx->ops.check_for_rst = ixgbe_check_for_rst_vf;
511 mbx->stats.msgs_tx = 0;
512 mbx->stats.msgs_rx = 0;
513 mbx->stats.reqs = 0;
514 mbx->stats.acks = 0;
515 mbx->stats.rsts = 0;
549 hw->mbx.stats.reqs++;
573 hw->mbx.stats.acks++;
609 hw->mbx.stats.rsts++;
674 hw->mbx.stats.msgs_tx++;
713 hw->mbx.stats.msgs_rx++;
723 * Initializes the hw->mbx struct to correct values for pf mailbox
727 struct ixgbe_mbx_info *mbx = &hw->mbx;
733 mbx->timeout = 0;
734 mbx->usec_delay = 0;
736 mbx->size = IXGBE_VFMAILBOX_SIZE;
738 mbx->ops.read = ixgbe_read_mbx_pf;
739 mbx->ops.write = ixgbe_write_mbx_pf;
740 mbx->ops.read_posted = ixgbe_read_posted_mbx;
741 mbx->ops.write_posted = ixgbe_write_posted_mbx;
742 mbx->ops.check_for_msg = ixgbe_check_for_msg_pf;
743 mbx->ops.check_for_ack = ixgbe_check_for_ack_pf;
744 mbx->ops.check_for_rst = ixgbe_check_for_rst_pf;
746 mbx->stats.msgs_tx = 0;
747 mbx->stats.msgs_rx = 0;
748 mbx->stats.reqs = 0;
749 mbx->stats.acks = 0;
750 mbx->stats.rsts = 0;