Lines Matching +full:0 +full:x261

17 	0x081, /* 0, -12.0dB */
18 0x088, /* 1, -11.5dB */
19 0x090, /* 2, -11.0dB */
20 0x099, /* 3, -10.5dB */
21 0x0A2, /* 4, -10.0dB */
22 0x0AC, /* 5, -9.5dB */
23 0x0B6, /* 6, -9.0dB */
24 0x0C0, /* 7, -8.5dB */
25 0x0CC, /* 8, -8.0dB */
26 0x0D8, /* 9, -7.5dB */
27 0x0E5, /* 10, -7.0dB */
28 0x0F2, /* 11, -6.5dB */
29 0x101, /* 12, -6.0dB */
30 0x110, /* 13, -5.5dB */
31 0x120, /* 14, -5.0dB */
32 0x131, /* 15, -4.5dB */
33 0x143, /* 16, -4.0dB */
34 0x156, /* 17, -3.5dB */
35 0x16A, /* 18, -3.0dB */
36 0x180, /* 19, -2.5dB */
37 0x197, /* 20, -2.0dB */
38 0x1AF, /* 21, -1.5dB */
39 0x1C8, /* 22, -1.0dB */
40 0x1E3, /* 23, -0.5dB */
41 0x200, /* 24, +0 dB */
42 0x21E, /* 25, +0.5dB */
43 0x23E, /* 26, +1.0dB */
44 0x261, /* 27, +1.5dB */
45 0x285, /* 28, +2.0dB */
46 0x2AB, /* 29, +2.5dB */
47 0x2D3, /* 30, +3.0dB */
48 0x2FE, /* 31, +3.5dB */
49 0x32B, /* 32, +4.0dB */
50 0x35C, /* 33, +4.5dB */
51 0x38E, /* 34, +5.0dB */
52 0x3C4, /* 35, +5.5dB */
53 0x3FE /* 36, +6.0dB */
57 0x081, /* 0, -12.0dB */
58 0x088, /* 1, -11.5dB */
59 0x090, /* 2, -11.0dB */
60 0x099, /* 3, -10.5dB */
61 0x0A2, /* 4, -10.0dB */
62 0x0AC, /* 5, -9.5dB */
63 0x0B6, /* 6, -9.0dB */
64 0x0C0, /* 7, -8.5dB */
65 0x0CC, /* 8, -8.0dB */
66 0x0D8, /* 9, -7.5dB */
67 0x0E5, /* 10, -7.0dB */
68 0x0F2, /* 11, -6.5dB */
69 0x101, /* 12, -6.0dB */
70 0x110, /* 13, -5.5dB */
71 0x120, /* 14, -5.0dB */
72 0x131, /* 15, -4.5dB */
73 0x143, /* 16, -4.0dB */
74 0x156, /* 17, -3.5dB */
75 0x16A, /* 18, -3.0dB */
76 0x180, /* 19, -2.5dB */
77 0x197, /* 20, -2.0dB */
78 0x1AF, /* 21, -1.5dB */
79 0x1C8, /* 22, -1.0dB */
80 0x1E3, /* 23, -0.5dB */
81 0x200, /* 24, +0 dB */
82 0x21E, /* 25, +0.5dB */
83 0x23E, /* 26, +1.0dB */
84 0x261, /* 27, +1.5dB */
85 0x285, /* 28, +2.0dB */
86 0x2AB, /* 29, +2.5dB */
87 0x2D3, /* 30, +3.0dB */
88 0x2FE, /* 31, +3.5dB */
89 0x32B, /* 32, +4.0dB */
90 0x35C, /* 33, +4.5dB */
91 0x38E, /* 34, +5.0dB */
92 0x3C4, /* 35, +5.5dB */
93 0x3FE /* 36, +6.0dB */
97 0xa44f, /* 0 UNKNOWN */
98 0x5ea44f, /* 1 REALTEK_90 */
99 0x5e4322, /* 2 REALTEK_92SE */
100 0x5ea42b, /* 3 BROAD */
101 0xa44f, /* 4 RAL */
102 0xa630, /* 5 ATH */
103 0x5ea630, /* 6 CISCO */
104 0x5ea42b, /* 7 MARVELL */
108 0x5e4322, /* 0 UNKNOWN */
109 0xa44f, /* 1 REALTEK_90 */
110 0x5ea44f, /* 2 REALTEK_92SE */
111 0x5ea32b, /* 3 BROAD */
112 0x5ea422, /* 4 RAL */
113 0x5ea322, /* 5 ATH */
114 0x3ea430, /* 6 CISCO */
115 0x5ea44f, /* 7 MARV */
119 0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 4,
123 0, 0, 0, 2, 2, 3, 3, 4, 4, 4, 4, 5, 5, 6, 6,
127 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 5, 6,
131 0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 6,
135 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 5, 6,
139 0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 6,
143 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 5, 6,
147 0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 6,
151 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 5, 6,
155 0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 6,
159 {0, 1, 1, 2, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 6, 7, 7,
161 {0, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 6, 6, 7,
163 {0, 1, 1, 2, 3, 3, 4, 4, 5, 6, 6, 7, 8, 9, 10, 11,
168 {0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 6, 7, 7, 8,
170 {0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 6, 6, 7, 7, 8,
172 {0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 7, 7, 8, 8, 9,
177 {0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 6, 6, 7, 7, 8,
179 {0, 1, 1, 2, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 8, 9,
181 {0, 1, 1, 2, 2, 3, 3, 4, 5, 6, 7, 8, 8, 9, 10, 11,
186 {0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 5, 5, 6, 7, 7, 8,
188 {0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 6, 6, 7, 7, 8,
190 {0, 1, 1, 2, 3, 3, 4, 4, 5, 6, 6, 7, 7, 8, 9, 9,
195 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6,
199 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8,
203 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6,
207 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8,
211 {0, 0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9, 10, 11,
213 {0, 0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9, 10, 11,
215 {0, 0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9, 10, 11,
220 {0, 0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9, 10, 11,
222 {0, 0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9, 10, 11,
224 {0, 0, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9, 9, 10, 11,
234 u8 pwr_val = 0; in rtl8821ae_dm_txpower_track_adjust()
236 if (type == 0) { in rtl8821ae_dm_txpower_track_adjust()
272 u8 p = 0; in rtl8821ae_dm_clear_txpower_tracking_state()
276 rtldm->cck_index = 0; in rtl8821ae_dm_clear_txpower_tracking_state()
283 rtldm->power_index_offset[p] = 0; in rtl8821ae_dm_clear_txpower_tracking_state()
284 rtldm->delta_power_index[p] = 0; in rtl8821ae_dm_clear_txpower_tracking_state()
285 rtldm->delta_power_index_last[p] = 0; in rtl8821ae_dm_clear_txpower_tracking_state()
287 rtldm->absolute_ofdm_swing_idx[p] = 0; in rtl8821ae_dm_clear_txpower_tracking_state()
288 rtldm->remnant_ofdm_swing_idx[p] = 0; in rtl8821ae_dm_clear_txpower_tracking_state()
294 rtldm->remnant_cck_idx = 0; in rtl8821ae_dm_clear_txpower_tracking_state()
303 u8 i = 0; in rtl8821ae_dm_get_swing_index()
309 for (i = 0; i < TXSCALE_TABLE_SIZE; ++i) in rtl8821ae_dm_get_swing_index()
322 u8 default_swing_index = 0; in rtl8821ae_dm_initialize_txpower_tracking_thermalmeter()
323 u8 p = 0; in rtl8821ae_dm_initialize_txpower_tracking_thermalmeter()
343 rtldm->delta_power_index[p] = 0; in rtl8821ae_dm_initialize_txpower_tracking_thermalmeter()
344 rtldm->power_index_offset[p] = 0; in rtl8821ae_dm_initialize_txpower_tracking_thermalmeter()
345 rtldm->delta_power_index_last[p] = 0; in rtl8821ae_dm_initialize_txpower_tracking_thermalmeter()
398 if (tmp & BIT(0)) in rtl8821ae_dm_common_info_self_init()
399 rtlpriv->dm.rfpath_rxenable[0] = true; in rtl8821ae_dm_common_info_self_init()
408 u32 cur_igvalue = rtl_get_bbreg(hw, ROFDM0_XAAGCCORE1, 0x7f); in rtl8821ae_dm_init()
431 (rtlpriv->dm.entry_min_undec_sm_pwdb == 0)) { in rtl8821ae_dm_find_minimum_rssi()
432 rtl_dm_dig->min_undec_pwdb_for_dm = 0; in rtl8821ae_dm_find_minimum_rssi()
441 "AP Client PWDB = 0x%lx\n", in rtl8821ae_dm_find_minimum_rssi()
447 "STA Default Port PWDB = 0x%x\n", in rtl8821ae_dm_find_minimum_rssi()
454 "AP Ext Port or disconnect PWDB = 0x%x\n", in rtl8821ae_dm_find_minimum_rssi()
467 rtlpriv->stats.rx_rssi_percentage[0]); in rtl8812ae_dm_rssi_dump_to_register()
473 rtlpriv->stats.rx_evm_dbm[0]); in rtl8812ae_dm_rssi_dump_to_register()
479 (u8)(rtlpriv->stats.rx_snr_db[0])); in rtl8812ae_dm_rssi_dump_to_register()
485 rtlpriv->stats.rx_cfo_short[0]); in rtl8812ae_dm_rssi_dump_to_register()
491 rtlpriv->stats.rx_cfo_tail[0]); in rtl8812ae_dm_rssi_dump_to_register()
503 u8 h2c_parameter[4] = { 0 }; in rtl8821ae_dm_check_rssi_monitor()
504 long tmp_entry_max_pwdb = 0, tmp_entry_min_pwdb = 0xff; in rtl8821ae_dm_check_rssi_monitor()
505 u8 stbc_tx = 0; in rtl8821ae_dm_check_rssi_monitor()
506 u64 cur_rxokcnt = 0; in rtl8821ae_dm_check_rssi_monitor()
507 static u64 last_txokcnt = 0, last_rxokcnt; in rtl8821ae_dm_check_rssi_monitor()
513 h2c_parameter[3] = 0x01; in rtl8821ae_dm_check_rssi_monitor()
515 h2c_parameter[3] = 0x00; in rtl8821ae_dm_check_rssi_monitor()
535 if (tmp_entry_max_pwdb != 0) { in rtl8821ae_dm_check_rssi_monitor()
539 "EntryMaxPWDB = 0x%lx(%ld)\n", in rtl8821ae_dm_check_rssi_monitor()
542 rtlpriv->dm.entry_max_undec_sm_pwdb = 0; in rtl8821ae_dm_check_rssi_monitor()
545 if (tmp_entry_min_pwdb != 0xff) { in rtl8821ae_dm_check_rssi_monitor()
549 "EntryMinPWDB = 0x%lx(%ld)\n", in rtl8821ae_dm_check_rssi_monitor()
552 rtlpriv->dm.entry_min_undec_sm_pwdb = 0; in rtl8821ae_dm_check_rssi_monitor()
562 STBC_VHT_ENABLE_TX) ? 1 : 0; in rtl8821ae_dm_check_rssi_monitor()
565 STBC_HT_ENABLE_TX) ? 1 : 0; in rtl8821ae_dm_check_rssi_monitor()
569 (u8)(rtlpriv->dm.undec_sm_pwdb & 0xFF); in rtl8821ae_dm_check_rssi_monitor()
570 h2c_parameter[1] = 0x20; in rtl8821ae_dm_check_rssi_monitor()
571 h2c_parameter[0] = 0; in rtl8821ae_dm_check_rssi_monitor()
579 rtl_write_byte(rtlpriv, 0x4fe, rtlpriv->dm.undec_sm_pwdb); in rtl8821ae_dm_check_rssi_monitor()
646 dm_dig_max = 0x5A; in rtl8821ae_dm_dig()
651 dm_dig_min = 0x1C; in rtl8821ae_dm_dig()
670 "dm_digtable->rssi_val_min=0x%x,dm_digtable->rx_gain_max = 0x%x\n", in rtl8821ae_dm_dig()
674 offset = 0; in rtl8821ae_dm_dig()
686 "bOneEntryOnly=TRUE, dig_min_0=0x%x\n", in rtl8821ae_dm_dig()
720 if (dm_digtable->recover_cnt != 0) { in rtl8821ae_dm_dig()
740 dm_digtable->large_fa_hit = 0; in rtl8821ae_dm_dig()
777 "Beacon is less than 10 and FA is less than 768, IGI GOES TO 0x1E!!!!!!!!!!!!\n"); in rtl8821ae_dm_dig()
798 if (current_igi >= 0x3e) in rtl8821ae_dm_dig()
799 current_igi = 0x3e; in rtl8821ae_dm_dig()
814 "rx_gain_max=0x%x, rx_gain_min=0x%x\n", in rtl8821ae_dm_dig()
819 "CurIGValue=0x%x\n", current_igi); in rtl8821ae_dm_dig()
832 rtlpriv->dm.tx_rate = 0xff; in rtl8821ae_dm_common_info_self_update()
858 u32 cck_enable = 0; in rtl8821ae_dm_false_alarm_counter_statistics()
875 rtl_set_bbreg(hw, ODM_REG_OFDM_FA_RST_11AC, BIT(17), 0); in rtl8821ae_dm_false_alarm_counter_statistics()
877 rtl_set_bbreg(hw, ODM_REG_CCK_FA_RST_11AC, BIT(15), 0); in rtl8821ae_dm_false_alarm_counter_statistics()
895 BIT(17) | BIT(16), 0x03); in rtl8812ae_dm_check_txpower_tracking_thermalmeter()
923 rtldm->linked_interval = 0; in rtl8821ae_dm_iq_calibrate()
952 *up_a = rtl8812ae_delta_swing_table_idx_5ga_p[0]; in rtl8812ae_get_delta_swing_table()
953 *down_a = rtl8812ae_delta_swing_table_idx_5ga_n[0]; in rtl8812ae_get_delta_swing_table()
954 *up_b = rtl8812ae_delta_swing_table_idx_5gb_p[0]; in rtl8812ae_get_delta_swing_table()
955 *down_b = rtl8812ae_delta_swing_table_idx_5gb_n[0]; in rtl8812ae_get_delta_swing_table()
979 u8 p = 0; in rtl8821ae_dm_update_init_rate()
982 "Get C2H Command! Rate=0x%x\n", rate); in rtl8821ae_dm_update_init_rate()
987 rtl8821ae_dm_txpwr_track_set_pwr(hw, MIX_MODE, RF90_PATH_A, 0); in rtl8821ae_dm_update_init_rate()
990 rtl8812ae_dm_txpwr_track_set_pwr(hw, MIX_MODE, p, 0); in rtl8821ae_dm_update_init_rate()
1167 * 04/23/2012 MHC Create Version 0.
1180 u8 tx_rate = 0xFF; in rtl8812ae_dm_txpwr_track_set_pwr()
1181 s8 final_ofdm_swing_index = 0; in rtl8812ae_dm_txpwr_track_set_pwr()
1183 if (rtldm->tx_rate != 0xFF) in rtl8812ae_dm_txpwr_track_set_pwr()
1190 if (tx_rate != 0xFF) { in rtl8812ae_dm_txpwr_track_set_pwr()
1235 pwr_tracking_limit = 24; /*+0dB*/ in rtl8812ae_dm_txpwr_track_set_pwr()
1253 pwr_tracking_limit = 24; /*+0dB*/ in rtl8812ae_dm_txpwr_track_set_pwr()
1260 "TxRate=0x%x, PwrTrackingLimit=%d\n", in rtl8812ae_dm_txpwr_track_set_pwr()
1281 rtl_set_bbreg(hw, RA_TXSCALE, 0xFFE00000, in rtl8812ae_dm_txpwr_track_set_pwr()
1297 rtl_set_bbreg(hw, RB_TXSCALE, 0xFFE00000, in rtl8812ae_dm_txpwr_track_set_pwr()
1323 rtl_set_bbreg(hw, RA_TXSCALE, 0xFFE00000, in rtl8812ae_dm_txpwr_track_set_pwr()
1337 } else if (final_ofdm_swing_index < 0) { in rtl8812ae_dm_txpwr_track_set_pwr()
1343 rtl_set_bbreg(hw, RA_TXSCALE, 0xFFE00000, in rtl8812ae_dm_txpwr_track_set_pwr()
1344 txscaling_tbl[0]); in rtl8812ae_dm_txpwr_track_set_pwr()
1353 "******Path_A Lower then BBSwing lower bound 0 , Remnant TxAGC Value = %d\n", in rtl8812ae_dm_txpwr_track_set_pwr()
1356 rtl_set_bbreg(hw, RA_TXSCALE, 0xFFE00000, in rtl8812ae_dm_txpwr_track_set_pwr()
1364 rtldm->remnant_cck_idx = 0; in rtl8812ae_dm_txpwr_track_set_pwr()
1365 rtldm->remnant_ofdm_swing_idx[rf_path] = 0; in rtl8812ae_dm_txpwr_track_set_pwr()
1386 0xFFE00000, in rtl8812ae_dm_txpwr_track_set_pwr()
1399 } else if (final_ofdm_swing_index < 0) { in rtl8812ae_dm_txpwr_track_set_pwr()
1403 rtl_set_bbreg(hw, RB_TXSCALE, 0xFFE00000, in rtl8812ae_dm_txpwr_track_set_pwr()
1404 txscaling_tbl[0]); in rtl8812ae_dm_txpwr_track_set_pwr()
1413 "******Path_B Lower then BBSwing lower bound 0 , Remnant TxAGC Value = %d\n", in rtl8812ae_dm_txpwr_track_set_pwr()
1416 rtl_set_bbreg(hw, RB_TXSCALE, 0xFFE00000, in rtl8812ae_dm_txpwr_track_set_pwr()
1424 rtldm->remnant_ofdm_swing_idx[rf_path] = 0; in rtl8812ae_dm_txpwr_track_set_pwr()
1450 u8 thermal_value = 0, delta, delta_lck, delta_iqk, p = 0, i = 0; in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1451 u8 thermal_value_avg_count = 0; in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1452 u32 thermal_value_avg = 0; in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1456 u8 index_for_channel = 0; in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1481 /*0x42: RF Reg[15:10] 88E*/ in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1482 RF_T_METER_8812A, 0xfc00); in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1484 "Thermal Meter = 0x%X, EFUSE Thermal Base = 0x%X\n", in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1487 rtlefuse->eeprom_thermalmeter == 0 || in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1488 rtlefuse->eeprom_thermalmeter == 0xFF) in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1502 rtldm->thermalvalue_avg_index = 0; in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1504 for (i = 0; i < AVG_THERMAL_NUM_8812A; i++) { in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1515 "AVG Thermal Meter = 0x%X, EFUSE Thermal Base = 0x%X\n", in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1550 if (delta > 0 && rtldm->txpower_track_control) { in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1639 rtldm->power_index_offset[p] = 0; in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1689 else if (rtldm->cck_index < 0) in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1690 rtldm->cck_index = 0; in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1699 rtldm->power_index_offset[p] = 0; in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1713 if ((rtldm->power_index_offset[RF90_PATH_A] != 0 || in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1714 rtldm->power_index_offset[RF90_PATH_B] != 0) && in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1765 p, 0); in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
1817 *up_a = rtl8821ae_delta_swing_table_idx_5ga_p[0]; in rtl8821ae_get_delta_swing_table()
1818 *down_a = rtl8821ae_delta_swing_table_idx_5ga_n[0]; in rtl8821ae_get_delta_swing_table()
1846 * 04/23/2012 MHC Create Version 0.
1859 u8 tx_rate = 0xFF; in rtl8821ae_dm_txpwr_track_set_pwr()
1860 s8 final_ofdm_swing_index = 0; in rtl8821ae_dm_txpwr_track_set_pwr()
1862 if (rtldm->tx_rate != 0xFF) in rtl8821ae_dm_txpwr_track_set_pwr()
1867 if (tx_rate != 0xFF) { /* Mimic Modify High Rate BBSwing Limit.*/ in rtl8821ae_dm_txpwr_track_set_pwr()
1902 pwr_tracking_limit = 24; /*+0dB*/ in rtl8821ae_dm_txpwr_track_set_pwr()
1909 "TxRate=0x%x, PwrTrackingLimit=%d\n", in rtl8821ae_dm_txpwr_track_set_pwr()
1926 rtl_set_bbreg(hw, RA_TXSCALE, 0xFFE00000, in rtl8821ae_dm_txpwr_track_set_pwr()
1951 0xFFE00000, in rtl8821ae_dm_txpwr_track_set_pwr()
1965 } else if (final_ofdm_swing_index < 0) { in rtl8821ae_dm_txpwr_track_set_pwr()
1971 rtl_set_bbreg(hw, RA_TXSCALE, 0xFFE00000, in rtl8821ae_dm_txpwr_track_set_pwr()
1972 txscaling_tbl[0]); in rtl8821ae_dm_txpwr_track_set_pwr()
1981 "******Path_A Lower then BBSwing lower bound 0 , Remnant TxAGC Value = %d\n", in rtl8821ae_dm_txpwr_track_set_pwr()
1984 rtl_set_bbreg(hw, RA_TXSCALE, 0xFFE00000, in rtl8821ae_dm_txpwr_track_set_pwr()
1992 rtldm->remnant_cck_idx = 0; in rtl8821ae_dm_txpwr_track_set_pwr()
1993 rtldm->remnant_ofdm_swing_idx[rf_path] = 0; in rtl8821ae_dm_txpwr_track_set_pwr()
2021 u8 thermal_value = 0, delta, delta_lck, delta_iqk, p = 0, i = 0; in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2022 u8 thermal_value_avg_count = 0; in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2023 u32 thermal_value_avg = 0; in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2027 u8 index_for_channel = 0; in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2048 /*0x42: RF Reg[15:10] 88E*/ in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2050 RF90_PATH_A, RF_T_METER_8812A, 0xfc00); in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2052 rtlefuse->eeprom_thermalmeter == 0 || in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2053 rtlefuse->eeprom_thermalmeter == 0xFF) in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2068 rtldm->thermalvalue_avg_index = 0; in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2070 for (i = 0; i < AVG_THERMAL_NUM_8812A; i++) { in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2081 "AVG Thermal Meter = 0x%X, EFUSE Thermal Base = 0x%X\n", in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2115 if (delta > 0 && rtldm->txpower_track_control) { in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2172 rtldm->power_index_offset[p] = 0; in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2221 else if (rtldm->cck_index < 0) in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2222 rtldm->cck_index = 0; in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2231 rtldm->power_index_offset[p] = 0; in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2245 if ((rtldm->power_index_offset[RF90_PATH_A] != 0 || in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2246 rtldm->power_index_offset[RF90_PATH_B] != 0) && in rtl8821ae_dm_txpower_tracking_callback_thermalmeter()
2331 0x03); in rtl8821ae_dm_check_txpower_tracking_thermalmeter()
2341 rtlpriv->dm.tm_trigger = 0; in rtl8821ae_dm_check_txpower_tracking_thermalmeter()
2419 u8 cur_stage = 0; in rtl8821ae_dm_refresh_basic_rate_mask()
2423 cur_stage = 0; in rtl8821ae_dm_refresh_basic_rate_mask()
2482 u64 cur_tx_ok_cnt = 0; in rtl8821ae_dm_check_edca_turbo()
2483 u64 cur_rx_ok_cnt = 0; in rtl8821ae_dm_check_edca_turbo()
2484 u32 edca_be_ul = 0x5ea42b; in rtl8821ae_dm_check_edca_turbo()
2485 u32 edca_be_dl = 0x5ea42b; in rtl8821ae_dm_check_edca_turbo()
2486 u32 edca_be = 0x5ea42b; in rtl8821ae_dm_check_edca_turbo()
2487 u8 iot_peer = 0; in rtl8821ae_dm_check_edca_turbo()
2495 "Original BE PARAM: 0x%x\n", in rtl8821ae_dm_check_edca_turbo()
2498 if (rtlpriv->dm.dbginfo.num_non_be_pkt > 0x100) in rtl8821ae_dm_check_edca_turbo()
2500 rtlpriv->dm.dbginfo.num_non_be_pkt = 0; in rtl8821ae_dm_check_edca_turbo()
2529 "bIsAnyNonBEPkts : 0x%x bDisableFrameBursting : 0x%x\n", in rtl8821ae_dm_check_edca_turbo()
2534 "bEdcaTurboOn : 0x%x bBiasOnRx : 0x%x\n", in rtl8821ae_dm_check_edca_turbo()
2539 "curTxOkCnt : 0x%llx\n", cur_tx_ok_cnt); in rtl8821ae_dm_check_edca_turbo()
2541 "curRxOkCnt : 0x%llx\n", cur_rx_ok_cnt); in rtl8821ae_dm_check_edca_turbo()
2554 "EDCA Turbo on: EDCA_BE:0x%x\n", edca_be); in rtl8821ae_dm_check_edca_turbo()
2559 "EDCA_BE_DL : 0x%x EDCA_BE_UL : 0x%x EDCA_BE : 0x%x\n", in rtl8821ae_dm_check_edca_turbo()
2583 cur_cck_cca_thresh = 0xcd; in rtl8821ae_dm_cck_packet_detection_thresh()
2586 cur_cck_cca_thresh = 0x83; in rtl8821ae_dm_cck_packet_detection_thresh()
2589 cur_cck_cca_thresh = 0x83; in rtl8821ae_dm_cck_packet_detection_thresh()
2591 cur_cck_cca_thresh = 0x40; in rtl8821ae_dm_cck_packet_detection_thresh()
2595 cur_cck_cca_thresh = 0x83; in rtl8821ae_dm_cck_packet_detection_thresh()
2597 cur_cck_cca_thresh = 0x40; in rtl8821ae_dm_cck_packet_detection_thresh()
2616 int cfo_khz_a, cfo_khz_b, cfo_ave = 0, adjust_xtal = 0; in rtl8821ae_dm_dynamic_atc_switch()
2632 crystal_cap = rtldm->crystal_cap & 0x3f; in rtl8821ae_dm_dynamic_atc_switch()
2633 crystal_cap = crystal_cap & 0x3f; in rtl8821ae_dm_dynamic_atc_switch()
2636 0x7ff80000, (crystal_cap | in rtl8821ae_dm_dynamic_atc_switch()
2640 0xfff000, (crystal_cap | in rtl8821ae_dm_dynamic_atc_switch()
2643 rtl_dbg(rtlpriv, COMP_DIG, DBG_LOUD, "crystal_cap = 0x%x\n", in rtl8821ae_dm_dynamic_atc_switch()
2647 cfo_khz_a = (int)(rtldm->cfo_tail[0] * 3125) / 1280; in rtl8821ae_dm_dynamic_atc_switch()
2693 rtldm->is_freeze == 0) { in rtl8821ae_dm_dynamic_atc_switch()
2706 if (cfo_ave > rtldm->cfo_threshold && rtldm->crystal_cap < 0x3f) in rtl8821ae_dm_dynamic_atc_switch()
2709 rtlpriv->dm.crystal_cap > 0) in rtl8821ae_dm_dynamic_atc_switch()
2712 "Crystal cap = 0x%x, Crystal cap offset = %d\n", in rtl8821ae_dm_dynamic_atc_switch()
2716 if (adjust_xtal != 0) { in rtl8821ae_dm_dynamic_atc_switch()
2717 rtldm->is_freeze = 0; in rtl8821ae_dm_dynamic_atc_switch()
2720 if (rtldm->crystal_cap > 0x3f) in rtl8821ae_dm_dynamic_atc_switch()
2721 rtldm->crystal_cap = 0x3f; in rtl8821ae_dm_dynamic_atc_switch()
2722 else if (rtldm->crystal_cap < 0) in rtl8821ae_dm_dynamic_atc_switch()
2723 rtldm->crystal_cap = 0; in rtl8821ae_dm_dynamic_atc_switch()
2725 crystal_cap = rtldm->crystal_cap & 0x3f; in rtl8821ae_dm_dynamic_atc_switch()
2726 crystal_cap = crystal_cap & 0x3f; in rtl8821ae_dm_dynamic_atc_switch()
2729 0x7ff80000, (crystal_cap | in rtl8821ae_dm_dynamic_atc_switch()
2733 0xfff000, (crystal_cap | in rtl8821ae_dm_dynamic_atc_switch()
2736 "New crystal cap = 0x%x\n", in rtl8821ae_dm_dynamic_atc_switch()
2780 rtlpriv->dm.dbginfo.num_qry_beacon_pkt = 0; in rtl8821ae_dm_watchdog()