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 */
138 unsigned long flag = 0; in rtl92d_dm_false_alarm_counter_statistics()
145 falsealm_cnt->cnt_fast_fsync_fail = (ret_value & 0xffff); in rtl92d_dm_false_alarm_counter_statistics()
146 falsealm_cnt->cnt_sb_search_fail = ((ret_value & 0xffff0000) >> 16); in rtl92d_dm_false_alarm_counter_statistics()
148 falsealm_cnt->cnt_parity_fail = ((ret_value & 0xffff0000) >> 16); in rtl92d_dm_false_alarm_counter_statistics()
150 falsealm_cnt->cnt_rate_illegal = (ret_value & 0xffff); in rtl92d_dm_false_alarm_counter_statistics()
151 falsealm_cnt->cnt_crc8_fail = ((ret_value & 0xffff0000) >> 16); in rtl92d_dm_false_alarm_counter_statistics()
153 falsealm_cnt->cnt_mcs_fail = (ret_value & 0xffff); in rtl92d_dm_false_alarm_counter_statistics()
167 falsealm_cnt->cnt_cck_fail += (ret_value & 0xff) << 8; in rtl92d_dm_false_alarm_counter_statistics()
170 falsealm_cnt->cnt_cck_fail = 0; in rtl92d_dm_false_alarm_counter_statistics()
182 rtl_set_bbreg(hw, ROFDM1_LSTF, 0x08000000, 1); in rtl92d_dm_false_alarm_counter_statistics()
184 rtl_set_bbreg(hw, ROFDM1_LSTF, 0x08000000, 0); in rtl92d_dm_false_alarm_counter_statistics()
186 rtl_set_bbreg(hw, ROFDM0_LSTF, BIT(31), 0); in rtl92d_dm_false_alarm_counter_statistics()
188 rtl_set_bbreg(hw, ROFDM1_LSTF, BIT(31), 0); in rtl92d_dm_false_alarm_counter_statistics()
192 rtl_set_bbreg(hw, RCCK0_FALSEALARMREPORT, 0x0000c000, 0); in rtl92d_dm_false_alarm_counter_statistics()
194 rtl_set_bbreg(hw, RCCK0_FALSEALARMREPORT, 0x0000c000, 2); in rtl92d_dm_false_alarm_counter_statistics()
222 (rtlpriv->dm.UNDEC_SM_PWDB == 0)) { in rtl92d_dm_find_minimum_rssi()
223 de_digtable->min_undec_pwdb_for_dm = 0; in rtl92d_dm_find_minimum_rssi()
233 "AP Client PWDB = 0x%lx\n", in rtl92d_dm_find_minimum_rssi()
239 "STA Default Port PWDB = 0x%x\n", in rtl92d_dm_find_minimum_rssi()
245 "AP Ext Port or disconnect PWDB = 0x%x\n", in rtl92d_dm_find_minimum_rssi()
257 unsigned long flag = 0; in rtl92d_dm_cck_packet_detection_thresh()
281 rtl_set_bbreg(hw, RCCK0_CCA, MASKBYTE2, 0x83); in rtl92d_dm_cck_packet_detection_thresh()
285 rtl_set_bbreg(hw, RCCK0_CCA, MASKBYTE2, 0xcd); in rtl92d_dm_cck_packet_detection_thresh()
307 "cur_igvalue = 0x%x, pre_igvalue = 0x%x, back_val = %d\n", in rtl92d_dm_write_dig()
312 de_digtable->pre_igvalue = 0x17; in rtl92d_dm_write_dig()
316 rtl_set_bbreg(hw, ROFDM0_XAAGCCORE1, 0x7f, in rtl92d_dm_write_dig()
318 rtl_set_bbreg(hw, ROFDM0_XBAGCCORE1, 0x7f, in rtl92d_dm_write_dig()
333 rtl_write_byte(rtlpriv, REG_EARLY_MODE_CONTROL, 0x00); in rtl92d_early_mode_enabled()
338 rtl_write_byte(rtlpriv, REG_EARLY_MODE_CONTROL, 0x0f); in rtl92d_early_mode_enabled()
342 } else if (!(rtl_read_byte(rtlpriv, REG_EARLY_MODE_CONTROL) & 0xf)) { in rtl92d_early_mode_enabled()
343 rtl_write_byte(rtlpriv, REG_EARLY_MODE_CONTROL, 0x0f); in rtl92d_early_mode_enabled()
385 value_igi += 0; in rtl92d_dm_dig()
417 if (de_digtable->recover_cnt != 0) { in rtl92d_dm_dig()
420 if (de_digtable->large_fa_hit == 0) { in rtl92d_dm_dig()
434 de_digtable->large_fa_hit = 0; in rtl92d_dm_dig()
479 (rtlpriv->dm.UNDEC_SM_PWDB == 0)) { in rtl92d_dm_dynamic_txpower()
491 "IBSS Client PWDB = 0x%lx\n", in rtl92d_dm_dynamic_txpower()
497 "STA Default Port PWDB = 0x%lx\n", in rtl92d_dm_dynamic_txpower()
505 "AP Ext Port PWDB = 0x%lx\n", in rtl92d_dm_dynamic_txpower()
509 if (undec_sm_pwdb >= 0x33) { in rtl92d_dm_dynamic_txpower()
513 "5G:TxHighPwrLevel_Level2 (TxPwr=0x0)\n"); in rtl92d_dm_dynamic_txpower()
514 } else if ((undec_sm_pwdb < 0x33) in rtl92d_dm_dynamic_txpower()
515 && (undec_sm_pwdb >= 0x2b)) { in rtl92d_dm_dynamic_txpower()
519 "5G:TxHighPwrLevel_Level1 (TxPwr=0x10)\n"); in rtl92d_dm_dynamic_txpower()
520 } else if (undec_sm_pwdb < 0x2b) { in rtl92d_dm_dynamic_txpower()
532 "TXHIGHPWRLEVEL_LEVEL1 (TxPwr=0x0)\n"); in rtl92d_dm_dynamic_txpower()
542 "TXHIGHPWRLEVEL_LEVEL1 (TxPwr=0x10)\n"); in rtl92d_dm_dynamic_txpower()
572 temp |= 0x100; in rtl92d_dm_pwdb_monitor()
574 * default macid is 0 ,max macid is 1 */ in rtl92d_dm_pwdb_monitor()
577 rtl_write_byte(rtlpriv, 0x4fe, in rtl92d_dm_pwdb_monitor()
599 u32 edca_be_ul = 0x5ea42b; in rtl92d_dm_check_edca_turbo()
600 u32 edca_be_dl = 0x5ea42b; in rtl92d_dm_check_edca_turbo()
613 /* Force TxOP limit to 0x005e for UL. */ in rtl92d_dm_check_edca_turbo()
614 if (!(edca_be_ul & 0xffff0000)) in rtl92d_dm_check_edca_turbo()
615 edca_be_ul |= 0x005e0000; in rtl92d_dm_check_edca_turbo()
616 /* Force TxOP limit to 0x005e for DL. */ in rtl92d_dm_check_edca_turbo()
617 if (!(edca_be_dl & 0xffff0000)) in rtl92d_dm_check_edca_turbo()
618 edca_be_dl |= 0x005e0000; in rtl92d_dm_check_edca_turbo()
660 0x0f, 0x0f, 0x0d, 0x0c, 0x0b, in rtl92d_dm_rxgain_tracking_thermalmeter()
661 0x0a, 0x09, 0x08, 0x07, 0x06, in rtl92d_dm_rxgain_tracking_thermalmeter()
662 0x05, 0x04, 0x04, 0x03, 0x02 in rtl92d_dm_rxgain_tracking_thermalmeter()
672 rtl_set_rfreg(hw, i, 0x3C, RFREG_OFFSET_MASK, in rtl92d_dm_rxgain_tracking_thermalmeter()
673 (rtlpriv->phy.reg_rf3c[i] & (~(0xF000))) | u4tmp); in rtl92d_dm_rxgain_tracking_thermalmeter()
681 unsigned long flag = 0; in rtl92d_bandtype_2_4G()
685 /* Query CCK default setting From 0xa24 */ in rtl92d_bandtype_2_4G()
690 for (i = 0; i < CCK_TABLE_LENGTH; i++) { in rtl92d_bandtype_2_4G()
699 "Initial reg0x%x = 0x%lx, cck_index = 0x%x, ch14 %d\n", in rtl92d_bandtype_2_4G()
718 u8 offset = 0; in rtl92d_bandtype_5G()
720 for (i = 0; i < rf; i++) { in rtl92d_bandtype_5G()
730 offset = 0; in rtl92d_bandtype_5G()
738 offset = 0; in rtl92d_bandtype_5G()
757 if (*internal_pa && thermalvalue > 0x12) { in rtl92d_bandtype_5G()
777 u8 offset, thermalvalue_avg_count = 0; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
778 u32 thermalvalue_avg = 0; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
780 long ele_a = 0, ele_d, temp_cck, val_x, value32; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
781 long val_y, ele_c = 0; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
783 s8 cck_index = 0; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
784 u8 ofdm_index_old[2] = {0, 0}; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
785 s8 cck_index_old = 0; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
793 /* 5G, path A/MAC 0, decrease power */ in rtl92d_dm_txpower_tracking_callback_thermalmeter()
794 {0, 1, 3, 6, 8, 9, 11, 13, 14, 16, 17, 18, 18}, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
795 /* 5G, path A/MAC 0, increase power */ in rtl92d_dm_txpower_tracking_callback_thermalmeter()
796 {0, 2, 4, 5, 7, 10, 12, 14, 16, 18, 18, 18, 18}, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
798 {0, 2, 3, 6, 8, 9, 11, 13, 14, 16, 17, 18, 18}, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
800 {0, 2, 4, 5, 7, 10, 13, 16, 16, 18, 18, 18, 18}, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
802 {0, 1, 2, 3, 4, 5, 6, 7, 7, 8, 9, 10, 10}, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
805 /* 5G, path A/MAC 0, ch36-64, decrease power */ in rtl92d_dm_txpower_tracking_callback_thermalmeter()
806 {0, 1, 2, 4, 6, 7, 9, 11, 12, 14, 15, 16, 16}, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
807 /* 5G, path A/MAC 0, ch36-64, increase power */ in rtl92d_dm_txpower_tracking_callback_thermalmeter()
808 {0, 2, 4, 5, 7, 10, 12, 14, 16, 18, 18, 18, 18}, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
809 /* 5G, path A/MAC 0, ch100-165, decrease power */ in rtl92d_dm_txpower_tracking_callback_thermalmeter()
810 {0, 1, 2, 3, 5, 6, 8, 10, 11, 13, 14, 15, 15}, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
811 /* 5G, path A/MAC 0, ch100-165, increase power */ in rtl92d_dm_txpower_tracking_callback_thermalmeter()
812 {0, 2, 4, 5, 7, 10, 12, 14, 16, 18, 18, 18, 18}, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
814 {0, 1, 2, 4, 6, 7, 9, 11, 12, 14, 15, 16, 16}, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
816 {0, 2, 4, 5, 7, 10, 13, 16, 16, 18, 18, 18, 18}, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
818 {0, 1, 2, 3, 5, 6, 8, 9, 10, 12, 13, 14, 14}, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
820 {0, 2, 4, 5, 7, 10, 13, 16, 16, 18, 18, 18, 18}, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
825 thermalvalue = (u8) rtl_get_rfreg(hw, RF90_PATH_A, RF_T_METER, 0xf800); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
827 "Readback Thermal Meter = 0x%x pre thermal meter 0x%x eeprom_thermalmeter 0x%x\n", in rtl92d_dm_txpower_tracking_callback_thermalmeter()
845 for (i = 0; i < OFDM_TABLE_SIZE_92D; i++) { in rtl92d_dm_txpower_tracking_callback_thermalmeter()
847 ofdm_index_old[0] = (u8)i; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
850 "Initial pathA ele_d reg0x%x = 0x%lx, ofdm_index=0x%x\n", in rtl92d_dm_txpower_tracking_callback_thermalmeter()
852 ele_d, ofdm_index_old[0]); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
859 for (i = 0; i < OFDM_TABLE_SIZE_92D; i++) { in rtl92d_dm_txpower_tracking_callback_thermalmeter()
865 "Initial pathB ele_d reg 0x%x = 0x%lx, ofdm_index = 0x%x\n", in rtl92d_dm_txpower_tracking_callback_thermalmeter()
875 temp_cck = 0x090e1317; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
884 for (i = 0; i < rf; i++) in rtl92d_dm_txpower_tracking_callback_thermalmeter()
889 for (i = 0; i < rf; i++) in rtl92d_dm_txpower_tracking_callback_thermalmeter()
896 for (i = 0; i < rf; i++) in rtl92d_dm_txpower_tracking_callback_thermalmeter()
903 rtlpriv->dm.thermalvalue_avg_index = 0; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
904 for (i = 0; i < AVG_THERMAL_NUM; i++) { in rtl92d_dm_txpower_tracking_callback_thermalmeter()
938 …"Readback Thermal Meter = 0x%x pre thermal meter 0x%x eeprom_thermalmeter 0x%x delta 0x%x delta_lc… in rtl92d_dm_txpower_tracking_callback_thermalmeter()
942 if (delta_lck > rtlefuse->delta_lck && rtlefuse->delta_lck != 0) { in rtl92d_dm_txpower_tracking_callback_thermalmeter()
947 if (delta == 0 || !rtlpriv->dm.txpower_track_control) in rtl92d_dm_txpower_tracking_callback_thermalmeter()
961 for (i = 0; i < rf; i++) in rtl92d_dm_txpower_tracking_callback_thermalmeter()
965 for (i = 0; i < rf; i++) in rtl92d_dm_txpower_tracking_callback_thermalmeter()
978 "temp OFDM_A_index=0x%x, OFDM_B_index = 0x%x,cck_index=0x%x\n", in rtl92d_dm_txpower_tracking_callback_thermalmeter()
979 rtlpriv->dm.ofdm_index[0], in rtl92d_dm_txpower_tracking_callback_thermalmeter()
984 "temp OFDM_A_index=0x%x,cck_index = 0x%x\n", in rtl92d_dm_txpower_tracking_callback_thermalmeter()
985 rtlpriv->dm.ofdm_index[0], in rtl92d_dm_txpower_tracking_callback_thermalmeter()
988 for (i = 0; i < rf; i++) { in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1002 } else if (cck_index < 0) { in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1003 cck_index = 0; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1008 "new OFDM_A_index=0x%x, OFDM_B_index = 0x%x, cck_index=0x%x\n", in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1009 ofdm_index[0], ofdm_index[1], in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1013 "new OFDM_A_index=0x%x,cck_index = 0x%x\n", in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1014 ofdm_index[0], cck_index); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1016 ele_d = (ofdmswing_table[ofdm_index[0]] & 0xFFC00000) >> 22; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1017 val_x = rtlphy->iqk_matrix[indexforchannel].value[0][0]; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1018 val_y = rtlphy->iqk_matrix[indexforchannel].value[0][1]; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1019 if (val_x != 0) { in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1020 if ((val_x & 0x00000200) != 0) in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1021 val_x = val_x | 0xFFFFFC00; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1022 ele_a = ((val_x * ele_d) >> 8) & 0x000003FF; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1025 if ((val_y & 0x00000200) != 0) in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1026 val_y = val_y | 0xFFFFFC00; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1027 ele_c = ((val_y * ele_d) >> 8) & 0x000003FF; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1030 * regC94, element B is always 0 in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1032 value32 = (ele_d << 22) | ((ele_c & 0x3F) << 16) | ele_a; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1036 value32 = (ele_c & 0x000003C0) >> 6; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1040 value32 = ((val_x * ele_d) >> 7) & 0x01; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1047 ofdmswing_table[(u8)ofdm_index[0]]); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1049 0x00); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1051 BIT(24), 0x00); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1055 …cking for interface %d path A: X = 0x%lx, Y = 0x%lx ele_A = 0x%lx ele_C = 0x%lx ele_D = 0x%lx 0xe9… in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1062 if (cck_index < 0) in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1063 cck_index = 0; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1067 rtl_write_byte(rtlpriv, 0xa22, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1068 cckswing_table_ch1ch13[cck_index][0]); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1069 rtl_write_byte(rtlpriv, 0xa23, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1071 rtl_write_byte(rtlpriv, 0xa24, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1073 rtl_write_byte(rtlpriv, 0xa25, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1075 rtl_write_byte(rtlpriv, 0xa26, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1077 rtl_write_byte(rtlpriv, 0xa27, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1079 rtl_write_byte(rtlpriv, 0xa28, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1081 rtl_write_byte(rtlpriv, 0xa29, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1084 rtl_write_byte(rtlpriv, 0xa22, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1085 cckswing_table_ch14[cck_index][0]); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1086 rtl_write_byte(rtlpriv, 0xa23, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1088 rtl_write_byte(rtlpriv, 0xa24, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1090 rtl_write_byte(rtlpriv, 0xa25, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1092 rtl_write_byte(rtlpriv, 0xa26, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1094 rtl_write_byte(rtlpriv, 0xa27, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1096 rtl_write_byte(rtlpriv, 0xa28, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1098 rtl_write_byte(rtlpriv, 0xa29, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1103 ele_d = (ofdmswing_table[ofdm_index[1]] & 0xFFC00000) >> 22; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1104 val_x = rtlphy->iqk_matrix[indexforchannel].value[0][4]; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1105 val_y = rtlphy->iqk_matrix[indexforchannel].value[0][5]; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1106 if (val_x != 0) { in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1107 if ((val_x & 0x00000200) != 0) in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1109 val_x = val_x | 0xFFFFFC00; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1110 ele_a = ((val_x * ele_d) >> 8) & 0x000003FF; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1112 if ((val_y & 0x00000200) != 0) in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1113 val_y = val_y | 0xFFFFFC00; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1114 ele_c = ((val_y * ele_d) >> 8) & 0x00003FF; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1116 * and regC9C, element B is always 0 in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1118 value32 = (ele_d << 22) | ((ele_c & 0x3F) << 16) | ele_a; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1122 value32 = (ele_c & 0x000003C0) >> 6; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1125 value32 = ((val_x * ele_d) >> 7) & 0x01; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1134 MASKH4BITS, 0x00); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1136 BIT(28), 0x00); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1139 …"TxPwrTracking path B: X = 0x%lx, Y = 0x%lx ele_A = 0x%lx ele_C = 0x%lx ele_D = 0x%lx 0xeb4 = 0x%l… in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1144 "TxPwrTracking 0xc80 = 0x%x, 0xc94 = 0x%x RF 0x24 = 0x%x\n", in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1145 rtl_get_bbreg(hw, 0xc80, MASKDWORD), in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1146 rtl_get_bbreg(hw, 0xc94, MASKDWORD), in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1147 rtl_get_rfreg(hw, RF90_PATH_A, 0x24, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1151 if (delta_iqk > rtlefuse->delta_iqk && rtlefuse->delta_iqk != 0) { in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1156 if (delta_rxgain > 0 && rtlhal->current_bandtype == BAND_ON_5G && in rtl92d_dm_txpower_tracking_callback_thermalmeter()
1189 BIT(16), 0x03); in rtl92d_dm_check_txpower_tracking_thermal_meter()
1198 rtlpriv->dm.tm_trigger = 0; in rtl92d_dm_check_txpower_tracking_thermal_meter()
1220 rtl_dm_diginit(hw, 0x20); in rtl92d_dm_init()