ConvertToFraction 836 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fRange = fMultiply(fRange, ConvertToFraction(-1)); ConvertToFraction 899 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c ConvertToFraction(uPow(-1, getASICProfilingInfo->ucSM_A0_sign))); ConvertToFraction 901 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c ConvertToFraction(uPow(-1, getASICProfilingInfo->ucSM_A1_sign))); ConvertToFraction 903 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c ConvertToFraction(uPow(-1, getASICProfilingInfo->ucSM_A2_sign))); ConvertToFraction 905 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c ConvertToFraction(uPow(-1, getASICProfilingInfo->ucSM_A3_sign))); ConvertToFraction 907 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c ConvertToFraction(uPow(-1, getASICProfilingInfo->ucSM_A4_sign))); ConvertToFraction 909 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c ConvertToFraction(uPow(-1, getASICProfilingInfo->ucSM_A5_sign))); ConvertToFraction 911 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c ConvertToFraction(uPow(-1, getASICProfilingInfo->ucSM_A6_sign))); ConvertToFraction 913 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c ConvertToFraction(uPow(-1, getASICProfilingInfo->ucSM_A7_sign))); ConvertToFraction 915 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fMargin_RO_a = ConvertToFraction(le32_to_cpu(getASICProfilingInfo->ulMargin_RO_a)); ConvertToFraction 916 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fMargin_RO_b = ConvertToFraction(le32_to_cpu(getASICProfilingInfo->ulMargin_RO_b)); ConvertToFraction 917 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fMargin_RO_c = ConvertToFraction(le32_to_cpu(getASICProfilingInfo->ulMargin_RO_c)); ConvertToFraction 919 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fMargin_fixed = ConvertToFraction(le32_to_cpu(getASICProfilingInfo->ulMargin_fixed)); ConvertToFraction 932 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fMargin_DC_sigma = fDivide(fMargin_DC_sigma, ConvertToFraction(1000)); ConvertToFraction 934 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fCACm_fused = fDivide(fCACm_fused, ConvertToFraction(100)); ConvertToFraction 935 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fCACb_fused = fDivide(fCACb_fused, ConvertToFraction(100)); ConvertToFraction 936 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fKt_Beta_fused = fDivide(fKt_Beta_fused, ConvertToFraction(100)); ConvertToFraction 937 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fKv_m_fused = fNegate(fDivide(fKv_m_fused, ConvertToFraction(100))); ConvertToFraction 938 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fKv_b_fused = fDivide(fKv_b_fused, ConvertToFraction(10)); ConvertToFraction 943 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c le32_to_cpu(getASICProfilingInfo->ulMaxVddc), 1000), ConvertToFraction(4)); ConvertToFraction 948 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c le32_to_cpu(getASICProfilingInfo->ulLeakageVoltage), 1000), ConvertToFraction(4)); ConvertToFraction 950 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c le32_to_cpu(getASICProfilingInfo->ulMinVddc), 1000), ConvertToFraction(4)); ConvertToFraction 971 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fDivide(fMargin_DC_sigma, ConvertToFraction(1000))); ConvertToFraction 1057 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c ConvertToFraction(10))); ConvertToFraction 1064 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c fV_NL = fMultiply(fV_NL, ConvertToFraction(1000)); ConvertToFraction 53 drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h static fInt ConvertToFraction(int); /* Use this to convert an INT to a FINT */ ConvertToFraction 113 drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h fInt fPositiveOne = ConvertToFraction(1); ConvertToFraction 114 drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h fInt fZERO = ConvertToFraction(0); ConvertToFraction 151 drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h fInt fNegativeOne = ConvertToFraction(-1); ConvertToFraction 152 drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h fInt solution = ConvertToFraction(0); /*Starting off with baseline of 0 */ ConvertToFraction 192 drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h fInt f_CONSTANT_NEG13 = ConvertToFraction(-13); ConvertToFraction 193 drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h fInt f_CONSTANT1 = ConvertToFraction(1); ConvertToFraction 232 drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h fInt CONSTANT_NEGONE = ConvertToFraction(-1); ConvertToFraction 286 drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h return ConvertToFraction(X); ConvertToFraction 288 drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h fValue = fDivide(ConvertToFraction(X * uPow(-1, bNEGATED)), ConvertToFraction(factor)); ConvertToFraction 361 drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h fZERO = ConvertToFraction(0); ConvertToFraction 404 drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h fInt fZERO = ConvertToFraction(0); ConvertToFraction 427 drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h twoShifted = ConvertToFraction(2); ConvertToFraction 428 drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h x_new = ConvertToFraction(seed); ConvertToFraction 459 drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h f_CONSTANT100 = ConvertToFraction(100); ConvertToFraction 460 drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h f_CONSTANT10 = ConvertToFraction(10); ConvertToFraction 468 drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h temp = fMultiply(ConvertToFraction(4), A); /* root = 4*A */ ConvertToFraction 476 drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h root_first = fDivide(root_first, ConvertToFraction(2)); /* [b +- Sqrt(b^2 - 4AC)]/[2] */ ConvertToFraction 479 drivers/gpu/drm/amd/powerplay/hwmgr/ppevvmath.h root_second = fDivide(root_second, ConvertToFraction(2)); /* [b +- Sqrt(b^2 - 4AC)]/[2] */