Lines Matching defs:mbx

79 	struct e1000_mbx_info *mbx = &hw->mbx;
85 if (size > mbx->size)
86 size = mbx->size;
88 if (mbx->ops.read)
89 ret_val = mbx->ops.read(hw, msg, size, mbx_id);
105 struct e1000_mbx_info *mbx = &hw->mbx;
110 if (size > mbx->size)
113 else if (mbx->ops.write)
114 ret_val = mbx->ops.write(hw, msg, size, mbx_id);
128 struct e1000_mbx_info *mbx = &hw->mbx;
133 if (mbx->ops.check_for_msg)
134 ret_val = mbx->ops.check_for_msg(hw, mbx_id);
148 struct e1000_mbx_info *mbx = &hw->mbx;
153 if (mbx->ops.check_for_ack)
154 ret_val = mbx->ops.check_for_ack(hw, mbx_id);
168 struct e1000_mbx_info *mbx = &hw->mbx;
173 if (mbx->ops.check_for_rst)
174 ret_val = mbx->ops.check_for_rst(hw, mbx_id);
188 struct e1000_mbx_info *mbx = &hw->mbx;
189 int countdown = mbx->timeout;
193 if (!countdown || !mbx->ops.check_for_msg)
196 while (countdown && mbx->ops.check_for_msg(hw, mbx_id)) {
200 usec_delay(mbx->usec_delay);
205 mbx->timeout = 0;
219 struct e1000_mbx_info *mbx = &hw->mbx;
220 int countdown = mbx->timeout;
224 if (!countdown || !mbx->ops.check_for_ack)
227 while (countdown && mbx->ops.check_for_ack(hw, mbx_id)) {
231 usec_delay(mbx->usec_delay);
236 mbx->timeout = 0;
253 struct e1000_mbx_info *mbx = &hw->mbx;
258 if (!mbx->ops.read)
265 ret_val = mbx->ops.read(hw, msg, size, mbx_id);
282 struct e1000_mbx_info *mbx = &hw->mbx;
288 if (!mbx->ops.write || !mbx->timeout)
292 ret_val = mbx->ops.write(hw, msg, size, mbx_id);
302 * e1000_init_mbx_ops_generic - Initialize mbx function pointers
309 struct e1000_mbx_info *mbx = &hw->mbx;
310 mbx->ops.init_params = e1000_null_ops_generic;
311 mbx->ops.read = e1000_null_mbx_transact;
312 mbx->ops.write = e1000_null_mbx_transact;
313 mbx->ops.check_for_msg = e1000_null_mbx_check_for_flag;
314 mbx->ops.check_for_ack = e1000_null_mbx_check_for_flag;
315 mbx->ops.check_for_rst = e1000_null_mbx_check_for_flag;
316 mbx->ops.read_posted = e1000_read_posted_mbx;
317 mbx->ops.write_posted = e1000_write_posted_mbx;
374 hw->mbx.stats.reqs++;
396 hw->mbx.stats.acks++;
419 hw->mbx.stats.rsts++;
485 hw->mbx.stats.msgs_tx++;
524 hw->mbx.stats.msgs_rx++;
534 * Initializes the hw->mbx struct to correct values for vf mailbox
538 struct e1000_mbx_info *mbx = &hw->mbx;
542 mbx->timeout = 0;
543 mbx->usec_delay = E1000_VF_MBX_INIT_DELAY;
545 mbx->size = E1000_VFMAILBOX_SIZE;
547 mbx->ops.read = e1000_read_mbx_vf;
548 mbx->ops.write = e1000_write_mbx_vf;
549 mbx->ops.read_posted = e1000_read_posted_mbx;
550 mbx->ops.write_posted = e1000_write_posted_mbx;
551 mbx->ops.check_for_msg = e1000_check_for_msg_vf;
552 mbx->ops.check_for_ack = e1000_check_for_ack_vf;
553 mbx->ops.check_for_rst = e1000_check_for_rst_vf;
555 mbx->stats.msgs_tx = 0;
556 mbx->stats.msgs_rx = 0;
557 mbx->stats.reqs = 0;
558 mbx->stats.acks = 0;
559 mbx->stats.rsts = 0;
592 hw->mbx.stats.reqs++;
613 hw->mbx.stats.acks++;
636 hw->mbx.stats.rsts++;
709 hw->mbx.stats.msgs_tx++;
748 hw->mbx.stats.msgs_rx++;
758 * Initializes the hw->mbx struct to correct values for pf mailbox
762 struct e1000_mbx_info *mbx = &hw->mbx;
768 mbx->timeout = 0;
769 mbx->usec_delay = 0;
771 mbx->size = E1000_VFMAILBOX_SIZE;
773 mbx->ops.read = e1000_read_mbx_pf;
774 mbx->ops.write = e1000_write_mbx_pf;
775 mbx->ops.read_posted = e1000_read_posted_mbx;
776 mbx->ops.write_posted = e1000_write_posted_mbx;
777 mbx->ops.check_for_msg = e1000_check_for_msg_pf;
778 mbx->ops.check_for_ack = e1000_check_for_ack_pf;
779 mbx->ops.check_for_rst = e1000_check_for_rst_pf;
781 mbx->stats.msgs_tx = 0;
782 mbx->stats.msgs_rx = 0;
783 mbx->stats.reqs = 0;
784 mbx->stats.acks = 0;
785 mbx->stats.rsts = 0;