GetScaledFraction 672 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fInt fStepSize = GetScaledFraction(625, 100000); GetScaledFraction 698 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fDerateTDP = GetScaledFraction(le32_to_cpu(getASICProfilingInfo->ulTdpDerateDPM1), 1000); GetScaledFraction 702 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fDerateTDP = GetScaledFraction(le32_to_cpu(getASICProfilingInfo->ulTdpDerateDPM2), 1000); GetScaledFraction 706 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fDerateTDP = GetScaledFraction(le32_to_cpu(getASICProfilingInfo->ulTdpDerateDPM3), 1000); GetScaledFraction 710 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fDerateTDP = GetScaledFraction(le32_to_cpu(getASICProfilingInfo->ulTdpDerateDPM4), 1000); GetScaledFraction 714 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fDerateTDP = GetScaledFraction(le32_to_cpu(getASICProfilingInfo->ulTdpDerateDPM5), 1000); GetScaledFraction 718 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fDerateTDP = GetScaledFraction(le32_to_cpu(getASICProfilingInfo->ulTdpDerateDPM6), 1000); GetScaledFraction 722 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fDerateTDP = GetScaledFraction(le32_to_cpu(getASICProfilingInfo->ulTdpDerateDPM7), 1000); GetScaledFraction 727 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fDerateTDP = GetScaledFraction(le32_to_cpu(getASICProfilingInfo->ulTdpDerateDPM0), 1000); GetScaledFraction 752 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fMin = GetScaledFraction(le32_to_cpu(sRO_fuse.ulEfuseMin), 1); GetScaledFraction 753 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fRange = GetScaledFraction(le32_to_cpu(sRO_fuse.ulEfuseEncodeRange), 1); GetScaledFraction 772 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fMin = GetScaledFraction(le32_to_cpu(sCACm_fuse.ulEfuseMin), 1000); GetScaledFraction 773 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fRange = GetScaledFraction(le32_to_cpu(sCACm_fuse.ulEfuseEncodeRange), 1000); GetScaledFraction 792 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fMin = GetScaledFraction(le32_to_cpu(sCACb_fuse.ulEfuseMin), 1000); GetScaledFraction 793 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fRange = GetScaledFraction(le32_to_cpu(sCACb_fuse.ulEfuseEncodeRange), 1000); GetScaledFraction 813 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fAverage = GetScaledFraction(le32_to_cpu(sKt_Beta_fuse.ulEfuseEncodeAverage), 1000); GetScaledFraction 814 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fRange = GetScaledFraction(le32_to_cpu(sKt_Beta_fuse.ulEfuseEncodeRange), 1000); GetScaledFraction 834 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fAverage = GetScaledFraction(le32_to_cpu(sKv_m_fuse.ulEfuseEncodeAverage), 1000); GetScaledFraction 835 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fRange = GetScaledFraction((le32_to_cpu(sKv_m_fuse.ulEfuseEncodeRange) & 0x7fffffff), 1000); GetScaledFraction 856 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fAverage = GetScaledFraction(le32_to_cpu(sKv_b_fuse.ulEfuseEncodeAverage), 1000); GetScaledFraction 857 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fRange = GetScaledFraction(le32_to_cpu(sKv_b_fuse.ulEfuseEncodeRange), 1000); GetScaledFraction 887 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fLn_MaxDivMin = GetScaledFraction(le32_to_cpu(getASICProfilingInfo->ulLkgEncodeLn_MaxDivMin), 10000); GetScaledFraction 888 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fMin = GetScaledFraction(le32_to_cpu(getASICProfilingInfo->ulLkgEncodeMin), 10000); GetScaledFraction 898 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fSM_A0 = fMultiply(GetScaledFraction(le32_to_cpu(getASICProfilingInfo->ulSM_A0), 1000000), GetScaledFraction 900 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fSM_A1 = fMultiply(GetScaledFraction(le32_to_cpu(getASICProfilingInfo->ulSM_A1), 1000000), GetScaledFraction 902 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fSM_A2 = fMultiply(GetScaledFraction(le32_to_cpu(getASICProfilingInfo->ulSM_A2), 100000), GetScaledFraction 904 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fSM_A3 = fMultiply(GetScaledFraction(le32_to_cpu(getASICProfilingInfo->ulSM_A3), 1000000), GetScaledFraction 906 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fSM_A4 = fMultiply(GetScaledFraction(le32_to_cpu(getASICProfilingInfo->ulSM_A4), 1000000), GetScaledFraction 908 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fSM_A5 = fMultiply(GetScaledFraction(le32_to_cpu(getASICProfilingInfo->ulSM_A5), 1000), GetScaledFraction 910 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fSM_A6 = fMultiply(GetScaledFraction(le32_to_cpu(getASICProfilingInfo->ulSM_A6), 1000), GetScaledFraction 912 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fSM_A7 = fMultiply(GetScaledFraction(le32_to_cpu(getASICProfilingInfo->ulSM_A7), 1000), GetScaledFraction 921 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fMargin_FMAX_mean = GetScaledFraction( GetScaledFraction 923 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fMargin_Plat_mean = GetScaledFraction( GetScaledFraction 925 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fMargin_FMAX_sigma = GetScaledFraction( GetScaledFraction 927 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fMargin_Plat_sigma = GetScaledFraction( GetScaledFraction 930 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fMargin_DC_sigma = GetScaledFraction( GetScaledFraction 940 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fSclk = GetScaledFraction(sclk, 100); GetScaledFraction 942 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fV_max = fDivide(GetScaledFraction( GetScaledFraction 944 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fT_prod = GetScaledFraction(le32_to_cpu(getASICProfilingInfo->ulBoardCoreTemp), 10); GetScaledFraction 945 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fLKG_Factor = GetScaledFraction(le32_to_cpu(getASICProfilingInfo->ulEvvLkgFactor), 100); GetScaledFraction 946 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fT_FT = GetScaledFraction(le32_to_cpu(getASICProfilingInfo->ulLeakageTemp), 10); GetScaledFraction 947 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fV_FT = fDivide(GetScaledFraction( GetScaledFraction 949 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fV_min = fDivide(GetScaledFraction( GetScaledFraction 55 drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h static fInt GetScaledFraction(int, int); /* Use this to convert an INT to a FINT after scaling it by a factor */ GetScaledFraction 130 drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h if (GreaterThan(exponent, GetScaledFraction(k_array[i], 10000))) { GetScaledFraction 131 drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h exponent = fSubtract(exponent, GetScaledFraction(k_array[i], 10000)); GetScaledFraction 132 drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h solution = fMultiply(solution, GetScaledFraction(expk_array[i], 10000)); GetScaledFraction 160 drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h if (GreaterThan(value, GetScaledFraction(k_array[i], 10000))) { GetScaledFraction 161 drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h value = fDivide(value, GetScaledFraction(k_array[i], 10000)); GetScaledFraction 162 drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h solution = fAdd(solution, GetScaledFraction(logk_array[i], 10000));