Lines Matching refs:current_igi
136 u8 current_igi = dm_dig->cur_igvalue; in rtl92ee_dm_dig() local
183 if (dm_dig->forbidden_igi < current_igi) { in rtl92ee_dm_dig()
184 dm_dig->forbidden_igi = current_igi; in rtl92ee_dm_dig()
227 current_igi = dm_dig->rssi_val_min; in rtl92ee_dm_dig()
229 current_igi = dig_maxofmin; in rtl92ee_dm_dig()
234 current_igi += 4; in rtl92ee_dm_dig()
236 current_igi += 2; in rtl92ee_dm_dig()
238 current_igi -= 2; 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()
249 current_igi += 4; in rtl92ee_dm_dig()
251 current_igi += 2; in rtl92ee_dm_dig()
253 current_igi -= 2; 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()
262 rtl92ee_dm_write_dig(hw , current_igi); in rtl92ee_dm_dig()
280 void rtl92ee_dm_write_dig(struct ieee80211_hw *hw, u8 current_igi) in rtl92ee_dm_write_dig() argument
288 if (dm_dig->cur_igvalue != current_igi) { in rtl92ee_dm_write_dig()
289 rtl_set_bbreg(hw, ROFDM0_XAAGCCORE1, 0x7f, current_igi); in rtl92ee_dm_write_dig()
291 rtl_set_bbreg(hw, ROFDM0_XBAGCCORE1, 0x7f, current_igi); in rtl92ee_dm_write_dig()
294 dm_dig->cur_igvalue = current_igi; in rtl92ee_dm_write_dig()