Home
last modified time | relevance | path

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

/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_hal/ar5212/
H A Dar5111.c366 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()
H A Dar5212_reset.c2544 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()
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_hal/ar5211/
H A Dar5211_reset.c1449 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 …]
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_hal/
H A Dah_eeprom_v3.h129 #define EEP_SCALE 100 /* conversion scale to avoid fp arith */ macro