Lines Matching defs:ah

20 #include "ah.h"
54 ar5416GetDfsDefaultThresh(struct ath_hal *ah, HAL_PHYERR_PARAM *pe)
81 ar5416GetDfsThresh(struct ath_hal *ah, HAL_PHYERR_PARAM *pe)
85 val = OS_REG_READ(ah, AR_PHY_RADAR_0);
96 val = OS_REG_READ(ah, AR_PHY_RADAR_1);
101 pe->pe_extchannel = !! (OS_REG_READ(ah, AR_PHY_RADAR_EXT) &
104 pe->pe_usefir128 = !! (OS_REG_READ(ah, AR_PHY_RADAR_1) &
106 pe->pe_blockradar = !! (OS_REG_READ(ah, AR_PHY_RADAR_1) &
108 pe->pe_enmaxrssi = !! (OS_REG_READ(ah, AR_PHY_RADAR_1) &
111 (OS_REG_READ(ah, AR_PHY_RADAR_0) & AR_PHY_RADAR_0_ENA);
112 pe->pe_enrelpwr = !! (OS_REG_READ(ah, AR_PHY_RADAR_1) &
114 pe->pe_en_relstep_check = !! (OS_REG_READ(ah, AR_PHY_RADAR_1) &
123 ar5416EnableDfs(struct ath_hal *ah, HAL_PHYERR_PARAM *pe)
127 val = OS_REG_READ(ah, AR_PHY_RADAR_0);
152 OS_REG_WRITE(ah, AR_PHY_RADAR_0, val);
156 OS_REG_SET_BIT(ah, AR_PHY_RADAR_0, AR_PHY_RADAR_0_ENA);
158 OS_REG_CLR_BIT(ah, AR_PHY_RADAR_0, AR_PHY_RADAR_0_ENA);
161 OS_REG_SET_BIT(ah, AR_PHY_RADAR_1, AR_PHY_RADAR_1_USE_FIR128);
163 OS_REG_CLR_BIT(ah, AR_PHY_RADAR_1, AR_PHY_RADAR_1_USE_FIR128);
166 OS_REG_SET_BIT(ah, AR_PHY_RADAR_1, AR_PHY_RADAR_1_MAX_RRSSI);
168 OS_REG_CLR_BIT(ah, AR_PHY_RADAR_1, AR_PHY_RADAR_1_MAX_RRSSI);
171 OS_REG_SET_BIT(ah, AR_PHY_RADAR_1, AR_PHY_RADAR_1_BLOCK_CHECK);
173 OS_REG_CLR_BIT(ah, AR_PHY_RADAR_1, AR_PHY_RADAR_1_BLOCK_CHECK);
176 val = OS_REG_READ(ah, AR_PHY_RADAR_1);
179 OS_REG_WRITE(ah, AR_PHY_RADAR_1, val);
182 val = OS_REG_READ(ah, AR_PHY_RADAR_1);
185 OS_REG_WRITE(ah, AR_PHY_RADAR_1, val);
189 OS_REG_SET_BIT(ah, AR_PHY_RADAR_1,
192 OS_REG_CLR_BIT(ah, AR_PHY_RADAR_1,
196 OS_REG_SET_BIT(ah, AR_PHY_RADAR_1,
199 OS_REG_CLR_BIT(ah, AR_PHY_RADAR_1,
203 val = OS_REG_READ(ah, AR_PHY_RADAR_1);
206 OS_REG_WRITE(ah, AR_PHY_RADAR_1, val);
215 OS_REG_SET_BIT(ah, AR_PHY_RADAR_EXT, AR_PHY_RADAR_EXT_ENA);
217 OS_REG_CLR_BIT(ah, AR_PHY_RADAR_EXT, AR_PHY_RADAR_EXT_ENA);
233 ar5416ProcessRadarEvent(struct ath_hal *ah, struct ath_rx_status *rxs,
255 doDfsExtCh = AH_PRIVATE(ah)->ah_caps.halExtChanDfsSupport;
256 doDfsEnhanced = AH_PRIVATE(ah)->ah_caps.halEnhancedDfsSupport;
257 doDfsCombinedRssi = AH_PRIVATE(ah)->ah_caps.halUseCombinedRadarRssi;
288 HALDEBUG(ah, HAL_DEBUG_DFS, "%s: rssi=%d, ext_rssi=%d, pulse_length_pri=%d,"
300 HALDEBUG(ah, HAL_DEBUG_DFS, "%s: dur and rssi are 0\n", __func__);
304 HALDEBUG(ah, HAL_DEBUG_DFS, "%s: rssi=%d, dur=%d\n", __func__, rssi, dur);
427 ar5416IsFastClockEnabled(struct ath_hal *ah)
429 struct ath_hal_private *ahp = AH_PRIVATE(ah);
431 return IS_5GHZ_FAST_CLOCK_EN(ah, ahp->ah_curchan);