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

	DEBUGFUNC("txgbe_write_mbx");

	if (size > mbx->size) {
		ret_val = TXGBE_ERR_MBX;
		DEBUGOUT("Invalid mailbox message size %d", size);
	} else if (mbx->write) {
		ret_val = mbx->write(hw, msg, size, mbx_id);
	}

	return ret_val;
}
/**
 *  txgbe_write_mbx - Write a message to the mailbox
 *  @hw: pointer to the HW structure
 *  @msg: The message buffer
 *  @size: Length of buffer
 *  @mbx_id: id of mailbox to write
 *
 *  returns 0 if it successfully copied message into the buffer
 **/
Write a message to the mailbox
@hw: pointer to the HW structure
@msg: The message buffer
@size: Length of buffer
@mbx_id: id of mailbox to write

returns 0 if it successfully copied message into the buffer
Write a message to the mailbox @hw : pointer to the HW structure @msg : The message buffer @size : Length of buffer @mbx_id : id of mailbox to write returns 0 if it successfully copied message into the buffer
s32 txgbe_write_mbx(struct txgbe_hw *hw, u32 *msg, u16 size, u16 mbx_id)
{
	struct txgbe_mbx_info *mbx = &hw->mbx;
	s32 ret_val = 0;
	DEBUGFUNC("txgbe_write_mbx");
	if (size > mbx->size) {
		ret_val = TXGBE_ERR_MBX;
		DEBUGOUT("Invalid mailbox message size %d", size);
	} else if (mbx->write) {
		ret_val = mbx->write(hw, msg, size, mbx_id);
	}
	return ret_val;
}
s32 txgbe_write_mbx ( struct txgbe_hw * hw , u32 * msg , u16 size , u16 mbx_id ) { struct txgbe_mbx_info * mbx = & hw -> mbx ; s32 ret_val = 0 ; DEBUGFUNC ( " " ) ; if ( size > mbx -> size ) { ret_val = TXGBE_ERR_MBX ; DEBUGOUT ( " " , size ) ; } else if ( mbx -> write ) { ret_val = mbx -> write ( hw , msg , size , mbx_id ) ; } return ret_val ; }
txgbe_write_mbx - Write a message to the mailbox
  @hw: pointer to the HW structure
  @msg: The message buffer
  @size: Length of buffer
  @mbx_id: id of mailbox to write
txgbe_write_mbx - Write a message to the mailbox @hw : pointer to the HW structure @msg : The message buffer @size : Length of buffer @mbx_id : id of mailbox to write