Searched refs:GetScaledFraction (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
H A D | ppatomctrl.c | 712 fInt fStepSize = GetScaledFraction(625, 100000); in atomctrl_calculate_voltage_evv_on_sclk() 784 fMin = GetScaledFraction(le32_to_cpu(sRO_fuse.ulEfuseMin), 1); in atomctrl_calculate_voltage_evv_on_sclk() 953 fMargin_FMAX_mean = GetScaledFraction( in atomctrl_calculate_voltage_evv_on_sclk() 955 fMargin_Plat_mean = GetScaledFraction( in atomctrl_calculate_voltage_evv_on_sclk() 957 fMargin_FMAX_sigma = GetScaledFraction( in atomctrl_calculate_voltage_evv_on_sclk() 959 fMargin_Plat_sigma = GetScaledFraction( in atomctrl_calculate_voltage_evv_on_sclk() 962 fMargin_DC_sigma = GetScaledFraction( in atomctrl_calculate_voltage_evv_on_sclk() 972 fSclk = GetScaledFraction(sclk, 100); in atomctrl_calculate_voltage_evv_on_sclk() 974 fV_max = fDivide(GetScaledFraction( in atomctrl_calculate_voltage_evv_on_sclk() 979 fV_FT = fDivide(GetScaledFraction( in atomctrl_calculate_voltage_evv_on_sclk() [all …]
|
H A D | ppevvmath.h | 55 static fInt GetScaledFraction(int, int); /* Use this to convert an INT to a FINT a… 130 if (GreaterThan(exponent, GetScaledFraction(k_array[i], 10000))) { in fExponential() 131 exponent = fSubtract(exponent, GetScaledFraction(k_array[i], 10000)); in fExponential() 132 solution = fMultiply(solution, GetScaledFraction(expk_array[i], 10000)); in fExponential() 160 if (GreaterThan(value, GetScaledFraction(k_array[i], 10000))) { in fNaturalLog() 161 value = fDivide(value, GetScaledFraction(k_array[i], 10000)); in fNaturalLog() 162 solution = fAdd(solution, GetScaledFraction(logk_array[i], 10000)); in fNaturalLog() 248 static fInt GetScaledFraction(int X, int factor) in GetScaledFraction() function
|