Lines Matching +full:0 +full:x18000060
11 #define BT_RSSI_STATE_NORMAL_POWER BIT(0)
16 #define BT_MASK 0x00ffffff
26 0x7f8001fe,
27 0x788001e2,
28 0x71c001c7,
29 0x6b8001ae,
30 0x65400195,
31 0x5fc0017f,
32 0x5a400169,
33 0x55400155,
34 0x50800142,
35 0x4c000130,
36 0x47c0011f,
37 0x43c0010f,
38 0x40000100,
39 0x3c8000f2,
40 0x390000e4,
41 0x35c000d7,
42 0x32c000cb,
43 0x300000c0,
44 0x2d4000b5,
45 0x2ac000ab,
46 0x288000a2,
47 0x26000098,
48 0x24000090,
49 0x22000088,
50 0x20000080,
51 0x1e400079,
52 0x1c800072,
53 0x1b00006c,
54 0x19800066,
55 0x18000060,
56 0x16c0005b,
57 0x15800056,
58 0x14400051,
59 0x1300004c,
60 0x12000048,
61 0x11000044,
62 0x10000040,
66 {0x36, 0x35, 0x2e, 0x25, 0x1c, 0x12, 0x09, 0x04},
67 {0x33, 0x32, 0x2b, 0x23, 0x1a, 0x11, 0x08, 0x04},
68 {0x30, 0x2f, 0x29, 0x21, 0x19, 0x10, 0x08, 0x03},
69 {0x2d, 0x2d, 0x27, 0x1f, 0x18, 0x0f, 0x08, 0x03},
70 {0x2b, 0x2a, 0x25, 0x1e, 0x16, 0x0e, 0x07, 0x03},
71 {0x28, 0x28, 0x22, 0x1c, 0x15, 0x0d, 0x07, 0x03},
72 {0x26, 0x25, 0x21, 0x1b, 0x14, 0x0d, 0x06, 0x03},
73 {0x24, 0x23, 0x1f, 0x19, 0x13, 0x0c, 0x06, 0x03},
74 {0x22, 0x21, 0x1d, 0x18, 0x11, 0x0b, 0x06, 0x02},
75 {0x20, 0x20, 0x1b, 0x16, 0x11, 0x08, 0x05, 0x02},
76 {0x1f, 0x1e, 0x1a, 0x15, 0x10, 0x0a, 0x05, 0x02},
77 {0x1d, 0x1c, 0x18, 0x14, 0x0f, 0x0a, 0x05, 0x02},
78 {0x1b, 0x1a, 0x17, 0x13, 0x0e, 0x09, 0x04, 0x02},
79 {0x1a, 0x19, 0x16, 0x12, 0x0d, 0x09, 0x04, 0x02},
80 {0x18, 0x17, 0x15, 0x11, 0x0c, 0x08, 0x04, 0x02},
81 {0x17, 0x16, 0x13, 0x10, 0x0c, 0x08, 0x04, 0x02},
82 {0x16, 0x15, 0x12, 0x0f, 0x0b, 0x07, 0x04, 0x01},
83 {0x14, 0x14, 0x11, 0x0e, 0x0b, 0x07, 0x03, 0x02},
84 {0x13, 0x13, 0x10, 0x0d, 0x0a, 0x06, 0x03, 0x01},
85 {0x12, 0x12, 0x0f, 0x0c, 0x09, 0x06, 0x03, 0x01},
86 {0x11, 0x11, 0x0f, 0x0c, 0x09, 0x06, 0x03, 0x01},
87 {0x10, 0x10, 0x0e, 0x0b, 0x08, 0x05, 0x03, 0x01},
88 {0x0f, 0x0f, 0x0d, 0x0b, 0x08, 0x05, 0x03, 0x01},
89 {0x0e, 0x0e, 0x0c, 0x0a, 0x08, 0x05, 0x02, 0x01},
90 {0x0d, 0x0d, 0x0c, 0x0a, 0x07, 0x05, 0x02, 0x01},
91 {0x0d, 0x0c, 0x0b, 0x09, 0x07, 0x04, 0x02, 0x01},
92 {0x0c, 0x0c, 0x0a, 0x09, 0x06, 0x04, 0x02, 0x01},
93 {0x0b, 0x0b, 0x0a, 0x08, 0x06, 0x04, 0x02, 0x01},
94 {0x0b, 0x0a, 0x09, 0x08, 0x06, 0x04, 0x02, 0x01},
95 {0x0a, 0x0a, 0x09, 0x07, 0x05, 0x03, 0x02, 0x01},
96 {0x0a, 0x09, 0x08, 0x07, 0x05, 0x03, 0x02, 0x01},
97 {0x09, 0x09, 0x08, 0x06, 0x05, 0x03, 0x01, 0x01},
98 {0x09, 0x08, 0x07, 0x06, 0x04, 0x03, 0x01, 0x01}
102 {0x36, 0x35, 0x2e, 0x1b, 0x00, 0x00, 0x00, 0x00},
103 {0x33, 0x32, 0x2b, 0x19, 0x00, 0x00, 0x00, 0x00},
104 {0x30, 0x2f, 0x29, 0x18, 0x00, 0x00, 0x00, 0x00},
105 {0x2d, 0x2d, 0x17, 0x17, 0x00, 0x00, 0x00, 0x00},
106 {0x2b, 0x2a, 0x25, 0x15, 0x00, 0x00, 0x00, 0x00},
107 {0x28, 0x28, 0x24, 0x14, 0x00, 0x00, 0x00, 0x00},
108 {0x26, 0x25, 0x21, 0x13, 0x00, 0x00, 0x00, 0x00},
109 {0x24, 0x23, 0x1f, 0x12, 0x00, 0x00, 0x00, 0x00},
110 {0x22, 0x21, 0x1d, 0x11, 0x00, 0x00, 0x00, 0x00},
111 {0x20, 0x20, 0x1b, 0x10, 0x00, 0x00, 0x00, 0x00},
112 {0x1f, 0x1e, 0x1a, 0x0f, 0x00, 0x00, 0x00, 0x00},
113 {0x1d, 0x1c, 0x18, 0x0e, 0x00, 0x00, 0x00, 0x00},
114 {0x1b, 0x1a, 0x17, 0x0e, 0x00, 0x00, 0x00, 0x00},
115 {0x1a, 0x19, 0x16, 0x0d, 0x00, 0x00, 0x00, 0x00},
116 {0x18, 0x17, 0x15, 0x0c, 0x00, 0x00, 0x00, 0x00},
117 {0x17, 0x16, 0x13, 0x0b, 0x00, 0x00, 0x00, 0x00},
118 {0x16, 0x15, 0x12, 0x0b, 0x00, 0x00, 0x00, 0x00},
119 {0x14, 0x14, 0x11, 0x0a, 0x00, 0x00, 0x00, 0x00},
120 {0x13, 0x13, 0x10, 0x0a, 0x00, 0x00, 0x00, 0x00},
121 {0x12, 0x12, 0x0f, 0x09, 0x00, 0x00, 0x00, 0x00},
122 {0x11, 0x11, 0x0f, 0x09, 0x00, 0x00, 0x00, 0x00},
123 {0x10, 0x10, 0x0e, 0x08, 0x00, 0x00, 0x00, 0x00},
124 {0x0f, 0x0f, 0x0d, 0x08, 0x00, 0x00, 0x00, 0x00},
125 {0x0e, 0x0e, 0x0c, 0x07, 0x00, 0x00, 0x00, 0x00},
126 {0x0d, 0x0d, 0x0c, 0x07, 0x00, 0x00, 0x00, 0x00},
127 {0x0d, 0x0c, 0x0b, 0x06, 0x00, 0x00, 0x00, 0x00},
128 {0x0c, 0x0c, 0x0a, 0x06, 0x00, 0x00, 0x00, 0x00},
129 {0x0b, 0x0b, 0x0a, 0x06, 0x00, 0x00, 0x00, 0x00},
130 {0x0b, 0x0a, 0x09, 0x05, 0x00, 0x00, 0x00, 0x00},
131 {0x0a, 0x0a, 0x09, 0x05, 0x00, 0x00, 0x00, 0x00},
132 {0x0a, 0x09, 0x08, 0x05, 0x00, 0x00, 0x00, 0x00},
133 {0x09, 0x09, 0x08, 0x05, 0x00, 0x00, 0x00, 0x00},
134 {0x09, 0x08, 0x07, 0x04, 0x00, 0x00, 0x00, 0x00}
137 static u32 power_index_reg[6] = {0xc90, 0xc91, 0xc92, 0xc98, 0xc99, 0xc9a};
144 for (index = 0; index < 6; index++) in dm_restorepowerindex()
155 for (index = 0; index < 6; index++) in dm_writepowerindex()
166 for (index = 0; index < 6; index++) { in dm_savepowerindex()
177 long rssi_val_min = 0; in rtl92c_dm_initial_gain_min_pwdb()
181 if (rtlpriv->dm.entry_min_undec_sm_pwdb != 0) in rtl92c_dm_initial_gain_min_pwdb()
208 falsealm_cnt->cnt_parity_fail = ((ret_value & 0xffff0000) >> 16); in rtl92c_dm_false_alarm_counter_statistics()
211 falsealm_cnt->cnt_rate_illegal = (ret_value & 0xffff); in rtl92c_dm_false_alarm_counter_statistics()
212 falsealm_cnt->cnt_crc8_fail = ((ret_value & 0xffff0000) >> 16); in rtl92c_dm_false_alarm_counter_statistics()
215 falsealm_cnt->cnt_mcs_fail = (ret_value & 0xffff); in rtl92c_dm_false_alarm_counter_statistics()
218 falsealm_cnt->cnt_fast_fsync_fail = (ret_value & 0xffff); in rtl92c_dm_false_alarm_counter_statistics()
219 falsealm_cnt->cnt_sb_search_fail = ((ret_value & 0xffff0000) >> 16); in rtl92c_dm_false_alarm_counter_statistics()
233 falsealm_cnt->cnt_cck_fail += (ret_value & 0xff) << 8; in rtl92c_dm_false_alarm_counter_statistics()
240 rtl_set_bbreg(hw, ROFDM1_LSTF, 0x08000000, 1); in rtl92c_dm_false_alarm_counter_statistics()
241 rtl_set_bbreg(hw, ROFDM1_LSTF, 0x08000000, 0); in rtl92c_dm_false_alarm_counter_statistics()
242 rtl_set_bbreg(hw, RCCK0_FALSEALARMREPORT, 0x0000c000, 0); in rtl92c_dm_false_alarm_counter_statistics()
243 rtl_set_bbreg(hw, RCCK0_FALSEALARMREPORT, 0x0000c000, 2); in rtl92c_dm_false_alarm_counter_statistics()
266 value_igi += 0; in rtl92c_dm_ctrl_initgain_by_fa()
308 if (digtable->recover_cnt != 0) { in rtl92c_dm_ctrl_initgain_by_rssi()
311 if (digtable->large_fa_hit == 0) { in rtl92c_dm_ctrl_initgain_by_rssi()
320 digtable->large_fa_hit = 0; in rtl92c_dm_ctrl_initgain_by_rssi()
325 isbt = rtl_read_byte(rtlpriv, 0x4fd) & 0x01; in rtl92c_dm_ctrl_initgain_by_rssi()
386 dm_digtable->cur_igvalue = 0x20; in rtl92c_dm_initial_gain_multi_sta()
396 dm_digtable->cur_igvalue = 0x20; in rtl92c_dm_initial_gain_multi_sta()
407 dm_digtable->cur_igvalue = 0x20; in rtl92c_dm_initial_gain_multi_sta()
436 dm_digtable->rssi_val_min = 0; in rtl92c_dm_initial_gain_sta()
439 dm_digtable->cur_igvalue = 0x20; in rtl92c_dm_initial_gain_sta()
440 dm_digtable->pre_igvalue = 0; in rtl92c_dm_initial_gain_sta()
477 rtl_set_bbreg(hw, RCCK0_CCA, MASKBYTE2, 0x83); in rtl92c_dm_cck_packet_detection_thresh()
479 rtl_set_bbreg(hw, RCCK0_CCA, MASKBYTE2, 0xcd); in rtl92c_dm_cck_packet_detection_thresh()
525 rtlpriv->rtlhal.board_type & 0x1) { in rtl92c_dm_init_dynamic_txpower()
541 "cur_igvalue = 0x%x, pre_igvalue = 0x%x, back_val = %d\n", in rtl92c_dm_write_dig()
547 dm_digtable->pre_igvalue = 0x17; in rtl92c_dm_write_dig()
555 rtl_set_bbreg(hw, ROFDM0_XAAGCCORE1, 0x7f, in rtl92c_dm_write_dig()
557 rtl_set_bbreg(hw, ROFDM0_XBAGCCORE1, 0x7f, in rtl92c_dm_write_dig()
563 "dig values 0x%x 0x%x 0x%x 0x%x 0x%x 0x%x 0x%x 0x%x\n", in rtl92c_dm_write_dig()
575 long tmpentry_max_pwdb = 0, tmpentry_min_pwdb = 0xff; in rtl92c_dm_pwdb_monitor()
585 if (tmpentry_max_pwdb != 0) in rtl92c_dm_pwdb_monitor()
588 rtlpriv->dm.entry_max_undec_sm_pwdb = 0; in rtl92c_dm_pwdb_monitor()
590 if (tmpentry_min_pwdb != 0xff) in rtl92c_dm_pwdb_monitor()
593 rtlpriv->dm.entry_min_undec_sm_pwdb = 0; in rtl92c_dm_pwdb_monitor()
624 u64 cur_txok_cnt = 0; in rtl92c_dm_check_edca_turbo()
625 u64 cur_rxok_cnt = 0; in rtl92c_dm_check_edca_turbo()
626 u32 edca_be_ul = 0x5ea42b; in rtl92c_dm_check_edca_turbo()
627 u32 edca_be_dl = 0x5ea42b; in rtl92c_dm_check_edca_turbo()
637 if (rtlpriv->btcoexist.bt_edca_ul != 0) { in rtl92c_dm_check_edca_turbo()
642 if (rtlpriv->btcoexist.bt_edca_dl != 0) { in rtl92c_dm_check_edca_turbo()
653 if (!(edca_be_ul & 0xffff0000)) in rtl92c_dm_check_edca_turbo()
654 edca_be_ul |= 0x005e0000; in rtl92c_dm_check_edca_turbo()
656 if (!(edca_be_dl & 0xffff0000)) in rtl92c_dm_check_edca_turbo()
657 edca_be_dl |= 0x005e0000; in rtl92c_dm_check_edca_turbo()
707 long val_y, ele_c = 0; in rtl92c_dm_txpower_tracking_callback_thermalmeter()
708 u8 ofdm_index[2], ofdm_index_old[2] = {0, 0}, cck_index_old = 0; in rtl92c_dm_txpower_tracking_callback_thermalmeter()
709 s8 cck_index = 0; in rtl92c_dm_txpower_tracking_callback_thermalmeter()
712 s8 txpwr_level[3] = {0, 0, 0}; in rtl92c_dm_txpower_tracking_callback_thermalmeter()
719 thermalvalue = (u8) rtl_get_rfreg(hw, RF90_PATH_A, RF_T_METER, 0x1f); in rtl92c_dm_txpower_tracking_callback_thermalmeter()
722 "Readback Thermal Meter = 0x%x pre thermal meter 0x%x eeprom_thermalmeter 0x%x\n", in rtl92c_dm_txpower_tracking_callback_thermalmeter()
737 for (i = 0; i < OFDM_TABLE_LENGTH; i++) { in rtl92c_dm_txpower_tracking_callback_thermalmeter()
739 ofdm_index_old[0] = (u8) i; in rtl92c_dm_txpower_tracking_callback_thermalmeter()
742 "Initial pathA ele_d reg0x%x = 0x%lx, ofdm_index=0x%x\n", in rtl92c_dm_txpower_tracking_callback_thermalmeter()
744 ele_d, ofdm_index_old[0]); in rtl92c_dm_txpower_tracking_callback_thermalmeter()
753 for (i = 0; i < OFDM_TABLE_LENGTH; i++) { in rtl92c_dm_txpower_tracking_callback_thermalmeter()
759 "Initial pathB ele_d reg0x%x = 0x%lx, ofdm_index=0x%x\n", in rtl92c_dm_txpower_tracking_callback_thermalmeter()
770 for (i = 0; i < CCK_TABLE_LENGTH; i++) { in rtl92c_dm_txpower_tracking_callback_thermalmeter()
774 4) == 0) { in rtl92c_dm_txpower_tracking_callback_thermalmeter()
779 "Initial reg0x%x = 0x%lx, cck_index=0x%x, ch 14 %d\n", in rtl92c_dm_txpower_tracking_callback_thermalmeter()
789 4) == 0) { in rtl92c_dm_txpower_tracking_callback_thermalmeter()
794 "Initial reg0x%x = 0x%lx, cck_index=0x%x, ch14 %d\n", in rtl92c_dm_txpower_tracking_callback_thermalmeter()
808 for (i = 0; i < rf; i++) in rtl92c_dm_txpower_tracking_callback_thermalmeter()
827 …"Readback Thermal Meter = 0x%x pre thermal meter 0x%x eeprom_thermalmeter 0x%x delta 0x%x delta_lc… in rtl92c_dm_txpower_tracking_callback_thermalmeter()
837 if (delta > 0 && rtlpriv->dm.txpower_track_control) { in rtl92c_dm_txpower_tracking_callback_thermalmeter()
839 for (i = 0; i < rf; i++) in rtl92c_dm_txpower_tracking_callback_thermalmeter()
843 for (i = 0; i < rf; i++) in rtl92c_dm_txpower_tracking_callback_thermalmeter()
850 "temp OFDM_A_index=0x%x, OFDM_B_index=0x%x, cck_index=0x%x\n", in rtl92c_dm_txpower_tracking_callback_thermalmeter()
851 rtlpriv->dm.ofdm_index[0], in rtl92c_dm_txpower_tracking_callback_thermalmeter()
856 "temp OFDM_A_index=0x%x, cck_index=0x%x\n", in rtl92c_dm_txpower_tracking_callback_thermalmeter()
857 rtlpriv->dm.ofdm_index[0], in rtl92c_dm_txpower_tracking_callback_thermalmeter()
862 for (i = 0; i < rf; i++) in rtl92c_dm_txpower_tracking_callback_thermalmeter()
868 for (i = 0; i < rf; i++) in rtl92c_dm_txpower_tracking_callback_thermalmeter()
874 for (i = 0; i < rf; i++) { in rtl92c_dm_txpower_tracking_callback_thermalmeter()
875 if (txpwr_level[i] >= 0 && in rtl92c_dm_txpower_tracking_callback_thermalmeter()
907 if (txpwr_level[i] >= 0 && txpwr_level[i] <= 26) { in rtl92c_dm_txpower_tracking_callback_thermalmeter()
935 for (i = 0; i < rf; i++) { in rtl92c_dm_txpower_tracking_callback_thermalmeter()
945 else if (cck_index < 0) in rtl92c_dm_txpower_tracking_callback_thermalmeter()
946 cck_index = 0; in rtl92c_dm_txpower_tracking_callback_thermalmeter()
950 "new OFDM_A_index=0x%x, OFDM_B_index=0x%x, cck_index=0x%x\n", in rtl92c_dm_txpower_tracking_callback_thermalmeter()
951 ofdm_index[0], ofdm_index[1], in rtl92c_dm_txpower_tracking_callback_thermalmeter()
955 "new OFDM_A_index=0x%x, cck_index=0x%x\n", in rtl92c_dm_txpower_tracking_callback_thermalmeter()
956 ofdm_index[0], cck_index); in rtl92c_dm_txpower_tracking_callback_thermalmeter()
960 if (rtlpriv->dm.txpower_track_control && delta != 0) { in rtl92c_dm_txpower_tracking_callback_thermalmeter()
962 (ofdmswing_table[ofdm_index[0]] & 0xFFC00000) >> 22; in rtl92c_dm_txpower_tracking_callback_thermalmeter()
966 if (val_x != 0) { in rtl92c_dm_txpower_tracking_callback_thermalmeter()
967 if ((val_x & 0x00000200) != 0) in rtl92c_dm_txpower_tracking_callback_thermalmeter()
968 val_x = val_x | 0xFFFFFC00; in rtl92c_dm_txpower_tracking_callback_thermalmeter()
969 ele_a = ((val_x * ele_d) >> 8) & 0x000003FF; in rtl92c_dm_txpower_tracking_callback_thermalmeter()
971 if ((val_y & 0x00000200) != 0) in rtl92c_dm_txpower_tracking_callback_thermalmeter()
972 val_y = val_y | 0xFFFFFC00; in rtl92c_dm_txpower_tracking_callback_thermalmeter()
973 ele_c = ((val_y * ele_d) >> 8) & 0x000003FF; in rtl92c_dm_txpower_tracking_callback_thermalmeter()
976 ((ele_c & 0x3F) << 16) | ele_a; in rtl92c_dm_txpower_tracking_callback_thermalmeter()
981 value32 = (ele_c & 0x000003C0) >> 6; in rtl92c_dm_txpower_tracking_callback_thermalmeter()
985 value32 = ((val_x * ele_d) >> 7) & 0x01; in rtl92c_dm_txpower_tracking_callback_thermalmeter()
989 value32 = ((val_y * ele_d) >> 7) & 0x01; in rtl92c_dm_txpower_tracking_callback_thermalmeter()
995 ofdmswing_table[ofdm_index[0]]); in rtl92c_dm_txpower_tracking_callback_thermalmeter()
998 0x00); in rtl92c_dm_txpower_tracking_callback_thermalmeter()
1000 BIT(31) | BIT(29), 0x00); in rtl92c_dm_txpower_tracking_callback_thermalmeter()
1004 rtl_write_byte(rtlpriv, 0xa22, in rtl92c_dm_txpower_tracking_callback_thermalmeter()
1006 [0]); in rtl92c_dm_txpower_tracking_callback_thermalmeter()
1007 rtl_write_byte(rtlpriv, 0xa23, in rtl92c_dm_txpower_tracking_callback_thermalmeter()
1010 rtl_write_byte(rtlpriv, 0xa24, in rtl92c_dm_txpower_tracking_callback_thermalmeter()
1013 rtl_write_byte(rtlpriv, 0xa25, in rtl92c_dm_txpower_tracking_callback_thermalmeter()
1016 rtl_write_byte(rtlpriv, 0xa26, in rtl92c_dm_txpower_tracking_callback_thermalmeter()
1019 rtl_write_byte(rtlpriv, 0xa27, in rtl92c_dm_txpower_tracking_callback_thermalmeter()
1022 rtl_write_byte(rtlpriv, 0xa28, in rtl92c_dm_txpower_tracking_callback_thermalmeter()
1025 rtl_write_byte(rtlpriv, 0xa29, in rtl92c_dm_txpower_tracking_callback_thermalmeter()
1029 rtl_write_byte(rtlpriv, 0xa22, in rtl92c_dm_txpower_tracking_callback_thermalmeter()
1031 [0]); in rtl92c_dm_txpower_tracking_callback_thermalmeter()
1032 rtl_write_byte(rtlpriv, 0xa23, in rtl92c_dm_txpower_tracking_callback_thermalmeter()
1035 rtl_write_byte(rtlpriv, 0xa24, in rtl92c_dm_txpower_tracking_callback_thermalmeter()
1038 rtl_write_byte(rtlpriv, 0xa25, in rtl92c_dm_txpower_tracking_callback_thermalmeter()
1041 rtl_write_byte(rtlpriv, 0xa26, in rtl92c_dm_txpower_tracking_callback_thermalmeter()
1044 rtl_write_byte(rtlpriv, 0xa27, in rtl92c_dm_txpower_tracking_callback_thermalmeter()
1047 rtl_write_byte(rtlpriv, 0xa28, in rtl92c_dm_txpower_tracking_callback_thermalmeter()
1050 rtl_write_byte(rtlpriv, 0xa29, in rtl92c_dm_txpower_tracking_callback_thermalmeter()
1057 0xFFC00000) >> 22; in rtl92c_dm_txpower_tracking_callback_thermalmeter()
1062 if (val_x != 0) { in rtl92c_dm_txpower_tracking_callback_thermalmeter()
1063 if ((val_x & 0x00000200) != 0) in rtl92c_dm_txpower_tracking_callback_thermalmeter()
1064 val_x = val_x | 0xFFFFFC00; in rtl92c_dm_txpower_tracking_callback_thermalmeter()
1066 0x000003FF; in rtl92c_dm_txpower_tracking_callback_thermalmeter()
1068 if ((val_y & 0x00000200) != 0) in rtl92c_dm_txpower_tracking_callback_thermalmeter()
1069 val_y = val_y | 0xFFFFFC00; in rtl92c_dm_txpower_tracking_callback_thermalmeter()
1071 0x00003FF; in rtl92c_dm_txpower_tracking_callback_thermalmeter()
1074 ((ele_c & 0x3F) << 16) | ele_a; in rtl92c_dm_txpower_tracking_callback_thermalmeter()
1079 value32 = (ele_c & 0x000003C0) >> 6; in rtl92c_dm_txpower_tracking_callback_thermalmeter()
1083 value32 = ((val_x * ele_d) >> 7) & 0x01; in rtl92c_dm_txpower_tracking_callback_thermalmeter()
1087 value32 = ((val_y * ele_d) >> 7) & 0x01; in rtl92c_dm_txpower_tracking_callback_thermalmeter()
1097 MASKH4BITS, 0x00); in rtl92c_dm_txpower_tracking_callback_thermalmeter()
1099 BIT(27) | BIT(25), 0x00); in rtl92c_dm_txpower_tracking_callback_thermalmeter()
1151 0x60); in rtl92c_dm_check_txpower_tracking_thermal_meter()
1160 rtlpriv->dm.tm_trigger = 0; in rtl92c_dm_check_txpower_tracking_thermal_meter()
1195 dm_pstable->rssi_val_min = 0; in rtl92c_dm_init_dynamic_bb_powersaving()
1206 MASKDWORD) & 0x1CC000) >> 14; in rtl92c_dm_rf_saving()
1212 MASKDWORD) & 0xFF000000) >> 24; in rtl92c_dm_rf_saving()
1214 rtlpriv->reg_a74 = (rtl_get_bbreg(hw, 0xa74, MASKDWORD) & in rtl92c_dm_rf_saving()
1215 0xF000) >> 12; in rtl92c_dm_rf_saving()
1221 if (dm_pstable->rssi_val_min != 0) { in rtl92c_dm_rf_saving()
1243 0x1C0000, 0x2); in rtl92c_dm_rf_saving()
1244 rtl_set_bbreg(hw, ROFDM0_AGCPARAMETER1, BIT(3), 0); in rtl92c_dm_rf_saving()
1246 0xFF000000, 0x63); in rtl92c_dm_rf_saving()
1248 0xC000, 0x2); in rtl92c_dm_rf_saving()
1249 rtl_set_bbreg(hw, 0xa74, 0xF000, 0x3); in rtl92c_dm_rf_saving()
1250 rtl_set_bbreg(hw, 0x818, BIT(28), 0x0); in rtl92c_dm_rf_saving()
1251 rtl_set_bbreg(hw, 0x818, BIT(28), 0x1); in rtl92c_dm_rf_saving()
1254 0x1CC000, rtlpriv->reg_874); in rtl92c_dm_rf_saving()
1257 rtl_set_bbreg(hw, RFPGA0_XCD_SWITCHCONTROL, 0xFF000000, in rtl92c_dm_rf_saving()
1259 rtl_set_bbreg(hw, 0xa74, 0xF000, rtlpriv->reg_a74); in rtl92c_dm_rf_saving()
1260 rtl_set_bbreg(hw, 0x818, BIT(28), 0x0); in rtl92c_dm_rf_saving()
1277 (rtlpriv->dm.entry_min_undec_sm_pwdb == 0)) { in rtl92c_dm_dynamic_bb_powersaving()
1278 dm_pstable->rssi_val_min = 0; in rtl92c_dm_dynamic_bb_powersaving()
1287 "AP Client PWDB = 0x%lx\n", in rtl92c_dm_dynamic_bb_powersaving()
1292 "STA Default Port PWDB = 0x%lx\n", in rtl92c_dm_dynamic_bb_powersaving()
1300 "AP Ext Port PWDB = 0x%lx\n", in rtl92c_dm_dynamic_bb_powersaving()
1320 rtl_dm_diginit(hw, 0x20); in rtl92c_dm_init()
1331 rtlpriv->dm.ofdm_pkt_cnt = 0; in rtl92c_dm_init()
1352 (rtlpriv->dm.entry_min_undec_sm_pwdb == 0)) { in rtl92c_dm_dynamic_txpower()
1366 "AP Client PWDB = 0x%lx\n", in rtl92c_dm_dynamic_txpower()
1371 "STA Default Port PWDB = 0x%lx\n", in rtl92c_dm_dynamic_txpower()
1378 "AP Ext Port PWDB = 0x%lx\n", in rtl92c_dm_dynamic_txpower()
1385 "TXHIGHPWRLEVEL_LEVEL1 (TxPwr=0x0)\n"); in rtl92c_dm_dynamic_txpower()
1391 "TXHIGHPWRLEVEL_LEVEL1 (TxPwr=0x10)\n"); in rtl92c_dm_dynamic_txpower()
1408 dm_writepowerindex(hw, 0x14); in rtl92c_dm_dynamic_txpower()
1411 dm_writepowerindex(hw, 0x10); in rtl92c_dm_dynamic_txpower()
1451 u8 curr_bt_rssi_state = 0x00; in rtl92c_bt_rssi_state_change()
1456 if (rtlpriv->dm.entry_min_undec_sm_pwdb == 0) in rtl92c_bt_rssi_state_change()
1509 bt_state = rtl_read_byte(rtlpriv, 0x4fd); in rtl92c_bt_state_change()
1510 bt_tx = rtl_read_dword(rtlpriv, 0x488) & BT_MASK; in rtl92c_bt_state_change()
1511 bt_pri = rtl_read_dword(rtlpriv, 0x48c) & BT_MASK; in rtl92c_bt_state_change()
1512 polling = rtl_read_dword(rtlpriv, 0x490); in rtl92c_bt_state_change()
1515 polling == 0xffffffff && bt_state == 0xff) in rtl92c_bt_state_change()
1518 bt_state &= BIT(0); in rtl92c_bt_state_change()
1527 0 : BIT(1)) | BIT(2); in rtl92c_bt_state_change()
1528 rtl_write_byte(rtlpriv, 0x4fd, bt_state); in rtl92c_bt_state_change()
1557 0 : BIT(1)) | in rtl92c_bt_state_change()
1559 0 : BIT(2)); in rtl92c_bt_state_change()
1564 rtl_write_word(rtlpriv, 0x504, 0x0ccc); in rtl92c_bt_state_change()
1565 rtl_write_byte(rtlpriv, 0x506, 0x54); in rtl92c_bt_state_change()
1566 rtl_write_byte(rtlpriv, 0x507, 0x54); in rtl92c_bt_state_change()
1568 rtl_write_byte(rtlpriv, 0x506, 0x00); in rtl92c_bt_state_change()
1569 rtl_write_byte(rtlpriv, 0x507, 0x00); in rtl92c_bt_state_change()
1572 rtl_write_byte(rtlpriv, 0x4fd, bt_state); in rtl92c_bt_state_change()
1604 rtlpriv->btcoexist.bt_edca_ul = 0x5ea72b; in rtl92c_bt_set_normal()
1605 rtlpriv->btcoexist.bt_edca_dl = 0x5ea72b; in rtl92c_bt_set_normal()
1607 rtlpriv->btcoexist.bt_edca_ul = 0x5eb82f; in rtl92c_bt_set_normal()
1608 rtlpriv->btcoexist.bt_edca_dl = 0x5eb82f; in rtl92c_bt_set_normal()
1611 rtlpriv->btcoexist.bt_edca_ul = 0x5ea72f; in rtl92c_bt_set_normal()
1612 rtlpriv->btcoexist.bt_edca_dl = 0x5ea72f; in rtl92c_bt_set_normal()
1614 rtlpriv->btcoexist.bt_edca_ul = 0x5ea32b; in rtl92c_bt_set_normal()
1615 rtlpriv->btcoexist.bt_edca_dl = 0x5ea42b; in rtl92c_bt_set_normal()
1618 rtlpriv->btcoexist.bt_edca_ul = 0; in rtl92c_bt_set_normal()
1619 rtlpriv->btcoexist.bt_edca_dl = 0; in rtl92c_bt_set_normal()
1627 rtlpriv->btcoexist.bt_edca_ul = 0x5eb82b; in rtl92c_bt_set_normal()
1628 rtlpriv->btcoexist.bt_edca_dl = 0x5eb82b; in rtl92c_bt_set_normal()
1639 rtl_write_byte(rtlpriv, REG_GPIO_MUXCFG, 0xa0); in rtl92c_bt_ant_isolation()
1644 rtl_write_byte(rtlpriv, REG_GPIO_MUXCFG, 0xa0); in rtl92c_bt_ant_isolation()
1650 rtl_write_byte(rtlpriv, REG_GPIO_MUXCFG, 0xa0); in rtl92c_bt_ant_isolation()
1657 rtl_write_dword(rtlpriv, REG_GPIO_PIN_CTRL, 0x10100); in rtl92c_bt_ant_isolation()
1659 rtl_write_dword(rtlpriv, REG_GPIO_PIN_CTRL, 0x0); in rtl92c_bt_ant_isolation()
1665 rtlpriv->btcoexist.bt_edca_ul = 0; in rtl92c_bt_ant_isolation()
1666 rtlpriv->btcoexist.bt_edca_dl = 0; in rtl92c_bt_ant_isolation()
1672 0x1e, in rtl92c_bt_ant_isolation()
1673 0xf0, 0xf); in rtl92c_bt_ant_isolation()
1676 RF90_PATH_A, 0x1e, 0xf0, in rtl92c_bt_ant_isolation()
1703 u8 tmp1byte = 0; in rtl92c_check_bt_change()
1713 rtlpriv->cfg->ops->set_rfreg(hw, RF90_PATH_A, 0x1e, 0xf0, in rtl92c_check_bt_change()
1716 rtlpriv->btcoexist.bt_edca_ul = 0; in rtl92c_check_bt_change()
1717 rtlpriv->btcoexist.bt_edca_dl = 0; in rtl92c_check_bt_change()