Lines Matching refs:EEP_SCALE
1449 for (i = 0; i < (2 * (pwr - PWR_MIN) / EEP_SCALE + 1); i++)
1768 uint16_t scaleValue = EEP_SCALE;
1781 lRatio = (target - srcLeft) * EEP_SCALE / (srcRight - srcLeft);
1784 rv = targetLeft * (scaleUp ? EEP_SCALE : 1);
1785 } else if (lRatio > EEP_SCALE) {
1787 rv = targetRight * (scaleUp ? EEP_SCALE : 1);
1789 rv = (lRatio * targetRight + (EEP_SCALE - lRatio) *
1795 rv *= EEP_SCALE;
1803 * up by EEP_SCALE so can do integer arithmatic
1817 uint32_t target = value * EEP_SCALE;
1824 if (target < (uint32_t)(*pList * EEP_SCALE - EEP_DELTA)) {
1834 if (target > (uint32_t)(listEndValue * EEP_SCALE + EEP_DELTA)) {
1846 if (abs(pList[i] * EEP_SCALE - (int32_t) target) < EEP_DELTA) {
1856 if (target < (uint32_t)(pList[i + 1] * EEP_SCALE - EEP_DELTA)) {