Searched refs:EEP_SCALE (Results 1 – 4 of 4) sorted by relevance
362 lRatio = (target - srcLeft) * EEP_SCALE / (srcRight - srcLeft); in interpolate()366 } else if (lRatio > EEP_SCALE) { in interpolate()370 rv = (lRatio * targetRight + (EEP_SCALE - lRatio) * in interpolate()371 targetLeft) / EEP_SCALE; in interpolate()490 for (i = 0; i < (2 * (pwr - PWR_MIN) / EEP_SCALE + 1); i++) { in ar5111SetPowerTable()
2415 lRatio = (target - srcLeft) * EEP_SCALE / (srcRight - srcLeft); in interpolate()2419 } else if (lRatio > EEP_SCALE) { in interpolate()2423 rv = (lRatio * targetRight + (EEP_SCALE - lRatio) * in interpolate()2424 targetLeft) / EEP_SCALE; in interpolate()2492 uint32_t target = v * EEP_SCALE; in ar5212GetLowerUpperValues()2498 if (target < (uint32_t)(lp[0] * EEP_SCALE - EEP_DELTA)) { in ar5212GetLowerUpperValues()2502 if (target > (uint32_t)(ep[-1] * EEP_SCALE + EEP_DELTA)) { in ar5212GetLowerUpperValues()2513 if (lp[0] * EEP_SCALE - target < EEP_DELTA) { in ar5212GetLowerUpperValues()2521 if (target < (uint32_t)(lp[1] * EEP_SCALE - EEP_DELTA)) { in ar5212GetLowerUpperValues()
1471 for (i = 0; i < (2 * (pwr - PWR_MIN) / EEP_SCALE + 1); i++) in ar5211SetPowerTable()1788 uint16_t scaleValue = EEP_SCALE; in ar5211GetInterpolatedValue()1801 lRatio = (target - srcLeft) * EEP_SCALE / (srcRight - srcLeft); in ar5211GetInterpolatedValue()1804 rv = targetLeft * (scaleUp ? EEP_SCALE : 1); in ar5211GetInterpolatedValue()1805 } else if (lRatio > EEP_SCALE) { in ar5211GetInterpolatedValue()1807 rv = targetRight * (scaleUp ? EEP_SCALE : 1); in ar5211GetInterpolatedValue()1809 rv = (lRatio * targetRight + (EEP_SCALE - lRatio) * in ar5211GetInterpolatedValue()1815 rv *= EEP_SCALE; in ar5211GetInterpolatedValue()1837 uint32_t target = value * EEP_SCALE; in ar5211GetLowerUpperValues()1844 if (target < (uint32_t)(*pList * EEP_SCALE - EEP_DELTA)) { in ar5211GetLowerUpperValues()[all …]
129 #define EEP_SCALE 100 /* conversion scale to avoid fp arith */ macro