Searched refs:EEP_SCALE (Results 1 – 4 of 4) sorted by relevance
366 lRatio = (target - srcLeft) * EEP_SCALE / (srcRight - srcLeft); in interpolate()370 } else if (lRatio > EEP_SCALE) { in interpolate()374 rv = (lRatio * targetRight + (EEP_SCALE - lRatio) * in interpolate()375 targetLeft) / EEP_SCALE; in interpolate()496 for (i = 0; i < (2 * (pwr - PWR_MIN) / EEP_SCALE + 1); i++) { in ar5111SetPowerTable()
2544 lRatio = (target - srcLeft) * EEP_SCALE / (srcRight - srcLeft); in interpolate()2548 } else if (lRatio > EEP_SCALE) { in interpolate()2552 rv = (lRatio * targetRight + (EEP_SCALE - lRatio) * in interpolate()2553 targetLeft) / EEP_SCALE; in interpolate()2628 uint32_t target = v * EEP_SCALE; in ar5212GetLowerUpperValues()2634 if (target < (uint32_t)(lp[0] * EEP_SCALE - EEP_DELTA)) { in ar5212GetLowerUpperValues()2638 if (target > (uint32_t)(ep[-1] * EEP_SCALE + EEP_DELTA)) { in ar5212GetLowerUpperValues()2649 if (udiff(lp[0] * EEP_SCALE, target) < EEP_DELTA) { in ar5212GetLowerUpperValues()2657 if (target < (uint32_t)(lp[1] * EEP_SCALE - EEP_DELTA)) { in ar5212GetLowerUpperValues()
1449 for (i = 0; i < (2 * (pwr - PWR_MIN) / EEP_SCALE + 1); i++) in ar5211SetPowerTable()1768 uint16_t scaleValue = EEP_SCALE; in ar5211GetInterpolatedValue()1781 lRatio = (target - srcLeft) * EEP_SCALE / (srcRight - srcLeft); in ar5211GetInterpolatedValue()1784 rv = targetLeft * (scaleUp ? EEP_SCALE : 1); in ar5211GetInterpolatedValue()1785 } else if (lRatio > EEP_SCALE) { in ar5211GetInterpolatedValue()1787 rv = targetRight * (scaleUp ? EEP_SCALE : 1); in ar5211GetInterpolatedValue()1789 rv = (lRatio * targetRight + (EEP_SCALE - lRatio) * in ar5211GetInterpolatedValue()1795 rv *= EEP_SCALE; in ar5211GetInterpolatedValue()1817 uint32_t target = value * EEP_SCALE; in ar5211GetLowerUpperValues()1824 if (target < (uint32_t)(*pList * EEP_SCALE - EEP_DELTA)) { in ar5211GetLowerUpperValues()[all …]
129 #define EEP_SCALE 100 /* conversion scale to avoid fp arith */ macro