Lines Matching full:dm
141 idx = rtlpriv->efuse.eeprom_thermalmeter - rtlpriv->dm.thermalvalue_rxgain; in rtl92d_dm_rxgain_tracking_thermalmeter()
168 if (rtlpriv->dm.cck_inch14) in rtl92d_bandtype_2_4G()
179 rtlpriv->dm.cck_inch14); in rtl92d_bandtype_2_4G()
239 ofdm_index[i] = rtlpriv->dm.ofdm_index[i] - in rtl92d_bandtype_5G()
287 struct rtl_dm *dm = &rtlpriv->dm; in rtl92d_dm_txpower_tracking_callback_thermalmeter() local
306 dm->txpower_trackinginit = true; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
315 dm->thermalvalue, rtlefuse->eeprom_thermalmeter); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
325 if (dm->thermalvalue && !rtlhal->reloadtxpowerindex) in rtl92d_dm_txpower_tracking_callback_thermalmeter()
367 if (!dm->thermalvalue) { in rtl92d_dm_txpower_tracking_callback_thermalmeter()
368 dm->thermalvalue = rtlefuse->eeprom_thermalmeter; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
369 dm->thermalvalue_lck = thermalvalue; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
370 dm->thermalvalue_iqk = thermalvalue; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
371 dm->thermalvalue_rxgain = rtlefuse->eeprom_thermalmeter; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
374 dm->ofdm_index[i] = ofdm_index_old[i]; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
376 dm->cck_index = cck_index_old; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
381 dm->ofdm_index[i] = ofdm_index_old[i]; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
383 dm->cck_index = cck_index_old; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
391 ofdm_index[i] = dm->ofdm_index[i]; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
393 dm->thermalvalue_avg[dm->thermalvalue_avg_index] = thermalvalue; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
394 dm->thermalvalue_avg_index++; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
396 if (dm->thermalvalue_avg_index == AVG_THERMAL_NUM) in rtl92d_dm_txpower_tracking_callback_thermalmeter()
397 dm->thermalvalue_avg_index = 0; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
400 if (dm->thermalvalue_avg[i]) { in rtl92d_dm_txpower_tracking_callback_thermalmeter()
401 thermalvalue_avg += dm->thermalvalue_avg[i]; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
412 dm->done_txpower = false; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
413 } else if (dm->done_txpower) { in rtl92d_dm_txpower_tracking_callback_thermalmeter()
414 delta = abs_diff(thermalvalue, dm->thermalvalue); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
419 delta_lck = abs_diff(thermalvalue, dm->thermalvalue_lck); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
420 delta_iqk = abs_diff(thermalvalue, dm->thermalvalue_iqk); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
421 delta_rxgain = abs_diff(thermalvalue, dm->thermalvalue_rxgain); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
425 thermalvalue, dm->thermalvalue, rtlefuse->eeprom_thermalmeter, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
429 dm->thermalvalue_lck = thermalvalue; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
433 if (delta == 0 || !dm->txpower_track_control) in rtl92d_dm_txpower_tracking_callback_thermalmeter()
436 dm->done_txpower = true; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
446 if (thermalvalue > dm->thermalvalue) { in rtl92d_dm_txpower_tracking_callback_thermalmeter()
467 dm->ofdm_index[0], dm->ofdm_index[1], dm->cck_index); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
471 dm->ofdm_index[0], dm->cck_index); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
546 if (dm->cck_inch14) in rtl92d_dm_txpower_tracking_callback_thermalmeter()
604 dm->thermalvalue_iqk = thermalvalue; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
610 dm->thermalvalue_rxgain = thermalvalue; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
614 if (dm->txpower_track_control) in rtl92d_dm_txpower_tracking_callback_thermalmeter()
615 dm->thermalvalue = thermalvalue; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
625 rtlpriv->dm.txpower_tracking = true; in rtl92d_dm_initialize_txpower_tracking()
626 rtlpriv->dm.txpower_trackinginit = false; in rtl92d_dm_initialize_txpower_tracking()
627 rtlpriv->dm.txpower_track_control = true; in rtl92d_dm_initialize_txpower_tracking()
630 rtlpriv->dm.txpower_tracking); in rtl92d_dm_initialize_txpower_tracking()
638 if (!rtlpriv->dm.txpower_tracking) in rtl92d_dm_check_txpower_tracking_thermal_meter()
641 if (!rtlpriv->dm.tm_trigger) { in rtl92d_dm_check_txpower_tracking_thermal_meter()
646 rtlpriv->dm.tm_trigger = 1; in rtl92d_dm_check_txpower_tracking_thermal_meter()
651 rtlpriv->dm.tm_trigger = 0; in rtl92d_dm_check_txpower_tracking_thermal_meter()
747 rtlpriv->dm.entry_min_undec_sm_pwdb == 0) { in rtl92d_dm_find_minimum_rssi()
756 rtlpriv->dm.entry_min_undec_sm_pwdb; in rtl92d_dm_find_minimum_rssi()
759 rtlpriv->dm.entry_min_undec_sm_pwdb); in rtl92d_dm_find_minimum_rssi()
762 rtlpriv->dm.undec_sm_pwdb; in rtl92d_dm_find_minimum_rssi()
769 rtlpriv->dm.entry_min_undec_sm_pwdb; in rtl92d_dm_find_minimum_rssi()
888 if (!rtlpriv->dm.dm_initialgain_enable) in rtl92d_dm_dig()
990 rtlpriv->dm.current_turbo_edca = false; in rtl92d_dm_init_edca_turbo()
991 rtlpriv->dm.is_any_nonbepkts = false; in rtl92d_dm_init_edca_turbo()
992 rtlpriv->dm.is_cur_rdlstate = false; in rtl92d_dm_init_edca_turbo()
1008 rtlpriv->dm.current_turbo_edca = false; in rtl92d_dm_check_edca_turbo()
1012 if (!rtlpriv->dm.is_any_nonbepkts && in rtl92d_dm_check_edca_turbo()
1013 !rtlpriv->dm.disable_framebursting) { in rtl92d_dm_check_edca_turbo()
1017 if (!rtlpriv->dm.is_cur_rdlstate || in rtl92d_dm_check_edca_turbo()
1018 !rtlpriv->dm.current_turbo_edca) { in rtl92d_dm_check_edca_turbo()
1021 rtlpriv->dm.is_cur_rdlstate = true; in rtl92d_dm_check_edca_turbo()
1024 if (rtlpriv->dm.is_cur_rdlstate || in rtl92d_dm_check_edca_turbo()
1025 !rtlpriv->dm.current_turbo_edca) { in rtl92d_dm_check_edca_turbo()
1028 rtlpriv->dm.is_cur_rdlstate = false; in rtl92d_dm_check_edca_turbo()
1031 rtlpriv->dm.current_turbo_edca = true; in rtl92d_dm_check_edca_turbo()
1033 if (rtlpriv->dm.current_turbo_edca) { in rtl92d_dm_check_edca_turbo()
1038 rtlpriv->dm.current_turbo_edca = false; in rtl92d_dm_check_edca_turbo()
1043 rtlpriv->dm.is_any_nonbepkts = false; in rtl92d_dm_check_edca_turbo()
1056 if (rtlpriv->dm.dm_type == DM_TYPE_BYDRIVER) in rtl92d_dm_init_rate_adaptive_mask()
1057 rtlpriv->dm.useramask = true; in rtl92d_dm_init_rate_adaptive_mask()
1059 rtlpriv->dm.useramask = false; in rtl92d_dm_init_rate_adaptive_mask()