Lines Matching full:dm

22 	((RTLPRIV(_priv))->dm.entry_min_undec_sm_pwdb) : \
23 ((RTLPRIV(_priv))->dm.undec_sm_pwdb)
146 rtlpriv->dm.powerindex_backup[index]); in dm_restorepowerindex()
168 rtlpriv->dm.powerindex_backup[index] = tmp; in dm_savepowerindex()
181 if (rtlpriv->dm.entry_min_undec_sm_pwdb != 0) in rtl92c_dm_initial_gain_min_pwdb()
183 (rtlpriv->dm.entry_min_undec_sm_pwdb > in rtl92c_dm_initial_gain_min_pwdb()
184 rtlpriv->dm.undec_sm_pwdb) ? in rtl92c_dm_initial_gain_min_pwdb()
185 rtlpriv->dm.undec_sm_pwdb : in rtl92c_dm_initial_gain_min_pwdb()
186 rtlpriv->dm.entry_min_undec_sm_pwdb; in rtl92c_dm_initial_gain_min_pwdb()
188 rssi_val_min = rtlpriv->dm.undec_sm_pwdb; in rtl92c_dm_initial_gain_min_pwdb()
191 rssi_val_min = rtlpriv->dm.undec_sm_pwdb; in rtl92c_dm_initial_gain_min_pwdb()
193 rssi_val_min = rtlpriv->dm.entry_min_undec_sm_pwdb; in rtl92c_dm_initial_gain_min_pwdb()
372 long rssi_strength = rtlpriv->dm.entry_min_undec_sm_pwdb; in rtl92c_dm_initial_gain_multi_sta()
512 if (!rtlpriv->dm.dm_initialgain_enable) in rtl92c_dm_dig()
514 if (!(rtlpriv->dm.dm_flag & DYNAMIC_FUNC_DIG)) in rtl92c_dm_dig()
527 rtlpriv->dm.dynamic_txpower_enable = true; in rtl92c_dm_init_dynamic_txpower()
529 rtlpriv->dm.dynamic_txpower_enable = false; in rtl92c_dm_init_dynamic_txpower()
531 rtlpriv->dm.last_dtp_lvl = TXHIGHPWRLEVEL_NORMAL; in rtl92c_dm_init_dynamic_txpower()
532 rtlpriv->dm.dynamic_txhighpower_lvl = TXHIGHPWRLEVEL_NORMAL; in rtl92c_dm_init_dynamic_txpower()
586 rtlpriv->dm.entry_max_undec_sm_pwdb = tmpentry_max_pwdb; in rtl92c_dm_pwdb_monitor()
588 rtlpriv->dm.entry_max_undec_sm_pwdb = 0; in rtl92c_dm_pwdb_monitor()
591 rtlpriv->dm.entry_min_undec_sm_pwdb = tmpentry_min_pwdb; in rtl92c_dm_pwdb_monitor()
593 rtlpriv->dm.entry_min_undec_sm_pwdb = 0; in rtl92c_dm_pwdb_monitor()
598 * u32 param = (u32)(rtlpriv->dm.undec_sm_pwdb << 16); in rtl92c_dm_pwdb_monitor()
609 rtlpriv->dm.current_turbo_edca = false; in rtl92c_dm_init_edca_turbo()
610 rtlpriv->dm.is_any_nonbepkts = false; in rtl92c_dm_init_edca_turbo()
611 rtlpriv->dm.is_cur_rdlstate = false; in rtl92c_dm_init_edca_turbo()
632 rtlpriv->dm.current_turbo_edca = false; in rtl92c_dm_check_edca_turbo()
648 rtlpriv->dm.current_turbo_edca = false; in rtl92c_dm_check_edca_turbo()
660 if ((bt_change_edca) || ((!rtlpriv->dm.is_any_nonbepkts) && in rtl92c_dm_check_edca_turbo()
661 (!rtlpriv->dm.disable_framebursting))) { in rtl92c_dm_check_edca_turbo()
666 if (!rtlpriv->dm.is_cur_rdlstate || in rtl92c_dm_check_edca_turbo()
667 !rtlpriv->dm.current_turbo_edca) { in rtl92c_dm_check_edca_turbo()
671 rtlpriv->dm.is_cur_rdlstate = true; in rtl92c_dm_check_edca_turbo()
674 if (rtlpriv->dm.is_cur_rdlstate || in rtl92c_dm_check_edca_turbo()
675 !rtlpriv->dm.current_turbo_edca) { in rtl92c_dm_check_edca_turbo()
679 rtlpriv->dm.is_cur_rdlstate = false; in rtl92c_dm_check_edca_turbo()
682 rtlpriv->dm.current_turbo_edca = true; in rtl92c_dm_check_edca_turbo()
684 if (rtlpriv->dm.current_turbo_edca) { in rtl92c_dm_check_edca_turbo()
689 rtlpriv->dm.current_turbo_edca = false; in rtl92c_dm_check_edca_turbo()
693 rtlpriv->dm.is_any_nonbepkts = false; in rtl92c_dm_check_edca_turbo()
715 rtlpriv->dm.txpower_trackinginit = true; in rtl92c_dm_txpower_tracking_callback_thermalmeter()
723 thermalvalue, rtlpriv->dm.thermalvalue, in rtl92c_dm_txpower_tracking_callback_thermalmeter()
771 if (rtlpriv->dm.cck_inch14) { in rtl92c_dm_txpower_tracking_callback_thermalmeter()
782 rtlpriv->dm.cck_inch14); in rtl92c_dm_txpower_tracking_callback_thermalmeter()
797 rtlpriv->dm.cck_inch14); in rtl92c_dm_txpower_tracking_callback_thermalmeter()
803 if (!rtlpriv->dm.thermalvalue) { in rtl92c_dm_txpower_tracking_callback_thermalmeter()
804 rtlpriv->dm.thermalvalue = in rtl92c_dm_txpower_tracking_callback_thermalmeter()
806 rtlpriv->dm.thermalvalue_lck = thermalvalue; in rtl92c_dm_txpower_tracking_callback_thermalmeter()
807 rtlpriv->dm.thermalvalue_iqk = thermalvalue; in rtl92c_dm_txpower_tracking_callback_thermalmeter()
809 rtlpriv->dm.ofdm_index[i] = ofdm_index_old[i]; in rtl92c_dm_txpower_tracking_callback_thermalmeter()
810 rtlpriv->dm.cck_index = cck_index_old; in rtl92c_dm_txpower_tracking_callback_thermalmeter()
814 delta = (thermalvalue > rtlpriv->dm.thermalvalue) ? in rtl92c_dm_txpower_tracking_callback_thermalmeter()
815 (thermalvalue - rtlpriv->dm.thermalvalue) : in rtl92c_dm_txpower_tracking_callback_thermalmeter()
816 (rtlpriv->dm.thermalvalue - thermalvalue); in rtl92c_dm_txpower_tracking_callback_thermalmeter()
818 delta_lck = (thermalvalue > rtlpriv->dm.thermalvalue_lck) ? in rtl92c_dm_txpower_tracking_callback_thermalmeter()
819 (thermalvalue - rtlpriv->dm.thermalvalue_lck) : in rtl92c_dm_txpower_tracking_callback_thermalmeter()
820 (rtlpriv->dm.thermalvalue_lck - thermalvalue); in rtl92c_dm_txpower_tracking_callback_thermalmeter()
822 delta_iqk = (thermalvalue > rtlpriv->dm.thermalvalue_iqk) ? in rtl92c_dm_txpower_tracking_callback_thermalmeter()
823 (thermalvalue - rtlpriv->dm.thermalvalue_iqk) : in rtl92c_dm_txpower_tracking_callback_thermalmeter()
824 (rtlpriv->dm.thermalvalue_iqk - thermalvalue); in rtl92c_dm_txpower_tracking_callback_thermalmeter()
828 thermalvalue, rtlpriv->dm.thermalvalue, in rtl92c_dm_txpower_tracking_callback_thermalmeter()
833 rtlpriv->dm.thermalvalue_lck = thermalvalue; in rtl92c_dm_txpower_tracking_callback_thermalmeter()
837 if (delta > 0 && rtlpriv->dm.txpower_track_control) { in rtl92c_dm_txpower_tracking_callback_thermalmeter()
838 if (thermalvalue > rtlpriv->dm.thermalvalue) { in rtl92c_dm_txpower_tracking_callback_thermalmeter()
840 rtlpriv->dm.ofdm_index[i] -= delta; in rtl92c_dm_txpower_tracking_callback_thermalmeter()
841 rtlpriv->dm.cck_index -= delta; in rtl92c_dm_txpower_tracking_callback_thermalmeter()
844 rtlpriv->dm.ofdm_index[i] += delta; in rtl92c_dm_txpower_tracking_callback_thermalmeter()
845 rtlpriv->dm.cck_index += delta; in rtl92c_dm_txpower_tracking_callback_thermalmeter()
851 rtlpriv->dm.ofdm_index[0], in rtl92c_dm_txpower_tracking_callback_thermalmeter()
852 rtlpriv->dm.ofdm_index[1], in rtl92c_dm_txpower_tracking_callback_thermalmeter()
853 rtlpriv->dm.cck_index); in rtl92c_dm_txpower_tracking_callback_thermalmeter()
857 rtlpriv->dm.ofdm_index[0], in rtl92c_dm_txpower_tracking_callback_thermalmeter()
858 rtlpriv->dm.cck_index); in rtl92c_dm_txpower_tracking_callback_thermalmeter()
864 rtlpriv->dm.ofdm_index[i] in rtl92c_dm_txpower_tracking_callback_thermalmeter()
866 cck_index = rtlpriv->dm.cck_index + 1; in rtl92c_dm_txpower_tracking_callback_thermalmeter()
870 rtlpriv->dm.ofdm_index[i]; in rtl92c_dm_txpower_tracking_callback_thermalmeter()
871 cck_index = rtlpriv->dm.cck_index; in rtl92c_dm_txpower_tracking_callback_thermalmeter()
960 if (rtlpriv->dm.txpower_track_control && delta != 0) { in rtl92c_dm_txpower_tracking_callback_thermalmeter()
1003 if (!rtlpriv->dm.cck_inch14) { in rtl92c_dm_txpower_tracking_callback_thermalmeter()
1106 rtlpriv->dm.thermalvalue_iqk = thermalvalue; in rtl92c_dm_txpower_tracking_callback_thermalmeter()
1110 if (rtlpriv->dm.txpower_track_control) in rtl92c_dm_txpower_tracking_callback_thermalmeter()
1111 rtlpriv->dm.thermalvalue = thermalvalue; in rtl92c_dm_txpower_tracking_callback_thermalmeter()
1123 rtlpriv->dm.txpower_tracking = true; in rtl92c_dm_initialize_txpower_tracking_thermalmeter()
1124 rtlpriv->dm.txpower_trackinginit = false; in rtl92c_dm_initialize_txpower_tracking_thermalmeter()
1128 rtlpriv->dm.txpower_tracking); in rtl92c_dm_initialize_txpower_tracking_thermalmeter()
1146 if (!rtlpriv->dm.txpower_tracking) in rtl92c_dm_check_txpower_tracking_thermal_meter()
1149 if (!rtlpriv->dm.tm_trigger) { in rtl92c_dm_check_txpower_tracking_thermal_meter()
1154 rtlpriv->dm.tm_trigger = 1; in rtl92c_dm_check_txpower_tracking_thermal_meter()
1160 rtlpriv->dm.tm_trigger = 0; in rtl92c_dm_check_txpower_tracking_thermal_meter()
1178 if (rtlpriv->dm.dm_type == DM_TYPE_BYDRIVER) in rtl92c_dm_init_rate_adaptive_mask()
1179 rtlpriv->dm.useramask = true; in rtl92c_dm_init_rate_adaptive_mask()
1181 rtlpriv->dm.useramask = false; in rtl92c_dm_init_rate_adaptive_mask()
1277 (rtlpriv->dm.entry_min_undec_sm_pwdb == 0)) { in rtl92c_dm_dynamic_bb_powersaving()
1285 rtlpriv->dm.entry_min_undec_sm_pwdb; in rtl92c_dm_dynamic_bb_powersaving()
1290 dm_pstable->rssi_val_min = rtlpriv->dm.undec_sm_pwdb; in rtl92c_dm_dynamic_bb_powersaving()
1297 rtlpriv->dm.entry_min_undec_sm_pwdb; in rtl92c_dm_dynamic_bb_powersaving()
1315 rtlpriv->dm.dm_type = DM_TYPE_BYDRIVER; in rtl92c_dm_init()
1316 rtlpriv->dm.dm_flag = DYNAMIC_FUNC_DISABLE | DYNAMIC_FUNC_DIG; in rtl92c_dm_init()
1317 rtlpriv->dm.undec_sm_pwdb = -1; in rtl92c_dm_init()
1318 rtlpriv->dm.undec_sm_cck = -1; in rtl92c_dm_init()
1319 rtlpriv->dm.dm_initialgain_enable = true; in rtl92c_dm_init()
1322 rtlpriv->dm.dm_flag |= HAL_DM_HIPWR_DISABLE; in rtl92c_dm_init()
1327 rtlpriv->dm.dm_flag |= DYNAMIC_FUNC_SS; in rtl92c_dm_init()
1331 rtlpriv->dm.ofdm_pkt_cnt = 0; in rtl92c_dm_init()
1332 rtlpriv->dm.dm_rssi_sel = RSSI_DEFAULT; in rtl92c_dm_init()
1343 if (!rtlpriv->dm.dynamic_txpower_enable) in rtl92c_dm_dynamic_txpower()
1346 if (rtlpriv->dm.dm_flag & HAL_DM_HIPWR_DISABLE) { in rtl92c_dm_dynamic_txpower()
1347 rtlpriv->dm.dynamic_txhighpower_lvl = TXHIGHPWRLEVEL_NORMAL; in rtl92c_dm_dynamic_txpower()
1352 (rtlpriv->dm.entry_min_undec_sm_pwdb == 0)) { in rtl92c_dm_dynamic_txpower()
1356 rtlpriv->dm.dynamic_txhighpower_lvl = TXHIGHPWRLEVEL_NORMAL; in rtl92c_dm_dynamic_txpower()
1358 rtlpriv->dm.last_dtp_lvl = TXHIGHPWRLEVEL_NORMAL; in rtl92c_dm_dynamic_txpower()
1364 undec_sm_pwdb = rtlpriv->dm.entry_min_undec_sm_pwdb; in rtl92c_dm_dynamic_txpower()
1369 undec_sm_pwdb = rtlpriv->dm.undec_sm_pwdb; in rtl92c_dm_dynamic_txpower()
1375 undec_sm_pwdb = rtlpriv->dm.entry_min_undec_sm_pwdb; in rtl92c_dm_dynamic_txpower()
1383 rtlpriv->dm.dynamic_txhighpower_lvl = TXHIGHPWRLEVEL_LEVEL2; in rtl92c_dm_dynamic_txpower()
1389 rtlpriv->dm.dynamic_txhighpower_lvl = TXHIGHPWRLEVEL_LEVEL1; in rtl92c_dm_dynamic_txpower()
1393 rtlpriv->dm.dynamic_txhighpower_lvl = TXHIGHPWRLEVEL_NORMAL; in rtl92c_dm_dynamic_txpower()
1398 if ((rtlpriv->dm.dynamic_txhighpower_lvl != rtlpriv->dm.last_dtp_lvl)) { in rtl92c_dm_dynamic_txpower()
1403 if (rtlpriv->dm.dynamic_txhighpower_lvl == in rtl92c_dm_dynamic_txpower()
1406 else if (rtlpriv->dm.dynamic_txhighpower_lvl == in rtl92c_dm_dynamic_txpower()
1409 else if (rtlpriv->dm.dynamic_txhighpower_lvl == in rtl92c_dm_dynamic_txpower()
1413 rtlpriv->dm.last_dtp_lvl = rtlpriv->dm.dynamic_txhighpower_lvl; in rtl92c_dm_dynamic_txpower()
1456 if (rtlpriv->dm.entry_min_undec_sm_pwdb == 0) in rtl92c_bt_rssi_state_change()
1459 undec_sm_pwdb = rtlpriv->dm.entry_min_undec_sm_pwdb; in rtl92c_bt_rssi_state_change()
1680 if (!rtlpriv->dm.dynamic_txpower_enable) { in rtl92c_bt_ant_isolation()
1684 rtlpriv->dm.dynamic_txhighpower_lvl = in rtl92c_bt_ant_isolation()
1687 rtlpriv->dm.dynamic_txhighpower_lvl = in rtl92c_bt_ant_isolation()
1691 rtlpriv->dm.dynamic_txhighpower_lvl = in rtl92c_bt_ant_isolation()