Lines Matching refs:dm_dig

104 	struct dig_t *dm_dig = &rtlpriv->dm_digtable;  in rtl92ee_dm_cck_packet_detection_thresh()  local
108 if (dm_dig->rssi_val_min > 25) { in rtl92ee_dm_cck_packet_detection_thresh()
110 } else if ((dm_dig->rssi_val_min <= 25) && in rtl92ee_dm_cck_packet_detection_thresh()
111 (dm_dig->rssi_val_min > 10)) { in rtl92ee_dm_cck_packet_detection_thresh()
132 struct dig_t *dm_dig = &rtlpriv->dm_digtable; in rtl92ee_dm_dig() local
136 u8 current_igi = dm_dig->cur_igvalue; in rtl92ee_dm_dig()
143 dig_min_0 = dm_dig->dig_min_0; in rtl92ee_dm_dig()
145 !dm_dig->media_connect_0; in rtl92ee_dm_dig()
147 dm_dig->media_connect_0; in rtl92ee_dm_dig()
154 if ((dm_dig->rssi_val_min + 10) > dm_dig_max) in rtl92ee_dm_dig()
155 dm_dig->rx_gain_max = dm_dig_max; in rtl92ee_dm_dig()
156 else if ((dm_dig->rssi_val_min + 10) < dm_dig_min) in rtl92ee_dm_dig()
157 dm_dig->rx_gain_max = dm_dig_min; in rtl92ee_dm_dig()
159 dm_dig->rx_gain_max = dm_dig->rssi_val_min + 10; in rtl92ee_dm_dig()
163 if (dm_dig->rssi_val_min - offset < dm_dig_min) in rtl92ee_dm_dig()
165 else if (dm_dig->rssi_val_min - offset > in rtl92ee_dm_dig()
169 dig_min_0 = dm_dig->rssi_val_min - offset; in rtl92ee_dm_dig()
175 dm_dig->rx_gain_max = dm_dig_max; in rtl92ee_dm_dig()
181 if (dm_dig->large_fa_hit != 3) in rtl92ee_dm_dig()
182 dm_dig->large_fa_hit++; in rtl92ee_dm_dig()
183 if (dm_dig->forbidden_igi < current_igi) { in rtl92ee_dm_dig()
184 dm_dig->forbidden_igi = current_igi; in rtl92ee_dm_dig()
185 dm_dig->large_fa_hit = 1; in rtl92ee_dm_dig()
188 if (dm_dig->large_fa_hit >= 3) { in rtl92ee_dm_dig()
189 if (dm_dig->forbidden_igi + 1 > dm_dig->rx_gain_max) in rtl92ee_dm_dig()
190 dm_dig->rx_gain_min = in rtl92ee_dm_dig()
191 dm_dig->rx_gain_max; in rtl92ee_dm_dig()
193 dm_dig->rx_gain_min = in rtl92ee_dm_dig()
194 dm_dig->forbidden_igi + 1; in rtl92ee_dm_dig()
195 dm_dig->recover_cnt = 3600; in rtl92ee_dm_dig()
198 if (dm_dig->recover_cnt != 0) { in rtl92ee_dm_dig()
199 dm_dig->recover_cnt--; in rtl92ee_dm_dig()
201 if (dm_dig->large_fa_hit < 3) { in rtl92ee_dm_dig()
202 if ((dm_dig->forbidden_igi - 1) < in rtl92ee_dm_dig()
204 dm_dig->forbidden_igi = dig_min_0; in rtl92ee_dm_dig()
205 dm_dig->rx_gain_min = in rtl92ee_dm_dig()
208 dm_dig->forbidden_igi--; in rtl92ee_dm_dig()
209 dm_dig->rx_gain_min = in rtl92ee_dm_dig()
210 dm_dig->forbidden_igi + 1; in rtl92ee_dm_dig()
213 dm_dig->large_fa_hit = 0; in rtl92ee_dm_dig()
219 dm_dig->rx_gain_min = dm_dig_min; in rtl92ee_dm_dig()
221 if (dm_dig->rx_gain_min > dm_dig->rx_gain_max) in rtl92ee_dm_dig()
222 dm_dig->rx_gain_min = dm_dig->rx_gain_max; in rtl92ee_dm_dig()
226 if (dm_dig->rssi_val_min <= dig_maxofmin) in rtl92ee_dm_dig()
227 current_igi = dm_dig->rssi_val_min; in rtl92ee_dm_dig()
231 dm_dig->large_fa_hit = 0; in rtl92ee_dm_dig()
242 current_igi = dm_dig->rx_gain_min; in rtl92ee_dm_dig()
246 current_igi = dm_dig->rx_gain_min; in rtl92ee_dm_dig()
257 if (current_igi > dm_dig->rx_gain_max) in rtl92ee_dm_dig()
258 current_igi = dm_dig->rx_gain_max; in rtl92ee_dm_dig()
259 if (current_igi < dm_dig->rx_gain_min) in rtl92ee_dm_dig()
260 current_igi = dm_dig->rx_gain_min; in rtl92ee_dm_dig()
263 dm_dig->media_connect_0 = ((mac->link_state >= MAC80211_LINKED) ? in rtl92ee_dm_dig()
265 dm_dig->dig_min_0 = dig_min_0; in rtl92ee_dm_dig()
271 struct dig_t *dm_dig = &rtlpriv->dm_digtable; in rtl92ee_dm_write_cck_cca_thres() local
273 if (dm_dig->cur_cck_cca_thres != cur_thres) in rtl92ee_dm_write_cck_cca_thres()
276 dm_dig->pre_cck_cca_thres = dm_dig->cur_cck_cca_thres; in rtl92ee_dm_write_cck_cca_thres()
277 dm_dig->cur_cck_cca_thres = cur_thres; in rtl92ee_dm_write_cck_cca_thres()
283 struct dig_t *dm_dig = &rtlpriv->dm_digtable; in rtl92ee_dm_write_dig() local
285 if (dm_dig->stop_dig) in rtl92ee_dm_write_dig()
288 if (dm_dig->cur_igvalue != current_igi) { in rtl92ee_dm_write_dig()
293 dm_dig->pre_igvalue = dm_dig->cur_igvalue; in rtl92ee_dm_write_dig()
294 dm_dig->cur_igvalue = current_igi; in rtl92ee_dm_write_dig()
370 struct dig_t *dm_dig = &rtlpriv->dm_digtable; in rtl92ee_dm_check_rssi_monitor() local
429 dm_dig->rssi_val_min = rtlpriv->dm_digtable.min_undec_pwdb_for_dm; in rtl92ee_dm_check_rssi_monitor()