Home
last modified time | relevance | path

Searched refs:GetScaledFraction (Results 1 – 2 of 2) sorted by relevance

/linux-6.6.21/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dppatomctrl.c711 fInt fStepSize = GetScaledFraction(625, 100000); in atomctrl_calculate_voltage_evv_on_sclk()
736 fDerateTDP = GetScaledFraction(le32_to_cpu(getASICProfilingInfo->ulTdpDerateDPM1), 1000); in atomctrl_calculate_voltage_evv_on_sclk()
739 fDerateTDP = GetScaledFraction(le32_to_cpu(getASICProfilingInfo->ulTdpDerateDPM2), 1000); in atomctrl_calculate_voltage_evv_on_sclk()
742 fDerateTDP = GetScaledFraction(le32_to_cpu(getASICProfilingInfo->ulTdpDerateDPM3), 1000); in atomctrl_calculate_voltage_evv_on_sclk()
745 fDerateTDP = GetScaledFraction(le32_to_cpu(getASICProfilingInfo->ulTdpDerateDPM4), 1000); in atomctrl_calculate_voltage_evv_on_sclk()
748 fDerateTDP = GetScaledFraction(le32_to_cpu(getASICProfilingInfo->ulTdpDerateDPM5), 1000); in atomctrl_calculate_voltage_evv_on_sclk()
751 fDerateTDP = GetScaledFraction(le32_to_cpu(getASICProfilingInfo->ulTdpDerateDPM6), 1000); in atomctrl_calculate_voltage_evv_on_sclk()
754 fDerateTDP = GetScaledFraction(le32_to_cpu(getASICProfilingInfo->ulTdpDerateDPM7), 1000); in atomctrl_calculate_voltage_evv_on_sclk()
758 fDerateTDP = GetScaledFraction(le32_to_cpu(getASICProfilingInfo->ulTdpDerateDPM0), 1000); in atomctrl_calculate_voltage_evv_on_sclk()
783 fMin = GetScaledFraction(le32_to_cpu(sRO_fuse.ulEfuseMin), 1); in atomctrl_calculate_voltage_evv_on_sclk()
[all …]
Dppevvmath.h55 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