Lines Matching +full:0 +full:x18000060
16 0x7f8001fe, /* 0, +6.0dB */
17 0x788001e2, /* 1, +5.5dB */
18 0x71c001c7, /* 2, +5.0dB */
19 0x6b8001ae, /* 3, +4.5dB */
20 0x65400195, /* 4, +4.0dB */
21 0x5fc0017f, /* 5, +3.5dB */
22 0x5a400169, /* 6, +3.0dB */
23 0x55400155, /* 7, +2.5dB */
24 0x50800142, /* 8, +2.0dB */
25 0x4c000130, /* 9, +1.5dB */
26 0x47c0011f, /* 10, +1.0dB */
27 0x43c0010f, /* 11, +0.5dB */
28 0x40000100, /* 12, +0dB */
29 0x3c8000f2, /* 13, -0.5dB */
30 0x390000e4, /* 14, -1.0dB */
31 0x35c000d7, /* 15, -1.5dB */
32 0x32c000cb, /* 16, -2.0dB */
33 0x300000c0, /* 17, -2.5dB */
34 0x2d4000b5, /* 18, -3.0dB */
35 0x2ac000ab, /* 19, -3.5dB */
36 0x288000a2, /* 20, -4.0dB */
37 0x26000098, /* 21, -4.5dB */
38 0x24000090, /* 22, -5.0dB */
39 0x22000088, /* 23, -5.5dB */
40 0x20000080, /* 24, -6.0dB */
41 0x1e400079, /* 25, -6.5dB */
42 0x1c800072, /* 26, -7.0dB */
43 0x1b00006c, /* 27. -7.5dB */
44 0x19800066, /* 28, -8.0dB */
45 0x18000060, /* 29, -8.5dB */
46 0x16c0005b, /* 30, -9.0dB */
47 0x15800056, /* 31, -9.5dB */
48 0x14400051, /* 32, -10.0dB */
49 0x1300004c, /* 33, -10.5dB */
50 0x12000048, /* 34, -11.0dB */
51 0x11000044, /* 35, -11.5dB */
52 0x10000040, /* 36, -12.0dB */
53 0x0f00003c, /* 37, -12.5dB */
54 0x0e400039, /* 38, -13.0dB */
55 0x0d800036, /* 39, -13.5dB */
56 0x0cc00033, /* 40, -14.0dB */
57 0x0c000030, /* 41, -14.5dB */
58 0x0b40002d, /* 42, -15.0dB */
62 {0x36, 0x35, 0x2e, 0x25, 0x1c, 0x12, 0x09, 0x04}, /* 0, +0dB */
63 {0x33, 0x32, 0x2b, 0x23, 0x1a, 0x11, 0x08, 0x04}, /* 1, -0.5dB */
64 {0x30, 0x2f, 0x29, 0x21, 0x19, 0x10, 0x08, 0x03}, /* 2, -1.0dB */
65 {0x2d, 0x2d, 0x27, 0x1f, 0x18, 0x0f, 0x08, 0x03}, /* 3, -1.5dB */
66 {0x2b, 0x2a, 0x25, 0x1e, 0x16, 0x0e, 0x07, 0x03}, /* 4, -2.0dB */
67 {0x28, 0x28, 0x22, 0x1c, 0x15, 0x0d, 0x07, 0x03}, /* 5, -2.5dB */
68 {0x26, 0x25, 0x21, 0x1b, 0x14, 0x0d, 0x06, 0x03}, /* 6, -3.0dB */
69 {0x24, 0x23, 0x1f, 0x19, 0x13, 0x0c, 0x06, 0x03}, /* 7, -3.5dB */
70 {0x22, 0x21, 0x1d, 0x18, 0x11, 0x0b, 0x06, 0x02}, /* 8, -4.0dB */
71 {0x20, 0x20, 0x1b, 0x16, 0x11, 0x08, 0x05, 0x02}, /* 9, -4.5dB */
72 {0x1f, 0x1e, 0x1a, 0x15, 0x10, 0x0a, 0x05, 0x02}, /* 10, -5.0dB */
73 {0x1d, 0x1c, 0x18, 0x14, 0x0f, 0x0a, 0x05, 0x02}, /* 11, -5.5dB */
74 {0x1b, 0x1a, 0x17, 0x13, 0x0e, 0x09, 0x04, 0x02}, /* 12, -6.0dB */
75 {0x1a, 0x19, 0x16, 0x12, 0x0d, 0x09, 0x04, 0x02}, /* 13, -6.5dB */
76 {0x18, 0x17, 0x15, 0x11, 0x0c, 0x08, 0x04, 0x02}, /* 14, -7.0dB */
77 {0x17, 0x16, 0x13, 0x10, 0x0c, 0x08, 0x04, 0x02}, /* 15, -7.5dB */
78 {0x16, 0x15, 0x12, 0x0f, 0x0b, 0x07, 0x04, 0x01}, /* 16, -8.0dB */
79 {0x14, 0x14, 0x11, 0x0e, 0x0b, 0x07, 0x03, 0x02}, /* 17, -8.5dB */
80 {0x13, 0x13, 0x10, 0x0d, 0x0a, 0x06, 0x03, 0x01}, /* 18, -9.0dB */
81 {0x12, 0x12, 0x0f, 0x0c, 0x09, 0x06, 0x03, 0x01}, /* 19, -9.5dB */
82 {0x11, 0x11, 0x0f, 0x0c, 0x09, 0x06, 0x03, 0x01}, /* 20, -10.0dB*/
83 {0x10, 0x10, 0x0e, 0x0b, 0x08, 0x05, 0x03, 0x01}, /* 21, -10.5dB*/
84 {0x0f, 0x0f, 0x0d, 0x0b, 0x08, 0x05, 0x03, 0x01}, /* 22, -11.0dB*/
85 {0x0e, 0x0e, 0x0c, 0x0a, 0x08, 0x05, 0x02, 0x01}, /* 23, -11.5dB*/
86 {0x0d, 0x0d, 0x0c, 0x0a, 0x07, 0x05, 0x02, 0x01}, /* 24, -12.0dB*/
87 {0x0d, 0x0c, 0x0b, 0x09, 0x07, 0x04, 0x02, 0x01}, /* 25, -12.5dB*/
88 {0x0c, 0x0c, 0x0a, 0x09, 0x06, 0x04, 0x02, 0x01}, /* 26, -13.0dB*/
89 {0x0b, 0x0b, 0x0a, 0x08, 0x06, 0x04, 0x02, 0x01}, /* 27, -13.5dB*/
90 {0x0b, 0x0a, 0x09, 0x08, 0x06, 0x04, 0x02, 0x01}, /* 28, -14.0dB*/
91 {0x0a, 0x0a, 0x09, 0x07, 0x05, 0x03, 0x02, 0x01}, /* 29, -14.5dB*/
92 {0x0a, 0x09, 0x08, 0x07, 0x05, 0x03, 0x02, 0x01}, /* 30, -15.0dB*/
93 {0x09, 0x09, 0x08, 0x06, 0x05, 0x03, 0x01, 0x01}, /* 31, -15.5dB*/
94 {0x09, 0x08, 0x07, 0x06, 0x04, 0x03, 0x01, 0x01} /* 32, -16.0dB*/
98 {0x36, 0x35, 0x2e, 0x1b, 0x00, 0x00, 0x00, 0x00}, /* 0, +0dB */
99 {0x33, 0x32, 0x2b, 0x19, 0x00, 0x00, 0x00, 0x00}, /* 1, -0.5dB */
100 {0x30, 0x2f, 0x29, 0x18, 0x00, 0x00, 0x00, 0x00}, /* 2, -1.0dB */
101 {0x2d, 0x2d, 0x17, 0x17, 0x00, 0x00, 0x00, 0x00}, /* 3, -1.5dB */
102 {0x2b, 0x2a, 0x25, 0x15, 0x00, 0x00, 0x00, 0x00}, /* 4, -2.0dB */
103 {0x28, 0x28, 0x24, 0x14, 0x00, 0x00, 0x00, 0x00}, /* 5, -2.5dB */
104 {0x26, 0x25, 0x21, 0x13, 0x00, 0x00, 0x00, 0x00}, /* 6, -3.0dB */
105 {0x24, 0x23, 0x1f, 0x12, 0x00, 0x00, 0x00, 0x00}, /* 7, -3.5dB */
106 {0x22, 0x21, 0x1d, 0x11, 0x00, 0x00, 0x00, 0x00}, /* 8, -4.0dB */
107 {0x20, 0x20, 0x1b, 0x10, 0x00, 0x00, 0x00, 0x00}, /* 9, -4.5dB */
108 {0x1f, 0x1e, 0x1a, 0x0f, 0x00, 0x00, 0x00, 0x00}, /* 10, -5.0dB */
109 {0x1d, 0x1c, 0x18, 0x0e, 0x00, 0x00, 0x00, 0x00}, /* 11, -5.5dB */
110 {0x1b, 0x1a, 0x17, 0x0e, 0x00, 0x00, 0x00, 0x00}, /* 12, -6.0dB */
111 {0x1a, 0x19, 0x16, 0x0d, 0x00, 0x00, 0x00, 0x00}, /* 13, -6.5dB */
112 {0x18, 0x17, 0x15, 0x0c, 0x00, 0x00, 0x00, 0x00}, /* 14, -7.0dB */
113 {0x17, 0x16, 0x13, 0x0b, 0x00, 0x00, 0x00, 0x00}, /* 15, -7.5dB */
114 {0x16, 0x15, 0x12, 0x0b, 0x00, 0x00, 0x00, 0x00}, /* 16, -8.0dB */
115 {0x14, 0x14, 0x11, 0x0a, 0x00, 0x00, 0x00, 0x00}, /* 17, -8.5dB */
116 {0x13, 0x13, 0x10, 0x0a, 0x00, 0x00, 0x00, 0x00}, /* 18, -9.0dB */
117 {0x12, 0x12, 0x0f, 0x09, 0x00, 0x00, 0x00, 0x00}, /* 19, -9.5dB */
118 {0x11, 0x11, 0x0f, 0x09, 0x00, 0x00, 0x00, 0x00}, /* 20, -10.0dB*/
119 {0x10, 0x10, 0x0e, 0x08, 0x00, 0x00, 0x00, 0x00}, /* 21, -10.5dB*/
120 {0x0f, 0x0f, 0x0d, 0x08, 0x00, 0x00, 0x00, 0x00}, /* 22, -11.0dB*/
121 {0x0e, 0x0e, 0x0c, 0x07, 0x00, 0x00, 0x00, 0x00}, /* 23, -11.5dB*/
122 {0x0d, 0x0d, 0x0c, 0x07, 0x00, 0x00, 0x00, 0x00}, /* 24, -12.0dB*/
123 {0x0d, 0x0c, 0x0b, 0x06, 0x00, 0x00, 0x00, 0x00}, /* 25, -12.5dB*/
124 {0x0c, 0x0c, 0x0a, 0x06, 0x00, 0x00, 0x00, 0x00}, /* 26, -13.0dB*/
125 {0x0b, 0x0b, 0x0a, 0x06, 0x00, 0x00, 0x00, 0x00}, /* 27, -13.5dB*/
126 {0x0b, 0x0a, 0x09, 0x05, 0x00, 0x00, 0x00, 0x00}, /* 28, -14.0dB*/
127 {0x0a, 0x0a, 0x09, 0x05, 0x00, 0x00, 0x00, 0x00}, /* 29, -14.5dB*/
128 {0x0a, 0x09, 0x08, 0x05, 0x00, 0x00, 0x00, 0x00}, /* 30, -15.0dB*/
129 {0x09, 0x09, 0x08, 0x05, 0x00, 0x00, 0x00, 0x00}, /* 31, -15.5dB*/
130 {0x09, 0x08, 0x07, 0x04, 0x00, 0x00, 0x00, 0x00} /* 32, -16.0dB*/
135 for (_off = 0; _off < _size; _off++) { \
137 if (_off != 0) \
144 } while (0)
150 long ele_a = 0, ele_d, ele_c = 0, value32; in rtl88e_set_iqk_matrix()
152 ele_d = (ofdmswing_table[ofdm_index] & 0xFFC00000)>>22; in rtl88e_set_iqk_matrix()
154 if (iqk_result_x != 0) { in rtl88e_set_iqk_matrix()
155 if ((iqk_result_x & 0x00000200) != 0) in rtl88e_set_iqk_matrix()
156 iqk_result_x = iqk_result_x | 0xFFFFFC00; in rtl88e_set_iqk_matrix()
157 ele_a = ((iqk_result_x * ele_d)>>8)&0x000003FF; in rtl88e_set_iqk_matrix()
159 if ((iqk_result_y & 0x00000200) != 0) in rtl88e_set_iqk_matrix()
160 iqk_result_y = iqk_result_y | 0xFFFFFC00; in rtl88e_set_iqk_matrix()
161 ele_c = ((iqk_result_y * ele_d)>>8)&0x000003FF; in rtl88e_set_iqk_matrix()
165 value32 = (ele_d << 22)|((ele_c & 0x3F)<<16) | ele_a; in rtl88e_set_iqk_matrix()
168 value32 = (ele_c & 0x000003C0) >> 6; in rtl88e_set_iqk_matrix()
171 value32 = ((iqk_result_x * ele_d) >> 7) & 0x01; in rtl88e_set_iqk_matrix()
176 value32 = (ele_d << 22)|((ele_c & 0x3F)<<16) | ele_a; in rtl88e_set_iqk_matrix()
179 value32 = (ele_c & 0x000003C0) >> 6; in rtl88e_set_iqk_matrix()
181 value32 = ((iqk_result_x * ele_d) >> 7) & 0x01; in rtl88e_set_iqk_matrix()
194 MASKH4BITS, 0x00); in rtl88e_set_iqk_matrix()
196 BIT(24), 0x00); in rtl88e_set_iqk_matrix()
202 MASKH4BITS, 0x00); in rtl88e_set_iqk_matrix()
204 BIT(28), 0x00); in rtl88e_set_iqk_matrix()
217 u8 pwr_val = 0; in rtl88e_dm_txpower_track_adjust()
220 u8 ofdm_base = rtldm->swing_idx_ofdm_base[0]; in rtl88e_dm_txpower_track_adjust()
223 if (type == 0) { in rtl88e_dm_txpower_track_adjust()
266 rtl_write_byte(rtlpriv, 0xa22, in dm_tx_pwr_track_set_pwr()
267 cck_tbl_ch1_13[rtldm->swing_idx_cck][0]); in dm_tx_pwr_track_set_pwr()
268 rtl_write_byte(rtlpriv, 0xa23, in dm_tx_pwr_track_set_pwr()
270 rtl_write_byte(rtlpriv, 0xa24, in dm_tx_pwr_track_set_pwr()
272 rtl_write_byte(rtlpriv, 0xa25, in dm_tx_pwr_track_set_pwr()
274 rtl_write_byte(rtlpriv, 0xa26, in dm_tx_pwr_track_set_pwr()
276 rtl_write_byte(rtlpriv, 0xa27, in dm_tx_pwr_track_set_pwr()
278 rtl_write_byte(rtlpriv, 0xa28, in dm_tx_pwr_track_set_pwr()
280 rtl_write_byte(rtlpriv, 0xa29, in dm_tx_pwr_track_set_pwr()
283 rtl_write_byte(rtlpriv, 0xa22, in dm_tx_pwr_track_set_pwr()
284 cck_tbl_ch14[rtldm->swing_idx_cck][0]); in dm_tx_pwr_track_set_pwr()
285 rtl_write_byte(rtlpriv, 0xa23, in dm_tx_pwr_track_set_pwr()
287 rtl_write_byte(rtlpriv, 0xa24, in dm_tx_pwr_track_set_pwr()
289 rtl_write_byte(rtlpriv, 0xa25, in dm_tx_pwr_track_set_pwr()
291 rtl_write_byte(rtlpriv, 0xa26, in dm_tx_pwr_track_set_pwr()
293 rtl_write_byte(rtlpriv, 0xa27, in dm_tx_pwr_track_set_pwr()
295 rtl_write_byte(rtlpriv, 0xa28, in dm_tx_pwr_track_set_pwr()
297 rtl_write_byte(rtlpriv, 0xa29, in dm_tx_pwr_track_set_pwr()
305 value[0][0], in dm_tx_pwr_track_set_pwr()
308 value[0][1]); in dm_tx_pwr_track_set_pwr()
313 value[0][4], in dm_tx_pwr_track_set_pwr()
316 value[0][5]); in dm_tx_pwr_track_set_pwr()
327 long rssi_val_min = 0; in rtl88e_dm_initial_gain_min_pwdb()
331 if (rtlpriv->dm.entry_min_undec_sm_pwdb != 0) in rtl88e_dm_initial_gain_min_pwdb()
360 falsealm_cnt->cnt_fast_fsync_fail = (ret_value&0xffff); in rtl88e_dm_false_alarm_counter_statistics()
361 falsealm_cnt->cnt_sb_search_fail = ((ret_value&0xffff0000)>>16); in rtl88e_dm_false_alarm_counter_statistics()
364 falsealm_cnt->cnt_ofdm_cca = (ret_value&0xffff); in rtl88e_dm_false_alarm_counter_statistics()
365 falsealm_cnt->cnt_parity_fail = ((ret_value & 0xffff0000) >> 16); in rtl88e_dm_false_alarm_counter_statistics()
368 falsealm_cnt->cnt_rate_illegal = (ret_value & 0xffff); in rtl88e_dm_false_alarm_counter_statistics()
369 falsealm_cnt->cnt_crc8_fail = ((ret_value & 0xffff0000) >> 16); in rtl88e_dm_false_alarm_counter_statistics()
372 falsealm_cnt->cnt_mcs_fail = (ret_value & 0xffff); in rtl88e_dm_false_alarm_counter_statistics()
381 falsealm_cnt->cnt_bw_lsc = (ret_value & 0xffff); in rtl88e_dm_false_alarm_counter_statistics()
382 falsealm_cnt->cnt_bw_usc = ((ret_value & 0xffff0000) >> 16); in rtl88e_dm_false_alarm_counter_statistics()
391 falsealm_cnt->cnt_cck_fail += (ret_value & 0xff) << 8; in rtl88e_dm_false_alarm_counter_statistics()
394 falsealm_cnt->cnt_cck_cca = ((ret_value & 0xff) << 8) | in rtl88e_dm_false_alarm_counter_statistics()
395 ((ret_value&0xFF00)>>8); in rtl88e_dm_false_alarm_counter_statistics()
408 rtl_set_bbreg(hw, ROFDM0_TRSWISOLATION, BIT(31), 0); in rtl88e_dm_false_alarm_counter_statistics()
410 rtl_set_bbreg(hw, ROFDM1_LSTF, BIT(27), 0); in rtl88e_dm_false_alarm_counter_statistics()
411 rtl_set_bbreg(hw, ROFDM0_LSTF, BIT(31), 0); in rtl88e_dm_false_alarm_counter_statistics()
412 rtl_set_bbreg(hw, ROFDM1_LSTF, BIT(31), 0); in rtl88e_dm_false_alarm_counter_statistics()
413 rtl_set_bbreg(hw, RCCK0_FALSEALARMREPORT, BIT(13)|BIT(12), 0); in rtl88e_dm_false_alarm_counter_statistics()
415 rtl_set_bbreg(hw, RCCK0_FALSEALARMREPORT, BIT(15)|BIT(14), 0); in rtl88e_dm_false_alarm_counter_statistics()
439 cur_cck_cca_thresh = 0xcd; in rtl88e_dm_cck_packet_detection_thresh()
442 cur_cck_cca_thresh = 0x83; in rtl88e_dm_cck_packet_detection_thresh()
445 cur_cck_cca_thresh = 0x83; in rtl88e_dm_cck_packet_detection_thresh()
447 cur_cck_cca_thresh = 0x40; in rtl88e_dm_cck_packet_detection_thresh()
452 cur_cck_cca_thresh = 0x83; in rtl88e_dm_cck_packet_detection_thresh()
454 cur_cck_cca_thresh = 0x40; in rtl88e_dm_cck_packet_detection_thresh()
544 if (dm_dig->recover_cnt != 0) { in rtl88e_dm_dig()
547 if (dm_dig->large_fa_hit == 0) { in rtl88e_dm_dig()
558 dm_dig->large_fa_hit = 0; in rtl88e_dm_dig()
626 (rtlpriv->dm.entry_min_undec_sm_pwdb == 0)) { in rtl92c_dm_dynamic_txpower()
641 "AP Client PWDB = 0x%lx\n", in rtl92c_dm_dynamic_txpower()
647 "STA Default Port PWDB = 0x%lx\n", in rtl92c_dm_dynamic_txpower()
655 "AP Ext Port PWDB = 0x%lx\n", in rtl92c_dm_dynamic_txpower()
662 "TXHIGHPWRLEVEL_LEVEL1 (TxPwr = 0x0)\n"); in rtl92c_dm_dynamic_txpower()
669 "TXHIGHPWRLEVEL_LEVEL1 (TxPwr = 0x10)\n"); in rtl92c_dm_dynamic_txpower()
694 "cur_igvalue = 0x%x, pre_igvalue = 0x%x, backoff_val = %d\n", in rtl88e_dm_write_dig()
698 if (dm_dig->cur_igvalue > 0x3f) in rtl88e_dm_write_dig()
699 dm_dig->cur_igvalue = 0x3f; in rtl88e_dm_write_dig()
701 rtl_set_bbreg(hw, ROFDM0_XAAGCCORE1, 0x7f, in rtl88e_dm_write_dig()
715 long tmp_entry_max_pwdb = 0, tmp_entry_min_pwdb = 0xff; in rtl88e_dm_pwdb_monitor()
718 u64 cur_txok_cnt = 0; in rtl88e_dm_pwdb_monitor()
719 u64 cur_rxok_cnt = 0; in rtl88e_dm_pwdb_monitor()
728 rtl_write_dword(rtlpriv, REG_ARFR0, 0x8f015); in rtl88e_dm_pwdb_monitor()
730 rtl_write_dword(rtlpriv, REG_ARFR0, 0xff015); in rtl88e_dm_pwdb_monitor()
746 if (tmp_entry_max_pwdb != 0) { in rtl88e_dm_pwdb_monitor()
748 RTPRINT(rtlpriv, FDM, DM_PWDB, "EntryMaxPWDB = 0x%lx(%ld)\n", in rtl88e_dm_pwdb_monitor()
751 rtlpriv->dm.entry_max_undec_sm_pwdb = 0; in rtl88e_dm_pwdb_monitor()
754 if (tmp_entry_min_pwdb != 0xff) { in rtl88e_dm_pwdb_monitor()
756 RTPRINT(rtlpriv, FDM, DM_PWDB, "EntryMinPWDB = 0x%lx(%ld)\n", in rtl88e_dm_pwdb_monitor()
759 rtlpriv->dm.entry_min_undec_sm_pwdb = 0; in rtl88e_dm_pwdb_monitor()
763 rtl_write_byte(rtlpriv, 0x4fe, rtlpriv->dm.undec_sm_pwdb); in rtl88e_dm_pwdb_monitor()
783 u64 cur_txok_cnt = 0; in rtl88e_dm_check_edca_turbo()
784 u64 cur_rxok_cnt = 0; in rtl88e_dm_check_edca_turbo()
785 u32 edca_be_ul = 0x5ea42b; in rtl88e_dm_check_edca_turbo()
786 u32 edca_be_dl = 0x5ea42b; in rtl88e_dm_check_edca_turbo()
796 if (rtlpriv->btcoexist.bt_edca_ul != 0) { in rtl88e_dm_check_edca_turbo()
801 if (rtlpriv->btcoexist.bt_edca_dl != 0) { in rtl88e_dm_check_edca_turbo()
857 u8 thermalvalue = 0, delta, delta_lck, delta_iqk, offset; in dm_txpower_track_cb_therm()
858 u8 thermalvalue_avg_count = 0; in dm_txpower_track_cb_therm()
859 u32 thermalvalue_avg = 0; in dm_txpower_track_cb_therm()
861 s8 ofdm_index[2], cck_index = 0, in dm_txpower_track_cb_therm()
862 ofdm_index_old[2] = {0, 0}, cck_index_old = 0; in dm_txpower_track_cb_therm()
863 int i = 0; in dm_txpower_track_cb_therm()
874 {0, 0, 2, 3, 4, 4, 5, 6, 7, 7, 8, 9, 10, 10, 11}, in dm_txpower_track_cb_therm()
875 {0, 0, -1, -2, -3, -4, -4, -4, -4, -5, -7, -8, -9, -9, -10} in dm_txpower_track_cb_therm()
878 {0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 27}, in dm_txpower_track_cb_therm()
879 {0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 25, 25, 25} in dm_txpower_track_cb_therm()
888 0xfc00); in dm_txpower_track_cb_therm()
892 "Readback Thermal Meter = 0x%x pre thermal meter 0x%x eeprom_thermalmeter 0x%x\n", in dm_txpower_track_cb_therm()
899 for (i = 0; i < OFDM_TABLE_LENGTH; i++) { in dm_txpower_track_cb_therm()
901 ofdm_index_old[0] = (u8)i; in dm_txpower_track_cb_therm()
904 "Initial pathA ele_d reg0x%x = 0x%lx, ofdm_index = 0x%x\n", in dm_txpower_track_cb_therm()
906 ele_d, ofdm_index_old[0]); in dm_txpower_track_cb_therm()
911 /*2.Query CCK default setting From 0xa24*/ in dm_txpower_track_cb_therm()
913 for (i = 0; i < CCK_TABLE_LENGTH; i++) { in dm_txpower_track_cb_therm()
915 if (memcmp(&temp_cck, &cck_tbl_ch14[i][2], 4) == 0) { in dm_txpower_track_cb_therm()
920 "Initial reg0x%x = 0x%lx, cck_index = 0x%x, ch 14 %d\n", in dm_txpower_track_cb_therm()
927 if (memcmp(&temp_cck, &cck_tbl_ch1_13[i][2], 4) == 0) { in dm_txpower_track_cb_therm()
932 "Initial reg0x%x = 0x%lx, cck_index = 0x%x, ch14 %d\n", in dm_txpower_track_cb_therm()
946 for (i = 0; i < rf; i++) in dm_txpower_track_cb_therm()
955 rtldm->thermalvalue_avg_index = 0; in dm_txpower_track_cb_therm()
957 for (i = 0; i < AVG_THERMAL_NUM_88E; i++) { in dm_txpower_track_cb_therm()
991 …"Readback Thermal Meter = 0x%x pre thermal meter 0x%x eeprom_thermalmeter 0x%x delta 0x%x delta_lc… in dm_txpower_track_cb_therm()
1004 if (delta > 0 && rtlpriv->dm.txpower_track_control) { in dm_txpower_track_cb_therm()
1015 for (i = 0; i < rf; i++) in dm_txpower_track_cb_therm()
1024 for (i = 0; i < rf; i++) in dm_txpower_track_cb_therm()
1033 for (i = 0; i < rf; i++) { in dm_txpower_track_cb_therm()
1042 else if (cck_index < 0) in dm_txpower_track_cb_therm()
1043 cck_index = 0; in dm_txpower_track_cb_therm()
1052 rtldm->swing_idx_ofdm[0]) { in dm_txpower_track_cb_therm()
1054 rtldm->swing_idx_ofdm[0]; in dm_txpower_track_cb_therm()
1063 dm_tx_pwr_track_set_pwr(hw, TXAGC, 0, 0); in dm_txpower_track_cb_therm()
1074 rtldm->txpowercount = 0; in dm_txpower_track_cb_therm()
1084 rtlpriv->dm.txpowercount = 0; in rtl88e_dm_init_txpower_tracking()
1104 0x03); in rtl88e_dm_check_txpower_tracking()
1113 rtlpriv->dm.tm_trigger = 0; in rtl88e_dm_check_txpower_tracking()
1214 dm_pstable->rssi_val_min = 0; in rtl92c_dm_init_dynamic_bb_powersaving()
1280 pfat_table->antsel_a[mac_id] = target_ant & BIT(0); in rtl88e_dm_update_tx_ant()
1300 rtl_set_bbreg(hw, DM_REG_PIN_CTRL_11N, BIT(9) | BIT(8), 0); in rtl88e_dm_rx_hw_antena_div_init()
1301 rtl_set_bbreg(hw, DM_REG_RX_ANT_CTRL_11N, BIT(10), 0); in rtl88e_dm_rx_hw_antena_div_init()
1305 rtl_set_bbreg(hw, DM_REG_ANTDIV_PARA1_11N, MASKDWORD, 0x000000a0); in rtl88e_dm_rx_hw_antena_div_init()
1310 rtl_set_bbreg(hw, DM_REG_ANT_MAPPING1_11N, MASKLWORD, 0x0201); in rtl88e_dm_rx_hw_antena_div_init()
1322 rtl_set_bbreg(hw, DM_REG_PIN_CTRL_11N, BIT(9) | BIT(8), 0); in rtl88e_dm_trx_hw_antenna_div_init()
1323 rtl_set_bbreg(hw, DM_REG_RX_ANT_CTRL_11N, BIT(10), 0); in rtl88e_dm_trx_hw_antenna_div_init()
1324 rtl_set_bbreg(hw, DM_REG_LNA_SWITCH_11N, BIT(22), 0); in rtl88e_dm_trx_hw_antenna_div_init()
1327 rtl_set_bbreg(hw, DM_REG_ANTDIV_PARA1_11N, MASKDWORD, 0x000000a0); in rtl88e_dm_trx_hw_antenna_div_init()
1332 rtl_set_bbreg(hw, DM_REG_TX_ANT_CTRL_11N, BIT(21), 0); in rtl88e_dm_trx_hw_antenna_div_init()
1334 rtl_set_bbreg(hw, DM_REG_ANT_MAPPING1_11N, MASKLWORD, 0x0201); in rtl88e_dm_trx_hw_antenna_div_init()
1344 for (i = 0; i < 6; i++) { in rtl88e_dm_fast_training_init()
1345 pfat_table->bssid[i] = 0; in rtl88e_dm_fast_training_init()
1346 pfat_table->ant_sum[i] = 0; in rtl88e_dm_fast_training_init()
1347 pfat_table->ant_cnt[i] = 0; in rtl88e_dm_fast_training_init()
1348 pfat_table->ant_ave[i] = 0; in rtl88e_dm_fast_training_init()
1350 pfat_table->train_idx = 0; in rtl88e_dm_fast_training_init()
1361 MASKLWORD, 0); in rtl88e_dm_fast_training_init()
1363 MASKDWORD, 0); in rtl88e_dm_fast_training_init()
1366 rtl_set_bbreg(hw, DM_REG_PIN_CTRL_11N, BIT(9) | BIT(8), 0); in rtl88e_dm_fast_training_init()
1367 rtl_set_bbreg(hw, DM_REG_RX_ANT_CTRL_11N, BIT(10), 0); in rtl88e_dm_fast_training_init()
1368 rtl_set_bbreg(hw, DM_REG_LNA_SWITCH_11N, BIT(22), 0); in rtl88e_dm_fast_training_init()
1372 rtl_set_bbreg(hw, DM_REG_ANTDIV_PARA1_11N, MASKDWORD, 0x000000a0); in rtl88e_dm_fast_training_init()
1380 BIT(5) | BIT(4) | BIT(3), 0); in rtl88e_dm_fast_training_init()
1384 BIT(2) | BIT(1) | BIT(0), (ant_combination - 1)); in rtl88e_dm_fast_training_init()
1453 u32 i, min_rssi = 0xff, ant_div_max_rssi = 0; in rtl88e_dm_hw_ant_div()
1454 u32 max_rssi = 0, local_min_rssi, local_max_rssi; in rtl88e_dm_hw_ant_div()
1456 u8 rx_idle_ant = 0, target_ant = 7; in rtl88e_dm_hw_ant_div()
1459 i = 0; in rtl88e_dm_hw_ant_div()
1460 main_rssi = (pfat_table->main_ant_cnt[i] != 0) ? in rtl88e_dm_hw_ant_div()
1461 (pfat_table->main_ant_sum[i] / pfat_table->main_ant_cnt[i]) : 0; in rtl88e_dm_hw_ant_div()
1462 aux_rssi = (pfat_table->aux_ant_cnt[i] != 0) ? in rtl88e_dm_hw_ant_div()
1463 (pfat_table->aux_ant_sum[i] / pfat_table->aux_ant_cnt[i]) : 0; in rtl88e_dm_hw_ant_div()
1482 if ((pfat_table->rx_idle_ant == MAIN_ANT) && (main_rssi == 0)) in rtl88e_dm_hw_ant_div()
1484 else if ((pfat_table->rx_idle_ant == AUX_ANT) && (aux_rssi == 0)) in rtl88e_dm_hw_ant_div()
1500 main_rssi = (pfat_table->main_ant_cnt[i] != 0) ? in rtl88e_dm_hw_ant_div()
1502 pfat_table->main_ant_cnt[i]) : 0; in rtl88e_dm_hw_ant_div()
1503 aux_rssi = (pfat_table->aux_ant_cnt[i] != 0) ? in rtl88e_dm_hw_ant_div()
1505 pfat_table->aux_ant_cnt[i]) : 0; in rtl88e_dm_hw_ant_div()
1519 (main_rssi == 0)) in rtl88e_dm_hw_ant_div()
1522 (aux_rssi == 0)) in rtl88e_dm_hw_ant_div()
1537 for (i = 0; i < ASSOCIATE_ENTRY_NUM; i++) { in rtl88e_dm_hw_ant_div()
1538 pfat_table->main_ant_sum[i] = 0; in rtl88e_dm_hw_ant_div()
1539 pfat_table->aux_ant_sum[i] = 0; in rtl88e_dm_hw_ant_div()
1540 pfat_table->main_ant_cnt[i] = 0; in rtl88e_dm_hw_ant_div()
1541 pfat_table->aux_ant_cnt[i] = 0; in rtl88e_dm_hw_ant_div()
1557 u32 value32, i, j = 0; in rtl88e_set_next_mac_address_target()
1560 for (i = 0; i < ASSOCIATE_ENTRY_NUM; i++) { in rtl88e_set_next_mac_address_target()
1562 pfat_table->train_idx = 0; in rtl88e_set_next_mac_address_target()
1566 if (pfat_table->train_idx == 0) { in rtl88e_set_next_mac_address_target()
1575 mac->mac_addr[0]; in rtl88e_set_next_mac_address_target()
1599 drv_priv->mac_addr[0]; in rtl88e_set_next_mac_address_target()
1619 u32 i, max_rssi = 0; in rtl88e_dm_fast_ant_training()
1624 for (i = 0; i < 7; i++) { in rtl88e_dm_fast_ant_training()
1625 if (pfat_table->ant_cnt[i] == 0) { in rtl88e_dm_fast_ant_training()
1626 pfat_table->ant_ave[i] = 0; in rtl88e_dm_fast_ant_training()
1642 BIT(16), 0); in rtl88e_dm_fast_ant_training()
1643 rtl_set_bbreg(hw, DM_REG_IGI_A_11N, BIT(7), 0); in rtl88e_dm_fast_ant_training()
1646 BIT(16), 0); in rtl88e_dm_fast_ant_training()
1653 target_ant & BIT(0); in rtl88e_dm_fast_ant_training()
1659 if (target_ant == 0) in rtl88e_dm_fast_ant_training()
1660 rtl_set_bbreg(hw, DM_REG_IGI_A_11N, BIT(7), 0); in rtl88e_dm_fast_ant_training()
1663 for (i = 0; i < 7; i++) { in rtl88e_dm_fast_ant_training()
1664 pfat_table->ant_sum[i] = 0; in rtl88e_dm_fast_ant_training()
1665 pfat_table->ant_cnt[i] = 0; in rtl88e_dm_fast_ant_training()
1706 rtl_set_bbreg(hw, DM_REG_IGI_A_11N, BIT(7), 0); in rtl88e_dm_antenna_diversity()
1708 BIT(15), 0); in rtl88e_dm_antenna_diversity()
1711 BIT(21), 0); in rtl88e_dm_antenna_diversity()
1743 u32 cur_igvalue = rtl_get_bbreg(hw, ROFDM0_XAAGCCORE1, 0x7f); in rtl88e_dm_init()