src/dpdk/drivers/net/bnxt/tf_ulp/ulp_utils.c
uint32_t
ulp_blob_init(struct ulp_blob *blob,
	      uint16_t bitlen,
	      enum bnxt_ulp_byte_order order)
{
	/* validate the arguments */
	if (!blob || bitlen > (8 * sizeof(blob->data))) {
		BNXT_TF_DBG(ERR, "invalid argument\n");
		return 0; /* failure */
	}
	blob->bitlen = bitlen;
	blob->byte_order = order;
	blob->write_idx = 0;
	memset(blob->data, 0, sizeof(blob->data));
	return 1; /* Success */
}
/*
 * Initializes the blob structure for creating binary blob
 *
 * blob [in] The blob to be initialized
 *
 * bitlen [in] The bit length of the blob
 *
 * order [in] The byte order for the blob.  Currently only supporting
 * big endian.  All fields are packed with this order.
 *
 * returns 0 on error or 1 on success
 */
Initializes the blob structure for creating binary blob
blob [in] The blob to be initialized

bitlen [in] The bit length of the blob

order [in] The byte order for the blob.  Currently only supporting
big endian.  All fields are packed with this order.

returns 0 on error or 1 on success
Initializes the blob structure for creating binary blob blob [ in ] The blob to be initialized bitlen [ in ] The bit length of the blob order [ in ] The byte order for the blob . Currently only supporting big endian . All fields are packed with this order . returns 0 on error or 1 on success
uint32_t
ulp_blob_init(struct ulp_blob *blob,
	      uint16_t bitlen,
	      enum bnxt_ulp_byte_order order)
{
	if (!blob || bitlen > (8 * sizeof(blob->data))) {
		BNXT_TF_DBG(ERR, "invalid argument\n");
		return 0; 
	}
	blob->bitlen = bitlen;
	blob->byte_order = order;
	blob->write_idx = 0;
	memset(blob->data, 0, sizeof(blob->data));
	return 1; 
}
uint32_t ulp_blob_init ( struct ulp_blob * blob , uint16_t bitlen , enum bnxt_ulp_byte_order order ) { if ( ! blob || bitlen > ( 8 * sizeof ( blob -> data ) ) ) { BNXT_TF_DBG ( ERR , " \n " ) ; return 0 ; } blob -> bitlen = bitlen ; blob -> byte_order = order ; blob -> write_idx = 0 ; memset ( blob -> data , 0 , sizeof ( blob -> data ) ) ; return 1 ; }
Initializes the blob structure for creating binary blob
 blob [in] The blob to be initialized
Initializes the blob structure for creating binary blob blob [ in ] The blob to be initialized
/* validate the arguments */ /* failure */ /* Success */