Searched refs:pdadc (Results 1 – 2 of 2) sorted by relevance
/netbsd-src/sys/dev/ic/ |
H A D | arn9280.c | 594 int8_t pdadc, txgain, tcomp; in ar9280_olpc_temp_compensation() local 599 pdadc = MS(reg, AR_PHY_TX_PWRCTRL_PD_AVG_OUT); in ar9280_olpc_temp_compensation() 600 DPRINTFN(DBG_RF, sc, "PD Avg Out=%d\n", pdadc); in ar9280_olpc_temp_compensation() 602 if (sc->sc_pdadc == 0 || pdadc == 0) in ar9280_olpc_temp_compensation() 608 tcomp = (pdadc - sc->sc_pdadc + 4) / 8; in ar9280_olpc_temp_compensation() 610 tcomp = (pdadc - sc->sc_pdadc + 5) / 10; in ar9280_olpc_temp_compensation()
|
H A D | arn9287.c | 560 int8_t pdadc, slope, tcomp; in ar9287_olpc_temp_compensation() local 564 pdadc = MS(reg, AR_PHY_TX_PWRCTRL_PD_AVG_OUT); in ar9287_olpc_temp_compensation() 565 DPRINTFN(DBG_RF, sc, "PD Avg Out=%d\n", pdadc); in ar9287_olpc_temp_compensation() 567 if (sc->sc_pdadc == 0 || pdadc == 0) in ar9287_olpc_temp_compensation() 576 tcomp = ((pdadc - sc->sc_pdadc) * 4) / slope; in ar9287_olpc_temp_compensation()
|