• Home
  • Raw
  • Download

Lines Matching refs:mbx

45 	struct ixgbe_mbx_info *mbx = &hw->mbx;  in ixgbe_read_mbx()  local
48 if (size > mbx->size) in ixgbe_read_mbx()
49 size = mbx->size; in ixgbe_read_mbx()
51 if (!mbx->ops) in ixgbe_read_mbx()
54 return mbx->ops->read(hw, msg, size, mbx_id); in ixgbe_read_mbx()
68 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_write_mbx() local
70 if (size > mbx->size) in ixgbe_write_mbx()
73 if (!mbx->ops) in ixgbe_write_mbx()
76 return mbx->ops->write(hw, msg, size, mbx_id); in ixgbe_write_mbx()
88 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_check_for_msg() local
90 if (!mbx->ops) in ixgbe_check_for_msg()
93 return mbx->ops->check_for_msg(hw, mbx_id); in ixgbe_check_for_msg()
105 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_check_for_ack() local
107 if (!mbx->ops) in ixgbe_check_for_ack()
110 return mbx->ops->check_for_ack(hw, mbx_id); in ixgbe_check_for_ack()
122 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_check_for_rst() local
124 if (!mbx->ops) in ixgbe_check_for_rst()
127 return mbx->ops->check_for_rst(hw, mbx_id); in ixgbe_check_for_rst()
139 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_poll_for_msg() local
140 int countdown = mbx->timeout; in ixgbe_poll_for_msg()
142 if (!countdown || !mbx->ops) in ixgbe_poll_for_msg()
145 while (mbx->ops->check_for_msg(hw, mbx_id)) { in ixgbe_poll_for_msg()
149 udelay(mbx->usec_delay); in ixgbe_poll_for_msg()
164 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_poll_for_ack() local
165 int countdown = mbx->timeout; in ixgbe_poll_for_ack()
167 if (!countdown || !mbx->ops) in ixgbe_poll_for_ack()
170 while (mbx->ops->check_for_ack(hw, mbx_id)) { in ixgbe_poll_for_ack()
174 udelay(mbx->usec_delay); in ixgbe_poll_for_ack()
193 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_read_posted_mbx() local
196 if (!mbx->ops) in ixgbe_read_posted_mbx()
204 return mbx->ops->read(hw, msg, size, mbx_id); in ixgbe_read_posted_mbx()
220 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_write_posted_mbx() local
224 if (!mbx->ops || !mbx->timeout) in ixgbe_write_posted_mbx()
228 ret_val = mbx->ops->write(hw, msg, size, mbx_id); in ixgbe_write_posted_mbx()
262 hw->mbx.stats.reqs++; in ixgbe_check_for_msg_pf()
283 hw->mbx.stats.acks++; in ixgbe_check_for_ack_pf()
319 hw->mbx.stats.rsts++; in ixgbe_check_for_rst_pf()
380 hw->mbx.stats.msgs_tx++; in ixgbe_write_mbx_pf()
415 hw->mbx.stats.msgs_rx++; in ixgbe_read_mbx_pf()
429 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_init_mbx_params_pf() local
438 mbx->timeout = 0; in ixgbe_init_mbx_params_pf()
439 mbx->usec_delay = 0; in ixgbe_init_mbx_params_pf()
441 mbx->stats.msgs_tx = 0; in ixgbe_init_mbx_params_pf()
442 mbx->stats.msgs_rx = 0; in ixgbe_init_mbx_params_pf()
443 mbx->stats.reqs = 0; in ixgbe_init_mbx_params_pf()
444 mbx->stats.acks = 0; in ixgbe_init_mbx_params_pf()
445 mbx->stats.rsts = 0; in ixgbe_init_mbx_params_pf()
447 mbx->size = IXGBE_VFMAILBOX_SIZE; in ixgbe_init_mbx_params_pf()