Lines Matching +full:0 +full:x18000060

13 	0x7f8001fe,		/* 0, +6.0dB */
14 0x788001e2, /* 1, +5.5dB */
15 0x71c001c7, /* 2, +5.0dB */
16 0x6b8001ae, /* 3, +4.5dB */
17 0x65400195, /* 4, +4.0dB */
18 0x5fc0017f, /* 5, +3.5dB */
19 0x5a400169, /* 6, +3.0dB */
20 0x55400155, /* 7, +2.5dB */
21 0x50800142, /* 8, +2.0dB */
22 0x4c000130, /* 9, +1.5dB */
23 0x47c0011f, /* 10, +1.0dB */
24 0x43c0010f, /* 11, +0.5dB */
25 0x40000100, /* 12, +0dB */
26 0x3c8000f2, /* 13, -0.5dB */
27 0x390000e4, /* 14, -1.0dB */
28 0x35c000d7, /* 15, -1.5dB */
29 0x32c000cb, /* 16, -2.0dB */
30 0x300000c0, /* 17, -2.5dB */
31 0x2d4000b5, /* 18, -3.0dB */
32 0x2ac000ab, /* 19, -3.5dB */
33 0x288000a2, /* 20, -4.0dB */
34 0x26000098, /* 21, -4.5dB */
35 0x24000090, /* 22, -5.0dB */
36 0x22000088, /* 23, -5.5dB */
37 0x20000080, /* 24, -6.0dB */
38 0x1e400079, /* 25, -6.5dB */
39 0x1c800072, /* 26, -7.0dB */
40 0x1b00006c, /* 27. -7.5dB */
41 0x19800066, /* 28, -8.0dB */
42 0x18000060, /* 29, -8.5dB */
43 0x16c0005b, /* 30, -9.0dB */
44 0x15800056, /* 31, -9.5dB */
45 0x14400051, /* 32, -10.0dB */
46 0x1300004c, /* 33, -10.5dB */
47 0x12000048, /* 34, -11.0dB */
48 0x11000044, /* 35, -11.5dB */
49 0x10000040, /* 36, -12.0dB */
50 0x0f00003c, /* 37, -12.5dB */
51 0x0e400039, /* 38, -13.0dB */
52 0x0d800036, /* 39, -13.5dB */
53 0x0cc00033, /* 40, -14.0dB */
54 0x0c000030, /* 41, -14.5dB */
55 0x0b40002d, /* 42, -15.0dB */
59 {0x36, 0x35, 0x2e, 0x25, 0x1c, 0x12, 0x09, 0x04}, /* 0, +0dB */
60 {0x33, 0x32, 0x2b, 0x23, 0x1a, 0x11, 0x08, 0x04}, /* 1, -0.5dB */
61 {0x30, 0x2f, 0x29, 0x21, 0x19, 0x10, 0x08, 0x03}, /* 2, -1.0dB */
62 {0x2d, 0x2d, 0x27, 0x1f, 0x18, 0x0f, 0x08, 0x03}, /* 3, -1.5dB */
63 {0x2b, 0x2a, 0x25, 0x1e, 0x16, 0x0e, 0x07, 0x03}, /* 4, -2.0dB */
64 {0x28, 0x28, 0x22, 0x1c, 0x15, 0x0d, 0x07, 0x03}, /* 5, -2.5dB */
65 {0x26, 0x25, 0x21, 0x1b, 0x14, 0x0d, 0x06, 0x03}, /* 6, -3.0dB */
66 {0x24, 0x23, 0x1f, 0x19, 0x13, 0x0c, 0x06, 0x03}, /* 7, -3.5dB */
67 {0x22, 0x21, 0x1d, 0x18, 0x11, 0x0b, 0x06, 0x02}, /* 8, -4.0dB */
68 {0x20, 0x20, 0x1b, 0x16, 0x11, 0x08, 0x05, 0x02}, /* 9, -4.5dB */
69 {0x1f, 0x1e, 0x1a, 0x15, 0x10, 0x0a, 0x05, 0x02}, /* 10, -5.0dB */
70 {0x1d, 0x1c, 0x18, 0x14, 0x0f, 0x0a, 0x05, 0x02}, /* 11, -5.5dB */
71 {0x1b, 0x1a, 0x17, 0x13, 0x0e, 0x09, 0x04, 0x02}, /* 12, -6.0dB */
72 {0x1a, 0x19, 0x16, 0x12, 0x0d, 0x09, 0x04, 0x02}, /* 13, -6.5dB */
73 {0x18, 0x17, 0x15, 0x11, 0x0c, 0x08, 0x04, 0x02}, /* 14, -7.0dB */
74 {0x17, 0x16, 0x13, 0x10, 0x0c, 0x08, 0x04, 0x02}, /* 15, -7.5dB */
75 {0x16, 0x15, 0x12, 0x0f, 0x0b, 0x07, 0x04, 0x01}, /* 16, -8.0dB */
76 {0x14, 0x14, 0x11, 0x0e, 0x0b, 0x07, 0x03, 0x02}, /* 17, -8.5dB */
77 {0x13, 0x13, 0x10, 0x0d, 0x0a, 0x06, 0x03, 0x01}, /* 18, -9.0dB */
78 {0x12, 0x12, 0x0f, 0x0c, 0x09, 0x06, 0x03, 0x01}, /* 19, -9.5dB */
79 {0x11, 0x11, 0x0f, 0x0c, 0x09, 0x06, 0x03, 0x01}, /* 20, -10.0dB */
80 {0x10, 0x10, 0x0e, 0x0b, 0x08, 0x05, 0x03, 0x01}, /* 21, -10.5dB */
81 {0x0f, 0x0f, 0x0d, 0x0b, 0x08, 0x05, 0x03, 0x01}, /* 22, -11.0dB */
82 {0x0e, 0x0e, 0x0c, 0x0a, 0x08, 0x05, 0x02, 0x01}, /* 23, -11.5dB */
83 {0x0d, 0x0d, 0x0c, 0x0a, 0x07, 0x05, 0x02, 0x01}, /* 24, -12.0dB */
84 {0x0d, 0x0c, 0x0b, 0x09, 0x07, 0x04, 0x02, 0x01}, /* 25, -12.5dB */
85 {0x0c, 0x0c, 0x0a, 0x09, 0x06, 0x04, 0x02, 0x01}, /* 26, -13.0dB */
86 {0x0b, 0x0b, 0x0a, 0x08, 0x06, 0x04, 0x02, 0x01}, /* 27, -13.5dB */
87 {0x0b, 0x0a, 0x09, 0x08, 0x06, 0x04, 0x02, 0x01}, /* 28, -14.0dB */
88 {0x0a, 0x0a, 0x09, 0x07, 0x05, 0x03, 0x02, 0x01}, /* 29, -14.5dB */
89 {0x0a, 0x09, 0x08, 0x07, 0x05, 0x03, 0x02, 0x01}, /* 30, -15.0dB */
90 {0x09, 0x09, 0x08, 0x06, 0x05, 0x03, 0x01, 0x01}, /* 31, -15.5dB */
91 {0x09, 0x08, 0x07, 0x06, 0x04, 0x03, 0x01, 0x01} /* 32, -16.0dB */
95 {0x36, 0x35, 0x2e, 0x1b, 0x00, 0x00, 0x00, 0x00}, /* 0, +0dB */
96 {0x33, 0x32, 0x2b, 0x19, 0x00, 0x00, 0x00, 0x00}, /* 1, -0.5dB */
97 {0x30, 0x2f, 0x29, 0x18, 0x00, 0x00, 0x00, 0x00}, /* 2, -1.0dB */
98 {0x2d, 0x2d, 0x17, 0x17, 0x00, 0x00, 0x00, 0x00}, /* 3, -1.5dB */
99 {0x2b, 0x2a, 0x25, 0x15, 0x00, 0x00, 0x00, 0x00}, /* 4, -2.0dB */
100 {0x28, 0x28, 0x24, 0x14, 0x00, 0x00, 0x00, 0x00}, /* 5, -2.5dB */
101 {0x26, 0x25, 0x21, 0x13, 0x00, 0x00, 0x00, 0x00}, /* 6, -3.0dB */
102 {0x24, 0x23, 0x1f, 0x12, 0x00, 0x00, 0x00, 0x00}, /* 7, -3.5dB */
103 {0x22, 0x21, 0x1d, 0x11, 0x00, 0x00, 0x00, 0x00}, /* 8, -4.0dB */
104 {0x20, 0x20, 0x1b, 0x10, 0x00, 0x00, 0x00, 0x00}, /* 9, -4.5dB */
105 {0x1f, 0x1e, 0x1a, 0x0f, 0x00, 0x00, 0x00, 0x00}, /* 10, -5.0dB */
106 {0x1d, 0x1c, 0x18, 0x0e, 0x00, 0x00, 0x00, 0x00}, /* 11, -5.5dB */
107 {0x1b, 0x1a, 0x17, 0x0e, 0x00, 0x00, 0x00, 0x00}, /* 12, -6.0dB */
108 {0x1a, 0x19, 0x16, 0x0d, 0x00, 0x00, 0x00, 0x00}, /* 13, -6.5dB */
109 {0x18, 0x17, 0x15, 0x0c, 0x00, 0x00, 0x00, 0x00}, /* 14, -7.0dB */
110 {0x17, 0x16, 0x13, 0x0b, 0x00, 0x00, 0x00, 0x00}, /* 15, -7.5dB */
111 {0x16, 0x15, 0x12, 0x0b, 0x00, 0x00, 0x00, 0x00}, /* 16, -8.0dB */
112 {0x14, 0x14, 0x11, 0x0a, 0x00, 0x00, 0x00, 0x00}, /* 17, -8.5dB */
113 {0x13, 0x13, 0x10, 0x0a, 0x00, 0x00, 0x00, 0x00}, /* 18, -9.0dB */
114 {0x12, 0x12, 0x0f, 0x09, 0x00, 0x00, 0x00, 0x00}, /* 19, -9.5dB */
115 {0x11, 0x11, 0x0f, 0x09, 0x00, 0x00, 0x00, 0x00}, /* 20, -10.0dB */
116 {0x10, 0x10, 0x0e, 0x08, 0x00, 0x00, 0x00, 0x00}, /* 21, -10.5dB */
117 {0x0f, 0x0f, 0x0d, 0x08, 0x00, 0x00, 0x00, 0x00}, /* 22, -11.0dB */
118 {0x0e, 0x0e, 0x0c, 0x07, 0x00, 0x00, 0x00, 0x00}, /* 23, -11.5dB */
119 {0x0d, 0x0d, 0x0c, 0x07, 0x00, 0x00, 0x00, 0x00}, /* 24, -12.0dB */
120 {0x0d, 0x0c, 0x0b, 0x06, 0x00, 0x00, 0x00, 0x00}, /* 25, -12.5dB */
121 {0x0c, 0x0c, 0x0a, 0x06, 0x00, 0x00, 0x00, 0x00}, /* 26, -13.0dB */
122 {0x0b, 0x0b, 0x0a, 0x06, 0x00, 0x00, 0x00, 0x00}, /* 27, -13.5dB */
123 {0x0b, 0x0a, 0x09, 0x05, 0x00, 0x00, 0x00, 0x00}, /* 28, -14.0dB */
124 {0x0a, 0x0a, 0x09, 0x05, 0x00, 0x00, 0x00, 0x00}, /* 29, -14.5dB */
125 {0x0a, 0x09, 0x08, 0x05, 0x00, 0x00, 0x00, 0x00}, /* 30, -15.0dB */
126 {0x09, 0x09, 0x08, 0x05, 0x00, 0x00, 0x00, 0x00}, /* 31, -15.5dB */
127 {0x09, 0x08, 0x07, 0x04, 0x00, 0x00, 0x00, 0x00} /* 32, -16.0dB */
133 0x0f, 0x0f, 0x0d, 0x0c, 0x0b, in rtl92d_dm_rxgain_tracking_thermalmeter()
134 0x0a, 0x09, 0x08, 0x07, 0x06, in rtl92d_dm_rxgain_tracking_thermalmeter()
135 0x05, 0x04, 0x04, 0x03, 0x02 in rtl92d_dm_rxgain_tracking_thermalmeter()
148 rtl_set_rfreg(hw, i, 0x3C, RFREG_OFFSET_MASK, in rtl92d_dm_rxgain_tracking_thermalmeter()
149 (rtlpriv->phy.reg_rf3c[i] & ~0xF000) | u4tmp); in rtl92d_dm_rxgain_tracking_thermalmeter()
156 unsigned long flag = 0; in rtl92d_bandtype_2_4G()
161 /* Query CCK default setting From 0xa24 */ in rtl92d_bandtype_2_4G()
167 for (i = 0; i < CCK_TABLE_LENGTH; i++) { in rtl92d_bandtype_2_4G()
176 "Initial reg0x%x = 0x%lx, cck_index = 0x%x, ch14 %d\n", in rtl92d_bandtype_2_4G()
193 u8 offset = 0; in rtl92d_bandtype_5G()
197 for (i = 0; i < rf; i++) { in rtl92d_bandtype_5G()
208 offset = 0; in rtl92d_bandtype_5G()
216 offset = 0; in rtl92d_bandtype_5G()
238 if (*internal_pa && thermalvalue > 0x12) { in rtl92d_bandtype_5G()
254 /* 5G, path A/MAC 0, decrease power */ in rtl92d_dm_txpower_tracking_callback_thermalmeter()
255 {0, 1, 3, 6, 8, 9, 11, 13, 14, 16, 17, 18, 18}, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
256 /* 5G, path A/MAC 0, increase power */ in rtl92d_dm_txpower_tracking_callback_thermalmeter()
257 {0, 2, 4, 5, 7, 10, 12, 14, 16, 18, 18, 18, 18}, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
259 {0, 2, 3, 6, 8, 9, 11, 13, 14, 16, 17, 18, 18}, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
261 {0, 2, 4, 5, 7, 10, 13, 16, 16, 18, 18, 18, 18}, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
263 {0, 1, 2, 3, 4, 5, 6, 7, 7, 8, 9, 10, 10}, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
266 /* 5G, path A/MAC 0, ch36-64, decrease power */ in rtl92d_dm_txpower_tracking_callback_thermalmeter()
267 {0, 1, 2, 4, 6, 7, 9, 11, 12, 14, 15, 16, 16}, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
268 /* 5G, path A/MAC 0, ch36-64, increase power */ in rtl92d_dm_txpower_tracking_callback_thermalmeter()
269 {0, 2, 4, 5, 7, 10, 12, 14, 16, 18, 18, 18, 18}, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
270 /* 5G, path A/MAC 0, ch100-165, decrease power */ in rtl92d_dm_txpower_tracking_callback_thermalmeter()
271 {0, 1, 2, 3, 5, 6, 8, 10, 11, 13, 14, 15, 15}, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
272 /* 5G, path A/MAC 0, ch100-165, increase power */ in rtl92d_dm_txpower_tracking_callback_thermalmeter()
273 {0, 2, 4, 5, 7, 10, 12, 14, 16, 18, 18, 18, 18}, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
275 {0, 1, 2, 4, 6, 7, 9, 11, 12, 14, 15, 16, 16}, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
277 {0, 2, 4, 5, 7, 10, 13, 16, 16, 18, 18, 18, 18}, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
279 {0, 1, 2, 3, 5, 6, 8, 9, 10, 12, 13, 14, 14}, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
281 {0, 2, 4, 5, 7, 10, 13, 16, 16, 18, 18, 18, 18}, in rtl92d_dm_txpower_tracking_callback_thermalmeter()
290 long ele_a = 0, ele_d, temp_cck, val_x, value32; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
292 u8 offset, thermalvalue_avg_count = 0; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
293 u8 ofdm_index_old[2] = {0, 0}; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
294 u32 thermalvalue_avg = 0; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
296 long val_y, ele_c = 0; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
297 s8 cck_index_old = 0; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
300 s8 cck_index = 0; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
310 thermalvalue = (u8)rtl_get_rfreg(hw, RF90_PATH_A, RF_T_METER, 0xf800); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
313 "Readback Thermal Meter = 0x%x pre thermal meter 0x%x eeprom_thermalmeter 0x%x\n", in rtl92d_dm_txpower_tracking_callback_thermalmeter()
330 for (i = 0; i < OFDM_TABLE_SIZE_92D; i++) { in rtl92d_dm_txpower_tracking_callback_thermalmeter()
332 ofdm_index_old[0] = (u8)i; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
335 "Initial pathA ele_d reg0x%x = 0x%lx, ofdm_index=0x%x\n", in rtl92d_dm_txpower_tracking_callback_thermalmeter()
337 ele_d, ofdm_index_old[0]); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
346 for (i = 0; i < OFDM_TABLE_SIZE_92D; i++) { in rtl92d_dm_txpower_tracking_callback_thermalmeter()
352 "Initial pathB ele_d reg 0x%x = 0x%lx, ofdm_index = 0x%x\n", in rtl92d_dm_txpower_tracking_callback_thermalmeter()
363 temp_cck = 0x090e1317; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
373 for (i = 0; i < rf; i++) in rtl92d_dm_txpower_tracking_callback_thermalmeter()
380 for (i = 0; i < rf; i++) in rtl92d_dm_txpower_tracking_callback_thermalmeter()
390 for (i = 0; i < rf; i++) in rtl92d_dm_txpower_tracking_callback_thermalmeter()
397 dm->thermalvalue_avg_index = 0; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
399 for (i = 0; i < AVG_THERMAL_NUM; i++) { in rtl92d_dm_txpower_tracking_callback_thermalmeter()
424 …"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()
428 if (delta_lck > rtlefuse->delta_lck && rtlefuse->delta_lck != 0) { in rtl92d_dm_txpower_tracking_callback_thermalmeter()
433 if (delta == 0 || !dm->txpower_track_control) in rtl92d_dm_txpower_tracking_callback_thermalmeter()
447 for (i = 0; i < rf; i++) in rtl92d_dm_txpower_tracking_callback_thermalmeter()
452 for (i = 0; i < rf; i++) in rtl92d_dm_txpower_tracking_callback_thermalmeter()
466 "temp OFDM_A_index=0x%x, OFDM_B_index = 0x%x, cck_index=0x%x\n", in rtl92d_dm_txpower_tracking_callback_thermalmeter()
467 dm->ofdm_index[0], dm->ofdm_index[1], dm->cck_index); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
470 "temp OFDM_A_index=0x%x, cck_index = 0x%x\n", in rtl92d_dm_txpower_tracking_callback_thermalmeter()
471 dm->ofdm_index[0], dm->cck_index); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
474 for (i = 0; i < rf; i++) { in rtl92d_dm_txpower_tracking_callback_thermalmeter()
489 else if (cck_index < 0) in rtl92d_dm_txpower_tracking_callback_thermalmeter()
490 cck_index = 0; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
495 "new OFDM_A_index=0x%x, OFDM_B_index = 0x%x, cck_index=0x%x\n", in rtl92d_dm_txpower_tracking_callback_thermalmeter()
496 ofdm_index[0], ofdm_index[1], cck_index); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
499 "new OFDM_A_index=0x%x, cck_index = 0x%x\n", in rtl92d_dm_txpower_tracking_callback_thermalmeter()
500 ofdm_index[0], cck_index); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
503 ele_d = (ofdmswing_table[ofdm_index[0]] & 0xFFC00000) >> 22; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
504 val_x = rtlphy->iqk_matrix[indexforchannel].value[0][0]; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
505 val_y = rtlphy->iqk_matrix[indexforchannel].value[0][1]; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
507 if (val_x != 0) { in rtl92d_dm_txpower_tracking_callback_thermalmeter()
508 if ((val_x & 0x00000200) != 0) in rtl92d_dm_txpower_tracking_callback_thermalmeter()
509 val_x = val_x | 0xFFFFFC00; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
510 ele_a = ((val_x * ele_d) >> 8) & 0x000003FF; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
513 if ((val_y & 0x00000200) != 0) in rtl92d_dm_txpower_tracking_callback_thermalmeter()
514 val_y = val_y | 0xFFFFFC00; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
515 ele_c = ((val_y * ele_d) >> 8) & 0x000003FF; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
518 * regC94, element B is always 0 in rtl92d_dm_txpower_tracking_callback_thermalmeter()
520 value32 = (ele_d << 22) | ((ele_c & 0x3F) << 16) | ele_a; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
524 value32 = (ele_c & 0x000003C0) >> 6; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
527 value32 = ((val_x * ele_d) >> 7) & 0x01; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
532 ofdmswing_table[ofdm_index[0]]); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
533 rtl_set_bbreg(hw, ROFDM0_XCTXAFE, MASKH4BITS, 0x00); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
534 rtl_set_bbreg(hw, ROFDM0_ECCATHRESHOLD, BIT(24), 0x00); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
538 …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()
545 for (i = 0; i < 8; i++) { in rtl92d_dm_txpower_tracking_callback_thermalmeter()
551 rtl_write_byte(rtlpriv, 0xa22 + i, swing); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
556 ele_d = (ofdmswing_table[ofdm_index[1]] & 0xFFC00000) >> 22; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
557 val_x = rtlphy->iqk_matrix[indexforchannel].value[0][4]; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
558 val_y = rtlphy->iqk_matrix[indexforchannel].value[0][5]; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
560 if (val_x != 0) { in rtl92d_dm_txpower_tracking_callback_thermalmeter()
561 if ((val_x & 0x00000200) != 0) in rtl92d_dm_txpower_tracking_callback_thermalmeter()
563 val_x = val_x | 0xFFFFFC00; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
564 ele_a = ((val_x * ele_d) >> 8) & 0x000003FF; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
567 if ((val_y & 0x00000200) != 0) in rtl92d_dm_txpower_tracking_callback_thermalmeter()
568 val_y = val_y | 0xFFFFFC00; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
569 ele_c = ((val_y * ele_d) >> 8) & 0x00003FF; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
572 * and regC9C, element B is always 0 in rtl92d_dm_txpower_tracking_callback_thermalmeter()
574 value32 = (ele_d << 22) | ((ele_c & 0x3F) << 16) | ele_a; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
578 value32 = (ele_c & 0x000003C0) >> 6; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
581 value32 = ((val_x * ele_d) >> 7) & 0x01; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
586 rtl_set_bbreg(hw, ROFDM0_XDTXAFE, MASKH4BITS, 0x00); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
587 rtl_set_bbreg(hw, ROFDM0_ECCATHRESHOLD, BIT(28), 0x00); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
591 …"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()
596 "TxPwrTracking 0xc80 = 0x%x, 0xc94 = 0x%x RF 0x24 = 0x%x\n", in rtl92d_dm_txpower_tracking_callback_thermalmeter()
597 rtl_get_bbreg(hw, 0xc80, MASKDWORD), in rtl92d_dm_txpower_tracking_callback_thermalmeter()
598 rtl_get_bbreg(hw, 0xc94, MASKDWORD), in rtl92d_dm_txpower_tracking_callback_thermalmeter()
599 rtl_get_rfreg(hw, RF90_PATH_A, 0x24, RFREG_OFFSET_MASK)); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
602 if (delta_iqk > rtlefuse->delta_iqk && rtlefuse->delta_iqk != 0) { in rtl92d_dm_txpower_tracking_callback_thermalmeter()
608 if (delta_rxgain > 0 && rtlhal->current_bandtype == BAND_ON_5G && in rtl92d_dm_txpower_tracking_callback_thermalmeter()
643 BIT(16), 0x03); in rtl92d_dm_check_txpower_tracking_thermal_meter()
651 rtlpriv->dm.tm_trigger = 0; in rtl92d_dm_check_txpower_tracking_thermal_meter()
660 unsigned long flag = 0; in rtl92d_dm_false_alarm_counter_statistics()
668 falsealm_cnt->cnt_fast_fsync_fail = ret_value & 0xffff; in rtl92d_dm_false_alarm_counter_statistics()
669 falsealm_cnt->cnt_sb_search_fail = (ret_value & 0xffff0000) >> 16; in rtl92d_dm_false_alarm_counter_statistics()
672 falsealm_cnt->cnt_parity_fail = (ret_value & 0xffff0000) >> 16; in rtl92d_dm_false_alarm_counter_statistics()
675 falsealm_cnt->cnt_rate_illegal = ret_value & 0xffff; in rtl92d_dm_false_alarm_counter_statistics()
676 falsealm_cnt->cnt_crc8_fail = (ret_value & 0xffff0000) >> 16; in rtl92d_dm_false_alarm_counter_statistics()
679 falsealm_cnt->cnt_mcs_fail = ret_value & 0xffff; in rtl92d_dm_false_alarm_counter_statistics()
693 falsealm_cnt->cnt_cck_fail += (ret_value & 0xff) << 8; in rtl92d_dm_false_alarm_counter_statistics()
696 falsealm_cnt->cnt_cck_fail = 0; in rtl92d_dm_false_alarm_counter_statistics()
703 rtl_set_bbreg(hw, ROFDM1_LSTF, 0x08000000, 1); in rtl92d_dm_false_alarm_counter_statistics()
704 rtl_set_bbreg(hw, ROFDM1_LSTF, 0x08000000, 0); in rtl92d_dm_false_alarm_counter_statistics()
707 rtl_set_bbreg(hw, ROFDM0_LSTF, BIT(31), 0); /* update page C counter */ in rtl92d_dm_false_alarm_counter_statistics()
708 rtl_set_bbreg(hw, ROFDM1_LSTF, BIT(31), 0); /* update page D counter */ in rtl92d_dm_false_alarm_counter_statistics()
713 rtl_set_bbreg(hw, RCCK0_FALSEALARMREPORT, 0x0000c000, 0); in rtl92d_dm_false_alarm_counter_statistics()
715 rtl_set_bbreg(hw, RCCK0_FALSEALARMREPORT, 0x0000c000, 2); in rtl92d_dm_false_alarm_counter_statistics()
747 rtlpriv->dm.entry_min_undec_sm_pwdb == 0) { in rtl92d_dm_find_minimum_rssi()
748 de_digtable->min_undec_pwdb_for_dm = 0; in rtl92d_dm_find_minimum_rssi()
758 "AP Client PWDB = 0x%lx\n", in rtl92d_dm_find_minimum_rssi()
764 "STA Default Port PWDB = 0x%x\n", in rtl92d_dm_find_minimum_rssi()
771 "AP Ext Port or disconnect PWDB = 0x%x\n", in rtl92d_dm_find_minimum_rssi()
784 unsigned long flag = 0; in rtl92d_dm_cck_packet_detection_thresh()
808 rtl_set_bbreg(hw, RCCK0_CCA, MASKBYTE2, 0x83); in rtl92d_dm_cck_packet_detection_thresh()
812 rtl_set_bbreg(hw, RCCK0_CCA, MASKBYTE2, 0xcd); in rtl92d_dm_cck_packet_detection_thresh()
833 "cur_igvalue = 0x%x, pre_igvalue = 0x%x, back_val = %d\n", in rtl92d_dm_write_dig()
838 de_digtable->pre_igvalue = 0x17; in rtl92d_dm_write_dig()
842 rtl_set_bbreg(hw, ROFDM0_XAAGCCORE1, 0x7f, in rtl92d_dm_write_dig()
844 rtl_set_bbreg(hw, ROFDM0_XBAGCCORE1, 0x7f, in rtl92d_dm_write_dig()
860 rtl_write_byte(rtlpriv, REG_EARLY_MODE_CONTROL, 0x00); in rtl92d_early_mode_enabled()
865 rtl_write_byte(rtlpriv, REG_EARLY_MODE_CONTROL, 0x0f); in rtl92d_early_mode_enabled()
869 } else if (!(rtl_read_byte(rtlpriv, REG_EARLY_MODE_CONTROL) & 0xf)) { in rtl92d_early_mode_enabled()
870 rtl_write_byte(rtlpriv, REG_EARLY_MODE_CONTROL, 0x0f); in rtl92d_early_mode_enabled()
914 value_igi += 0; in rtl92d_dm_dig()
946 if (de_digtable->recover_cnt != 0) { in rtl92d_dm_dig()
949 if (de_digtable->large_fa_hit == 0) { in rtl92d_dm_dig()
963 de_digtable->large_fa_hit = 0; in rtl92d_dm_dig()
1000 const u32 edca_be_ul = 0x5ea42b; in rtl92d_dm_check_edca_turbo()
1001 const u32 edca_be_dl = 0x5ea42b; in rtl92d_dm_check_edca_turbo()