src/dpdk/drivers/net/txgbe/base/txgbe_mbx.c
s32 txgbe_read_mbx(struct txgbe_hw *hw, u32 *msg, u16 size, u16 mbx_id)
{
	struct txgbe_mbx_info *mbx = &hw->mbx;
	s32 ret_val = TXGBE_ERR_MBX;

	DEBUGFUNC("txgbe_read_mbx");

	/* limit read to size of mailbox */
	if (size > mbx->size)
		size = mbx->size;

	if (mbx->read)
		ret_val = mbx->read(hw, msg, size, mbx_id);

	return ret_val;
}
/**
 *  txgbe_read_mbx - Reads a message from the mailbox
 *  @hw: pointer to the HW structure
 *  @msg: The message buffer
 *  @size: Length of buffer
 *  @mbx_id: id of mailbox to read
 *
 *  returns 0 if it successfully read message from buffer
 **/
Reads a message from the mailbox
@hw: pointer to the HW structure
@msg: The message buffer
@size: Length of buffer
@mbx_id: id of mailbox to read

returns 0 if it successfully read message from buffer
Reads a message from the mailbox @hw : pointer to the HW structure @msg : The message buffer @size : Length of buffer @mbx_id : id of mailbox to read returns 0 if it successfully read message from buffer
s32 txgbe_read_mbx(struct txgbe_hw *hw, u32 *msg, u16 size, u16 mbx_id)
{
	struct txgbe_mbx_info *mbx = &hw->mbx;
	s32 ret_val = TXGBE_ERR_MBX;
	DEBUGFUNC("txgbe_read_mbx");
	if (size > mbx->size)
		size = mbx->size;
	if (mbx->read)
		ret_val = mbx->read(hw, msg, size, mbx_id);
	return ret_val;
}
s32 txgbe_read_mbx ( struct txgbe_hw * hw , u32 * msg , u16 size , u16 mbx_id ) { struct txgbe_mbx_info * mbx = & hw -> mbx ; s32 ret_val = TXGBE_ERR_MBX ; DEBUGFUNC ( " " ) ; if ( size > mbx -> size ) size = mbx -> size ; if ( mbx -> read ) ret_val = mbx -> read ( hw , msg , size , mbx_id ) ; return ret_val ; }
txgbe_read_mbx - Reads a message from the mailbox
  @hw: pointer to the HW structure
  @msg: The message buffer
  @size: Length of buffer
  @mbx_id: id of mailbox to read
txgbe_read_mbx - Reads a message from the mailbox @hw : pointer to the HW structure @msg : The message buffer @size : Length of buffer @mbx_id : id of mailbox to read
/* limit read to size of mailbox */