Lines Matching refs:mbx
4 #include "mbx.h"
14 struct e1000_mbx_info *mbx = &hw->mbx;
15 int countdown = mbx->timeout;
17 if (!mbx->ops.check_for_msg)
20 while (countdown && mbx->ops.check_for_msg(hw)) {
22 udelay(mbx->usec_delay);
27 mbx->timeout = 0;
40 struct e1000_mbx_info *mbx = &hw->mbx;
41 int countdown = mbx->timeout;
43 if (!mbx->ops.check_for_ack)
46 while (countdown && mbx->ops.check_for_ack(hw)) {
48 udelay(mbx->usec_delay);
53 mbx->timeout = 0;
69 struct e1000_mbx_info *mbx = &hw->mbx;
72 if (!mbx->ops.read)
79 ret_val = mbx->ops.read(hw, msg, size);
95 struct e1000_mbx_info *mbx = &hw->mbx;
99 if (!mbx->ops.write || !mbx->timeout)
103 ret_val = mbx->ops.write(hw, msg, size);
162 hw->mbx.stats.reqs++;
180 hw->mbx.stats.acks++;
199 hw->mbx.stats.rsts++;
260 hw->mbx.stats.msgs_tx++;
297 hw->mbx.stats.msgs_rx++;
307 * Initializes the hw->mbx struct to correct values for VF mailbox
311 struct e1000_mbx_info *mbx = &hw->mbx;
316 mbx->timeout = 0;
317 mbx->usec_delay = E1000_VF_MBX_INIT_DELAY;
319 mbx->size = E1000_VFMAILBOX_SIZE;
321 mbx->ops.read = e1000_read_mbx_vf;
322 mbx->ops.write = e1000_write_mbx_vf;
323 mbx->ops.read_posted = e1000_read_posted_mbx;
324 mbx->ops.write_posted = e1000_write_posted_mbx;
325 mbx->ops.check_for_msg = e1000_check_for_msg_vf;
326 mbx->ops.check_for_ack = e1000_check_for_ack_vf;
327 mbx->ops.check_for_rst = e1000_check_for_rst_vf;
329 mbx->stats.msgs_tx = 0;
330 mbx->stats.msgs_rx = 0;
331 mbx->stats.reqs = 0;
332 mbx->stats.acks = 0;
333 mbx->stats.rsts = 0;