Lines Matching defs:mbx
28 #include "mbx.h"
38 struct e1000_mbx_info *mbx = &hw->mbx;
39 int countdown = mbx->timeout;
41 if (!mbx->ops.check_for_msg)
44 while (countdown && mbx->ops.check_for_msg(hw)) {
46 udelay(mbx->usec_delay);
51 mbx->timeout = 0;
64 struct e1000_mbx_info *mbx = &hw->mbx;
65 int countdown = mbx->timeout;
67 if (!mbx->ops.check_for_ack)
70 while (countdown && mbx->ops.check_for_ack(hw)) {
72 udelay(mbx->usec_delay);
77 mbx->timeout = 0;
93 struct e1000_mbx_info *mbx = &hw->mbx;
96 if (!mbx->ops.read)
103 ret_val = mbx->ops.read(hw, msg, size);
119 struct e1000_mbx_info *mbx = &hw->mbx;
123 if (!mbx->ops.write || !mbx->timeout)
127 ret_val = mbx->ops.write(hw, msg, size);
186 hw->mbx.stats.reqs++;
204 hw->mbx.stats.acks++;
223 hw->mbx.stats.rsts++;
276 hw->mbx.stats.msgs_tx++;
311 hw->mbx.stats.msgs_rx++;
321 * Initializes the hw->mbx struct to correct values for vf mailbox
325 struct e1000_mbx_info *mbx = &hw->mbx;
329 mbx->timeout = 0;
330 mbx->usec_delay = E1000_VF_MBX_INIT_DELAY;
332 mbx->size = E1000_VFMAILBOX_SIZE;
334 mbx->ops.read = e1000_read_mbx_vf;
335 mbx->ops.write = e1000_write_mbx_vf;
336 mbx->ops.read_posted = e1000_read_posted_mbx;
337 mbx->ops.write_posted = e1000_write_posted_mbx;
338 mbx->ops.check_for_msg = e1000_check_for_msg_vf;
339 mbx->ops.check_for_ack = e1000_check_for_ack_vf;
340 mbx->ops.check_for_rst = e1000_check_for_rst_vf;
342 mbx->stats.msgs_tx = 0;
343 mbx->stats.msgs_rx = 0;
344 mbx->stats.reqs = 0;
345 mbx->stats.acks = 0;
346 mbx->stats.rsts = 0;