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