src/dpdk/drivers/net/bnxt/tf_ulp/ulp_utils.c
uint16_t
ulp_operand_read(uint8_t *operand,
		 uint8_t *val,
		 uint16_t bytes)
{
	/* validate the arguments */
	if (!operand || !val) {
		BNXT_TF_DBG(ERR, "invalid argument\n");
		return 0; /* failure */
	}
	memcpy(val, operand, bytes);
	return bytes;
}
/*
 * Read data from the operand
 *
 * operand [in] A pointer to a 16 Byte operand
 *
 * val [in/out] The variable to copy the operand to
 *
 * bytes [in] The number of bytes to read into val
 *
 * returns number of bits read, zero on error
 */
Read data from the operand
operand [in] A pointer to a 16 Byte operand

val [in/out] The variable to copy the operand to

bytes [in] The number of bytes to read into val

returns number of bits read, zero on error
Read data from the operand operand [ in ] A pointer to a 16 Byte operand val [ in / out ] The variable to copy the operand to bytes [ in ] The number of bytes to read into val returns number of bits read zero on error
uint16_t
ulp_operand_read(uint8_t *operand,
		 uint8_t *val,
		 uint16_t bytes)
{
	if (!operand || !val) {
		BNXT_TF_DBG(ERR, "invalid argument\n");
		return 0; 
	}
	memcpy(val, operand, bytes);
	return bytes;
}
uint16_t ulp_operand_read ( uint8_t * operand , uint8_t * val , uint16_t bytes ) { if ( ! operand || ! val ) { BNXT_TF_DBG ( ERR , " \n " ) ; return 0 ; } memcpy ( val , operand , bytes ) ; return bytes ; }
Read data from the operand
 operand [in] A pointer to a 16 Byte operand
Read data from the operand operand [ in ] A pointer to a 16 Byte operand
/* validate the arguments */ /* failure */