Lines Matching refs:mbx

71 	struct e1000_mbx_info *mbx = &hw->mbx;
77 if (size > mbx->size)
78 size = mbx->size;
80 if (mbx->ops.read)
81 ret_val = mbx->ops.read(hw, msg, size, mbx_id);
97 struct e1000_mbx_info *mbx = &hw->mbx;
102 if (size > mbx->size)
105 else if (mbx->ops.write)
106 ret_val = mbx->ops.write(hw, msg, size, mbx_id);
120 struct e1000_mbx_info *mbx = &hw->mbx;
125 if (mbx->ops.check_for_msg)
126 ret_val = mbx->ops.check_for_msg(hw, mbx_id);
140 struct e1000_mbx_info *mbx = &hw->mbx;
145 if (mbx->ops.check_for_ack)
146 ret_val = mbx->ops.check_for_ack(hw, mbx_id);
160 struct e1000_mbx_info *mbx = &hw->mbx;
165 if (mbx->ops.check_for_rst)
166 ret_val = mbx->ops.check_for_rst(hw, mbx_id);
180 struct e1000_mbx_info *mbx = &hw->mbx;
181 int countdown = mbx->timeout;
185 if (!countdown || !mbx->ops.check_for_msg)
188 while (countdown && mbx->ops.check_for_msg(hw, mbx_id)) {
192 usec_delay(mbx->usec_delay);
197 mbx->timeout = 0;
211 struct e1000_mbx_info *mbx = &hw->mbx;
212 int countdown = mbx->timeout;
216 if (!countdown || !mbx->ops.check_for_ack)
219 while (countdown && mbx->ops.check_for_ack(hw, mbx_id)) {
223 usec_delay(mbx->usec_delay);
228 mbx->timeout = 0;
245 struct e1000_mbx_info *mbx = &hw->mbx;
250 if (!mbx->ops.read)
257 ret_val = mbx->ops.read(hw, msg, size, mbx_id);
274 struct e1000_mbx_info *mbx = &hw->mbx;
280 if (!mbx->ops.write || !mbx->timeout)
284 ret_val = mbx->ops.write(hw, msg, size, mbx_id);
294 * e1000_init_mbx_ops_generic - Initialize mbx function pointers
301 struct e1000_mbx_info *mbx = &hw->mbx;
302 mbx->ops.init_params = e1000_null_ops_generic;
303 mbx->ops.read = e1000_null_mbx_transact;
304 mbx->ops.write = e1000_null_mbx_transact;
305 mbx->ops.check_for_msg = e1000_null_mbx_check_for_flag;
306 mbx->ops.check_for_ack = e1000_null_mbx_check_for_flag;
307 mbx->ops.check_for_rst = e1000_null_mbx_check_for_flag;
308 mbx->ops.read_posted = e1000_read_posted_mbx;
309 mbx->ops.write_posted = e1000_write_posted_mbx;
365 hw->mbx.stats.reqs++;
386 hw->mbx.stats.acks++;
408 hw->mbx.stats.rsts++;
468 hw->mbx.stats.msgs_tx++;
507 hw->mbx.stats.msgs_rx++;
517 * Initializes the hw->mbx struct to correct values for vf mailbox
521 struct e1000_mbx_info *mbx = &hw->mbx;
525 mbx->timeout = 0;
526 mbx->usec_delay = E1000_VF_MBX_INIT_DELAY;
528 mbx->size = E1000_VFMAILBOX_SIZE;
530 mbx->ops.read = e1000_read_mbx_vf;
531 mbx->ops.write = e1000_write_mbx_vf;
532 mbx->ops.read_posted = e1000_read_posted_mbx;
533 mbx->ops.write_posted = e1000_write_posted_mbx;
534 mbx->ops.check_for_msg = e1000_check_for_msg_vf;
535 mbx->ops.check_for_ack = e1000_check_for_ack_vf;
536 mbx->ops.check_for_rst = e1000_check_for_rst_vf;
538 mbx->stats.msgs_tx = 0;
539 mbx->stats.msgs_rx = 0;
540 mbx->stats.reqs = 0;
541 mbx->stats.acks = 0;
542 mbx->stats.rsts = 0;
575 hw->mbx.stats.reqs++;
596 hw->mbx.stats.acks++;
619 hw->mbx.stats.rsts++;
684 hw->mbx.stats.msgs_tx++;
723 hw->mbx.stats.msgs_rx++;
733 * Initializes the hw->mbx struct to correct values for pf mailbox
737 struct e1000_mbx_info *mbx = &hw->mbx;
742 mbx->timeout = 0;
743 mbx->usec_delay = 0;
745 mbx->size = E1000_VFMAILBOX_SIZE;
747 mbx->ops.read = e1000_read_mbx_pf;
748 mbx->ops.write = e1000_write_mbx_pf;
749 mbx->ops.read_posted = e1000_read_posted_mbx;
750 mbx->ops.write_posted = e1000_write_posted_mbx;
751 mbx->ops.check_for_msg = e1000_check_for_msg_pf;
752 mbx->ops.check_for_ack = e1000_check_for_ack_pf;
753 mbx->ops.check_for_rst = e1000_check_for_rst_pf;
755 mbx->stats.msgs_tx = 0;
756 mbx->stats.msgs_rx = 0;
757 mbx->stats.reqs = 0;
758 mbx->stats.acks = 0;
759 mbx->stats.rsts = 0;