Lines Matching +full:0 +full:x18000060
18 0x0b40002d, /* 0, -15.0dB */
19 0x0c000030, /* 1, -14.5dB */
20 0x0cc00033, /* 2, -14.0dB */
21 0x0d800036, /* 3, -13.5dB */
22 0x0e400039, /* 4, -13.0dB */
23 0x0f00003c, /* 5, -12.5dB */
24 0x10000040, /* 6, -12.0dB */
25 0x11000044, /* 7, -11.5dB */
26 0x12000048, /* 8, -11.0dB */
27 0x1300004c, /* 9, -10.5dB */
28 0x14400051, /* 10, -10.0dB */
29 0x15800056, /* 11, -9.5dB */
30 0x16c0005b, /* 12, -9.0dB */
31 0x18000060, /* 13, -8.5dB */
32 0x19800066, /* 14, -8.0dB */
33 0x1b00006c, /* 15, -7.5dB */
34 0x1c800072, /* 16, -7.0dB */
35 0x1e400079, /* 17, -6.5dB */
36 0x20000080, /* 18, -6.0dB */
37 0x22000088, /* 19, -5.5dB */
38 0x24000090, /* 20, -5.0dB */
39 0x26000098, /* 21, -4.5dB */
40 0x288000a2, /* 22, -4.0dB */
41 0x2ac000ab, /* 23, -3.5dB */
42 0x2d4000b5, /* 24, -3.0dB */
43 0x300000c0, /* 25, -2.5dB */
44 0x32c000cb, /* 26, -2.0dB */
45 0x35c000d7, /* 27, -1.5dB */
46 0x390000e4, /* 28, -1.0dB */
47 0x3c8000f2, /* 29, -0.5dB */
48 0x40000100, /* 30, +0dB */
49 0x43c0010f, /* 31, +0.5dB */
50 0x47c0011f, /* 32, +1.0dB */
51 0x4c000130, /* 33, +1.5dB */
52 0x50800142, /* 34, +2.0dB */
53 0x55400155, /* 35, +2.5dB */
54 0x5a400169, /* 36, +3.0dB */
55 0x5fc0017f, /* 37, +3.5dB */
56 0x65400195, /* 38, +4.0dB */
57 0x6b8001ae, /* 39, +4.5dB */
58 0x71c001c7, /* 40, +5.0dB */
59 0x788001e2, /* 41, +5.5dB */
60 0x7f8001fe /* 42, +6.0dB */
64 {0x09, 0x08, 0x07, 0x06, 0x04, 0x03, 0x01, 0x01}, /* 0, -16.0dB */
65 {0x09, 0x09, 0x08, 0x06, 0x05, 0x03, 0x01, 0x01}, /* 1, -15.5dB */
66 {0x0a, 0x09, 0x08, 0x07, 0x05, 0x03, 0x02, 0x01}, /* 2, -15.0dB */
67 {0x0a, 0x0a, 0x09, 0x07, 0x05, 0x03, 0x02, 0x01}, /* 3, -14.5dB */
68 {0x0b, 0x0a, 0x09, 0x08, 0x06, 0x04, 0x02, 0x01}, /* 4, -14.0dB */
69 {0x0b, 0x0b, 0x0a, 0x08, 0x06, 0x04, 0x02, 0x01}, /* 5, -13.5dB */
70 {0x0c, 0x0c, 0x0a, 0x09, 0x06, 0x04, 0x02, 0x01}, /* 6, -13.0dB */
71 {0x0d, 0x0c, 0x0b, 0x09, 0x07, 0x04, 0x02, 0x01}, /* 7, -12.5dB */
72 {0x0d, 0x0d, 0x0c, 0x0a, 0x07, 0x05, 0x02, 0x01}, /* 8, -12.0dB */
73 {0x0e, 0x0e, 0x0c, 0x0a, 0x08, 0x05, 0x02, 0x01}, /* 9, -11.5dB */
74 {0x0f, 0x0f, 0x0d, 0x0b, 0x08, 0x05, 0x03, 0x01}, /* 10, -11.0dB */
75 {0x10, 0x10, 0x0e, 0x0b, 0x08, 0x05, 0x03, 0x01}, /* 11, -10.5dB */
76 {0x11, 0x11, 0x0f, 0x0c, 0x09, 0x06, 0x03, 0x01}, /* 12, -10.0dB */
77 {0x12, 0x12, 0x0f, 0x0c, 0x09, 0x06, 0x03, 0x01}, /* 13, -9.5dB */
78 {0x13, 0x13, 0x10, 0x0d, 0x0a, 0x06, 0x03, 0x01}, /* 14, -9.0dB */
79 {0x14, 0x14, 0x11, 0x0e, 0x0b, 0x07, 0x03, 0x02}, /* 15, -8.5dB */
80 {0x16, 0x15, 0x12, 0x0f, 0x0b, 0x07, 0x04, 0x01}, /* 16, -8.0dB */
81 {0x17, 0x16, 0x13, 0x10, 0x0c, 0x08, 0x04, 0x02}, /* 17, -7.5dB */
82 {0x18, 0x17, 0x15, 0x11, 0x0c, 0x08, 0x04, 0x02}, /* 18, -7.0dB */
83 {0x1a, 0x19, 0x16, 0x12, 0x0d, 0x09, 0x04, 0x02}, /* 19, -6.5dB */
84 {0x1b, 0x1a, 0x17, 0x13, 0x0e, 0x09, 0x04, 0x02}, /* 20, -6.0dB */
85 {0x1d, 0x1c, 0x18, 0x14, 0x0f, 0x0a, 0x05, 0x02}, /* 21, -5.5dB */
86 {0x1f, 0x1e, 0x1a, 0x15, 0x10, 0x0a, 0x05, 0x02}, /* 22, -5.0dB */
87 {0x20, 0x20, 0x1b, 0x16, 0x11, 0x08, 0x05, 0x02}, /* 23, -4.5dB */
88 {0x22, 0x21, 0x1d, 0x18, 0x11, 0x0b, 0x06, 0x02}, /* 24, -4.0dB */
89 {0x24, 0x23, 0x1f, 0x19, 0x13, 0x0c, 0x06, 0x03}, /* 25, -3.5dB */
90 {0x26, 0x25, 0x21, 0x1b, 0x14, 0x0d, 0x06, 0x03}, /* 26, -3.0dB */
91 {0x28, 0x28, 0x22, 0x1c, 0x15, 0x0d, 0x07, 0x03}, /* 27, -2.5dB */
92 {0x2b, 0x2a, 0x25, 0x1e, 0x16, 0x0e, 0x07, 0x03}, /* 28, -2.0dB */
93 {0x2d, 0x2d, 0x27, 0x1f, 0x18, 0x0f, 0x08, 0x03}, /* 29, -1.5dB */
94 {0x30, 0x2f, 0x29, 0x21, 0x19, 0x10, 0x08, 0x03}, /* 30, -1.0dB */
95 {0x33, 0x32, 0x2b, 0x23, 0x1a, 0x11, 0x08, 0x04}, /* 31, -0.5dB */
96 {0x36, 0x35, 0x2e, 0x25, 0x1c, 0x12, 0x09, 0x04} /* 32, +0dB */
100 {0x09, 0x08, 0x07, 0x04, 0x00, 0x00, 0x00, 0x00}, /* 0, -16.0dB */
101 {0x09, 0x09, 0x08, 0x05, 0x00, 0x00, 0x00, 0x00}, /* 1, -15.5dB */
102 {0x0a, 0x09, 0x08, 0x05, 0x00, 0x00, 0x00, 0x00}, /* 2, -15.0dB */
103 {0x0a, 0x0a, 0x09, 0x05, 0x00, 0x00, 0x00, 0x00}, /* 3, -14.5dB */
104 {0x0b, 0x0a, 0x09, 0x05, 0x00, 0x00, 0x00, 0x00}, /* 4, -14.0dB */
105 {0x0b, 0x0b, 0x0a, 0x06, 0x00, 0x00, 0x00, 0x00}, /* 5, -13.5dB */
106 {0x0c, 0x0c, 0x0a, 0x06, 0x00, 0x00, 0x00, 0x00}, /* 6, -13.0dB */
107 {0x0d, 0x0c, 0x0b, 0x06, 0x00, 0x00, 0x00, 0x00}, /* 7, -12.5dB */
108 {0x0d, 0x0d, 0x0c, 0x07, 0x00, 0x00, 0x00, 0x00}, /* 8, -12.0dB */
109 {0x0e, 0x0e, 0x0c, 0x07, 0x00, 0x00, 0x00, 0x00}, /* 9, -11.5dB */
110 {0x0f, 0x0f, 0x0d, 0x08, 0x00, 0x00, 0x00, 0x00}, /* 10, -11.0dB */
111 {0x10, 0x10, 0x0e, 0x08, 0x00, 0x00, 0x00, 0x00}, /* 11, -10.5dB */
112 {0x11, 0x11, 0x0f, 0x09, 0x00, 0x00, 0x00, 0x00}, /* 12, -10.0dB */
113 {0x12, 0x12, 0x0f, 0x09, 0x00, 0x00, 0x00, 0x00}, /* 13, -9.5dB */
114 {0x13, 0x13, 0x10, 0x0a, 0x00, 0x00, 0x00, 0x00}, /* 14, -9.0dB */
115 {0x14, 0x14, 0x11, 0x0a, 0x00, 0x00, 0x00, 0x00}, /* 15, -8.5dB */
116 {0x16, 0x15, 0x12, 0x0b, 0x00, 0x00, 0x00, 0x00}, /* 16, -8.0dB */
117 {0x17, 0x16, 0x13, 0x0b, 0x00, 0x00, 0x00, 0x00}, /* 17, -7.5dB */
118 {0x18, 0x17, 0x15, 0x0c, 0x00, 0x00, 0x00, 0x00}, /* 18, -7.0dB */
119 {0x1a, 0x19, 0x16, 0x0d, 0x00, 0x00, 0x00, 0x00}, /* 19, -6.5dB */
120 {0x1b, 0x1a, 0x17, 0x0e, 0x00, 0x00, 0x00, 0x00}, /* 20, -6.0dB */
121 {0x1d, 0x1c, 0x18, 0x0e, 0x00, 0x00, 0x00, 0x00}, /* 21, -5.5dB */
122 {0x1f, 0x1e, 0x1a, 0x0f, 0x00, 0x00, 0x00, 0x00}, /* 22, -5.0dB */
123 {0x20, 0x20, 0x1b, 0x10, 0x00, 0x00, 0x00, 0x00}, /* 23, -4.5dB */
124 {0x22, 0x21, 0x1d, 0x11, 0x00, 0x00, 0x00, 0x00}, /* 24, -4.0dB */
125 {0x24, 0x23, 0x1f, 0x12, 0x00, 0x00, 0x00, 0x00}, /* 25, -3.5dB */
126 {0x26, 0x25, 0x21, 0x13, 0x00, 0x00, 0x00, 0x00}, /* 26, -3.0dB */
127 {0x28, 0x28, 0x24, 0x14, 0x00, 0x00, 0x00, 0x00}, /* 27, -2.5dB */
128 {0x2b, 0x2a, 0x25, 0x15, 0x00, 0x00, 0x00, 0x00}, /* 28, -2.0dB */
129 {0x2d, 0x2d, 0x17, 0x17, 0x00, 0x00, 0x00, 0x00}, /* 29, -1.5dB */
130 {0x30, 0x2f, 0x29, 0x18, 0x00, 0x00, 0x00, 0x00}, /* 30, -1.0dB */
131 {0x33, 0x32, 0x2b, 0x19, 0x00, 0x00, 0x00, 0x00}, /* 31, -0.5dB */
132 {0x36, 0x35, 0x2e, 0x1b, 0x00, 0x00, 0x00, 0x00} /* 32, +0dB */
136 0xa44f, /* 0 UNKNOWN */
137 0x5ea44f, /* 1 REALTEK_90 */
138 0x5e4322, /* 2 REALTEK_92SE */
139 0x5ea42b, /* 3 BROAD */
140 0xa44f, /* 4 RAL */
141 0xa630, /* 5 ATH */
142 0x5ea630, /* 6 CISCO */
143 0x5ea42b, /* 7 MARVELL */
147 0x5e4322, /* 0 UNKNOWN */
148 0xa44f, /* 1 REALTEK_90 */
149 0x5ea44f, /* 2 REALTEK_92SE */
150 0x5ea32b, /* 3 BROAD */
151 0x5ea422, /* 4 RAL */
152 0x5ea322, /* 5 ATH */
153 0x3ea430, /* 6 CISCO */
154 0x5ea44f, /* 7 MARV */
162 u8 pwr_val = 0; in rtl8723be_dm_txpower_track_adjust()
168 if (type == 0) { in rtl8723be_dm_txpower_track_adjust()
216 rtlpriv->dm.thermalvalue = 0; in rtl8723be_dm_init_txpower_tracking()
218 rtlpriv->dm.ofdm_index[0] = 30; in rtl8723be_dm_init_txpower_tracking()
223 rtlpriv->dm.swing_idx_ofdm_base[0] = rtlpriv->dm.ofdm_index[0]; in rtl8723be_dm_init_txpower_tracking()
224 rtlpriv->dm.delta_power_index[RF90_PATH_A] = 0; in rtl8723be_dm_init_txpower_tracking()
225 rtlpriv->dm.delta_power_index_last[RF90_PATH_A] = 0; in rtl8723be_dm_init_txpower_tracking()
226 rtlpriv->dm.power_index_offset[RF90_PATH_A] = 0; in rtl8723be_dm_init_txpower_tracking()
239 rtlpriv->dm.atc_status = rtl_get_bbreg(hw, ROFDM1_CFOTRACKING, 0x800); in rtl8723be_dm_init_dynamic_atc_switch()
246 u32 cur_igvalue = rtl_get_bbreg(hw, ROFDM0_XAAGCCORE1, 0x7f); in rtl8723be_dm_init()
266 (rtlpriv->dm.entry_min_undec_sm_pwdb == 0)) { in rtl8723be_dm_find_minimum_rssi()
267 rtl_dm_dig->min_undec_pwdb_for_dm = 0; in rtl8723be_dm_find_minimum_rssi()
277 "AP Client PWDB = 0x%lx\n", in rtl8723be_dm_find_minimum_rssi()
283 "STA Default Port PWDB = 0x%x\n", in rtl8723be_dm_find_minimum_rssi()
290 "AP Ext Port or disconnect PWDB = 0x%x\n", in rtl8723be_dm_find_minimum_rssi()
302 u8 h2c_parameter[3] = { 0 }; in rtl8723be_dm_check_rssi_monitor()
303 long tmp_entry_max_pwdb = 0, tmp_entry_min_pwdb = 0xff; in rtl8723be_dm_check_rssi_monitor()
320 if (tmp_entry_max_pwdb != 0) { in rtl8723be_dm_check_rssi_monitor()
324 "EntryMaxPWDB = 0x%lx(%ld)\n", in rtl8723be_dm_check_rssi_monitor()
327 rtlpriv->dm.entry_max_undec_sm_pwdb = 0; in rtl8723be_dm_check_rssi_monitor()
330 if (tmp_entry_min_pwdb != 0xff) { in rtl8723be_dm_check_rssi_monitor()
334 "EntryMinPWDB = 0x%lx(%ld)\n", in rtl8723be_dm_check_rssi_monitor()
337 rtlpriv->dm.entry_min_undec_sm_pwdb = 0; in rtl8723be_dm_check_rssi_monitor()
342 (u8)(rtlpriv->dm.undec_sm_pwdb & 0xFF); in rtl8723be_dm_check_rssi_monitor()
343 h2c_parameter[1] = 0x20; in rtl8723be_dm_check_rssi_monitor()
344 h2c_parameter[0] = 0; in rtl8723be_dm_check_rssi_monitor()
347 rtl_write_byte(rtlpriv, 0x4fe, in rtl8723be_dm_check_rssi_monitor()
364 rtl_set_bbreg(hw, ROFDM0_XAAGCCORE1, 0x7f, current_igi); in rtl8723be_dm_write_dig()
367 0x7f, current_igi); in rtl8723be_dm_write_dig()
394 dm_dig_max = 0x5a; in rtl8723be_dm_dig()
446 if (dm_digtable->recover_cnt != 0) { in rtl8723be_dm_dig()
462 dm_digtable->large_fa_hit = 0; in rtl8723be_dm_dig()
476 dm_digtable->large_fa_hit = 0; in rtl8723be_dm_dig()
520 falsealm_cnt->cnt_fast_fsync_fail = ret_value & 0xffff; in rtl8723be_dm_false_alarm_counter_statistics()
521 falsealm_cnt->cnt_sb_search_fail = (ret_value & 0xffff0000) >> 16; in rtl8723be_dm_false_alarm_counter_statistics()
524 falsealm_cnt->cnt_ofdm_cca = ret_value & 0xffff; in rtl8723be_dm_false_alarm_counter_statistics()
525 falsealm_cnt->cnt_parity_fail = (ret_value & 0xffff0000) >> 16; in rtl8723be_dm_false_alarm_counter_statistics()
528 falsealm_cnt->cnt_rate_illegal = ret_value & 0xffff; in rtl8723be_dm_false_alarm_counter_statistics()
529 falsealm_cnt->cnt_crc8_fail = (ret_value & 0xffff0000) >> 16; in rtl8723be_dm_false_alarm_counter_statistics()
532 falsealm_cnt->cnt_mcs_fail = ret_value & 0xffff; in rtl8723be_dm_false_alarm_counter_statistics()
548 falsealm_cnt->cnt_cck_fail += (ret_value & 0xff) << 8; in rtl8723be_dm_false_alarm_counter_statistics()
551 falsealm_cnt->cnt_cck_cca = ((ret_value & 0xff) << 8) | in rtl8723be_dm_false_alarm_counter_statistics()
552 ((ret_value & 0xff00) >> 8); in rtl8723be_dm_false_alarm_counter_statistics()
566 rtl_set_bbreg(hw, DM_REG_OFDM_FA_RSTC_11N, BIT(31), 0); in rtl8723be_dm_false_alarm_counter_statistics()
568 rtl_set_bbreg(hw, DM_REG_OFDM_FA_RSTD_11N, BIT(27), 0); in rtl8723be_dm_false_alarm_counter_statistics()
570 rtl_set_bbreg(hw, DM_REG_OFDM_FA_HOLDC_11N, BIT(31), 0); in rtl8723be_dm_false_alarm_counter_statistics()
571 rtl_set_bbreg(hw, DM_REG_OFDM_FA_RSTD_11N, BIT(31), 0); in rtl8723be_dm_false_alarm_counter_statistics()
573 rtl_set_bbreg(hw, DM_REG_CCK_FA_RST_11N, BIT(13) | BIT(12), 0); in rtl8723be_dm_false_alarm_counter_statistics()
576 rtl_set_bbreg(hw, DM_REG_CCK_FA_RST_11N, BIT(15) | BIT(14), 0); in rtl8723be_dm_false_alarm_counter_statistics()
603 long ele_a = 0, ele_d, ele_c = 0, value32; in rtl8723be_set_iqk_matrix()
608 ele_d = (ofdmswing_table[ofdm_index] & 0xFFC00000) >> 22; in rtl8723be_set_iqk_matrix()
610 if (iqk_result_x != 0) { in rtl8723be_set_iqk_matrix()
611 if ((iqk_result_x & 0x00000200) != 0) in rtl8723be_set_iqk_matrix()
612 iqk_result_x = iqk_result_x | 0xFFFFFC00; in rtl8723be_set_iqk_matrix()
613 ele_a = ((iqk_result_x * ele_d) >> 8) & 0x000003FF; in rtl8723be_set_iqk_matrix()
615 if ((iqk_result_y & 0x00000200) != 0) in rtl8723be_set_iqk_matrix()
616 iqk_result_y = iqk_result_y | 0xFFFFFC00; in rtl8723be_set_iqk_matrix()
617 ele_c = ((iqk_result_y * ele_d) >> 8) & 0x000003FF; in rtl8723be_set_iqk_matrix()
622 ((ele_c & 0x3F) << 16) | ele_a; in rtl8723be_set_iqk_matrix()
625 value32 = (ele_c & 0x000003C0) >> 6; in rtl8723be_set_iqk_matrix()
627 value32 = ((iqk_result_x * ele_d) >> 7) & 0x01; in rtl8723be_set_iqk_matrix()
639 rtl_set_bbreg(hw, ROFDM0_XCTXAFE, MASKH4BITS, 0x00); in rtl8723be_set_iqk_matrix()
640 rtl_set_bbreg(hw, ROFDM0_ECCATHRESHOLD, BIT(24), 0x00); in rtl8723be_set_iqk_matrix()
664 rtl_write_byte(rtlpriv, 0xa22, in rtl8723be_dm_tx_power_track_set_power()
665 cckswing_table_ch1ch13[rtldm->swing_idx_cck][0]); in rtl8723be_dm_tx_power_track_set_power()
666 rtl_write_byte(rtlpriv, 0xa23, in rtl8723be_dm_tx_power_track_set_power()
668 rtl_write_byte(rtlpriv, 0xa24, in rtl8723be_dm_tx_power_track_set_power()
670 rtl_write_byte(rtlpriv, 0xa25, in rtl8723be_dm_tx_power_track_set_power()
672 rtl_write_byte(rtlpriv, 0xa26, in rtl8723be_dm_tx_power_track_set_power()
674 rtl_write_byte(rtlpriv, 0xa27, in rtl8723be_dm_tx_power_track_set_power()
676 rtl_write_byte(rtlpriv, 0xa28, in rtl8723be_dm_tx_power_track_set_power()
678 rtl_write_byte(rtlpriv, 0xa29, in rtl8723be_dm_tx_power_track_set_power()
681 rtl_write_byte(rtlpriv, 0xa22, in rtl8723be_dm_tx_power_track_set_power()
682 cckswing_table_ch14[rtldm->swing_idx_cck][0]); in rtl8723be_dm_tx_power_track_set_power()
683 rtl_write_byte(rtlpriv, 0xa23, in rtl8723be_dm_tx_power_track_set_power()
685 rtl_write_byte(rtlpriv, 0xa24, in rtl8723be_dm_tx_power_track_set_power()
687 rtl_write_byte(rtlpriv, 0xa25, in rtl8723be_dm_tx_power_track_set_power()
689 rtl_write_byte(rtlpriv, 0xa26, in rtl8723be_dm_tx_power_track_set_power()
691 rtl_write_byte(rtlpriv, 0xa27, in rtl8723be_dm_tx_power_track_set_power()
693 rtl_write_byte(rtlpriv, 0xa28, in rtl8723be_dm_tx_power_track_set_power()
695 rtl_write_byte(rtlpriv, 0xa29, in rtl8723be_dm_tx_power_track_set_power()
707 rtlphy->iqk_matrix[idx].value[0][0], in rtl8723be_dm_tx_power_track_set_power()
708 rtlphy->iqk_matrix[idx].value[0][1]); in rtl8723be_dm_tx_power_track_set_power()
717 rtlphy->iqk_matrix[idx].value[0][4], in rtl8723be_dm_tx_power_track_set_power()
718 rtlphy->iqk_matrix[idx].value[0][5]); in rtl8723be_dm_tx_power_track_set_power()
731 u8 thermalvalue = 0, delta, delta_lck, delta_iqk; in rtl8723be_dm_txpower_tracking_callback_thermalmeter()
732 u8 thermalvalue_avg_count = 0; in rtl8723be_dm_txpower_tracking_callback_thermalmeter()
733 u32 thermalvalue_avg = 0; in rtl8723be_dm_txpower_tracking_callback_thermalmeter()
734 int i = 0; in rtl8723be_dm_txpower_tracking_callback_thermalmeter()
737 u8 index_for_channel = 0; in rtl8723be_dm_txpower_tracking_callback_thermalmeter()
740 0, 0, 1, 2, 2, 2, 3, 3, 3, 4, 5, in rtl8723be_dm_txpower_tracking_callback_thermalmeter()
744 0, 0, 1, 2, 2, 2, 3, 3, 3, 4, 5, in rtl8723be_dm_txpower_tracking_callback_thermalmeter()
754 RF90_PATH_A, RF_T_METER, 0xfc00); in rtl8723be_dm_txpower_tracking_callback_thermalmeter()
755 if (!rtlpriv->dm.txpower_track_control || thermalvalue == 0 || in rtl8723be_dm_txpower_tracking_callback_thermalmeter()
756 rtlefuse->eeprom_thermalmeter == 0xFF) in rtl8723be_dm_txpower_tracking_callback_thermalmeter()
759 "Readback Thermal Meter = 0x%x pre thermal meter 0x%x eeprom_thermalmeter 0x%x\n", in rtl8723be_dm_txpower_tracking_callback_thermalmeter()
772 rtldm->thermalvalue_avg_index = 0; in rtl8723be_dm_txpower_tracking_callback_thermalmeter()
774 for (i = 0; i < AVG_THERMAL_NUM_8723BE; i++) { in rtl8723be_dm_txpower_tracking_callback_thermalmeter()
796 …"Readback Thermal Meter = 0x%x pre thermal meter 0x%x eeprom_thermalmeter 0x%x delta 0x%x delta_lc… in rtl8723be_dm_txpower_tracking_callback_thermalmeter()
808 if (delta > 0 && rtlpriv->dm.txpower_track_control) { in rtl8723be_dm_txpower_tracking_callback_thermalmeter()
833 rtldm->power_index_offset[RF90_PATH_A] = 0; in rtl8723be_dm_txpower_tracking_callback_thermalmeter()
839 rtldm->ofdm_index[0] = in rtl8723be_dm_txpower_tracking_callback_thermalmeter()
846 rtldm->swing_idx_ofdm[0] = rtldm->ofdm_index[0]; in rtl8723be_dm_txpower_tracking_callback_thermalmeter()
848 if (rtldm->ofdm_index[0] > OFDM_TABLE_SIZE - 1) in rtl8723be_dm_txpower_tracking_callback_thermalmeter()
849 rtldm->ofdm_index[0] = OFDM_TABLE_SIZE - 1; in rtl8723be_dm_txpower_tracking_callback_thermalmeter()
850 else if (rtldm->ofdm_index[0] < ofdm_min_index) in rtl8723be_dm_txpower_tracking_callback_thermalmeter()
851 rtldm->ofdm_index[0] = ofdm_min_index; in rtl8723be_dm_txpower_tracking_callback_thermalmeter()
855 else if (rtldm->cck_index < 0) in rtl8723be_dm_txpower_tracking_callback_thermalmeter()
856 rtldm->cck_index = 0; in rtl8723be_dm_txpower_tracking_callback_thermalmeter()
858 rtldm->power_index_offset[RF90_PATH_A] = 0; in rtl8723be_dm_txpower_tracking_callback_thermalmeter()
861 if ((rtldm->power_index_offset[RF90_PATH_A] != 0) && in rtl8723be_dm_txpower_tracking_callback_thermalmeter()
864 rtl8723be_dm_tx_power_track_set_power(hw, BBSWING, 0, in rtl8723be_dm_txpower_tracking_callback_thermalmeter()
869 rtldm->swing_idx_ofdm[0]; in rtl8723be_dm_txpower_tracking_callback_thermalmeter()
878 rtldm->txpowercount = 0; in rtl8723be_dm_txpower_tracking_callback_thermalmeter()
892 0x03); in rtl8723be_dm_check_txpower_tracking()
901 rtlpriv->dm.tm_trigger = 0; in rtl8723be_dm_check_txpower_tracking()
991 u64 cur_txok_cnt = 0; in rtl8723be_dm_check_edca_turbo()
992 u64 cur_rxok_cnt = 0; in rtl8723be_dm_check_edca_turbo()
993 u32 edca_be_ul = 0x6ea42b; in rtl8723be_dm_check_edca_turbo()
994 u32 edca_be_dl = 0x6ea42b;/*not sure*/ in rtl8723be_dm_check_edca_turbo()
995 u32 edca_be = 0x5ea42b; in rtl8723be_dm_check_edca_turbo()
996 u32 iot_peer = 0; in rtl8723be_dm_check_edca_turbo()
1054 cur_cck_cca_thresh = 0xcd; in rtl8723be_dm_cck_packet_detection_thresh()
1057 cur_cck_cca_thresh = 0x83; in rtl8723be_dm_cck_packet_detection_thresh()
1060 cur_cck_cca_thresh = 0x83; in rtl8723be_dm_cck_packet_detection_thresh()
1062 cur_cck_cca_thresh = 0x40; in rtl8723be_dm_cck_packet_detection_thresh()
1066 cur_cck_cca_thresh = 0x83; in rtl8723be_dm_cck_packet_detection_thresh()
1068 cur_cck_cca_thresh = 0x40; in rtl8723be_dm_cck_packet_detection_thresh()
1094 if (reg_c50 > 0x28 && reg_c58 > 0x28) { in rtl8723be_dm_dynamic_edcca()
1096 rtl_write_byte(rtlpriv, ROFDM0_ECCATHRESHOLD, 0x03); in rtl8723be_dm_dynamic_edcca()
1097 rtl_write_byte(rtlpriv, ROFDM0_ECCATHRESHOLD + 2, 0x00); in rtl8723be_dm_dynamic_edcca()
1099 } else if (reg_c50 < 0x25 && reg_c58 < 0x25) { in rtl8723be_dm_dynamic_edcca()
1101 rtl_write_byte(rtlpriv, ROFDM0_ECCATHRESHOLD, 0x7f); in rtl8723be_dm_dynamic_edcca()
1102 rtl_write_byte(rtlpriv, ROFDM0_ECCATHRESHOLD + 2, 0x7f); in rtl8723be_dm_dynamic_edcca()
1113 int cfo_khz_a, cfo_khz_b, cfo_ave = 0, adjust_xtal = 0; in rtl8723be_dm_dynamic_atc_switch()
1132 crystal_cap = rtldm->crystal_cap & 0x3f; in rtl8723be_dm_dynamic_atc_switch()
1133 rtl_set_bbreg(hw, REG_MAC_PHY_CTRL, 0xFFF000, in rtl8723be_dm_dynamic_atc_switch()
1137 cfo_khz_a = (int)(rtldm->cfo_tail[0] * 3125) / 1280; in rtl8723be_dm_dynamic_atc_switch()
1164 cfo_ave <= rtldm->cfo_threshold && rtldm->is_freeze == 0) { in rtl8723be_dm_dynamic_atc_switch()
1173 if (cfo_ave > rtldm->cfo_threshold && rtldm->crystal_cap < 0x3f) in rtl8723be_dm_dynamic_atc_switch()
1176 rtlpriv->dm.crystal_cap > 0) in rtl8723be_dm_dynamic_atc_switch()
1179 if (adjust_xtal != 0) { in rtl8723be_dm_dynamic_atc_switch()
1180 rtldm->is_freeze = 0; in rtl8723be_dm_dynamic_atc_switch()
1183 if (rtldm->crystal_cap > 0x3f) in rtl8723be_dm_dynamic_atc_switch()
1184 rtldm->crystal_cap = 0x3f; in rtl8723be_dm_dynamic_atc_switch()
1185 else if (rtldm->crystal_cap < 0) in rtl8723be_dm_dynamic_atc_switch()
1186 rtldm->crystal_cap = 0; in rtl8723be_dm_dynamic_atc_switch()
1188 crystal_cap = rtldm->crystal_cap & 0x3f; in rtl8723be_dm_dynamic_atc_switch()
1189 rtl_set_bbreg(hw, REG_MAC_PHY_CTRL, 0xFFF000, in rtl8723be_dm_dynamic_atc_switch()
1213 u8 cnt = 0; in rtl8723be_dm_common_info_self_update()
1271 rtlpriv->dm.dbginfo.num_qry_beacon_pkt = 0; in rtl8723be_dm_watchdog()