Lines Matching +full:0 +full:xe3

23 static u32 glcoex_ver_8192e_2ant = 0x34;
36 int bt_rssi = 0; in btc8192e2ant_bt_rssi_state()
98 int wifi_rssi = 0; in btc8192e2ant_wifi_rssi_state()
169 if (coex_sta->high_priority_tx == 0 && in btc8192e2ant_monitor_bt_enable_disable()
170 coex_sta->high_priority_rx == 0 && in btc8192e2ant_monitor_bt_enable_disable()
171 coex_sta->low_priority_tx == 0 && in btc8192e2ant_monitor_bt_enable_disable()
172 coex_sta->low_priority_rx == 0) in btc8192e2ant_monitor_bt_enable_disable()
175 if (coex_sta->high_priority_tx == 0xffff && in btc8192e2ant_monitor_bt_enable_disable()
176 coex_sta->high_priority_rx == 0xffff && in btc8192e2ant_monitor_bt_enable_disable()
177 coex_sta->low_priority_tx == 0xffff && in btc8192e2ant_monitor_bt_enable_disable()
178 coex_sta->low_priority_rx == 0xffff) in btc8192e2ant_monitor_bt_enable_disable()
182 bt_disable_cnt = 0; in btc8192e2ant_monitor_bt_enable_disable()
191 "[BTCoex], bt all counters = 0, %d times!!\n", in btc8192e2ant_monitor_bt_enable_disable()
213 u32 dis_ra_mask = 0x0; in btc8192e2ant_decide_ra_mask()
216 case 0: /* normal mode */ in btc8192e2ant_decide_ra_mask()
218 dis_ra_mask = 0x0; /* enable 2ss */ in btc8192e2ant_decide_ra_mask()
220 dis_ra_mask = 0xfff00000; /* disable 2ss */ in btc8192e2ant_decide_ra_mask()
224 dis_ra_mask = 0x00000003; /* enable 2ss */ in btc8192e2ant_decide_ra_mask()
226 dis_ra_mask = 0xfff00003; /* disable 2ss */ in btc8192e2ant_decide_ra_mask()
228 case 2: /* disable cck 1/2/5.5, ofdm 6/9/12/18/24, mcs 0/1/2/3/4 */ in btc8192e2ant_decide_ra_mask()
230 dis_ra_mask = 0x0001f1f7; /* enable 2ss */ in btc8192e2ant_decide_ra_mask()
232 dis_ra_mask = 0xfff1f1f7; /* disable 2ss */ in btc8192e2ant_decide_ra_mask()
261 case 0: /* normal mode */ in btc8192e2ant_auto_rate_fallback_retry()
262 btcoexist->btc_write_4byte(btcoexist, 0x430, in btc8192e2ant_auto_rate_fallback_retry()
264 btcoexist->btc_write_4byte(btcoexist, 0x434, in btc8192e2ant_auto_rate_fallback_retry()
272 btcoexist->btc_write_4byte(btcoexist, 0x430, in btc8192e2ant_auto_rate_fallback_retry()
273 0x0); in btc8192e2ant_auto_rate_fallback_retry()
274 btcoexist->btc_write_4byte(btcoexist, 0x434, in btc8192e2ant_auto_rate_fallback_retry()
275 0x01010101); in btc8192e2ant_auto_rate_fallback_retry()
277 btcoexist->btc_write_4byte(btcoexist, 0x430, in btc8192e2ant_auto_rate_fallback_retry()
278 0x0); in btc8192e2ant_auto_rate_fallback_retry()
279 btcoexist->btc_write_4byte(btcoexist, 0x434, in btc8192e2ant_auto_rate_fallback_retry()
280 0x04030201); in btc8192e2ant_auto_rate_fallback_retry()
299 case 0: /* normal mode */ in btc8192e2ant_retry_limit()
300 btcoexist->btc_write_2byte(btcoexist, 0x42a, in btc8192e2ant_retry_limit()
304 btcoexist->btc_write_2byte(btcoexist, 0x42a, 0x0808); in btc8192e2ant_retry_limit()
322 case 0: /* normal mode */ in btc8192e2ant_ampdu_maxtime()
323 btcoexist->btc_write_1byte(btcoexist, 0x456, in btc8192e2ant_ampdu_maxtime()
326 case 1: /* AMPDU time = 0x38 * 32us */ in btc8192e2ant_ampdu_maxtime()
327 btcoexist->btc_write_1byte(btcoexist, 0x456, 0x38); in btc8192e2ant_ampdu_maxtime()
342 u32 dis_ra_mask = 0x0; in btc8192e2ant_limited_tx()
383 u32 reg_hp_tx = 0, reg_hp_rx = 0, reg_lp_tx = 0, reg_lp_rx = 0; in btc8192e2ant_monitor_bt_ctr()
385 reg_hp_txrx = 0x770; in btc8192e2ant_monitor_bt_ctr()
386 reg_lp_txrx = 0x774; in btc8192e2ant_monitor_bt_ctr()
402 "[BTCoex] High Priority Tx/Rx (reg 0x%x) = 0x%x(%d)/0x%x(%d)\n", in btc8192e2ant_monitor_bt_ctr()
405 "[BTCoex] Low Priority Tx/Rx (reg 0x%x) = 0x%x(%d)/0x%x(%d)\n", in btc8192e2ant_monitor_bt_ctr()
409 btcoexist->btc_write_1byte(btcoexist, 0x76e, 0xc); in btc8192e2ant_monitor_bt_ctr()
415 u8 h2c_parameter[1] = {0}; in btc8192e2ant_query_bt_info()
419 h2c_parameter[0] |= BIT0; /* trigger */ in btc8192e2ant_query_bt_info()
422 "[BTCoex], Query Bt Info, FW write 0x61 = 0x%x\n", in btc8192e2ant_query_bt_info()
423 h2c_parameter[0]); in btc8192e2ant_query_bt_info()
425 btcoexist->btc_fill_h2c(btcoexist, 0x61, 1, h2c_parameter); in btc8192e2ant_query_bt_info()
524 u8 num_of_diff_profile = 0; in btc8192e2ant_action_algorithm()
727 u8 h2c_parameter[1] = {0}; in btc8192e2ant_set_fw_dac_swing_level()
730 * 0x18/ 0x10/ 0xc/ 0x8/ 0x4/ 0x6 in btc8192e2ant_set_fw_dac_swing_level()
732 h2c_parameter[0] = dac_swing_lvl; in btc8192e2ant_set_fw_dac_swing_level()
735 "[BTCoex], Set Dac Swing Level = 0x%x\n", dac_swing_lvl); in btc8192e2ant_set_fw_dac_swing_level()
737 "[BTCoex], FW write 0x64 = 0x%x\n", h2c_parameter[0]); in btc8192e2ant_set_fw_dac_swing_level()
739 btcoexist->btc_fill_h2c(btcoexist, 0x64, 1, h2c_parameter); in btc8192e2ant_set_fw_dac_swing_level()
746 u8 h2c_parameter[1] = {0}; in btc8192e2ant_set_fw_dec_bt_pwr()
748 h2c_parameter[0] = dec_bt_pwr_lvl; in btc8192e2ant_set_fw_dec_bt_pwr()
751 "[BTCoex] decrease Bt Power level = %d, FW write 0x62 = 0x%x\n", in btc8192e2ant_set_fw_dec_bt_pwr()
752 dec_bt_pwr_lvl, h2c_parameter[0]); in btc8192e2ant_set_fw_dec_bt_pwr()
754 btcoexist->btc_fill_h2c(btcoexist, 0x62, 1, h2c_parameter); in btc8192e2ant_set_fw_dec_bt_pwr()
781 u8 h2c_parameter[1] = {0}; in btc8192e2ant_set_bt_auto_report()
783 h2c_parameter[0] = 0; in btc8192e2ant_set_bt_auto_report()
786 h2c_parameter[0] |= BIT0; in btc8192e2ant_set_bt_auto_report()
789 "[BTCoex], BT FW auto report : %s, FW write 0x68 = 0x%x\n", in btc8192e2ant_set_bt_auto_report()
791 h2c_parameter[0]); in btc8192e2ant_set_bt_auto_report()
793 btcoexist->btc_fill_h2c(btcoexist, 0x68, 1, h2c_parameter); in btc8192e2ant_set_bt_auto_report()
859 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x1e, in btc8192e2ant_set_sw_rf_rx_lpf_corner()
860 0xfffff, 0xffffc); in btc8192e2ant_set_sw_rf_rx_lpf_corner()
868 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x1e, in btc8192e2ant_set_sw_rf_rx_lpf_corner()
869 0xfffff, in btc8192e2ant_set_sw_rf_rx_lpf_corner()
909 "[BTCoex], Write SwDacSwing = 0x%x\n", level); in btc8192e2ant_set_dac_swing_reg()
910 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x883, 0x3e, val); in btc8192e2ant_set_dac_swing_reg()
920 btc8192e2ant_set_dac_swing_reg(btcoexist, 0x18); in btc8192e2ant_set_sw_full_swing()
930 "[BTCoex], %s turn DacSwing=%s, dac_swing_lvl = 0x%x\n", in btc8192e2ant_dac_swing()
938 "[BTCoex], bPreDacSwingOn=%d, preDacSwingLvl = 0x%x, ", in btc8192e2ant_dac_swing()
942 "bCurDacSwingOn=%d, curDacSwingLvl = 0x%x\n", in btc8192e2ant_dac_swing()
966 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0x0a1A0001); in btc8192e2ant_set_agc_table()
967 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0x091B0001); in btc8192e2ant_set_agc_table()
968 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0x081C0001); in btc8192e2ant_set_agc_table()
969 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0x071D0001); in btc8192e2ant_set_agc_table()
970 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0x061E0001); in btc8192e2ant_set_agc_table()
971 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0x051F0001); in btc8192e2ant_set_agc_table()
975 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0xaa1A0001); in btc8192e2ant_set_agc_table()
976 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0xa91B0001); in btc8192e2ant_set_agc_table()
977 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0xa81C0001); in btc8192e2ant_set_agc_table()
978 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0xa71D0001); in btc8192e2ant_set_agc_table()
979 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0xa61E0001); in btc8192e2ant_set_agc_table()
980 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0xa51F0001); in btc8192e2ant_set_agc_table()
1016 "[BTCoex], set coex table, set 0x6c0 = 0x%x\n", val0x6c0); in btc8192e2ant_set_coex_table()
1017 btcoexist->btc_write_4byte(btcoexist, 0x6c0, val0x6c0); in btc8192e2ant_set_coex_table()
1020 "[BTCoex], set coex table, set 0x6c4 = 0x%x\n", val0x6c4); in btc8192e2ant_set_coex_table()
1021 btcoexist->btc_write_4byte(btcoexist, 0x6c4, val0x6c4); in btc8192e2ant_set_coex_table()
1024 "[BTCoex], set coex table, set 0x6c8 = 0x%x\n", val0x6c8); in btc8192e2ant_set_coex_table()
1025 btcoexist->btc_write_4byte(btcoexist, 0x6c8, val0x6c8); in btc8192e2ant_set_coex_table()
1028 "[BTCoex], set coex table, set 0x6cc = 0x%x\n", val0x6cc); in btc8192e2ant_set_coex_table()
1029 btcoexist->btc_write_1byte(btcoexist, 0x6cc, val0x6cc); in btc8192e2ant_set_coex_table()
1039 "[BTCoex], %s write Coex Table 0x6c0 = 0x%x, ", in btc8192e2ant_coex_table()
1042 "0x6c4 = 0x%x, 0x6c8 = 0x%x, 0x6cc = 0x%x\n", in btc8192e2ant_coex_table()
1051 "[BTCoex], preVal0x6c0 = 0x%x, preVal0x6c4 = 0x%x, ", in btc8192e2ant_coex_table()
1054 "preVal0x6c8 = 0x%x, preVal0x6cc = 0x%x !!\n", in btc8192e2ant_coex_table()
1057 "[BTCoex], curVal0x6c0 = 0x%x, curVal0x6c4 = 0x%x\n", in btc8192e2ant_coex_table()
1060 "curVal0x6c8 = 0x%x, curVal0x6cc = 0x%x !!\n", in btc8192e2ant_coex_table()
1082 case 0: in btc8192e2ant_coex_table_with_type()
1083 btc8192e2ant_coex_table(btcoexist, force_exec, 0x55555555, in btc8192e2ant_coex_table_with_type()
1084 0x5a5a5a5a, 0xffffff, 0x3); in btc8192e2ant_coex_table_with_type()
1087 btc8192e2ant_coex_table(btcoexist, force_exec, 0x5a5a5a5a, in btc8192e2ant_coex_table_with_type()
1088 0x5a5a5a5a, 0xffffff, 0x3); in btc8192e2ant_coex_table_with_type()
1091 btc8192e2ant_coex_table(btcoexist, force_exec, 0x55555555, in btc8192e2ant_coex_table_with_type()
1092 0x5ffb5ffb, 0xffffff, 0x3); in btc8192e2ant_coex_table_with_type()
1095 btc8192e2ant_coex_table(btcoexist, force_exec, 0xdfffdfff, in btc8192e2ant_coex_table_with_type()
1096 0x5fdb5fdb, 0xffffff, 0x3); in btc8192e2ant_coex_table_with_type()
1099 btc8192e2ant_coex_table(btcoexist, force_exec, 0xdfffdfff, in btc8192e2ant_coex_table_with_type()
1100 0x5ffb5ffb, 0xffffff, 0x3); in btc8192e2ant_coex_table_with_type()
1111 u8 h2c_parameter[1] = {0}; in btc8192e2ant_set_fw_ignore_wlan_act()
1114 h2c_parameter[0] |= BIT0; /* function enable */ in btc8192e2ant_set_fw_ignore_wlan_act()
1117 "[BTCoex]set FW for BT Ignore Wlan_Act, FW write 0x63 = 0x%x\n", in btc8192e2ant_set_fw_ignore_wlan_act()
1118 h2c_parameter[0]); in btc8192e2ant_set_fw_ignore_wlan_act()
1120 btcoexist->btc_fill_h2c(btcoexist, 0x63, 1, h2c_parameter); in btc8192e2ant_set_fw_ignore_wlan_act()
1155 u8 h2c_parameter[5] = {0}; in btc8192e2ant_set_fw_ps_tdma()
1157 h2c_parameter[0] = byte1; in btc8192e2ant_set_fw_ps_tdma()
1163 coex_dm->ps_tdma_para[0] = byte1; in btc8192e2ant_set_fw_ps_tdma()
1170 "[BTCoex], FW write 0x60(5bytes) = 0x%x%08x\n", in btc8192e2ant_set_fw_ps_tdma()
1171 h2c_parameter[0], in btc8192e2ant_set_fw_ps_tdma()
1175 btcoexist->btc_fill_h2c(btcoexist, 0x60, 5, h2c_parameter); in btc8192e2ant_set_fw_ps_tdma()
1222 btc8192e2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x1a, in btc8192e2ant_ps_tdma()
1223 0x1a, 0xe1, 0x90); in btc8192e2ant_ps_tdma()
1226 btc8192e2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x12, in btc8192e2ant_ps_tdma()
1227 0x12, 0xe1, 0x90); in btc8192e2ant_ps_tdma()
1230 btc8192e2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x1c, in btc8192e2ant_ps_tdma()
1231 0x3, 0xf1, 0x90); in btc8192e2ant_ps_tdma()
1234 btc8192e2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x10, in btc8192e2ant_ps_tdma()
1235 0x3, 0xf1, 0x90); in btc8192e2ant_ps_tdma()
1238 btc8192e2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x1a, in btc8192e2ant_ps_tdma()
1239 0x1a, 0x60, 0x90); in btc8192e2ant_ps_tdma()
1242 btc8192e2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x12, in btc8192e2ant_ps_tdma()
1243 0x12, 0x60, 0x90); in btc8192e2ant_ps_tdma()
1246 btc8192e2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x1c, in btc8192e2ant_ps_tdma()
1247 0x3, 0x70, 0x90); in btc8192e2ant_ps_tdma()
1250 btc8192e2ant_set_fw_ps_tdma(btcoexist, 0xa3, 0x10, in btc8192e2ant_ps_tdma()
1251 0x3, 0x70, 0x90); in btc8192e2ant_ps_tdma()
1254 btc8192e2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x1a, in btc8192e2ant_ps_tdma()
1255 0x1a, 0xe1, 0x10); in btc8192e2ant_ps_tdma()
1258 btc8192e2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x12, in btc8192e2ant_ps_tdma()
1259 0x12, 0xe1, 0x10); in btc8192e2ant_ps_tdma()
1262 btc8192e2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x1c, in btc8192e2ant_ps_tdma()
1263 0x3, 0xf1, 0x10); in btc8192e2ant_ps_tdma()
1266 btc8192e2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x10, in btc8192e2ant_ps_tdma()
1267 0x3, 0xf1, 0x10); in btc8192e2ant_ps_tdma()
1270 btc8192e2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x1a, in btc8192e2ant_ps_tdma()
1271 0x1a, 0xe0, 0x10); in btc8192e2ant_ps_tdma()
1274 btc8192e2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x12, in btc8192e2ant_ps_tdma()
1275 0x12, 0xe0, 0x10); in btc8192e2ant_ps_tdma()
1278 btc8192e2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x1c, in btc8192e2ant_ps_tdma()
1279 0x3, 0xf0, 0x10); in btc8192e2ant_ps_tdma()
1282 btc8192e2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x12, in btc8192e2ant_ps_tdma()
1283 0x3, 0xf0, 0x10); in btc8192e2ant_ps_tdma()
1286 btc8192e2ant_set_fw_ps_tdma(btcoexist, 0x61, 0x20, in btc8192e2ant_ps_tdma()
1287 0x03, 0x10, 0x10); in btc8192e2ant_ps_tdma()
1290 btc8192e2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x5, in btc8192e2ant_ps_tdma()
1291 0x5, 0xe1, 0x90); in btc8192e2ant_ps_tdma()
1294 btc8192e2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x25, in btc8192e2ant_ps_tdma()
1295 0x25, 0xe1, 0x90); in btc8192e2ant_ps_tdma()
1298 btc8192e2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x25, in btc8192e2ant_ps_tdma()
1299 0x25, 0x60, 0x90); in btc8192e2ant_ps_tdma()
1302 btc8192e2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x15, in btc8192e2ant_ps_tdma()
1303 0x03, 0x70, 0x90); in btc8192e2ant_ps_tdma()
1306 btc8192e2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x1a, in btc8192e2ant_ps_tdma()
1307 0x1a, 0xe1, 0x90); in btc8192e2ant_ps_tdma()
1314 case 0: in btc8192e2ant_ps_tdma()
1315 btc8192e2ant_set_fw_ps_tdma(btcoexist, 0x8, 0x0, 0x0, in btc8192e2ant_ps_tdma()
1316 0x0, 0x0); in btc8192e2ant_ps_tdma()
1317 btcoexist->btc_write_1byte(btcoexist, 0x92c, 0x4); in btc8192e2ant_ps_tdma()
1320 btc8192e2ant_set_fw_ps_tdma(btcoexist, 0x0, 0x0, 0x0, in btc8192e2ant_ps_tdma()
1321 0x8, 0x0); in btc8192e2ant_ps_tdma()
1323 btcoexist->btc_write_1byte(btcoexist, 0x92c, 0x20); in btc8192e2ant_ps_tdma()
1338 u32 dis_ra_mask = 0x0; in btc8192e2ant_set_switch_ss_type()
1350 btcoexist->btc_write_1byte(btcoexist, 0xc04, 0x11); in btc8192e2ant_set_switch_ss_type()
1351 btcoexist->btc_write_1byte(btcoexist, 0xd04, 0x1); in btc8192e2ant_set_switch_ss_type()
1352 btcoexist->btc_write_4byte(btcoexist, 0x90c, 0x81111111); in btc8192e2ant_set_switch_ss_type()
1354 btcoexist->btc_write_1byte_bitmask(btcoexist, 0xe77, 0x4, 0x1); in btc8192e2ant_set_switch_ss_type()
1355 btcoexist->btc_write_1byte(btcoexist, 0xa07, 0x81); in btc8192e2ant_set_switch_ss_type()
1358 btc8192e2ant_ps_tdma(btcoexist, FORCE_EXEC, false, 0); in btc8192e2ant_set_switch_ss_type()
1359 btcoexist->btc_write_1byte(btcoexist, 0xc04, 0x33); in btc8192e2ant_set_switch_ss_type()
1360 btcoexist->btc_write_1byte(btcoexist, 0xd04, 0x3); in btc8192e2ant_set_switch_ss_type()
1361 btcoexist->btc_write_4byte(btcoexist, 0x90c, 0x81121313); in btc8192e2ant_set_switch_ss_type()
1362 btcoexist->btc_write_1byte_bitmask(btcoexist, 0xe77, 0x4, 0x0); in btc8192e2ant_set_switch_ss_type()
1363 btcoexist->btc_write_1byte(btcoexist, 0xa07, 0x41); in btc8192e2ant_set_switch_ss_type()
1394 btc8192e2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, 0); in btc8192e2ant_coex_all_off()
1398 btc8192e2ant_sw_mechanism2(btcoexist, false, false, false, 0x18); in btc8192e2ant_coex_all_off()
1401 btc8192e2ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 0); in btc8192e2ant_coex_all_off()
1410 btc8192e2ant_dec_bt_pwr(btcoexist, FORCE_EXEC, 0); in btc8192e2ant_init_coex_dm()
1412 btc8192e2ant_coex_table_with_type(btcoexist, FORCE_EXEC, 0); in btc8192e2ant_init_coex_dm()
1416 btc8192e2ant_sw_mechanism2(btcoexist, false, false, false, 0x18); in btc8192e2ant_init_coex_dm()
1431 btc8192e2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, 0); in btc8192e2ant_action_bt_inquiry()
1434 btc8192e2ant_sw_mechanism2(btcoexist, false, false, false, 0x18); in btc8192e2ant_action_bt_inquiry()
1450 btc8192e2ant_limited_tx(btcoexist, NORMAL_EXEC, 1, 0, 0, 0); in btc8192e2ant_is_common_action()
1452 btc8192e2ant_limited_tx(btcoexist, NORMAL_EXEC, 0, 0, 0, 0); in btc8192e2ant_is_common_action()
1469 btc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 0); in btc8192e2ant_is_common_action()
1473 NORMAL_EXEC, 0); in btc8192e2ant_is_common_action()
1478 btc8192e2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, 0); in btc8192e2ant_is_common_action()
1483 0x18); in btc8192e2ant_is_common_action()
1500 btc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 0); in btc8192e2ant_is_common_action()
1503 btc8192e2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, 0); in btc8192e2ant_is_common_action()
1508 false, 0x18); in btc8192e2ant_is_common_action()
1528 false, 0); in btc8192e2ant_is_common_action()
1531 btc8192e2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, 0); in btc8192e2ant_is_common_action()
1536 false, 0x18); in btc8192e2ant_is_common_action()
1563 NORMAL_EXEC, 0); in btc8192e2ant_is_common_action()
1567 false, false, 0x18); in btc8192e2ant_is_common_action()
1581 u8 retry_cnt = 0; in btc8192e2ant_tdma_duration_adjust()
1664 up = 0; in btc8192e2ant_tdma_duration_adjust()
1665 dn = 0; in btc8192e2ant_tdma_duration_adjust()
1668 wait_cnt = 0; in btc8192e2ant_tdma_duration_adjust()
1679 if (retry_cnt == 0) { in btc8192e2ant_tdma_duration_adjust()
1683 if (dn <= 0) in btc8192e2ant_tdma_duration_adjust()
1684 dn = 0; in btc8192e2ant_tdma_duration_adjust()
1687 wait_cnt = 0; in btc8192e2ant_tdma_duration_adjust()
1689 up = 0; in btc8192e2ant_tdma_duration_adjust()
1690 dn = 0; in btc8192e2ant_tdma_duration_adjust()
1698 if (up <= 0) in btc8192e2ant_tdma_duration_adjust()
1699 up = 0; in btc8192e2ant_tdma_duration_adjust()
1711 up = 0; in btc8192e2ant_tdma_duration_adjust()
1712 dn = 0; in btc8192e2ant_tdma_duration_adjust()
1713 wait_cnt = 0; in btc8192e2ant_tdma_duration_adjust()
1727 up = 0; in btc8192e2ant_tdma_duration_adjust()
1728 dn = 0; in btc8192e2ant_tdma_duration_adjust()
1729 wait_cnt = 0; in btc8192e2ant_tdma_duration_adjust()
1770 wifi_rssi_state = btc8192e2ant_wifi_rssi_state(btcoexist, 0, 2, 15, 0); in btc8192e2ant_action_sco()
1773 btc8192e2ant_limited_rx(btcoexist, NORMAL_EXEC, false, false, 0x8); in btc8192e2ant_action_sco()
1783 btc8192e2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, 0); in btc8192e2ant_action_sco()
1804 false, 0x6); in btc8192e2ant_action_sco()
1809 false, 0x6); in btc8192e2ant_action_sco()
1817 false, 0x6); in btc8192e2ant_action_sco()
1822 false, 0x6); in btc8192e2ant_action_sco()
1832 wifi_rssi_state = btc8192e2ant_wifi_rssi_state(btcoexist, 0, 2, 15, 0); in btc8192e2ant_action_sco_pan()
1835 btc8192e2ant_limited_rx(btcoexist, NORMAL_EXEC, false, false, 0x8); in btc8192e2ant_action_sco_pan()
1845 btc8192e2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, 0); in btc8192e2ant_action_sco_pan()
1866 false, 0x6); in btc8192e2ant_action_sco_pan()
1871 false, 0x6); in btc8192e2ant_action_sco_pan()
1879 false, 0x6); in btc8192e2ant_action_sco_pan()
1884 false, 0x6); in btc8192e2ant_action_sco_pan()
1894 wifi_rssi_state = btc8192e2ant_wifi_rssi_state(btcoexist, 0, 2, 15, 0); in btc8192e2ant_action_hid()
1898 btc8192e2ant_limited_rx(btcoexist, NORMAL_EXEC, false, false, 0x8); in btc8192e2ant_action_hid()
1908 btc8192e2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, 0); in btc8192e2ant_action_hid()
1927 false, 0x18); in btc8192e2ant_action_hid()
1932 false, 0x18); in btc8192e2ant_action_hid()
1940 false, 0x18); in btc8192e2ant_action_hid()
1945 false, 0x18); in btc8192e2ant_action_hid()
1958 wifi_rssi_state = btc8192e2ant_wifi_rssi_state(btcoexist, 0, 2, 15, 0); in btc8192e2ant_action_a2dp()
1972 0x4); in btc8192e2ant_action_a2dp()
1976 0x8); in btc8192e2ant_action_a2dp()
1982 btc8192e2ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 0); in btc8192e2ant_action_a2dp()
1989 btc8192e2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, 0); in btc8192e2ant_action_a2dp()
1995 btc8192e2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, 0); in btc8192e2ant_action_a2dp()
2017 false, 0x18); in btc8192e2ant_action_a2dp()
2022 false, 0x18); in btc8192e2ant_action_a2dp()
2030 false, 0x18); in btc8192e2ant_action_a2dp()
2035 false, 0x18); in btc8192e2ant_action_a2dp()
2045 wifi_rssi_state = btc8192e2ant_wifi_rssi_state(btcoexist, 0, 2, 15, 0); in btc8192e2ant_action_a2dp_pan_hs()
2049 btc8192e2ant_limited_rx(btcoexist, NORMAL_EXEC, false, false, 0x8); in btc8192e2ant_action_a2dp_pan_hs()
2057 btc8192e2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, 0); in btc8192e2ant_action_a2dp_pan_hs()
2076 true, 0x6); in btc8192e2ant_action_a2dp_pan_hs()
2081 true, 0x6); in btc8192e2ant_action_a2dp_pan_hs()
2089 true, 0x6); in btc8192e2ant_action_a2dp_pan_hs()
2094 true, 0x6); in btc8192e2ant_action_a2dp_pan_hs()
2104 wifi_rssi_state = btc8192e2ant_wifi_rssi_state(btcoexist, 0, 2, 15, 0); in btc8192e2ant_action_pan_edr()
2108 btc8192e2ant_limited_rx(btcoexist, NORMAL_EXEC, false, false, 0x8); in btc8192e2ant_action_pan_edr()
2116 btc8192e2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, 0); in btc8192e2ant_action_pan_edr()
2136 false, 0x18); in btc8192e2ant_action_pan_edr()
2141 false, 0x18); in btc8192e2ant_action_pan_edr()
2149 false, 0x18); in btc8192e2ant_action_pan_edr()
2154 false, 0x18); in btc8192e2ant_action_pan_edr()
2165 wifi_rssi_state = btc8192e2ant_wifi_rssi_state(btcoexist, 0, 2, 15, 0); in btc8192e2ant_action_pan_hs()
2169 btc8192e2ant_limited_rx(btcoexist, NORMAL_EXEC, false, false, 0x8); in btc8192e2ant_action_pan_hs()
2177 btc8192e2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, 0); in btc8192e2ant_action_pan_hs()
2194 false, 0x18); in btc8192e2ant_action_pan_hs()
2199 false, 0x18); in btc8192e2ant_action_pan_hs()
2207 false, 0x18); in btc8192e2ant_action_pan_hs()
2212 false, 0x18); in btc8192e2ant_action_pan_hs()
2223 wifi_rssi_state = btc8192e2ant_wifi_rssi_state(btcoexist, 0, 2, 15, 0); in btc8192e2ant_action_pan_edr_a2dp()
2227 btc8192e2ant_limited_rx(btcoexist, NORMAL_EXEC, false, false, 0x8); in btc8192e2ant_action_pan_edr_a2dp()
2237 btc8192e2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, 0); in btc8192e2ant_action_pan_edr_a2dp()
2256 false, 0x18); in btc8192e2ant_action_pan_edr_a2dp()
2261 false, 0x18); in btc8192e2ant_action_pan_edr_a2dp()
2269 false, 0x18); in btc8192e2ant_action_pan_edr_a2dp()
2274 false, 0x18); in btc8192e2ant_action_pan_edr_a2dp()
2284 wifi_rssi_state = btc8192e2ant_wifi_rssi_state(btcoexist, 0, 2, 15, 0); in btc8192e2ant_action_pan_edr_hid()
2290 btc8192e2ant_limited_rx(btcoexist, NORMAL_EXEC, false, false, 0x8); in btc8192e2ant_action_pan_edr_hid()
2298 btc8192e2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, 0); in btc8192e2ant_action_pan_edr_hid()
2318 false, 0x18); in btc8192e2ant_action_pan_edr_hid()
2323 false, 0x18); in btc8192e2ant_action_pan_edr_hid()
2331 false, 0x18); in btc8192e2ant_action_pan_edr_hid()
2336 false, 0x18); in btc8192e2ant_action_pan_edr_hid()
2347 wifi_rssi_state = btc8192e2ant_wifi_rssi_state(btcoexist, 0, 2, 15, 0); in btc8192e2ant_action_hid_a2dp_pan_edr()
2351 btc8192e2ant_limited_rx(btcoexist, NORMAL_EXEC, false, false, 0x8); in btc8192e2ant_action_hid_a2dp_pan_edr()
2361 btc8192e2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, 0); in btc8192e2ant_action_hid_a2dp_pan_edr()
2380 false, 0x18); in btc8192e2ant_action_hid_a2dp_pan_edr()
2385 false, 0x18); in btc8192e2ant_action_hid_a2dp_pan_edr()
2393 false, 0x18); in btc8192e2ant_action_hid_a2dp_pan_edr()
2398 false, 0x18); in btc8192e2ant_action_hid_a2dp_pan_edr()
2408 wifi_rssi_state = btc8192e2ant_wifi_rssi_state(btcoexist, 0, 2, 15, 0); in btc8192e2ant_action_hid_a2dp()
2412 btc8192e2ant_limited_rx(btcoexist, NORMAL_EXEC, false, false, 0x8); in btc8192e2ant_action_hid_a2dp()
2420 btc8192e2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, 0); in btc8192e2ant_action_hid_a2dp()
2439 false, 0x18); in btc8192e2ant_action_hid_a2dp()
2444 false, 0x18); in btc8192e2ant_action_hid_a2dp()
2452 false, 0x18); in btc8192e2ant_action_hid_a2dp()
2457 false, 0x18); in btc8192e2ant_action_hid_a2dp()
2465 u8 algorithm = 0; in btc8192e2ant_run_coexist_mechanism()
2577 u16 u16tmp = 0; in btc8192e2ant_init_hwconfig()
2578 u8 u8tmp = 0; in btc8192e2ant_init_hwconfig()
2584 /* backup rf 0x1e value */ in btc8192e2ant_init_hwconfig()
2587 0x1e, 0xfffff); in btc8192e2ant_init_hwconfig()
2590 0x430); in btc8192e2ant_init_hwconfig()
2592 0x434); in btc8192e2ant_init_hwconfig()
2595 0x42a); in btc8192e2ant_init_hwconfig()
2598 0x456); in btc8192e2ant_init_hwconfig()
2602 btcoexist->btc_write_1byte(btcoexist, 0x4f, 0x6); in btc8192e2ant_init_hwconfig()
2603 btcoexist->btc_write_1byte(btcoexist, 0x944, 0x24); in btc8192e2ant_init_hwconfig()
2604 btcoexist->btc_write_4byte(btcoexist, 0x930, 0x700700); in btc8192e2ant_init_hwconfig()
2605 btcoexist->btc_write_1byte(btcoexist, 0x92c, 0x20); in btc8192e2ant_init_hwconfig()
2607 btcoexist->btc_write_4byte(btcoexist, 0x64, 0x30430004); in btc8192e2ant_init_hwconfig()
2609 btcoexist->btc_write_4byte(btcoexist, 0x64, 0x30030004); in btc8192e2ant_init_hwconfig()
2611 btc8192e2ant_coex_table_with_type(btcoexist, FORCE_EXEC, 0); in btc8192e2ant_init_hwconfig()
2614 btcoexist->btc_write_4byte(btcoexist, 0x858, 0x55555555); in btc8192e2ant_init_hwconfig()
2617 btcoexist->btc_write_1byte(btcoexist, 0x778, 0x3); in btc8192e2ant_init_hwconfig()
2618 /* 0x790[5:0] = 0x5 */ in btc8192e2ant_init_hwconfig()
2619 u8tmp = btcoexist->btc_read_1byte(btcoexist, 0x790); in btc8192e2ant_init_hwconfig()
2620 u8tmp &= 0xc0; in btc8192e2ant_init_hwconfig()
2621 u8tmp |= 0x5; in btc8192e2ant_init_hwconfig()
2622 btcoexist->btc_write_1byte(btcoexist, 0x790, u8tmp); in btc8192e2ant_init_hwconfig()
2625 btcoexist->btc_write_1byte(btcoexist, 0x76e, 0x4); in btc8192e2ant_init_hwconfig()
2628 btcoexist->btc_write_1byte(btcoexist, 0x40, 0x20); in btc8192e2ant_init_hwconfig()
2630 u16tmp = btcoexist->btc_read_2byte(btcoexist, 0x40); in btc8192e2ant_init_hwconfig()
2632 btcoexist->btc_write_2byte(btcoexist, 0x40, u16tmp); in btc8192e2ant_init_hwconfig()
2635 u8tmp = btcoexist->btc_read_1byte(btcoexist, 0x101); in btc8192e2ant_init_hwconfig()
2637 btcoexist->btc_write_1byte(btcoexist, 0x101, u8tmp); in btc8192e2ant_init_hwconfig()
2640 u8tmp = btcoexist->btc_read_1byte(btcoexist, 0x93); in btc8192e2ant_init_hwconfig()
2642 btcoexist->btc_write_1byte(btcoexist, 0x93, u8tmp); in btc8192e2ant_init_hwconfig()
2644 u8tmp = btcoexist->btc_read_1byte(btcoexist, 0x7); in btc8192e2ant_init_hwconfig()
2646 btcoexist->btc_write_1byte(btcoexist, 0x7, u8tmp); in btc8192e2ant_init_hwconfig()
2672 u8 u8tmp[4], i, bt_info_ext, ps_tdma_case = 0; in ex_btc8192e2ant_display_coex_info()
2677 int wifi_rssi = 0, bt_hs_rssi = 0; in ex_btc8192e2ant_display_coex_info()
2680 u32 fw_ver = 0, bt_patch_ver = 0; in ex_btc8192e2ant_display_coex_info()
2698 seq_printf(m, "\n %-35s = %d_%d/ 0x%x/ 0x%x(%d)", in ex_btc8192e2ant_display_coex_info()
2760 for (i = 0; i < BT_INFO_SRC_8192E_2ANT_MAX; i++) { in ex_btc8192e2ant_display_coex_info()
2775 seq_printf(m, "\n %-35s = 0x%x ", "SS Type", in ex_btc8192e2ant_display_coex_info()
2784 seq_printf(m, "\n %-35s = %d/ %d/ %d(0x%x) ", in ex_btc8192e2ant_display_coex_info()
2789 seq_printf(m, "\n %-35s = 0x%x ", "Rate Mask", in ex_btc8192e2ant_display_coex_info()
2810 seq_printf(m, "\n %-35s = 0x%x", in ex_btc8192e2ant_display_coex_info()
2811 "RF-A, 0x1e initVal", coex_dm->bt_rf0x1e_backup); in ex_btc8192e2ant_display_coex_info()
2813 seq_printf(m, "\n %-35s = 0x%x/0x%x/0x%x/0x%x", in ex_btc8192e2ant_display_coex_info()
2818 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x430); in ex_btc8192e2ant_display_coex_info()
2819 u32tmp[1] = btcoexist->btc_read_4byte(btcoexist, 0x434); in ex_btc8192e2ant_display_coex_info()
2820 u16tmp[0] = btcoexist->btc_read_2byte(btcoexist, 0x42a); in ex_btc8192e2ant_display_coex_info()
2821 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x456); in ex_btc8192e2ant_display_coex_info()
2822 seq_printf(m, "\n %-35s = 0x%x/0x%x/0x%x/0x%x", in ex_btc8192e2ant_display_coex_info()
2823 "0x430/0x434/0x42a/0x456", in ex_btc8192e2ant_display_coex_info()
2824 u32tmp[0], u32tmp[1], u16tmp[0], u8tmp[0]); in ex_btc8192e2ant_display_coex_info()
2826 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0xc04); in ex_btc8192e2ant_display_coex_info()
2827 u32tmp[1] = btcoexist->btc_read_4byte(btcoexist, 0xd04); in ex_btc8192e2ant_display_coex_info()
2828 u32tmp[2] = btcoexist->btc_read_4byte(btcoexist, 0x90c); in ex_btc8192e2ant_display_coex_info()
2829 seq_printf(m, "\n %-35s = 0x%x/ 0x%x/ 0x%x", in ex_btc8192e2ant_display_coex_info()
2830 "0xc04/ 0xd04/ 0x90c", u32tmp[0], u32tmp[1], u32tmp[2]); in ex_btc8192e2ant_display_coex_info()
2832 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x778); in ex_btc8192e2ant_display_coex_info()
2833 seq_printf(m, "\n %-35s = 0x%x", "0x778", u8tmp[0]); in ex_btc8192e2ant_display_coex_info()
2835 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x92c); in ex_btc8192e2ant_display_coex_info()
2836 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x930); in ex_btc8192e2ant_display_coex_info()
2837 seq_printf(m, "\n %-35s = 0x%x/ 0x%x", in ex_btc8192e2ant_display_coex_info()
2838 "0x92c/ 0x930", (u8tmp[0]), u32tmp[0]); in ex_btc8192e2ant_display_coex_info()
2840 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x40); in ex_btc8192e2ant_display_coex_info()
2841 u8tmp[1] = btcoexist->btc_read_1byte(btcoexist, 0x4f); in ex_btc8192e2ant_display_coex_info()
2842 seq_printf(m, "\n %-35s = 0x%x/ 0x%x", in ex_btc8192e2ant_display_coex_info()
2843 "0x40/ 0x4f", u8tmp[0], u8tmp[1]); in ex_btc8192e2ant_display_coex_info()
2845 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x550); in ex_btc8192e2ant_display_coex_info()
2846 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x522); in ex_btc8192e2ant_display_coex_info()
2847 seq_printf(m, "\n %-35s = 0x%x/ 0x%x", in ex_btc8192e2ant_display_coex_info()
2848 "0x550(bcn ctrl)/0x522", u32tmp[0], u8tmp[0]); in ex_btc8192e2ant_display_coex_info()
2850 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0xc50); in ex_btc8192e2ant_display_coex_info()
2851 seq_printf(m, "\n %-35s = 0x%x", "0xc50(dig)", in ex_btc8192e2ant_display_coex_info()
2852 u32tmp[0]); in ex_btc8192e2ant_display_coex_info()
2854 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x6c0); in ex_btc8192e2ant_display_coex_info()
2855 u32tmp[1] = btcoexist->btc_read_4byte(btcoexist, 0x6c4); in ex_btc8192e2ant_display_coex_info()
2856 u32tmp[2] = btcoexist->btc_read_4byte(btcoexist, 0x6c8); in ex_btc8192e2ant_display_coex_info()
2857 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x6cc); in ex_btc8192e2ant_display_coex_info()
2859 "\n %-35s = 0x%x/ 0x%x/ 0x%x/ 0x%x", in ex_btc8192e2ant_display_coex_info()
2860 "0x6c0/0x6c4/0x6c8/0x6cc(coexTable)", in ex_btc8192e2ant_display_coex_info()
2861 u32tmp[0], u32tmp[1], u32tmp[2], u8tmp[0]); in ex_btc8192e2ant_display_coex_info()
2864 "0x770(hp rx[31:16]/tx[15:0])", in ex_btc8192e2ant_display_coex_info()
2867 "0x774(lp rx[31:16]/tx[15:0])", in ex_btc8192e2ant_display_coex_info()
2933 u8 h2c_parameter[3] = {0}; in ex_btc8192e2ant_media_status_notify()
2954 h2c_parameter[0] = 0x1; in ex_btc8192e2ant_media_status_notify()
2958 h2c_parameter[2] = 0x30; in ex_btc8192e2ant_media_status_notify()
2960 h2c_parameter[2] = 0x20; in ex_btc8192e2ant_media_status_notify()
2963 coex_dm->wifi_chnl_info[0] = h2c_parameter[0]; in ex_btc8192e2ant_media_status_notify()
2968 "[BTCoex], FW write 0x66 = 0x%x\n", in ex_btc8192e2ant_media_status_notify()
2969 h2c_parameter[0] << 16 | h2c_parameter[1] << 8 | in ex_btc8192e2ant_media_status_notify()
2972 btcoexist->btc_fill_h2c(btcoexist, 0x66, 3, h2c_parameter); in ex_btc8192e2ant_media_status_notify()
2989 u8 bt_info = 0; in ex_btc8192e2ant_bt_info_notify()
2990 u8 i, rsp_source = 0; in ex_btc8192e2ant_bt_info_notify()
2996 rsp_source = tmp_buf[0] & 0xf; in ex_btc8192e2ant_bt_info_notify()
3004 for (i = 0; i < length; i++) { in ex_btc8192e2ant_bt_info_notify()
3010 "0x%02x]\n", tmp_buf[i]); in ex_btc8192e2ant_bt_info_notify()
3013 "0x%02x, ", tmp_buf[i]); in ex_btc8192e2ant_bt_info_notify()
3017 /* [3:0] */ in ex_btc8192e2ant_bt_info_notify()
3019 coex_sta->bt_info_c2h[rsp_source][2] & 0xf; in ex_btc8192e2ant_bt_info_notify()
3158 u32 fw_ver = 0, bt_patch_ver = 0; in ex_btc8192e2ant_periodical()
3180 "CoexVer/ FwVer/ PatchVer = %d_%x/ 0x%x/ 0x%x(%d)\n", in ex_btc8192e2ant_periodical()