Lines Matching defs:pe

54 ar5416GetDfsDefaultThresh(struct ath_hal *ah, HAL_PHYERR_PARAM *pe)
64 pe->pe_firpwr = AR5416_DFS_FIRPWR;
65 pe->pe_rrssi = AR5416_DFS_RRSSI;
66 pe->pe_height = AR5416_DFS_HEIGHT;
67 pe->pe_prssi = AR5416_DFS_PRSSI;
68 pe->pe_inband = AR5416_DFS_INBAND;
69 pe->pe_relpwr = AR5416_DFS_RELPWR;
70 pe->pe_relstep = AR5416_DFS_RELSTEP;
71 pe->pe_maxlen = AR5416_DFS_MAXLEN;
77 * Get the radar parameter values and return them in the pe
81 ar5416GetDfsThresh(struct ath_hal *ah, HAL_PHYERR_PARAM *pe)
89 pe->pe_firpwr = temp;
90 pe->pe_rrssi = MS(val, AR_PHY_RADAR_0_RRSSI);
91 pe->pe_height = MS(val, AR_PHY_RADAR_0_HEIGHT);
92 pe->pe_prssi = MS(val, AR_PHY_RADAR_0_PRSSI);
93 pe->pe_inband = MS(val, AR_PHY_RADAR_0_INBAND);
97 pe->pe_relpwr = MS(val, AR_PHY_RADAR_1_RELPWR_THRESH);
98 pe->pe_relstep = MS(val, AR_PHY_RADAR_1_RELSTEP_THRESH);
99 pe->pe_maxlen = MS(val, AR_PHY_RADAR_1_MAXLEN);
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) &
110 pe->pe_enabled = !!
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) &
120 * values in pe
123 ar5416EnableDfs(struct ath_hal *ah, HAL_PHYERR_PARAM *pe)
129 if (pe->pe_firpwr != HAL_PHYERR_PARAM_NOVAL) {
131 val |= SM(pe->pe_firpwr, AR_PHY_RADAR_0_FIRPWR);
133 if (pe->pe_rrssi != HAL_PHYERR_PARAM_NOVAL) {
135 val |= SM(pe->pe_rrssi, AR_PHY_RADAR_0_RRSSI);
137 if (pe->pe_height != HAL_PHYERR_PARAM_NOVAL) {
139 val |= SM(pe->pe_height, AR_PHY_RADAR_0_HEIGHT);
141 if (pe->pe_prssi != HAL_PHYERR_PARAM_NOVAL) {
143 val |= SM(pe->pe_prssi, AR_PHY_RADAR_0_PRSSI);
145 if (pe->pe_inband != HAL_PHYERR_PARAM_NOVAL) {
147 val |= SM(pe->pe_inband, AR_PHY_RADAR_0_INBAND);
155 if (pe->pe_enabled == 1)
157 else if (pe->pe_enabled == 0)
160 if (pe->pe_usefir128 == 1)
162 else if (pe->pe_usefir128 == 0)
165 if (pe->pe_enmaxrssi == 1)
167 else if (pe->pe_enmaxrssi == 0)
170 if (pe->pe_blockradar == 1)
172 else if (pe->pe_blockradar == 0)
175 if (pe->pe_relstep != HAL_PHYERR_PARAM_NOVAL) {
178 val |= SM(pe->pe_relstep, AR_PHY_RADAR_1_RELSTEP_THRESH);
181 if (pe->pe_relpwr != HAL_PHYERR_PARAM_NOVAL) {
184 val |= SM(pe->pe_relpwr, AR_PHY_RADAR_1_RELPWR_THRESH);
188 if (pe->pe_en_relstep_check == 1)
191 else if (pe->pe_en_relstep_check == 0)
195 if (pe->pe_enrelpwr == 1)
198 else if (pe->pe_enrelpwr == 0)
202 if (pe->pe_maxlen != HAL_PHYERR_PARAM_NOVAL) {
205 val |= SM(pe->pe_maxlen, AR_PHY_RADAR_1_MAXLEN);
214 if (pe->pe_extchannel == 1)
216 else if (pe->pe_extchannel == 0)