src/dpdk/drivers/net/bnxt/tf_ulp/ulp_utils.c
uint32_t
ulp_regfile_write(struct ulp_regfile *regfile,
		  enum bnxt_ulp_regfile_index field,
		  uint64_t data)
{
	/* validate the arguments */
	if (!regfile || field >= BNXT_ULP_REGFILE_INDEX_LAST) {
		BNXT_TF_DBG(ERR, "invalid argument\n");
		return 0; /* failure */
	}

	regfile->entry[field].data = data;
	return sizeof(data); /* Success */
}
/*
 * Write a value to the regfile
 *
 * regfile [in] The regfile instance.  Must be initialized prior to being used
 *
 * field [in] The field to be written within the regfile.
 *
 * data [in] The value is written into this variable.  It is going to be in the
 * same byte order as it was written.
 *
 * size [in] The size in bytes of the value beingritten into this
 * variable.
 *
 * returns 0 on fail
 */
Write a value to the regfile
regfile [in] The regfile instance.  Must be initialized prior to being used

field [in] The field to be written within the regfile.

data [in] The value is written into this variable.  It is going to be in the
same byte order as it was written.

size [in] The size in bytes of the value beingritten into this
variable.

returns 0 on fail
Write a value to the regfile regfile [ in ] The regfile instance . Must be initialized prior to being used field [ in ] The field to be written within the regfile . data [ in ] The value is written into this variable . It is going to be in the same byte order as it was written . size [ in ] The size in bytes of the value beingritten into this variable . returns 0 on fail
uint32_t
ulp_regfile_write(struct ulp_regfile *regfile,
		  enum bnxt_ulp_regfile_index field,
		  uint64_t data)
{
	if (!regfile || field >= BNXT_ULP_REGFILE_INDEX_LAST) {
		BNXT_TF_DBG(ERR, "invalid argument\n");
		return 0; 
	}
	regfile->entry[field].data = data;
	return sizeof(data); 
}
uint32_t ulp_regfile_write ( struct ulp_regfile * regfile , enum bnxt_ulp_regfile_index field , uint64_t data ) { if ( ! regfile || field >= BNXT_ULP_REGFILE_INDEX_LAST ) { BNXT_TF_DBG ( ERR , " \n " ) ; return 0 ; } regfile -> entry [ field ] . data = data ; return sizeof ( data ) ; }
Write a value to the regfile
 regfile [in] The regfile instance.
Write a value to the regfile regfile [ in ] The regfile instance .
/* validate the arguments */ /* failure */ /* Success */