src/dpdk/drivers/net/bnxt/tf_ulp/ulp_utils.c
uint32_t
ulp_regfile_read(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 */
	}

	*data = regfile->entry[field].data;
	return sizeof(*data);
}
/*
 * Read a value from the regfile
 *
 * regfile [in] The regfile instance. Must be initialized prior to being used
 *
 * field [in] The field to be read within the regfile.
 *
 * data [in/out]
 *
 * returns size, zero on failure
 */
Read a value from the regfile
regfile [in] The regfile instance. Must be initialized prior to being used

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

data [in/out]

returns size, zero on failure
Read a value from the regfile regfile [ in ] The regfile instance . Must be initialized prior to being used field [ in ] The field to be read within the regfile . data [ in / out ] returns size zero on failure
uint32_t
ulp_regfile_read(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; 
	}
	*data = regfile->entry[field].data;
	return sizeof(*data);
}
uint32_t ulp_regfile_read ( 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 ; } * data = regfile -> entry [ field ] . data ; return sizeof ( * data ) ; }
Read a value from the regfile
 regfile [in] The regfile instance.
Read a value from the regfile regfile [ in ] The regfile instance .
/* validate the arguments */ /* failure */