Home
last modified time | relevance | path

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

/freebsd-9-stable/sys/dev/ath/ath_hal/ar5211/
Dar5211_reset.c1450 for (i = 0; i < (2 * (pwr - PWR_MIN) / EEP_SCALE + 1); i++) in ar5211SetPowerTable()
1769 uint16_t scaleValue = EEP_SCALE; in ar5211GetInterpolatedValue()
1782 lRatio = (target - srcLeft) * EEP_SCALE / (srcRight - srcLeft); in ar5211GetInterpolatedValue()
1785 rv = targetLeft * (scaleUp ? EEP_SCALE : 1); in ar5211GetInterpolatedValue()
1786 } else if (lRatio > EEP_SCALE) { in ar5211GetInterpolatedValue()
1788 rv = targetRight * (scaleUp ? EEP_SCALE : 1); in ar5211GetInterpolatedValue()
1790 rv = (lRatio * targetRight + (EEP_SCALE - lRatio) * in ar5211GetInterpolatedValue()
1796 rv *= EEP_SCALE; in ar5211GetInterpolatedValue()
1818 uint32_t target = value * EEP_SCALE; in ar5211GetLowerUpperValues()
1825 if (target < (uint32_t)(*pList * EEP_SCALE - EEP_DELTA)) { in ar5211GetLowerUpperValues()
[all …]
/freebsd-9-stable/sys/dev/ath/ath_hal/ar5212/
Dar5111.c367 lRatio = (target - srcLeft) * EEP_SCALE / (srcRight - srcLeft); in interpolate()
371 } else if (lRatio > EEP_SCALE) { in interpolate()
375 rv = (lRatio * targetRight + (EEP_SCALE - lRatio) * in interpolate()
376 targetLeft) / EEP_SCALE; in interpolate()
497 for (i = 0; i < (2 * (pwr - PWR_MIN) / EEP_SCALE + 1); i++) { in ar5111SetPowerTable()
Dar5212_reset.c2397 lRatio = (target - srcLeft) * EEP_SCALE / (srcRight - srcLeft); in interpolate()
2401 } else if (lRatio > EEP_SCALE) { in interpolate()
2405 rv = (lRatio * targetRight + (EEP_SCALE - lRatio) * in interpolate()
2406 targetLeft) / EEP_SCALE; in interpolate()
2481 uint32_t target = v * EEP_SCALE; in ar5212GetLowerUpperValues()
2487 if (target < (uint32_t)(lp[0] * EEP_SCALE - EEP_DELTA)) { in ar5212GetLowerUpperValues()
2491 if (target > (uint32_t)(ep[-1] * EEP_SCALE + EEP_DELTA)) { in ar5212GetLowerUpperValues()
2502 if (udiff(lp[0] * EEP_SCALE, target) < EEP_DELTA) { in ar5212GetLowerUpperValues()
2510 if (target < (uint32_t)(lp[1] * EEP_SCALE - EEP_DELTA)) { in ar5212GetLowerUpperValues()
/freebsd-9-stable/tools/tools/ath/athrd/
Dathrd.c1297 u_int32_t target = v * EEP_SCALE; in ar5212GetLowerUpperValues()
1303 if (target < (u_int32_t)(lp[0] * EEP_SCALE - EEP_DELTA)) { in ar5212GetLowerUpperValues()
1307 if (target > (u_int32_t)(ep[-1] * EEP_SCALE + EEP_DELTA)) { in ar5212GetLowerUpperValues()
1318 if (abs(lp[0] * EEP_SCALE - target) < EEP_DELTA) { in ar5212GetLowerUpperValues()
1326 if (target < (u_int32_t)(lp[1] * EEP_SCALE - EEP_DELTA)) { in ar5212GetLowerUpperValues()
1392 lRatio = (target - srcLeft) * EEP_SCALE / (srcRight - srcLeft); in interpolate()
1396 } else if (lRatio > EEP_SCALE) { in interpolate()
1400 rv = (lRatio * targetRight + (EEP_SCALE - lRatio) * in interpolate()
1401 targetLeft) / EEP_SCALE; in interpolate()
/freebsd-9-stable/sys/dev/ath/ath_hal/
Dah_eeprom_v3.h129 #define EEP_SCALE 100 /* conversion scale to avoid fp arith */ macro
/freebsd-9-stable/tools/tools/ath/athprom/
Dathprom.c457 fprintf(fd, "%2d.%02d", v / EEP_SCALE, v % EEP_SCALE); in printPcdacValue()