Lines Matching refs:mbx
37 struct e1000_mbx_info *mbx = &hw->mbx; in e1000_poll_for_msg() local
38 int countdown = mbx->timeout; in e1000_poll_for_msg()
40 if (!mbx->ops.check_for_msg) in e1000_poll_for_msg()
43 while (countdown && mbx->ops.check_for_msg(hw)) { in e1000_poll_for_msg()
45 udelay(mbx->usec_delay); in e1000_poll_for_msg()
50 mbx->timeout = 0; in e1000_poll_for_msg()
63 struct e1000_mbx_info *mbx = &hw->mbx; in e1000_poll_for_ack() local
64 int countdown = mbx->timeout; in e1000_poll_for_ack()
66 if (!mbx->ops.check_for_ack) in e1000_poll_for_ack()
69 while (countdown && mbx->ops.check_for_ack(hw)) { in e1000_poll_for_ack()
71 udelay(mbx->usec_delay); in e1000_poll_for_ack()
76 mbx->timeout = 0; in e1000_poll_for_ack()
92 struct e1000_mbx_info *mbx = &hw->mbx; in e1000_read_posted_mbx() local
95 if (!mbx->ops.read) in e1000_read_posted_mbx()
102 ret_val = mbx->ops.read(hw, msg, size); in e1000_read_posted_mbx()
118 struct e1000_mbx_info *mbx = &hw->mbx; in e1000_write_posted_mbx() local
122 if (!mbx->ops.write || !mbx->timeout) in e1000_write_posted_mbx()
126 ret_val = mbx->ops.write(hw, msg, size); in e1000_write_posted_mbx()
185 hw->mbx.stats.reqs++; in e1000_check_for_msg_vf()
203 hw->mbx.stats.acks++; in e1000_check_for_ack_vf()
222 hw->mbx.stats.rsts++; in e1000_check_for_rst_vf()
275 hw->mbx.stats.msgs_tx++; in e1000_write_mbx_vf()
310 hw->mbx.stats.msgs_rx++; in e1000_read_mbx_vf()
324 struct e1000_mbx_info *mbx = &hw->mbx; in e1000_init_mbx_params_vf() local
329 mbx->timeout = 0; in e1000_init_mbx_params_vf()
330 mbx->usec_delay = E1000_VF_MBX_INIT_DELAY; in e1000_init_mbx_params_vf()
332 mbx->size = E1000_VFMAILBOX_SIZE; in e1000_init_mbx_params_vf()
334 mbx->ops.read = e1000_read_mbx_vf; in e1000_init_mbx_params_vf()
335 mbx->ops.write = e1000_write_mbx_vf; in e1000_init_mbx_params_vf()
336 mbx->ops.read_posted = e1000_read_posted_mbx; in e1000_init_mbx_params_vf()
337 mbx->ops.write_posted = e1000_write_posted_mbx; in e1000_init_mbx_params_vf()
338 mbx->ops.check_for_msg = e1000_check_for_msg_vf; in e1000_init_mbx_params_vf()
339 mbx->ops.check_for_ack = e1000_check_for_ack_vf; in e1000_init_mbx_params_vf()
340 mbx->ops.check_for_rst = e1000_check_for_rst_vf; in e1000_init_mbx_params_vf()
342 mbx->stats.msgs_tx = 0; in e1000_init_mbx_params_vf()
343 mbx->stats.msgs_rx = 0; in e1000_init_mbx_params_vf()
344 mbx->stats.reqs = 0; in e1000_init_mbx_params_vf()
345 mbx->stats.acks = 0; in e1000_init_mbx_params_vf()
346 mbx->stats.rsts = 0; in e1000_init_mbx_params_vf()