src/dpdk/drivers/net/e1000/base/e1000_mbx.c
s32 e1000_init_mbx_params_vf(struct e1000_hw *hw)
{
	struct e1000_mbx_info *mbx = &hw->mbx;

	/* start mailbox as timed out and let the reset_hw call set the timeout
	 * value to begin communications */
	mbx->timeout = 0;
	mbx->usec_delay = E1000_VF_MBX_INIT_DELAY;

	mbx->size = E1000_VFMAILBOX_SIZE;

	mbx->ops.read = e1000_read_mbx_vf;
	mbx->ops.write = e1000_write_mbx_vf;
	mbx->ops.read_posted = e1000_read_posted_mbx;
	mbx->ops.write_posted = e1000_write_posted_mbx;
	mbx->ops.check_for_msg = e1000_check_for_msg_vf;
	mbx->ops.check_for_ack = e1000_check_for_ack_vf;
	mbx->ops.check_for_rst = e1000_check_for_rst_vf;

	mbx->stats.msgs_tx = 0;
	mbx->stats.msgs_rx = 0;
	mbx->stats.reqs = 0;
	mbx->stats.acks = 0;
	mbx->stats.rsts = 0;

	return E1000_SUCCESS;
}
/**
 *  e1000_init_mbx_params_vf - set initial values for vf mailbox
 *  @hw: pointer to the HW structure
 *
 *  Initializes the hw->mbx struct to correct values for vf mailbox
 */
set initial values for vf mailbox
@hw: pointer to the HW structure

Initializes the hw->mbx struct to correct values for vf mailbox
set initial values for vf mailbox @hw : pointer to the HW structure Initializes the hw - > mbx struct to correct values for vf mailbox
s32 e1000_init_mbx_params_vf(struct e1000_hw *hw)
{
	struct e1000_mbx_info *mbx = &hw->mbx;
	mbx->timeout = 0;
	mbx->usec_delay = E1000_VF_MBX_INIT_DELAY;
	mbx->size = E1000_VFMAILBOX_SIZE;
	mbx->ops.read = e1000_read_mbx_vf;
	mbx->ops.write = e1000_write_mbx_vf;
	mbx->ops.read_posted = e1000_read_posted_mbx;
	mbx->ops.write_posted = e1000_write_posted_mbx;
	mbx->ops.check_for_msg = e1000_check_for_msg_vf;
	mbx->ops.check_for_ack = e1000_check_for_ack_vf;
	mbx->ops.check_for_rst = e1000_check_for_rst_vf;
	mbx->stats.msgs_tx = 0;
	mbx->stats.msgs_rx = 0;
	mbx->stats.reqs = 0;
	mbx->stats.acks = 0;
	mbx->stats.rsts = 0;
	return E1000_SUCCESS;
}
s32 e1000_init_mbx_params_vf ( struct e1000_hw * hw ) { struct e1000_mbx_info * mbx = & hw -> mbx ; mbx -> timeout = 0 ; mbx -> usec_delay = E1000_VF_MBX_INIT_DELAY ; mbx -> size = E1000_VFMAILBOX_SIZE ; mbx -> ops . read = e1000_read_mbx_vf ; mbx -> ops . write = e1000_write_mbx_vf ; mbx -> ops . read_posted = e1000_read_posted_mbx ; mbx -> ops . write_posted = e1000_write_posted_mbx ; mbx -> ops . check_for_msg = e1000_check_for_msg_vf ; mbx -> ops . check_for_ack = e1000_check_for_ack_vf ; mbx -> ops . check_for_rst = e1000_check_for_rst_vf ; mbx -> stats . msgs_tx = 0 ; mbx -> stats . msgs_rx = 0 ; mbx -> stats . reqs = 0 ; mbx -> stats . acks = 0 ; mbx -> stats . rsts = 0 ; return E1000_SUCCESS ; }
e1000_init_mbx_params_vf - set initial values for vf mailbox
  @hw: pointer to the HW structure
e1000_init_mbx_params_vf - set initial values for vf mailbox @hw : pointer to the HW structure
/* start mailbox as timed out and let the reset_hw call set the timeout
	 * value to begin communications */