Lines Matching refs:mbx
45 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_read_mbx() local
49 if (size > mbx->size) in ixgbe_read_mbx()
50 size = mbx->size; in ixgbe_read_mbx()
52 if (mbx->ops.read) in ixgbe_read_mbx()
53 ret_val = mbx->ops.read(hw, msg, size, mbx_id); in ixgbe_read_mbx()
69 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_write_mbx() local
72 if (size > mbx->size) in ixgbe_write_mbx()
75 else if (mbx->ops.write) in ixgbe_write_mbx()
76 ret_val = mbx->ops.write(hw, msg, size, mbx_id); in ixgbe_write_mbx()
90 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_check_for_msg() local
93 if (mbx->ops.check_for_msg) in ixgbe_check_for_msg()
94 ret_val = mbx->ops.check_for_msg(hw, mbx_id); in ixgbe_check_for_msg()
108 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_check_for_ack() local
111 if (mbx->ops.check_for_ack) in ixgbe_check_for_ack()
112 ret_val = mbx->ops.check_for_ack(hw, mbx_id); in ixgbe_check_for_ack()
126 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_check_for_rst() local
129 if (mbx->ops.check_for_rst) in ixgbe_check_for_rst()
130 ret_val = mbx->ops.check_for_rst(hw, mbx_id); in ixgbe_check_for_rst()
144 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_poll_for_msg() local
145 int countdown = mbx->timeout; in ixgbe_poll_for_msg()
147 if (!countdown || !mbx->ops.check_for_msg) in ixgbe_poll_for_msg()
150 while (countdown && mbx->ops.check_for_msg(hw, mbx_id)) { in ixgbe_poll_for_msg()
154 udelay(mbx->usec_delay); in ixgbe_poll_for_msg()
170 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_poll_for_ack() local
171 int countdown = mbx->timeout; in ixgbe_poll_for_ack()
173 if (!countdown || !mbx->ops.check_for_ack) in ixgbe_poll_for_ack()
176 while (countdown && mbx->ops.check_for_ack(hw, mbx_id)) { in ixgbe_poll_for_ack()
180 udelay(mbx->usec_delay); in ixgbe_poll_for_ack()
200 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_read_posted_mbx() local
203 if (!mbx->ops.read) in ixgbe_read_posted_mbx()
210 ret_val = mbx->ops.read(hw, msg, size, mbx_id); in ixgbe_read_posted_mbx()
228 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_write_posted_mbx() local
232 if (!mbx->ops.write || !mbx->timeout) in ixgbe_write_posted_mbx()
236 ret_val = mbx->ops.write(hw, msg, size, mbx_id); in ixgbe_write_posted_mbx()
274 hw->mbx.stats.reqs++; in ixgbe_check_for_msg_pf()
296 hw->mbx.stats.acks++; in ixgbe_check_for_ack_pf()
330 hw->mbx.stats.rsts++; in ixgbe_check_for_rst_pf()
391 hw->mbx.stats.msgs_tx++; in ixgbe_write_mbx_pf()
428 hw->mbx.stats.msgs_rx++; in ixgbe_read_mbx_pf()
443 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_init_mbx_params_pf() local
449 mbx->timeout = 0; in ixgbe_init_mbx_params_pf()
450 mbx->usec_delay = 0; in ixgbe_init_mbx_params_pf()
452 mbx->stats.msgs_tx = 0; in ixgbe_init_mbx_params_pf()
453 mbx->stats.msgs_rx = 0; in ixgbe_init_mbx_params_pf()
454 mbx->stats.reqs = 0; in ixgbe_init_mbx_params_pf()
455 mbx->stats.acks = 0; in ixgbe_init_mbx_params_pf()
456 mbx->stats.rsts = 0; in ixgbe_init_mbx_params_pf()
458 mbx->size = IXGBE_VFMAILBOX_SIZE; in ixgbe_init_mbx_params_pf()