rtldm 216 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c struct rtl_dm *rtldm = rtl_dm(rtl_priv(hw)); rtldm 218 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c u8 cck_base = rtldm->swing_idx_cck_base; rtldm 219 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c u8 cck_val = rtldm->swing_idx_cck; rtldm 220 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c u8 ofdm_base = rtldm->swing_idx_ofdm_base[0]; rtldm 254 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c struct rtl_dm *rtldm = rtl_dm(rtl_priv(hw)); rtldm 257 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c if (rtldm->swing_flag_ofdm || rtldm 258 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c rtldm->swing_flag_cck) { rtldm 261 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c rtldm->swing_flag_ofdm = false; rtldm 262 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c rtldm->swing_flag_cck = false; rtldm 265 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c if (!rtldm->cck_inch14) { rtldm 267 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c cck_tbl_ch1_13[rtldm->swing_idx_cck][0]); rtldm 269 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c cck_tbl_ch1_13[rtldm->swing_idx_cck][1]); rtldm 271 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c cck_tbl_ch1_13[rtldm->swing_idx_cck][2]); rtldm 273 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c cck_tbl_ch1_13[rtldm->swing_idx_cck][3]); rtldm 275 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c cck_tbl_ch1_13[rtldm->swing_idx_cck][4]); rtldm 277 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c cck_tbl_ch1_13[rtldm->swing_idx_cck][5]); rtldm 279 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c cck_tbl_ch1_13[rtldm->swing_idx_cck][6]); rtldm 281 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c cck_tbl_ch1_13[rtldm->swing_idx_cck][7]); rtldm 284 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c cck_tbl_ch14[rtldm->swing_idx_cck][0]); rtldm 286 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c cck_tbl_ch14[rtldm->swing_idx_cck][1]); rtldm 288 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c cck_tbl_ch14[rtldm->swing_idx_cck][2]); rtldm 290 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c cck_tbl_ch14[rtldm->swing_idx_cck][3]); rtldm 292 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c cck_tbl_ch14[rtldm->swing_idx_cck][4]); rtldm 294 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c cck_tbl_ch14[rtldm->swing_idx_cck][5]); rtldm 296 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c cck_tbl_ch14[rtldm->swing_idx_cck][6]); rtldm 298 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c cck_tbl_ch14[rtldm->swing_idx_cck][7]); rtldm 302 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c rtl88e_set_iqk_matrix(hw, rtldm->swing_idx_ofdm[rfpath], rtldm 310 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c rtl88e_set_iqk_matrix(hw, rtldm->swing_idx_ofdm[rfpath], rtldm 861 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c struct rtl_dm *rtldm = rtl_dm(rtl_priv(hw)); rtldm 908 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c rtldm->swing_idx_ofdm_base[RF90_PATH_A] = (u8)i; rtldm 923 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c rtldm->swing_idx_cck_base = (u8)i; rtldm 935 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c rtldm->swing_idx_cck_base = (u8)i; rtldm 948 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c if (!rtldm->thermalvalue) { rtldm 958 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c rtldm->thermalvalue_avg[rtldm->thermalvalue_avg_index] = thermalvalue; rtldm 959 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c rtldm->thermalvalue_avg_index++; rtldm 960 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c if (rtldm->thermalvalue_avg_index == AVG_THERMAL_NUM_88E) rtldm 961 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c rtldm->thermalvalue_avg_index = 0; rtldm 964 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c if (rtldm->thermalvalue_avg[i]) { rtldm 965 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c thermalvalue_avg += rtldm->thermalvalue_avg[i]; rtldm 1023 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c rtldm->ofdm_index[i] + rtldm 1025 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c cck_index = rtldm->cck_index + rtldm 1032 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c rtldm->ofdm_index[i] + rtldm 1034 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c cck_index = rtldm->cck_index + rtldm 1042 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c else if (rtldm->ofdm_index[i] < ofdm_min_index) rtldm 1053 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c rtldm->done_txpower = true; rtldm 1054 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c rtldm->swing_idx_ofdm[RF90_PATH_A] = rtldm 1056 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c rtldm->swing_idx_cck = cck_index; rtldm 1057 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c if (rtldm->swing_idx_ofdm_cur != rtldm 1058 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c rtldm->swing_idx_ofdm[0]) { rtldm 1059 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c rtldm->swing_idx_ofdm_cur = rtldm 1060 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c rtldm->swing_idx_ofdm[0]; rtldm 1061 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c rtldm->swing_flag_ofdm = true; rtldm 1064 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c if (rtldm->swing_idx_cck_cur != rtldm->swing_idx_cck) { rtldm 1065 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c rtldm->swing_idx_cck_cur = rtldm->swing_idx_cck; rtldm 1066 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c rtldm->swing_flag_cck = true; rtldm 1078 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c if (rtldm->txpower_track_control) rtldm 1079 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c rtldm->thermalvalue = thermalvalue; rtldm 1080 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c rtldm->txpowercount = 0; rtldm 1228 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c struct rtl_dm *rtldm = rtl_dm(rtl_priv(hw)); rtldm 1229 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c struct fast_ant_training *pfat_table = &rtldm->fat_table; rtldm 1277 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c struct rtl_dm *rtldm = rtl_dm(rtl_priv(hw)); rtldm 1278 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c struct fast_ant_training *pfat_table = &rtldm->fat_table; rtldm 1345 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c struct rtl_dm *rtldm = rtl_dm(rtl_priv(hw)); rtldm 1346 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c struct fast_ant_training *pfat_table = &rtldm->fat_table; rtldm 1412 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c struct rtl_dm *rtldm = rtl_dm(rtl_priv(hw)); rtldm 1413 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c struct fast_ant_training *pfat_table = &rtldm->fat_table; rtldm 1429 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c struct rtl_dm *rtldm = rtl_dm(rtl_priv(hw)); rtldm 1430 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c struct fast_ant_training *pfat_table = &rtldm->fat_table; rtldm 1455 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c struct rtl_dm *rtldm = rtl_dm(rtl_priv(hw)); rtldm 1457 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c struct fast_ant_training *pfat_table = &rtldm->fat_table; rtldm 1560 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c struct rtl_dm *rtldm = rtl_dm(rtl_priv(hw)); rtldm 1562 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c struct fast_ant_training *pfat_table = &rtldm->fat_table; rtldm 1623 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c struct rtl_dm *rtldm = rtl_dm(rtl_priv(hw)); rtldm 1624 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c struct fast_ant_training *pfat_table = &rtldm->fat_table; rtldm 1704 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c struct rtl_dm *rtldm = rtl_dm(rtl_priv(hw)); rtldm 1705 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c struct fast_ant_training *pfat_table = &rtldm->fat_table; rtldm 38 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c struct rtl_dm *rtldm = rtl_dm(rtl_priv(hw)); rtldm 233 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c rtldm->fat_table.antsel_rx_keep_0 = phystrpt->ant_sel; rtldm 234 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c rtldm->fat_table.antsel_rx_keep_1 = phystrpt->ant_sel_b; rtldm 235 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c rtldm->fat_table.antsel_rx_keep_2 = phystrpt->antsel_rx_keep_2; rtldm 241 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c struct rtl_dm *rtldm = rtl_dm(rtl_priv(hw)); rtldm 244 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c struct fast_ant_training *pfat_table = &rtldm->fat_table; rtldm 792 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c struct rtl_dm *rtldm = rtl_dm(rtl_priv(hw)); rtldm 799 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c if (rtldm->atc_status == ATC_STATUS_OFF) { rtldm 802 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c rtldm->atc_status = ATC_STATUS_ON; rtldm 814 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c if (rtldm->crystal_cap != rtlpriv->efuse.crystalcap) { rtldm 815 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c rtldm->crystal_cap = rtlpriv->efuse.crystalcap; rtldm 816 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c crystal_cap = rtldm->crystal_cap & 0x3f; rtldm 821 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c cfo_khz_a = (int)(rtldm->cfo_tail[0] * 3125) / 1280; rtldm 822 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c cfo_khz_b = (int)(rtldm->cfo_tail[1] * 3125) / 1280; rtldm 823 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c packet_count = rtldm->packet_count; rtldm 825 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c if (packet_count == rtldm->packet_count_pre) rtldm 828 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c rtldm->packet_count_pre = packet_count; rtldm 835 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c cfo_ave_diff = (rtldm->cfo_ave_pre >= cfo_ave) ? rtldm 836 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c (rtldm->cfo_ave_pre - cfo_ave) : rtldm 837 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c (cfo_ave - rtldm->cfo_ave_pre); rtldm 839 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c if (cfo_ave_diff > 20 && rtldm->large_cfo_hit == 0) { rtldm 840 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c rtldm->large_cfo_hit = 1; rtldm 843 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c rtldm->large_cfo_hit = 0; rtldm 845 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c rtldm->cfo_ave_pre = cfo_ave; rtldm 847 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c if (cfo_ave >= -rtldm->cfo_threshold && rtldm 848 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c cfo_ave <= rtldm->cfo_threshold && rtldm->is_freeze == 0) { rtldm 849 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c if (rtldm->cfo_threshold == CFO_THRESHOLD_XTAL) { rtldm 850 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c rtldm->cfo_threshold = CFO_THRESHOLD_XTAL + 10; rtldm 851 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c rtldm->is_freeze = 1; rtldm 853 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c rtldm->cfo_threshold = CFO_THRESHOLD_XTAL; rtldm 857 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c if (cfo_ave > rtldm->cfo_threshold && rtldm->crystal_cap < 0x3f) rtldm 864 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c rtldm->is_freeze = 0; rtldm 865 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c rtldm->crystal_cap += adjust_xtal; rtldm 867 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c if (rtldm->crystal_cap > 0x3f) rtldm 868 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c rtldm->crystal_cap = 0x3f; rtldm 869 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c else if (rtldm->crystal_cap < 0) rtldm 870 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c rtldm->crystal_cap = 0; rtldm 872 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c crystal_cap = rtldm->crystal_cap & 0x3f; rtldm 879 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c if (rtldm->atc_status == ATC_STATUS_ON) { rtldm 882 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c rtldm->atc_status = ATC_STATUS_OFF; rtldm 885 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c if (rtldm->atc_status == ATC_STATUS_OFF) { rtldm 888 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c rtldm->atc_status = ATC_STATUS_ON; rtldm 161 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c struct rtl_dm *rtldm = rtl_dm(rtl_priv(hw)); rtldm 165 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c u8 cck_base = rtldm->swing_idx_cck_base; rtldm 166 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c u8 cck_val = rtldm->swing_idx_cck; rtldm 654 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c struct rtl_dm *rtldm = rtl_dm(rtl_priv(hw)); rtldm 660 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c if (rtldm->swing_idx_cck >= CCK_TABLE_SIZE) rtldm 661 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->swing_idx_cck = CCK_TABLE_SIZE - 1; rtldm 663 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c if (!rtldm->cck_inch14) { rtldm 665 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c cckswing_table_ch1ch13[rtldm->swing_idx_cck][0]); rtldm 667 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c cckswing_table_ch1ch13[rtldm->swing_idx_cck][1]); rtldm 669 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c cckswing_table_ch1ch13[rtldm->swing_idx_cck][2]); rtldm 671 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c cckswing_table_ch1ch13[rtldm->swing_idx_cck][3]); rtldm 673 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c cckswing_table_ch1ch13[rtldm->swing_idx_cck][4]); rtldm 675 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c cckswing_table_ch1ch13[rtldm->swing_idx_cck][5]); rtldm 677 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c cckswing_table_ch1ch13[rtldm->swing_idx_cck][6]); rtldm 679 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c cckswing_table_ch1ch13[rtldm->swing_idx_cck][7]); rtldm 682 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c cckswing_table_ch14[rtldm->swing_idx_cck][0]); rtldm 684 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c cckswing_table_ch14[rtldm->swing_idx_cck][1]); rtldm 686 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c cckswing_table_ch14[rtldm->swing_idx_cck][2]); rtldm 688 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c cckswing_table_ch14[rtldm->swing_idx_cck][3]); rtldm 690 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c cckswing_table_ch14[rtldm->swing_idx_cck][4]); rtldm 692 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c cckswing_table_ch14[rtldm->swing_idx_cck][5]); rtldm 694 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c cckswing_table_ch14[rtldm->swing_idx_cck][6]); rtldm 696 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c cckswing_table_ch14[rtldm->swing_idx_cck][7]); rtldm 700 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c if (rtldm->swing_idx_ofdm[RF90_PATH_A] < rtldm 703 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->swing_idx_ofdm[RF90_PATH_A]; rtldm 706 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->swing_idx_ofdm[rfpath], rfpath, rtldm 710 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c if (rtldm->swing_idx_ofdm[RF90_PATH_B] < rtldm 713 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->swing_idx_ofdm[RF90_PATH_B]; rtldm 716 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->swing_idx_ofdm[rfpath], rfpath, rtldm 730 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c struct rtl_dm *rtldm = rtl_dm(rtl_priv(hw)); rtldm 760 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c thermalvalue, rtldm->thermalvalue, rtldm 763 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c if (!rtldm->thermalvalue) { rtldm 769 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->thermalvalue_avg[rtldm->thermalvalue_avg_index] = thermalvalue; rtldm 770 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->thermalvalue_avg_index++; rtldm 771 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c if (rtldm->thermalvalue_avg_index == AVG_THERMAL_NUM_8723BE) rtldm 772 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->thermalvalue_avg_index = 0; rtldm 775 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c if (rtldm->thermalvalue_avg[i]) { rtldm 776 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c thermalvalue_avg += rtldm->thermalvalue_avg[i]; rtldm 819 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->delta_power_index_last[RF90_PATH_A] = rtldm 820 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->delta_power_index[RF90_PATH_A]; rtldm 821 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->delta_power_index[RF90_PATH_A] = rtldm 824 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->delta_power_index_last[RF90_PATH_A] = rtldm 825 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->delta_power_index[RF90_PATH_A]; rtldm 826 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->delta_power_index[RF90_PATH_A] = rtldm 831 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c if (rtldm->delta_power_index[RF90_PATH_A] == rtldm 832 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->delta_power_index_last[RF90_PATH_A]) rtldm 833 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->power_index_offset[RF90_PATH_A] = 0; rtldm 835 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->power_index_offset[RF90_PATH_A] = rtldm 836 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->delta_power_index[RF90_PATH_A] - rtldm 837 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->delta_power_index_last[RF90_PATH_A]; rtldm 839 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->ofdm_index[0] = rtldm 840 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->swing_idx_ofdm_base[RF90_PATH_A] + rtldm 841 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->power_index_offset[RF90_PATH_A]; rtldm 842 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->cck_index = rtldm->swing_idx_cck_base + rtldm 843 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->power_index_offset[RF90_PATH_A]; rtldm 845 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->swing_idx_cck = rtldm->cck_index; rtldm 846 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->swing_idx_ofdm[0] = rtldm->ofdm_index[0]; rtldm 848 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c if (rtldm->ofdm_index[0] > OFDM_TABLE_SIZE - 1) rtldm 849 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->ofdm_index[0] = OFDM_TABLE_SIZE - 1; rtldm 850 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c else if (rtldm->ofdm_index[0] < ofdm_min_index) rtldm 851 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->ofdm_index[0] = ofdm_min_index; rtldm 853 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c if (rtldm->cck_index > CCK_TABLE_SIZE - 1) rtldm 854 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->cck_index = CCK_TABLE_SIZE - 1; rtldm 855 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c else if (rtldm->cck_index < 0) rtldm 856 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->cck_index = 0; rtldm 858 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->power_index_offset[RF90_PATH_A] = 0; rtldm 861 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c if ((rtldm->power_index_offset[RF90_PATH_A] != 0) && rtldm 862 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c (rtldm->txpower_track_control)) { rtldm 863 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->done_txpower = true; rtldm 867 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->swing_idx_cck_base = rtldm->swing_idx_cck; rtldm 868 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->swing_idx_ofdm_base[RF90_PATH_A] = rtldm 869 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->swing_idx_ofdm[0]; rtldm 870 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->thermalvalue = thermalvalue; rtldm 874 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->thermalvalue_iqk = thermalvalue; rtldm 878 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->txpowercount = 0; rtldm 1110 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c struct rtl_dm *rtldm = rtl_dm(rtl_priv(hw)); rtldm 1117 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c if (rtldm->atc_status == ATC_STATUS_OFF) { rtldm 1120 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->atc_status = ATC_STATUS_ON; rtldm 1130 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c if (rtldm->crystal_cap != rtlpriv->efuse.crystalcap) { rtldm 1131 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->crystal_cap = rtlpriv->efuse.crystalcap; rtldm 1132 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c crystal_cap = rtldm->crystal_cap & 0x3f; rtldm 1137 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c cfo_khz_a = (int)(rtldm->cfo_tail[0] * 3125) / 1280; rtldm 1138 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c cfo_khz_b = (int)(rtldm->cfo_tail[1] * 3125) / 1280; rtldm 1139 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c packet_count = rtldm->packet_count; rtldm 1141 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c if (packet_count == rtldm->packet_count_pre) rtldm 1144 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->packet_count_pre = packet_count; rtldm 1151 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c cfo_ave_diff = (rtldm->cfo_ave_pre >= cfo_ave) ? rtldm 1152 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c (rtldm->cfo_ave_pre - cfo_ave) : rtldm 1153 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c (cfo_ave - rtldm->cfo_ave_pre); rtldm 1155 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c if (cfo_ave_diff > 20 && rtldm->large_cfo_hit == 0) { rtldm 1156 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->large_cfo_hit = 1; rtldm 1159 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->large_cfo_hit = 0; rtldm 1161 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->cfo_ave_pre = cfo_ave; rtldm 1163 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c if (cfo_ave >= -rtldm->cfo_threshold && rtldm 1164 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c cfo_ave <= rtldm->cfo_threshold && rtldm->is_freeze == 0) { rtldm 1165 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c if (rtldm->cfo_threshold == CFO_THRESHOLD_XTAL) { rtldm 1166 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->cfo_threshold = CFO_THRESHOLD_XTAL + 10; rtldm 1167 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->is_freeze = 1; rtldm 1169 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->cfo_threshold = CFO_THRESHOLD_XTAL; rtldm 1173 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c if (cfo_ave > rtldm->cfo_threshold && rtldm->crystal_cap < 0x3f) rtldm 1180 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->is_freeze = 0; rtldm 1181 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->crystal_cap += adjust_xtal; rtldm 1183 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c if (rtldm->crystal_cap > 0x3f) rtldm 1184 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->crystal_cap = 0x3f; rtldm 1185 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c else if (rtldm->crystal_cap < 0) rtldm 1186 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->crystal_cap = 0; rtldm 1188 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c crystal_cap = rtldm->crystal_cap & 0x3f; rtldm 1195 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c if (rtldm->atc_status == ATC_STATUS_ON) { rtldm 1198 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->atc_status = ATC_STATUS_OFF; rtldm 1201 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c if (rtldm->atc_status == ATC_STATUS_OFF) { rtldm 1204 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->atc_status = ATC_STATUS_ON; rtldm 385 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c struct rtl_dm *rtldm = rtl_dm(rtl_priv(hw)); rtldm 392 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c pwr_val = rtldm->swing_idx_ofdm_base[RF90_PATH_A] - rtldm 393 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->swing_idx_ofdm[RF90_PATH_A]; rtldm 396 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c pwr_val = rtldm->swing_idx_ofdm[RF90_PATH_A] - rtldm 397 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->swing_idx_ofdm_base[RF90_PATH_A]; rtldm 400 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c if (rtldm->swing_idx_cck <= rtldm->swing_idx_cck_base) { rtldm 402 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c pwr_val = rtldm->swing_idx_cck_base - rtldm 403 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->swing_idx_cck; rtldm 406 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c pwr_val = rtldm->swing_idx_cck - rtldm 407 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->swing_idx_cck_base; rtldm 422 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c struct rtl_dm *rtldm = rtl_dm(rtlpriv); rtldm 426 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->swing_idx_cck_base = rtldm->default_cck_index; rtldm 427 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->swing_idx_cck = rtldm->default_cck_index; rtldm 428 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->cck_index = 0; rtldm 431 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->swing_idx_ofdm_base[p] = rtldm->default_ofdm_index; rtldm 432 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->swing_idx_ofdm[p] = rtldm->default_ofdm_index; rtldm 433 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->ofdm_index[p] = rtldm->default_ofdm_index; rtldm 435 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->power_index_offset[p] = 0; rtldm 436 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->delta_power_index[p] = 0; rtldm 437 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->delta_power_index_last[p] = 0; rtldm 439 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->absolute_ofdm_swing_idx[p] = 0; rtldm 440 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->remnant_ofdm_swing_idx[p] = 0; rtldm 443 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->modify_txagc_flag_path_a = false; rtldm 445 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->modify_txagc_flag_path_b = false; rtldm 446 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->remnant_cck_idx = 0; rtldm 447 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->thermalvalue = rtlefuse->eeprom_thermalmeter; rtldm 448 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->thermalvalue_iqk = rtlefuse->eeprom_thermalmeter; rtldm 449 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->thermalvalue_lck = rtlefuse->eeprom_thermalmeter; rtldm 472 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c struct rtl_dm *rtldm = rtl_dm(rtlpriv); rtldm 478 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->thermalvalue = rtlefuse->eeprom_thermalmeter; rtldm 479 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->thermalvalue_iqk = rtlefuse->eeprom_thermalmeter; rtldm 480 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->thermalvalue_lck = rtlefuse->eeprom_thermalmeter; rtldm 483 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->default_ofdm_index = rtldm 486 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->default_cck_index = 24; rtldm 488 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->swing_idx_cck_base = rtldm->default_cck_index; rtldm 489 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->cck_index = rtldm->default_cck_index; rtldm 492 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->swing_idx_ofdm_base[p] = rtldm 493 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->default_ofdm_index; rtldm 494 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->ofdm_index[p] = rtldm->default_ofdm_index; rtldm 495 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->delta_power_index[p] = 0; rtldm 496 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->power_index_offset[p] = 0; rtldm 497 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->delta_power_index_last[p] = 0; rtldm 1064 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c struct rtl_dm *rtldm = rtl_dm(rtl_priv(hw)); rtldm 1068 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c if (rtldm->linked_interval < 3) rtldm 1069 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->linked_interval++; rtldm 1071 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c if (rtldm->linked_interval == 2) { rtldm 1078 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->linked_interval = 0; rtldm 1088 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c struct rtl_dm *rtldm = rtl_dm(rtl_priv(hw)); rtldm 1090 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c u8 rate = rtldm->tx_rate; rtldm 1130 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c struct rtl_dm *rtldm = rtl_dm(rtl_priv(hw)); rtldm 1137 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->tx_rate = rate; rtldm 1329 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c struct rtl_dm *rtldm = rtl_dm(rtl_priv(hw)); rtldm 1336 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c if (rtldm->tx_rate != 0xFF) rtldm 1338 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtl8821ae_hw_rate_to_mrate(hw, rtldm->tx_rate); rtldm 1424 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c (rtldm->ofdm_index[RF90_PATH_A] > rtldm 1427 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->ofdm_index[RF90_PATH_A]; rtldm 1431 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->ofdm_index[RF90_PATH_A], rtldm 1440 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->ofdm_index[RF90_PATH_B] > rtldm 1443 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->ofdm_index[RF90_PATH_B]; rtldm 1447 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->ofdm_index[RF90_PATH_B], rtldm 1456 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->default_ofdm_index, rtldm 1457 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->absolute_ofdm_swing_idx[rf_path], rtldm 1460 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c final_ofdm_swing_index = rtldm->default_ofdm_index + rtldm 1461 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->absolute_ofdm_swing_idx[rf_path]; rtldm 1466 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->remnant_cck_idx = rtldm 1472 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->remnant_ofdm_swing_idx[rf_path] = rtldm 1479 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->modify_txagc_flag_path_a = true; rtldm 1489 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->remnant_ofdm_swing_idx[rf_path]); rtldm 1491 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->remnant_cck_idx = final_ofdm_swing_index; rtldm 1493 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->remnant_ofdm_swing_idx[rf_path] = rtldm 1499 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->modify_txagc_flag_path_a = true; rtldm 1507 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->remnant_ofdm_swing_idx[rf_path]); rtldm 1516 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c if (rtldm->modify_txagc_flag_path_a) { rtldm 1517 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->remnant_cck_idx = 0; rtldm 1518 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->remnant_ofdm_swing_idx[rf_path] = 0; rtldm 1523 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->modify_txagc_flag_path_a = false; rtldm 1534 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->remnant_ofdm_swing_idx[rf_path] = rtldm 1542 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->modify_txagc_flag_path_b = true; rtldm 1551 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->remnant_ofdm_swing_idx[rf_path]); rtldm 1553 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->remnant_ofdm_swing_idx[rf_path] = rtldm 1559 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->modify_txagc_flag_path_b = true; rtldm 1567 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->remnant_ofdm_swing_idx[rf_path]); rtldm 1576 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c if (rtldm->modify_txagc_flag_path_b) { rtldm 1577 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->remnant_ofdm_swing_idx[rf_path] = 0; rtldm 1583 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->modify_txagc_flag_path_b = rtldm 1601 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c struct rtl_dm *rtldm = rtl_dm(rtl_priv(hw)); rtldm 1625 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->txpower_trackinginit = true; rtldm 1629 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->swing_idx_cck_base, rtldm 1630 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->swing_idx_ofdm_base[RF90_PATH_A], rtldm 1631 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->default_ofdm_index); rtldm 1639 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c if (!rtldm->txpower_track_control || rtldm 1651 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->thermalvalue_avg[rtldm->thermalvalue_avg_index] = thermal_value; rtldm 1652 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->thermalvalue_avg_index++; rtldm 1653 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c if (rtldm->thermalvalue_avg_index == AVG_THERMAL_NUM_8812A) rtldm 1655 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->thermalvalue_avg_index = 0; rtldm 1658 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c if (rtldm->thermalvalue_avg[i]) { rtldm 1659 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c thermal_value_avg += rtldm->thermalvalue_avg[i]; rtldm 1676 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c delta = (thermal_value > rtldm->thermalvalue) ? rtldm 1677 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c (thermal_value - rtldm->thermalvalue) : rtldm 1678 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c (rtldm->thermalvalue - thermal_value); rtldm 1679 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c delta_lck = (thermal_value > rtldm->thermalvalue_lck) ? rtldm 1680 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c (thermal_value - rtldm->thermalvalue_lck) : rtldm 1681 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c (rtldm->thermalvalue_lck - thermal_value); rtldm 1682 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c delta_iqk = (thermal_value > rtldm->thermalvalue_iqk) ? rtldm 1683 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c (thermal_value - rtldm->thermalvalue_iqk) : rtldm 1684 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c (rtldm->thermalvalue_iqk - thermal_value); rtldm 1697 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->thermalvalue_lck = thermal_value; rtldm 1703 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c if (delta > 0 && rtldm->txpower_track_control) { rtldm 1720 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->delta_power_index_last[RF90_PATH_A] = rtldm 1721 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->delta_power_index[RF90_PATH_A]; rtldm 1722 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->delta_power_index[RF90_PATH_A] = rtldm 1725 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->absolute_ofdm_swing_idx[RF90_PATH_A] = rtldm 1731 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->absolute_ofdm_swing_idx[RF90_PATH_A]); rtldm 1736 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->delta_power_index_last[RF90_PATH_B] = rtldm 1737 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->delta_power_index[RF90_PATH_B]; rtldm 1738 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->delta_power_index[RF90_PATH_B] = rtldm 1741 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->absolute_ofdm_swing_idx[RF90_PATH_B] = rtldm 1747 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->absolute_ofdm_swing_idx[RF90_PATH_B]); rtldm 1753 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->delta_power_index_last[RF90_PATH_A] = rtldm 1754 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->delta_power_index[RF90_PATH_A]; rtldm 1755 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->delta_power_index[RF90_PATH_A] = rtldm 1758 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->absolute_ofdm_swing_idx[RF90_PATH_A] = rtldm 1763 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->absolute_ofdm_swing_idx[RF90_PATH_A]); rtldm 1769 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->delta_power_index_last[RF90_PATH_B] = rtldm 1770 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->delta_power_index[RF90_PATH_B]; rtldm 1771 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->delta_power_index[RF90_PATH_B] = rtldm 1774 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->absolute_ofdm_swing_idx[RF90_PATH_B] = rtldm 1780 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->absolute_ofdm_swing_idx[RF90_PATH_B]); rtldm 1788 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c if (rtldm->delta_power_index[p] == rtldm 1789 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->delta_power_index_last[p]) rtldm 1792 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->power_index_offset[p] = 0; rtldm 1794 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->power_index_offset[p] = rtldm 1795 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->delta_power_index[p] - rtldm 1796 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->delta_power_index_last[p]; rtldm 1803 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->power_index_offset[p], rtldm 1804 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->delta_power_index[p] , rtldm 1805 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->delta_power_index_last[p]); rtldm 1807 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->ofdm_index[p] = rtldm 1808 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->swing_idx_ofdm_base[p] + rtldm 1809 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->power_index_offset[p]; rtldm 1810 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->cck_index = rtldm 1811 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->swing_idx_cck_base + rtldm 1812 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->power_index_offset[p]; rtldm 1814 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->swing_idx_cck = rtldm->cck_index; rtldm 1815 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->swing_idx_ofdm[p] = rtldm->ofdm_index[p]; rtldm 1821 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->swing_idx_cck, rtldm 1822 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->swing_idx_cck_base, rtldm 1823 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->power_index_offset[p]); rtldm 1826 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->swing_idx_ofdm[p], rtldm 1828 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->swing_idx_ofdm_base[p], rtldm 1829 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->power_index_offset[p]); rtldm 1833 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c if (rtldm->ofdm_index[p] > TXSCALE_TABLE_SIZE - 1) rtldm 1834 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->ofdm_index[p] = TXSCALE_TABLE_SIZE - 1; rtldm 1835 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c else if (rtldm->ofdm_index[p] < ofdm_min_index) rtldm 1836 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->ofdm_index[p] = ofdm_min_index; rtldm 1840 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c if (rtldm->cck_index > TXSCALE_TABLE_SIZE - 1) rtldm 1841 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->cck_index = TXSCALE_TABLE_SIZE - 1; rtldm 1842 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c else if (rtldm->cck_index < 0) rtldm 1843 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->cck_index = 0; rtldm 1847 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->txpower_track_control, rtldm 1849 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->thermalvalue); rtldm 1852 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->power_index_offset[p] = 0; rtldm 1857 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->cck_index, rtldm->swing_idx_cck_base); rtldm 1861 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->ofdm_index[p], rtldm 1863 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->swing_idx_ofdm_base[p]); rtldm 1866 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c if ((rtldm->power_index_offset[RF90_PATH_A] != 0 || rtldm 1867 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->power_index_offset[RF90_PATH_B] != 0) && rtldm 1868 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->txpower_track_control) { rtldm 1879 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c if (thermal_value > rtldm->thermalvalue) { rtldm 1882 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->power_index_offset[RF90_PATH_A], rtldm 1885 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->thermalvalue); rtldm 1889 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->power_index_offset[RF90_PATH_B], rtldm 1892 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->thermalvalue); rtldm 1893 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c } else if (thermal_value < rtldm->thermalvalue) { /*Low temperature*/ rtldm 1896 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->power_index_offset[RF90_PATH_A], rtldm 1899 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->thermalvalue); rtldm 1903 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->power_index_offset[RF90_PATH_B], rtldm 1906 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->thermalvalue); rtldm 1931 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->swing_idx_cck_base = rtldm->swing_idx_cck; rtldm 1933 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->swing_idx_ofdm_base[p] = rtldm 1934 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->swing_idx_ofdm[p]; rtldm 1938 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->thermalvalue, thermal_value); rtldm 1940 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->thermalvalue = thermal_value; rtldm 1956 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c struct rtl_dm *rtldm = rtl_dm(rtl_priv(hw)); rtldm 1958 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c u8 rate = rtldm->tx_rate; rtldm 2019 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c struct rtl_dm *rtldm = rtl_dm(rtl_priv(hw)); rtldm 2026 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c if (rtldm->tx_rate != 0xFF) rtldm 2027 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c tx_rate = rtl8821ae_hw_rate_to_mrate(hw, rtldm->tx_rate); rtldm 2081 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c (rtldm->ofdm_index[RF90_PATH_A] > rtldm 2084 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->ofdm_index[RF90_PATH_A]; rtldm 2087 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->ofdm_index[RF90_PATH_A], rtldm 2096 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->default_ofdm_index, rtldm 2097 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->absolute_ofdm_swing_idx[rf_path], rtldm 2101 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->default_ofdm_index + rtldm 2102 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->absolute_ofdm_swing_idx[rf_path]; rtldm 2106 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->remnant_cck_idx = rtldm 2110 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->remnant_ofdm_swing_idx[rf_path] = rtldm 2118 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->modify_txagc_flag_path_a = true; rtldm 2128 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->remnant_ofdm_swing_idx[rf_path]); rtldm 2130 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->remnant_cck_idx = final_ofdm_swing_index; rtldm 2132 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->remnant_ofdm_swing_idx[rf_path] = rtldm 2138 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->modify_txagc_flag_path_a = true; rtldm 2146 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->remnant_ofdm_swing_idx[rf_path]); rtldm 2155 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c if (rtldm->modify_txagc_flag_path_a) { rtldm 2156 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->remnant_cck_idx = 0; rtldm 2157 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->remnant_ofdm_swing_idx[rf_path] = 0; rtldm 2163 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->modify_txagc_flag_path_a = false; rtldm 2181 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c struct rtl_dm *rtldm = rtl_dm(rtl_priv(hw)); rtldm 2207 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->txpower_trackinginit = true; rtldm 2212 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->swing_idx_cck_base, rtldm 2213 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->swing_idx_ofdm_base[RF90_PATH_A], rtldm 2214 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->default_ofdm_index); rtldm 2218 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c if (!rtldm->txpower_track_control || rtldm 2231 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->thermalvalue_avg[rtldm->thermalvalue_avg_index] = thermal_value; rtldm 2232 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->thermalvalue_avg_index++; rtldm 2233 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c if (rtldm->thermalvalue_avg_index == AVG_THERMAL_NUM_8812A) rtldm 2235 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->thermalvalue_avg_index = 0; rtldm 2238 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c if (rtldm->thermalvalue_avg[i]) { rtldm 2239 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c thermal_value_avg += rtldm->thermalvalue_avg[i]; rtldm 2256 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c delta = (thermal_value > rtldm->thermalvalue) ? rtldm 2257 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c (thermal_value - rtldm->thermalvalue) : rtldm 2258 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c (rtldm->thermalvalue - thermal_value); rtldm 2259 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c delta_lck = (thermal_value > rtldm->thermalvalue_lck) ? rtldm 2260 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c (thermal_value - rtldm->thermalvalue_lck) : rtldm 2261 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c (rtldm->thermalvalue_lck - thermal_value); rtldm 2262 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c delta_iqk = (thermal_value > rtldm->thermalvalue_iqk) ? rtldm 2263 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c (thermal_value - rtldm->thermalvalue_iqk) : rtldm 2264 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c (rtldm->thermalvalue_iqk - thermal_value); rtldm 2276 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->thermalvalue_lck = thermal_value; rtldm 2282 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c if (delta > 0 && rtldm->txpower_track_control) { rtldm 2299 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->delta_power_index_last[RF90_PATH_A] = rtldm 2300 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->delta_power_index[RF90_PATH_A]; rtldm 2301 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->delta_power_index[RF90_PATH_A] = rtldm 2304 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->absolute_ofdm_swing_idx[RF90_PATH_A] = rtldm 2310 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->absolute_ofdm_swing_idx[RF90_PATH_A]); rtldm 2316 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->delta_power_index_last[RF90_PATH_A] = rtldm 2317 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->delta_power_index[RF90_PATH_A]; rtldm 2318 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->delta_power_index[RF90_PATH_A] = rtldm 2321 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->absolute_ofdm_swing_idx[RF90_PATH_A] = rtldm 2326 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->absolute_ofdm_swing_idx[RF90_PATH_A]); rtldm 2336 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c if (rtldm->delta_power_index[p] == rtldm 2337 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->delta_power_index_last[p]) rtldm 2339 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->power_index_offset[p] = 0; rtldm 2341 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->power_index_offset[p] = rtldm 2342 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->delta_power_index[p] - rtldm 2343 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->delta_power_index_last[p]; rtldm 2349 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->power_index_offset[p], rtldm 2350 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->delta_power_index[p] , rtldm 2351 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->delta_power_index_last[p]); rtldm 2353 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->ofdm_index[p] = rtldm 2354 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->swing_idx_ofdm_base[p] + rtldm 2355 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->power_index_offset[p]; rtldm 2356 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->cck_index = rtldm 2357 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->swing_idx_cck_base + rtldm 2358 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->power_index_offset[p]; rtldm 2360 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->swing_idx_cck = rtldm->cck_index; rtldm 2361 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->swing_idx_ofdm[p] = rtldm->ofdm_index[p]; rtldm 2367 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->swing_idx_cck, rtldm 2368 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->swing_idx_cck_base, rtldm 2369 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->power_index_offset[p]); rtldm 2372 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->swing_idx_ofdm[p], rtldm 2374 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->swing_idx_ofdm_base[p], rtldm 2375 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->power_index_offset[p]); rtldm 2379 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c if (rtldm->ofdm_index[p] > TXSCALE_TABLE_SIZE - 1) rtldm 2380 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->ofdm_index[p] = TXSCALE_TABLE_SIZE - 1; rtldm 2381 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c else if (rtldm->ofdm_index[p] < ofdm_min_index) rtldm 2382 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->ofdm_index[p] = ofdm_min_index; rtldm 2386 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c if (rtldm->cck_index > TXSCALE_TABLE_SIZE - 1) rtldm 2387 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->cck_index = TXSCALE_TABLE_SIZE - 1; rtldm 2388 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c else if (rtldm->cck_index < 0) rtldm 2389 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->cck_index = 0; rtldm 2393 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->txpower_track_control, rtldm 2395 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->thermalvalue); rtldm 2398 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->power_index_offset[p] = 0; rtldm 2403 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->cck_index, rtldm->swing_idx_cck_base); rtldm 2407 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->ofdm_index[p], rtldm 2409 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->swing_idx_ofdm_base[p]); rtldm 2412 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c if ((rtldm->power_index_offset[RF90_PATH_A] != 0 || rtldm 2413 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->power_index_offset[RF90_PATH_B] != 0) && rtldm 2414 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->txpower_track_control) { rtldm 2425 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c if (thermal_value > rtldm->thermalvalue) { rtldm 2428 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->power_index_offset[RF90_PATH_A], rtldm 2431 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->thermalvalue); rtldm 2432 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c } else if (thermal_value < rtldm->thermalvalue) { /*Low temperature*/ rtldm 2435 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->power_index_offset[RF90_PATH_A], rtldm 2438 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->thermalvalue); rtldm 2463 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->swing_idx_cck_base = rtldm->swing_idx_cck; rtldm 2465 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->swing_idx_ofdm_base[p] = rtldm->swing_idx_ofdm[p]; rtldm 2469 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->thermalvalue, thermal_value); rtldm 2471 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->thermalvalue = thermal_value; rtldm 2646 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c struct rtl_dm *rtldm = rtl_dm(rtl_priv(hw)); rtldm 2675 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c cur_tx_ok_cnt = rtlpriv->stats.txbytesunicast - rtldm->last_tx_ok_cnt; rtldm 2676 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c cur_rx_ok_cnt = rtlpriv->stats.rxbytesunicast - rtldm->last_rx_ok_cnt; rtldm 2678 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->last_tx_ok_cnt = rtlpriv->stats.txbytesunicast; rtldm 2679 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->last_rx_ok_cnt = rtlpriv->stats.rxbytesunicast; rtldm 2738 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->last_tx_ok_cnt = rtlpriv->stats.txbytesunicast; rtldm 2739 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->last_rx_ok_cnt = rtlpriv->stats.rxbytesunicast; rtldm 2780 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c struct rtl_dm *rtldm = rtl_dm(rtl_priv(hw)); rtldm 2788 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c if (rtldm->atc_status == ATC_STATUS_OFF) { rtldm 2790 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->atc_status = ATC_STATUS_ON; rtldm 2795 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c "atc_status = %d\n", rtldm->atc_status); rtldm 2797 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c if (rtldm->crystal_cap != rtlpriv->efuse.crystalcap) { rtldm 2798 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->crystal_cap = rtlpriv->efuse.crystalcap; rtldm 2799 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c crystal_cap = rtldm->crystal_cap & 0x3f; rtldm 2811 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->crystal_cap); rtldm 2814 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c cfo_khz_a = (int)(rtldm->cfo_tail[0] * 3125) / 1280; rtldm 2815 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c cfo_khz_b = (int)(rtldm->cfo_tail[1] * 3125) / 1280; rtldm 2816 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c packet_count = rtldm->packet_count; rtldm 2819 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c if (packet_count == rtldm->packet_count_pre) { rtldm 2825 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->packet_count_pre = packet_count; rtldm 2828 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->packet_count); rtldm 2841 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c cfo_ave_diff = (rtldm->cfo_ave_pre >= cfo_ave) ? rtldm 2842 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c (rtldm->cfo_ave_pre - cfo_ave) : rtldm 2843 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c (cfo_ave - rtldm->cfo_ave_pre); rtldm 2845 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c if (cfo_ave_diff > 20 && rtldm->large_cfo_hit == 0) { rtldm 2848 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->large_cfo_hit = 1; rtldm 2851 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->large_cfo_hit = 0; rtldm 2853 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->cfo_ave_pre = cfo_ave; rtldm 2858 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c if (cfo_ave >= -rtldm->cfo_threshold && rtldm 2859 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c cfo_ave <= rtldm->cfo_threshold && rtldm 2860 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->is_freeze == 0) { rtldm 2861 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c if (rtldm->cfo_threshold == CFO_THRESHOLD_XTAL) { rtldm 2862 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->cfo_threshold = CFO_THRESHOLD_XTAL + 10; rtldm 2863 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->is_freeze = 1; rtldm 2865 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->cfo_threshold = CFO_THRESHOLD_XTAL; rtldm 2870 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->cfo_threshold); rtldm 2873 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c if (cfo_ave > rtldm->cfo_threshold && rtldm->crystal_cap < 0x3f) rtldm 2880 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->crystal_cap, adjust_xtal); rtldm 2884 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->is_freeze = 0; rtldm 2885 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->crystal_cap += adjust_xtal; rtldm 2887 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c if (rtldm->crystal_cap > 0x3f) rtldm 2888 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->crystal_cap = 0x3f; rtldm 2889 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c else if (rtldm->crystal_cap < 0) rtldm 2890 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->crystal_cap = 0; rtldm 2892 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c crystal_cap = rtldm->crystal_cap & 0x3f; rtldm 2904 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->crystal_cap); rtldm 2956 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c struct rtl_dm *rtldm = rtl_dm(rtl_priv(hw)); rtldm 2957 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c struct fast_ant_training *pfat_table = &rtldm->fat_table; rtldm 446 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c struct rtl_dm *rtldm = rtl_dm(rtlpriv); rtldm 462 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtldm->swing_diff_2g = swing_2g; rtldm 472 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtldm->swing_diff_2g = 0; rtldm 476 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtldm->swing_diff_5g = swing_5g; rtldm 487 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtldm->swing_diff_5g = -3; rtldm 490 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtldm->swing_diff_5g = 0; rtldm 495 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtldm->swing_diff_2g = -3; rtldm 496 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtldm->swing_diff_5g = -3; rtldm 543 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtldm->swing_diff_2g = 0; rtldm 545 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtldm->swing_diff_5g = 0; rtldm 549 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtldm->swing_diff_2g = -3; rtldm 551 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtldm->swing_diff_5g = -3; rtldm 555 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtldm->swing_diff_2g = -6; rtldm 557 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtldm->swing_diff_5g = -6; rtldm 561 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtldm->swing_diff_2g = -9; rtldm 563 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtldm->swing_diff_5g = -9; rtldm 569 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtldm->swing_diff_2g = 0; rtldm 571 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtldm->swing_diff_5g = 0; rtldm 575 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtldm->swing_diff_2g = -3; rtldm 577 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtldm->swing_diff_5g = -3; rtldm 581 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtldm->swing_diff_2g = -6; rtldm 583 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtldm->swing_diff_5g = -6; rtldm 587 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtldm->swing_diff_2g = -9; rtldm 589 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtldm->swing_diff_5g = -9; rtldm 603 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c struct rtl_dm *rtldm = rtl_dm(rtlpriv); rtldm 718 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c (rtldm->swing_diff_2g - rtldm->swing_diff_5g); rtldm 722 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtldm->default_ofdm_index += bb_diff_between_band * 2; rtldm 4561 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c struct rtl_dm *rtldm = rtl_dm(rtl_priv(hw)); rtldm 4563 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtldm->thermalvalue_iqk = thermal_value; rtldm 4615 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c struct rtl_dm *rtldm = rtl_dm(rtl_priv(hw)); rtldm 4619 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c rtldm->thermalvalue_iqk = thermal_value; rtldm 66 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c struct rtl_dm *rtldm = rtl_dm(rtl_priv(hw)); rtldm 271 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c rtldm->fat_table.antsel_rx_keep_0 = p_phystrpt->antidx_anta; rtldm 272 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c rtldm->fat_table.antsel_rx_keep_1 = p_phystrpt->antidx_antb;