Home
last modified time | relevance | path

Searched refs:EEP_SCALE (Results 1 – 6 of 6) sorted by relevance

/freebsd-13.1/sys/dev/ath/ath_hal/ar5211/
H A Dar5211_reset.c1451 for (i = 0; i < (2 * (pwr - PWR_MIN) / EEP_SCALE + 1); i++) in ar5211SetPowerTable()
1770 uint16_t scaleValue = EEP_SCALE; in ar5211GetInterpolatedValue()
1783 lRatio = (target - srcLeft) * EEP_SCALE / (srcRight - srcLeft); in ar5211GetInterpolatedValue()
1786 rv = targetLeft * (scaleUp ? EEP_SCALE : 1); in ar5211GetInterpolatedValue()
1787 } else if (lRatio > EEP_SCALE) { in ar5211GetInterpolatedValue()
1789 rv = targetRight * (scaleUp ? EEP_SCALE : 1); in ar5211GetInterpolatedValue()
1791 rv = (lRatio * targetRight + (EEP_SCALE - lRatio) * in ar5211GetInterpolatedValue()
1797 rv *= EEP_SCALE; in ar5211GetInterpolatedValue()
1819 uint32_t target = value * EEP_SCALE; in ar5211GetLowerUpperValues()
1826 if (target < (uint32_t)(*pList * EEP_SCALE - EEP_DELTA)) { in ar5211GetLowerUpperValues()
[all …]
/freebsd-13.1/sys/dev/ath/ath_hal/ar5212/
H A Dar5111.c368 lRatio = (target - srcLeft) * EEP_SCALE / (srcRight - srcLeft); in interpolate()
372 } else if (lRatio > EEP_SCALE) { in interpolate()
376 rv = (lRatio * targetRight + (EEP_SCALE - lRatio) * in interpolate()
377 targetLeft) / EEP_SCALE; in interpolate()
498 for (i = 0; i < (2 * (pwr - PWR_MIN) / EEP_SCALE + 1); i++) { in ar5111SetPowerTable()
H A Dar5212_reset.c2546 lRatio = (target - srcLeft) * EEP_SCALE / (srcRight - srcLeft); in interpolate()
2550 } else if (lRatio > EEP_SCALE) { in interpolate()
2554 rv = (lRatio * targetRight + (EEP_SCALE - lRatio) * in interpolate()
2555 targetLeft) / EEP_SCALE; in interpolate()
2630 uint32_t target = v * EEP_SCALE; in ar5212GetLowerUpperValues()
2636 if (target < (uint32_t)(lp[0] * EEP_SCALE - EEP_DELTA)) { in ar5212GetLowerUpperValues()
2640 if (target > (uint32_t)(ep[-1] * EEP_SCALE + EEP_DELTA)) { in ar5212GetLowerUpperValues()
2651 if (udiff(lp[0] * EEP_SCALE, target) < EEP_DELTA) { in ar5212GetLowerUpperValues()
2659 if (target < (uint32_t)(lp[1] * EEP_SCALE - EEP_DELTA)) { in ar5212GetLowerUpperValues()
/freebsd-13.1/tools/tools/ath/athrd/
H A Dathrd.c1285 u_int32_t target = v * EEP_SCALE; in ar5212GetLowerUpperValues()
1291 if (target < (u_int32_t)(lp[0] * EEP_SCALE - EEP_DELTA)) { in ar5212GetLowerUpperValues()
1295 if (target > (u_int32_t)(ep[-1] * EEP_SCALE + EEP_DELTA)) { in ar5212GetLowerUpperValues()
1306 if (abs(lp[0] * EEP_SCALE - target) < EEP_DELTA) { in ar5212GetLowerUpperValues()
1314 if (target < (u_int32_t)(lp[1] * EEP_SCALE - EEP_DELTA)) { in ar5212GetLowerUpperValues()
1380 lRatio = (target - srcLeft) * EEP_SCALE / (srcRight - srcLeft); in interpolate()
1384 } else if (lRatio > EEP_SCALE) { in interpolate()
1388 rv = (lRatio * targetRight + (EEP_SCALE - lRatio) * in interpolate()
1389 targetLeft) / EEP_SCALE; in interpolate()
/freebsd-13.1/sys/dev/ath/ath_hal/
H A Dah_eeprom_v3.h131 #define EEP_SCALE 100 /* conversion scale to avoid fp arith */ macro
/freebsd-13.1/tools/tools/ath/athprom/
H A Dathprom.c458 fprintf(fd, "%2d.%02d", v / EEP_SCALE, v % EEP_SCALE); in printPcdacValue()