Lines Matching full:mbx

5 #include "mbx.h"
15 struct e1000_mbx_info *mbx = &hw->mbx; in e1000_poll_for_msg() local
16 int countdown = mbx->timeout; in e1000_poll_for_msg()
18 if (!mbx->ops.check_for_msg) in e1000_poll_for_msg()
21 while (countdown && mbx->ops.check_for_msg(hw)) { in e1000_poll_for_msg()
23 udelay(mbx->usec_delay); in e1000_poll_for_msg()
28 mbx->timeout = 0; in e1000_poll_for_msg()
41 struct e1000_mbx_info *mbx = &hw->mbx; in e1000_poll_for_ack() local
42 int countdown = mbx->timeout; in e1000_poll_for_ack()
44 if (!mbx->ops.check_for_ack) in e1000_poll_for_ack()
47 while (countdown && mbx->ops.check_for_ack(hw)) { in e1000_poll_for_ack()
49 udelay(mbx->usec_delay); in e1000_poll_for_ack()
54 mbx->timeout = 0; in e1000_poll_for_ack()
70 struct e1000_mbx_info *mbx = &hw->mbx; in e1000_read_posted_mbx() local
73 if (!mbx->ops.read) in e1000_read_posted_mbx()
80 ret_val = mbx->ops.read(hw, msg, size); in e1000_read_posted_mbx()
96 struct e1000_mbx_info *mbx = &hw->mbx; in e1000_write_posted_mbx() local
100 if (!mbx->ops.write || !mbx->timeout) in e1000_write_posted_mbx()
104 ret_val = mbx->ops.write(hw, msg, size); in e1000_write_posted_mbx()
163 hw->mbx.stats.reqs++; in e1000_check_for_msg_vf()
181 hw->mbx.stats.acks++; in e1000_check_for_ack_vf()
200 hw->mbx.stats.rsts++; in e1000_check_for_rst_vf()
261 hw->mbx.stats.msgs_tx++; in e1000_write_mbx_vf()
298 hw->mbx.stats.msgs_rx++; in e1000_read_mbx_vf()
308 * Initializes the hw->mbx struct to correct values for VF mailbox
312 struct e1000_mbx_info *mbx = &hw->mbx; in e1000_init_mbx_params_vf() local
317 mbx->timeout = 0; in e1000_init_mbx_params_vf()
318 mbx->usec_delay = E1000_VF_MBX_INIT_DELAY; in e1000_init_mbx_params_vf()
320 mbx->size = E1000_VFMAILBOX_SIZE; in e1000_init_mbx_params_vf()
322 mbx->ops.read = e1000_read_mbx_vf; in e1000_init_mbx_params_vf()
323 mbx->ops.write = e1000_write_mbx_vf; in e1000_init_mbx_params_vf()
324 mbx->ops.read_posted = e1000_read_posted_mbx; in e1000_init_mbx_params_vf()
325 mbx->ops.write_posted = e1000_write_posted_mbx; in e1000_init_mbx_params_vf()
326 mbx->ops.check_for_msg = e1000_check_for_msg_vf; in e1000_init_mbx_params_vf()
327 mbx->ops.check_for_ack = e1000_check_for_ack_vf; in e1000_init_mbx_params_vf()
328 mbx->ops.check_for_rst = e1000_check_for_rst_vf; in e1000_init_mbx_params_vf()
330 mbx->stats.msgs_tx = 0; in e1000_init_mbx_params_vf()
331 mbx->stats.msgs_rx = 0; in e1000_init_mbx_params_vf()
332 mbx->stats.reqs = 0; in e1000_init_mbx_params_vf()
333 mbx->stats.acks = 0; in e1000_init_mbx_params_vf()
334 mbx->stats.rsts = 0; in e1000_init_mbx_params_vf()