src/dpdk/drivers/net/cxgbe/base/t4vf_hw.c
int t4vf_get_vpd_params(struct adapter *adapter)
{
	struct vpd_params *vpd_params = &adapter->params.vpd;
	u32 params[7], vals[7];
	int v;

	params[0] = (V_FW_PARAMS_MNEM(FW_PARAMS_MNEM_DEV) |
		     V_FW_PARAMS_PARAM_X(FW_PARAMS_PARAM_DEV_CCLK));
	v = t4vf_query_params(adapter, 1, params, vals);
	if (v != FW_SUCCESS)
		return v;
	vpd_params->cclk = vals[0];
	dev_debug(adapter, "%s: vpd_params->cclk = %u\n",
		  __func__, vpd_params->cclk);
	return 0;
}
/**
 * t4vf_get_vpd_params - retrieve device VPD paremeters
 * @adapter: the adapter
 *
 * Retrives various device Vital Product Data parameters.  The parameters
 * are stored in @adapter->params.vpd.
 */
retrieve device VPD paremeters
@adapter: the adapter

Retrives various device Vital Product Data parameters.  The parameters
are stored in @adapter->params.vpd.
retrieve device VPD paremeters @adapter : the adapter Retrives various device Vital Product Data parameters . The parameters are stored in @adapter - > params . vpd .
int t4vf_get_vpd_params(struct adapter *adapter)
{
	struct vpd_params *vpd_params = &adapter->params.vpd;
	u32 params[7], vals[7];
	int v;
	params[0] = (V_FW_PARAMS_MNEM(FW_PARAMS_MNEM_DEV) |
		     V_FW_PARAMS_PARAM_X(FW_PARAMS_PARAM_DEV_CCLK));
	v = t4vf_query_params(adapter, 1, params, vals);
	if (v != FW_SUCCESS)
		return v;
	vpd_params->cclk = vals[0];
	dev_debug(adapter, "%s: vpd_params->cclk = %u\n",
		  __func__, vpd_params->cclk);
	return 0;
}
int t4vf_get_vpd_params ( struct adapter * adapter ) { struct vpd_params * vpd_params = & adapter -> params . vpd ; u32 params [ 7 ] , vals [ 7 ] ; int v ; params [ 0 ] = ( V_FW_PARAMS_MNEM ( FW_PARAMS_MNEM_DEV ) | V_FW_PARAMS_PARAM_X ( FW_PARAMS_PARAM_DEV_CCLK ) ) ; v = t4vf_query_params ( adapter , 1 , params , vals ) ; if ( v != FW_SUCCESS ) return v ; vpd_params -> cclk = vals [ 0 ] ; dev_debug ( adapter , " \n " , __func__ , vpd_params -> cclk ) ; return 0 ; }
t4vf_get_vpd_params - retrieve device VPD paremeters
 @adapter: the adapter
t4vf_get_vpd_params - retrieve device VPD paremeters @adapter : the adapter