Lines Matching refs:mbx
20 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_read_mbx() local
23 if (size > mbx->size) in ixgbe_read_mbx()
24 size = mbx->size; in ixgbe_read_mbx()
26 if (!mbx->ops) in ixgbe_read_mbx()
29 return mbx->ops->read(hw, msg, size, mbx_id); in ixgbe_read_mbx()
43 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_write_mbx() local
45 if (size > mbx->size) in ixgbe_write_mbx()
48 if (!mbx->ops) in ixgbe_write_mbx()
51 return mbx->ops->write(hw, msg, size, mbx_id); in ixgbe_write_mbx()
63 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_check_for_msg() local
65 if (!mbx->ops) in ixgbe_check_for_msg()
68 return mbx->ops->check_for_msg(hw, mbx_id); in ixgbe_check_for_msg()
80 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_check_for_ack() local
82 if (!mbx->ops) in ixgbe_check_for_ack()
85 return mbx->ops->check_for_ack(hw, mbx_id); in ixgbe_check_for_ack()
97 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_check_for_rst() local
99 if (!mbx->ops) in ixgbe_check_for_rst()
102 return mbx->ops->check_for_rst(hw, mbx_id); in ixgbe_check_for_rst()
114 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_poll_for_msg() local
115 int countdown = mbx->timeout; in ixgbe_poll_for_msg()
117 if (!countdown || !mbx->ops) in ixgbe_poll_for_msg()
120 while (mbx->ops->check_for_msg(hw, mbx_id)) { in ixgbe_poll_for_msg()
124 udelay(mbx->usec_delay); in ixgbe_poll_for_msg()
139 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_poll_for_ack() local
140 int countdown = mbx->timeout; in ixgbe_poll_for_ack()
142 if (!countdown || !mbx->ops) in ixgbe_poll_for_ack()
145 while (mbx->ops->check_for_ack(hw, mbx_id)) { in ixgbe_poll_for_ack()
149 udelay(mbx->usec_delay); in ixgbe_poll_for_ack()
168 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_read_posted_mbx() local
171 if (!mbx->ops) in ixgbe_read_posted_mbx()
179 return mbx->ops->read(hw, msg, size, mbx_id); in ixgbe_read_posted_mbx()
195 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_write_posted_mbx() local
199 if (!mbx->ops || !mbx->timeout) in ixgbe_write_posted_mbx()
203 ret_val = mbx->ops->write(hw, msg, size, mbx_id); in ixgbe_write_posted_mbx()
237 hw->mbx.stats.reqs++; in ixgbe_check_for_msg_pf()
258 hw->mbx.stats.acks++; in ixgbe_check_for_ack_pf()
294 hw->mbx.stats.rsts++; in ixgbe_check_for_rst_pf()
355 hw->mbx.stats.msgs_tx++; in ixgbe_write_mbx_pf()
390 hw->mbx.stats.msgs_rx++; in ixgbe_read_mbx_pf()
404 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_init_mbx_params_pf() local
413 mbx->timeout = 0; in ixgbe_init_mbx_params_pf()
414 mbx->usec_delay = 0; in ixgbe_init_mbx_params_pf()
416 mbx->stats.msgs_tx = 0; in ixgbe_init_mbx_params_pf()
417 mbx->stats.msgs_rx = 0; in ixgbe_init_mbx_params_pf()
418 mbx->stats.reqs = 0; in ixgbe_init_mbx_params_pf()
419 mbx->stats.acks = 0; in ixgbe_init_mbx_params_pf()
420 mbx->stats.rsts = 0; in ixgbe_init_mbx_params_pf()
422 mbx->size = IXGBE_VFMAILBOX_SIZE; in ixgbe_init_mbx_params_pf()