Lines Matching refs:btcoexist

157 static u8 halbtc8821a2ant_wifi_rssi_state(struct btc_coexist *btcoexist,  in halbtc8821a2ant_wifi_rssi_state()  argument
164 btcoexist->btc_get(btcoexist, BTC_GET_S4_WIFI_RSSI, &wifi_rssi); in halbtc8821a2ant_wifi_rssi_state()
259 static void btc8821a2ant_mon_bt_en_dis(struct btc_coexist *btcoexist) in btc8821a2ant_mon_bt_en_dis() argument
280 btcoexist->btc_set(btcoexist, BTC_SET_BL_BT_DISABLE, in btc8821a2ant_mon_bt_en_dis()
291 btcoexist->btc_set(btcoexist, BTC_SET_BL_BT_DISABLE, in btc8821a2ant_mon_bt_en_dis()
306 static void halbtc8821a2ant_monitor_bt_ctr(struct btc_coexist *btcoexist) in halbtc8821a2ant_monitor_bt_ctr() argument
314 u4tmp = btcoexist->btc_read_4byte(btcoexist, reg_hp_txrx); in halbtc8821a2ant_monitor_bt_ctr()
318 u4tmp = btcoexist->btc_read_4byte(btcoexist, reg_lp_txrx); in halbtc8821a2ant_monitor_bt_ctr()
335 btcoexist->btc_write_1byte(btcoexist, 0x76e, 0xc); in halbtc8821a2ant_monitor_bt_ctr()
338 static void halbtc8821a2ant_query_bt_info(struct btc_coexist *btcoexist) in halbtc8821a2ant_query_bt_info() argument
350 btcoexist->btc_fill_h2c(btcoexist, 0x61, 1, h2c_parameter); in halbtc8821a2ant_query_bt_info()
353 static u8 halbtc8821a2ant_action_algorithm(struct btc_coexist *btcoexist) in halbtc8821a2ant_action_algorithm() argument
355 struct btc_stack_info *stack_info = &btcoexist->stack_info; in halbtc8821a2ant_action_algorithm()
360 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); in halbtc8821a2ant_action_algorithm()
527 static bool halbtc8821a2ant_need_to_dec_bt_pwr(struct btc_coexist *btcoexist) in halbtc8821a2ant_need_to_dec_bt_pwr() argument
534 if (!btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on)) in halbtc8821a2ant_need_to_dec_bt_pwr()
536 if (!btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_CONNECTED, in halbtc8821a2ant_need_to_dec_bt_pwr()
539 if (!btcoexist->btc_get(btcoexist, BTC_GET_S4_HS_RSSI, &bt_hs_rssi)) in halbtc8821a2ant_need_to_dec_bt_pwr()
563 static void btc8821a2ant_set_fw_dac_swing_lev(struct btc_coexist *btcoexist, in btc8821a2ant_set_fw_dac_swing_lev() argument
578 btcoexist->btc_fill_h2c(btcoexist, 0x64, 1, h2c_parameter); in btc8821a2ant_set_fw_dac_swing_lev()
581 static void halbtc8821a2ant_set_fw_dec_bt_pwr(struct btc_coexist *btcoexist, in halbtc8821a2ant_set_fw_dec_bt_pwr() argument
595 btcoexist->btc_fill_h2c(btcoexist, 0x62, 1, h2c_parameter); in halbtc8821a2ant_set_fw_dec_bt_pwr()
598 static void halbtc8821a2ant_dec_bt_pwr(struct btc_coexist *btcoexist, in halbtc8821a2ant_dec_bt_pwr() argument
615 halbtc8821a2ant_set_fw_dec_bt_pwr(btcoexist, coex_dm->cur_dec_bt_pwr); in halbtc8821a2ant_dec_bt_pwr()
620 static void btc8821a2ant_set_fw_bt_lna_constr(struct btc_coexist *btcoexist, in btc8821a2ant_set_fw_bt_lna_constr() argument
635 btcoexist->btc_fill_h2c(btcoexist, 0x69, 2, h2c_parameter); in btc8821a2ant_set_fw_bt_lna_constr()
638 static void btc8821a2_set_bt_lna_const(struct btc_coexist *btcoexist, in btc8821a2_set_bt_lna_const() argument
657 btc8821a2ant_set_fw_bt_lna_constr(btcoexist, in btc8821a2_set_bt_lna_const()
663 static void halbtc8821a2ant_set_fw_bt_psd_mode(struct btc_coexist *btcoexist, in halbtc8821a2ant_set_fw_bt_psd_mode() argument
677 btcoexist->btc_fill_h2c(btcoexist, 0x69, 2, h2c_parameter); in halbtc8821a2ant_set_fw_bt_psd_mode()
680 static void halbtc8821a2ant_set_bt_psd_mode(struct btc_coexist *btcoexist, in halbtc8821a2ant_set_bt_psd_mode() argument
696 halbtc8821a2ant_set_fw_bt_psd_mode(btcoexist, in halbtc8821a2ant_set_bt_psd_mode()
702 static void halbtc8821a2ant_set_bt_auto_report(struct btc_coexist *btcoexist, in halbtc8821a2ant_set_bt_auto_report() argument
717 btcoexist->btc_fill_h2c(btcoexist, 0x68, 1, h2c_parameter); in halbtc8821a2ant_set_bt_auto_report()
720 static void halbtc8821a2ant_bt_auto_report(struct btc_coexist *btcoexist, in halbtc8821a2ant_bt_auto_report() argument
739 halbtc8821a2ant_set_bt_auto_report(btcoexist, in halbtc8821a2ant_bt_auto_report()
745 static void halbtc8821a2ant_fw_dac_swing_lvl(struct btc_coexist *btcoexist, in halbtc8821a2ant_fw_dac_swing_lvl() argument
765 btc8821a2ant_set_fw_dac_swing_lev(btcoexist, in halbtc8821a2ant_fw_dac_swing_lvl()
771 static void btc8821a2ant_set_sw_rf_rx_lpf_corner(struct btc_coexist *btcoexist, in btc8821a2ant_set_sw_rf_rx_lpf_corner() argument
778 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x1e, in btc8821a2ant_set_sw_rf_rx_lpf_corner()
784 if (btcoexist->initilized) { in btc8821a2ant_set_sw_rf_rx_lpf_corner()
787 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, in btc8821a2ant_set_sw_rf_rx_lpf_corner()
794 static void halbtc8821a2ant_RfShrink(struct btc_coexist *btcoexist, in halbtc8821a2ant_RfShrink() argument
813 btc8821a2ant_set_sw_rf_rx_lpf_corner(btcoexist, in halbtc8821a2ant_RfShrink()
819 static void btc8821a2ant_SetSwPenTxRateAdapt(struct btc_coexist *btcoexist, in btc8821a2ant_SetSwPenTxRateAdapt() argument
842 btcoexist->btc_fill_h2c(btcoexist, 0x69, 6, h2c_parameter); in btc8821a2ant_SetSwPenTxRateAdapt()
845 static void halbtc8821a2ant_low_penalty_ra(struct btc_coexist *btcoexist, in halbtc8821a2ant_low_penalty_ra() argument
864 btc8821a2ant_SetSwPenTxRateAdapt(btcoexist, in halbtc8821a2ant_low_penalty_ra()
870 static void halbtc8821a2ant_set_dac_swing_reg(struct btc_coexist *btcoexist, in halbtc8821a2ant_set_dac_swing_reg() argument
877 btcoexist->btc_write_1byte_bitmask(btcoexist, 0xc5b, 0x3e, val); in halbtc8821a2ant_set_dac_swing_reg()
880 static void btc8821a2ant_set_sw_full_dac_swing(struct btc_coexist *btcoexist, in btc8821a2ant_set_sw_full_dac_swing() argument
885 halbtc8821a2ant_set_dac_swing_reg(btcoexist, sw_dac_swing_lvl); in btc8821a2ant_set_sw_full_dac_swing()
887 halbtc8821a2ant_set_dac_swing_reg(btcoexist, 0x18); in btc8821a2ant_set_sw_full_dac_swing()
890 static void halbtc8821a2ant_dac_swing(struct btc_coexist *btcoexist, in halbtc8821a2ant_dac_swing() argument
916 btc8821a2ant_set_sw_full_dac_swing(btcoexist, dac_swing_on, in halbtc8821a2ant_dac_swing()
923 static void halbtc8821a2ant_set_adc_back_off(struct btc_coexist *btcoexist, in halbtc8821a2ant_set_adc_back_off() argument
929 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x8db, 0x60, 0x3); in halbtc8821a2ant_set_adc_back_off()
933 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x8db, 0x60, 0x1); in halbtc8821a2ant_set_adc_back_off()
937 static void halbtc8821a2ant_adc_back_off(struct btc_coexist *btcoexist, in halbtc8821a2ant_adc_back_off() argument
954 halbtc8821a2ant_set_adc_back_off(btcoexist, coex_dm->cur_adc_back_off); in halbtc8821a2ant_adc_back_off()
959 static void halbtc8821a2ant_set_coex_table(struct btc_coexist *btcoexist, in halbtc8821a2ant_set_coex_table() argument
965 btcoexist->btc_write_4byte(btcoexist, 0x6c0, val0x6c0); in halbtc8821a2ant_set_coex_table()
969 btcoexist->btc_write_4byte(btcoexist, 0x6c4, val0x6c4); in halbtc8821a2ant_set_coex_table()
973 btcoexist->btc_write_4byte(btcoexist, 0x6c8, val0x6c8); in halbtc8821a2ant_set_coex_table()
977 btcoexist->btc_write_1byte(btcoexist, 0x6cc, val0x6cc); in halbtc8821a2ant_set_coex_table()
980 static void halbtc8821a2ant_coex_table(struct btc_coexist *btcoexist, in halbtc8821a2ant_coex_table() argument
1013 halbtc8821a2ant_set_coex_table(btcoexist, val0x6c0, val0x6c4, val0x6c8, in halbtc8821a2ant_coex_table()
1037 static void halbtc8821a2ant_ignore_wlan_act(struct btc_coexist *btcoexist, in halbtc8821a2ant_ignore_wlan_act() argument
1055 halbtc8821a2ant_set_fw_ignore_wlan_act(btcoexist, enable); in halbtc8821a2ant_ignore_wlan_act()
1060 static void halbtc8821a2ant_set_fw_pstdma(struct btc_coexist *btcoexist, in halbtc8821a2ant_set_fw_pstdma() argument
1086 btcoexist->btc_fill_h2c(btcoexist, 0x60, 5, h2c_parameter); in halbtc8821a2ant_set_fw_pstdma()
1089 static void btc8821a2ant_sw_mech1(struct btc_coexist *btcoexist, in btc8821a2ant_sw_mech1() argument
1096 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); in btc8821a2ant_sw_mech1()
1104 halbtc8821a2ant_RfShrink(btcoexist, NORMAL_EXEC, shrink_rx_lpf); in btc8821a2ant_sw_mech1()
1105 halbtc8821a2ant_low_penalty_ra(btcoexist, in btc8821a2ant_sw_mech1()
1114 static void btc8821a2ant_sw_mech2(struct btc_coexist *btcoexist, in btc8821a2ant_sw_mech2() argument
1120 halbtc8821a2ant_adc_back_off(btcoexist, NORMAL_EXEC, adc_back_off); in btc8821a2ant_sw_mech2()
1121 halbtc8821a2ant_dac_swing(btcoexist, NORMAL_EXEC, sw_dac_swing, in btc8821a2ant_sw_mech2()
1125 static void halbtc8821a2ant_set_ant_path(struct btc_coexist *btcoexist, in halbtc8821a2ant_set_ant_path() argument
1129 struct btc_board_info *board_info = &btcoexist->board_info; in halbtc8821a2ant_set_ant_path()
1135 u4tmp = btcoexist->btc_read_4byte(btcoexist, 0x4c); in halbtc8821a2ant_set_ant_path()
1138 btcoexist->btc_write_4byte(btcoexist, 0x4c, u4tmp); in halbtc8821a2ant_set_ant_path()
1140 btcoexist->btc_write_4byte(btcoexist, 0x974, 0x3ff); in halbtc8821a2ant_set_ant_path()
1141 btcoexist->btc_write_1byte(btcoexist, 0xcb4, 0x77); in halbtc8821a2ant_set_ant_path()
1150 btcoexist->btc_fill_h2c(btcoexist, 0x65, 2, in halbtc8821a2ant_set_ant_path()
1159 btcoexist->btc_fill_h2c(btcoexist, 0x65, 2, in halbtc8821a2ant_set_ant_path()
1167 btcoexist->btc_write_1byte_bitmask(btcoexist, 0xcb7, 0x30, 0x1); in halbtc8821a2ant_set_ant_path()
1170 btcoexist->btc_write_1byte_bitmask(btcoexist, 0xcb7, 0x30, 0x2); in halbtc8821a2ant_set_ant_path()
1175 static void halbtc8821a2ant_ps_tdma(struct btc_coexist *btcoexist, in halbtc8821a2ant_ps_tdma() argument
1201 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, 0x1a, in halbtc8821a2ant_ps_tdma()
1205 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, 0x12, in halbtc8821a2ant_ps_tdma()
1209 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, 0x1c, in halbtc8821a2ant_ps_tdma()
1213 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, 0x10, in halbtc8821a2ant_ps_tdma()
1217 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, 0x1a, in halbtc8821a2ant_ps_tdma()
1221 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, 0x12, in halbtc8821a2ant_ps_tdma()
1225 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, 0x1c, in halbtc8821a2ant_ps_tdma()
1229 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xa3, 0x10, in halbtc8821a2ant_ps_tdma()
1233 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, 0x1a, in halbtc8821a2ant_ps_tdma()
1237 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, 0x12, in halbtc8821a2ant_ps_tdma()
1241 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, 0xa, in halbtc8821a2ant_ps_tdma()
1245 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, 0x5, in halbtc8821a2ant_ps_tdma()
1249 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, 0x1a, in halbtc8821a2ant_ps_tdma()
1253 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, in halbtc8821a2ant_ps_tdma()
1257 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, 0xa, in halbtc8821a2ant_ps_tdma()
1261 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, 0x5, in halbtc8821a2ant_ps_tdma()
1265 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xa3, 0x2f, in halbtc8821a2ant_ps_tdma()
1269 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, 0x5, in halbtc8821a2ant_ps_tdma()
1273 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, 0x25, in halbtc8821a2ant_ps_tdma()
1277 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, 0x25, in halbtc8821a2ant_ps_tdma()
1281 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, 0x15, in halbtc8821a2ant_ps_tdma()
1285 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, 0x1a, in halbtc8821a2ant_ps_tdma()
1293 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0x0, 0x0, 0x0, in halbtc8821a2ant_ps_tdma()
1297 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0x0, 0x0, 0x0, in halbtc8821a2ant_ps_tdma()
1301 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0x0, 0x0, 0x0, in halbtc8821a2ant_ps_tdma()
1312 static void halbtc8821a2ant_coex_all_off(struct btc_coexist *btcoexist) in halbtc8821a2ant_coex_all_off() argument
1315 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 1); in halbtc8821a2ant_coex_all_off()
1316 halbtc8821a2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); in halbtc8821a2ant_coex_all_off()
1317 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); in halbtc8821a2ant_coex_all_off()
1320 btc8821a2ant_sw_mech1(btcoexist, false, false, false, false); in halbtc8821a2ant_coex_all_off()
1321 btc8821a2ant_sw_mech2(btcoexist, false, false, false, 0x18); in halbtc8821a2ant_coex_all_off()
1324 halbtc8821a2ant_coex_table(btcoexist, NORMAL_EXEC, in halbtc8821a2ant_coex_all_off()
1328 static void halbtc8821a2ant_coex_under_5g(struct btc_coexist *btcoexist) in halbtc8821a2ant_coex_under_5g() argument
1330 halbtc8821a2ant_coex_all_off(btcoexist); in halbtc8821a2ant_coex_under_5g()
1333 static void halbtc8821a2ant_init_coex_dm(struct btc_coexist *btcoexist) in halbtc8821a2ant_init_coex_dm() argument
1336 halbtc8821a2ant_coex_table(btcoexist, FORCE_EXEC, 0x55555555, in halbtc8821a2ant_init_coex_dm()
1339 halbtc8821a2ant_ps_tdma(btcoexist, FORCE_EXEC, false, 1); in halbtc8821a2ant_init_coex_dm()
1340 halbtc8821a2ant_fw_dac_swing_lvl(btcoexist, FORCE_EXEC, 6); in halbtc8821a2ant_init_coex_dm()
1341 halbtc8821a2ant_dec_bt_pwr(btcoexist, FORCE_EXEC, false); in halbtc8821a2ant_init_coex_dm()
1343 btc8821a2ant_sw_mech1(btcoexist, false, false, false, false); in halbtc8821a2ant_init_coex_dm()
1344 btc8821a2ant_sw_mech2(btcoexist, false, false, false, 0x18); in halbtc8821a2ant_init_coex_dm()
1347 static void halbtc8821a2ant_bt_inquiry_page(struct btc_coexist *btcoexist) in halbtc8821a2ant_bt_inquiry_page() argument
1351 btcoexist->btc_set(btcoexist, BTC_SET_ACT_DISABLE_LOW_POWER, in halbtc8821a2ant_bt_inquiry_page()
1354 halbtc8821a2ant_coex_table(btcoexist, NORMAL_EXEC, 0x55ff55ff, in halbtc8821a2ant_bt_inquiry_page()
1356 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 3); in halbtc8821a2ant_bt_inquiry_page()
1359 static bool halbtc8821a2ant_is_common_action(struct btc_coexist *btcoexist) in halbtc8821a2ant_is_common_action() argument
1364 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_CONNECTED, in halbtc8821a2ant_is_common_action()
1366 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_BUSY, &wifi_busy); in halbtc8821a2ant_is_common_action()
1368 halbtc8821a2ant_coex_table(btcoexist, NORMAL_EXEC, 0x55ff55ff, in halbtc8821a2ant_is_common_action()
1374 btcoexist->btc_set(btcoexist, BTC_SET_ACT_DISABLE_LOW_POWER, in halbtc8821a2ant_is_common_action()
1380 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 1); in halbtc8821a2ant_is_common_action()
1381 halbtc8821a2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); in halbtc8821a2ant_is_common_action()
1382 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); in halbtc8821a2ant_is_common_action()
1384 btc8821a2ant_sw_mech1(btcoexist, false, false, false, false); in halbtc8821a2ant_is_common_action()
1385 btc8821a2ant_sw_mech2(btcoexist, false, false, false, 0x18); in halbtc8821a2ant_is_common_action()
1391 btcoexist->btc_set(btcoexist, BTC_SET_ACT_DISABLE_LOW_POWER, in halbtc8821a2ant_is_common_action()
1397 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in halbtc8821a2ant_is_common_action()
1402 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in halbtc8821a2ant_is_common_action()
1406 halbtc8821a2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); in halbtc8821a2ant_is_common_action()
1407 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); in halbtc8821a2ant_is_common_action()
1409 btc8821a2ant_sw_mech1(btcoexist, false, false, false, false); in halbtc8821a2ant_is_common_action()
1410 btc8821a2ant_sw_mech2(btcoexist, false, false, false, 0x18); in halbtc8821a2ant_is_common_action()
1416 btcoexist->btc_set(btcoexist, BTC_SET_ACT_DISABLE_LOW_POWER, in halbtc8821a2ant_is_common_action()
1422 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 1); in halbtc8821a2ant_is_common_action()
1423 halbtc8821a2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); in halbtc8821a2ant_is_common_action()
1424 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); in halbtc8821a2ant_is_common_action()
1426 btc8821a2ant_sw_mech1(btcoexist, false, false, false, false); in halbtc8821a2ant_is_common_action()
1427 btc8821a2ant_sw_mech2(btcoexist, false, false, false, 0x18); in halbtc8821a2ant_is_common_action()
1432 btcoexist->btc_set(btcoexist, in halbtc8821a2ant_is_common_action()
1438 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in halbtc8821a2ant_is_common_action()
1443 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in halbtc8821a2ant_is_common_action()
1447 halbtc8821a2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); in halbtc8821a2ant_is_common_action()
1448 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); in halbtc8821a2ant_is_common_action()
1450 btc8821a2ant_sw_mech1(btcoexist, true, true, true, true); in halbtc8821a2ant_is_common_action()
1451 btc8821a2ant_sw_mech2(btcoexist, false, false, false, 0x18); in halbtc8821a2ant_is_common_action()
1458 btcoexist->btc_set(btcoexist, in halbtc8821a2ant_is_common_action()
1464 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 1); in halbtc8821a2ant_is_common_action()
1465 halbtc8821a2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); in halbtc8821a2ant_is_common_action()
1466 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); in halbtc8821a2ant_is_common_action()
1468 btc8821a2ant_sw_mech1(btcoexist, false, false, in halbtc8821a2ant_is_common_action()
1470 btc8821a2ant_sw_mech2(btcoexist, false, false, in halbtc8821a2ant_is_common_action()
1476 btcoexist->btc_set(btcoexist, in halbtc8821a2ant_is_common_action()
1487 halbtc8821a2ant_ps_tdma(btcoexist, in halbtc8821a2ant_is_common_action()
1490 if (halbtc8821a2ant_need_to_dec_bt_pwr(btcoexist)) in halbtc8821a2ant_is_common_action()
1491 halbtc8821a2ant_dec_bt_pwr(btcoexist, in halbtc8821a2ant_is_common_action()
1494 halbtc8821a2ant_dec_bt_pwr(btcoexist, in halbtc8821a2ant_is_common_action()
1499 btc8821a2ant_sw_mech1(btcoexist, true, true, true, true); in halbtc8821a2ant_is_common_action()
1504 static void btc8821a2_int1(struct btc_coexist *btcoexist, bool tx_pause, in btc8821a2_int1() argument
1512 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1516 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1520 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1524 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1528 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1533 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1537 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1541 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1545 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1552 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1556 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1560 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1564 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1568 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1572 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1578 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1582 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1586 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1590 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1594 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1598 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1607 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1611 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1615 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1619 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1624 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1628 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1632 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1636 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1643 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1647 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1651 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1655 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1659 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1663 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1667 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1673 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1677 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1681 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1685 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1689 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1693 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1697 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int1()
1705 static void btc8821a2_int2(struct btc_coexist *btcoexist, bool tx_pause, in btc8821a2_int2() argument
1712 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1716 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1720 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1724 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1729 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1733 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1737 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1741 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1747 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1751 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1755 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1759 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1763 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1767 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1773 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1777 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1781 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1785 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1789 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1793 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1802 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1806 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1810 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1814 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1819 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1823 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1827 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1831 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1837 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1841 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1845 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1849 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1853 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1857 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1863 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1867 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1871 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1875 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1879 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1883 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int2()
1891 static void btc8821a2_int3(struct btc_coexist *btcoexist, bool tx_pause, in btc8821a2_int3() argument
1898 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
1902 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
1906 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
1910 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
1915 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
1919 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
1923 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
1927 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
1933 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
1937 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
1941 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
1945 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
1949 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
1953 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
1959 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
1963 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
1967 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
1971 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
1975 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
1979 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
1988 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
1992 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
1996 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
2000 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
2005 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
2009 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
2013 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
2017 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
2023 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
2027 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
2031 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
2035 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
2039 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
2043 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
2049 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
2053 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
2057 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
2061 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
2065 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
2069 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a2_int3()
2077 static void btc8821a2ant_tdma_dur_adj(struct btc_coexist *btcoexist, in btc8821a2ant_tdma_dur_adj() argument
2098 halbtc8821a2ant_ps_tdma(btcoexist, in btc8821a2ant_tdma_dur_adj()
2103 halbtc8821a2ant_ps_tdma(btcoexist, in btc8821a2ant_tdma_dur_adj()
2108 halbtc8821a2ant_ps_tdma(btcoexist, in btc8821a2ant_tdma_dur_adj()
2113 halbtc8821a2ant_ps_tdma(btcoexist, in btc8821a2ant_tdma_dur_adj()
2120 halbtc8821a2ant_ps_tdma(btcoexist, in btc8821a2ant_tdma_dur_adj()
2125 halbtc8821a2ant_ps_tdma(btcoexist, in btc8821a2ant_tdma_dur_adj()
2130 halbtc8821a2ant_ps_tdma(btcoexist, in btc8821a2ant_tdma_dur_adj()
2135 halbtc8821a2ant_ps_tdma(btcoexist, in btc8821a2ant_tdma_dur_adj()
2144 halbtc8821a2ant_ps_tdma(btcoexist, in btc8821a2ant_tdma_dur_adj()
2149 halbtc8821a2ant_ps_tdma(btcoexist, in btc8821a2ant_tdma_dur_adj()
2154 halbtc8821a2ant_ps_tdma(btcoexist, in btc8821a2ant_tdma_dur_adj()
2159 halbtc8821a2ant_ps_tdma(btcoexist, in btc8821a2ant_tdma_dur_adj()
2166 halbtc8821a2ant_ps_tdma(btcoexist, in btc8821a2ant_tdma_dur_adj()
2171 halbtc8821a2ant_ps_tdma(btcoexist, in btc8821a2ant_tdma_dur_adj()
2176 halbtc8821a2ant_ps_tdma(btcoexist, in btc8821a2ant_tdma_dur_adj()
2181 halbtc8821a2ant_ps_tdma(btcoexist, in btc8821a2ant_tdma_dur_adj()
2284 btc8821a2_int1(btcoexist, tx_pause, result); in btc8821a2ant_tdma_dur_adj()
2286 btc8821a2_int2(btcoexist, tx_pause, result); in btc8821a2ant_tdma_dur_adj()
2288 btc8821a2_int3(btcoexist, tx_pause, result); in btc8821a2ant_tdma_dur_adj()
2302 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_SCAN, &scan); in btc8821a2ant_tdma_dur_adj()
2303 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link); in btc8821a2ant_tdma_dur_adj()
2304 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_ROAM, &roam); in btc8821a2ant_tdma_dur_adj()
2307 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, in btc8821a2ant_tdma_dur_adj()
2315 halbtc8821a2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 0x6); in btc8821a2ant_tdma_dur_adj()
2319 static void halbtc8821a2ant_action_sco(struct btc_coexist *btcoexist) in halbtc8821a2ant_action_sco() argument
2324 wifi_rssi_state = halbtc8821a2ant_wifi_rssi_state(btcoexist, 0, 2, in halbtc8821a2ant_action_sco()
2328 halbtc8821a2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 4); in halbtc8821a2ant_action_sco()
2330 if (halbtc8821a2ant_need_to_dec_bt_pwr(btcoexist)) in halbtc8821a2ant_action_sco()
2331 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, true); in halbtc8821a2ant_action_sco()
2333 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); in halbtc8821a2ant_action_sco()
2335 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); in halbtc8821a2ant_action_sco()
2339 halbtc8821a2ant_coex_table(btcoexist, NORMAL_EXEC, in halbtc8821a2ant_action_sco()
2343 halbtc8821a2ant_coex_table(btcoexist, NORMAL_EXEC, in halbtc8821a2ant_action_sco()
2354 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in halbtc8821a2ant_action_sco()
2357 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in halbtc8821a2ant_action_sco()
2364 btc8821a2ant_sw_mech1(btcoexist, true, true, in halbtc8821a2ant_action_sco()
2366 btc8821a2ant_sw_mech2(btcoexist, true, false, in halbtc8821a2ant_action_sco()
2369 btc8821a2ant_sw_mech1(btcoexist, true, true, in halbtc8821a2ant_action_sco()
2371 btc8821a2ant_sw_mech2(btcoexist, false, false, in halbtc8821a2ant_action_sco()
2380 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in halbtc8821a2ant_action_sco()
2383 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in halbtc8821a2ant_action_sco()
2390 btc8821a2ant_sw_mech1(btcoexist, false, true, in halbtc8821a2ant_action_sco()
2392 btc8821a2ant_sw_mech2(btcoexist, true, false, in halbtc8821a2ant_action_sco()
2395 btc8821a2ant_sw_mech1(btcoexist, false, true, in halbtc8821a2ant_action_sco()
2397 btc8821a2ant_sw_mech2(btcoexist, false, false, in halbtc8821a2ant_action_sco()
2403 static void halbtc8821a2ant_action_hid(struct btc_coexist *btcoexist) in halbtc8821a2ant_action_hid() argument
2408 wifi_rssi_state = halbtc8821a2ant_wifi_rssi_state(btcoexist, in halbtc8821a2ant_action_hid()
2412 halbtc8821a2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); in halbtc8821a2ant_action_hid()
2414 if (halbtc8821a2ant_need_to_dec_bt_pwr(btcoexist)) in halbtc8821a2ant_action_hid()
2415 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, true); in halbtc8821a2ant_action_hid()
2417 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); in halbtc8821a2ant_action_hid()
2419 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); in halbtc8821a2ant_action_hid()
2423 halbtc8821a2ant_coex_table(btcoexist, NORMAL_EXEC, 0x55ff55ff, in halbtc8821a2ant_action_hid()
2427 halbtc8821a2ant_coex_table(btcoexist, NORMAL_EXEC, 0x55ff55ff, in halbtc8821a2ant_action_hid()
2435 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in halbtc8821a2ant_action_hid()
2438 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in halbtc8821a2ant_action_hid()
2445 btc8821a2ant_sw_mech1(btcoexist, true, true, in halbtc8821a2ant_action_hid()
2447 btc8821a2ant_sw_mech2(btcoexist, true, false, in halbtc8821a2ant_action_hid()
2450 btc8821a2ant_sw_mech1(btcoexist, true, true, in halbtc8821a2ant_action_hid()
2452 btc8821a2ant_sw_mech2(btcoexist, false, false, in halbtc8821a2ant_action_hid()
2459 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in halbtc8821a2ant_action_hid()
2462 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in halbtc8821a2ant_action_hid()
2469 btc8821a2ant_sw_mech1(btcoexist, false, true, in halbtc8821a2ant_action_hid()
2471 btc8821a2ant_sw_mech2(btcoexist, true, false, in halbtc8821a2ant_action_hid()
2474 btc8821a2ant_sw_mech1(btcoexist, false, true, in halbtc8821a2ant_action_hid()
2476 btc8821a2ant_sw_mech2(btcoexist, false, false, in halbtc8821a2ant_action_hid()
2483 static void halbtc8821a2ant_action_a2dp(struct btc_coexist *btcoexist) in halbtc8821a2ant_action_a2dp() argument
2488 wifi_rssi_state = halbtc8821a2ant_wifi_rssi_state(btcoexist, 0, 2, in halbtc8821a2ant_action_a2dp()
2496 if (halbtc8821a2ant_need_to_dec_bt_pwr(btcoexist)) in halbtc8821a2ant_action_a2dp()
2497 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, true); in halbtc8821a2ant_action_a2dp()
2499 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); in halbtc8821a2ant_action_a2dp()
2501 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); in halbtc8821a2ant_action_a2dp()
2507 btc8821a2ant_tdma_dur_adj(btcoexist, false, false, 1); in halbtc8821a2ant_action_a2dp()
2509 btc8821a2ant_tdma_dur_adj(btcoexist, false, true, 1); in halbtc8821a2ant_action_a2dp()
2515 btc8821a2ant_sw_mech1(btcoexist, true, false, in halbtc8821a2ant_action_a2dp()
2517 btc8821a2ant_sw_mech2(btcoexist, true, false, in halbtc8821a2ant_action_a2dp()
2520 btc8821a2ant_sw_mech1(btcoexist, true, false, in halbtc8821a2ant_action_a2dp()
2522 btc8821a2ant_sw_mech2(btcoexist, false, false, in halbtc8821a2ant_action_a2dp()
2529 btc8821a2ant_tdma_dur_adj(btcoexist, false, false, 1); in halbtc8821a2ant_action_a2dp()
2531 btc8821a2ant_tdma_dur_adj(btcoexist, false, true, 1); in halbtc8821a2ant_action_a2dp()
2537 btc8821a2ant_sw_mech1(btcoexist, false, false, in halbtc8821a2ant_action_a2dp()
2539 btc8821a2ant_sw_mech2(btcoexist, true, false, in halbtc8821a2ant_action_a2dp()
2542 btc8821a2ant_sw_mech1(btcoexist, false, false, in halbtc8821a2ant_action_a2dp()
2544 btc8821a2ant_sw_mech2(btcoexist, false, false, in halbtc8821a2ant_action_a2dp()
2550 static void halbtc8821a2ant_action_a2dp_pan_hs(struct btc_coexist *btcoexist) in halbtc8821a2ant_action_a2dp_pan_hs() argument
2556 wifi_rssi_state = halbtc8821a2ant_wifi_rssi_state(btcoexist, 0, 2, in halbtc8821a2ant_action_a2dp_pan_hs()
2564 if (halbtc8821a2ant_need_to_dec_bt_pwr(btcoexist)) in halbtc8821a2ant_action_a2dp_pan_hs()
2565 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, true); in halbtc8821a2ant_action_a2dp_pan_hs()
2567 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); in halbtc8821a2ant_action_a2dp_pan_hs()
2569 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); in halbtc8821a2ant_action_a2dp_pan_hs()
2575 btc8821a2ant_tdma_dur_adj(btcoexist, false, true, 2); in halbtc8821a2ant_action_a2dp_pan_hs()
2578 btc8821a2ant_tdma_dur_adj(btcoexist, false, true, 1); in halbtc8821a2ant_action_a2dp_pan_hs()
2584 btc8821a2ant_sw_mech1(btcoexist, true, false, in halbtc8821a2ant_action_a2dp_pan_hs()
2586 btc8821a2ant_sw_mech2(btcoexist, true, false, in halbtc8821a2ant_action_a2dp_pan_hs()
2589 btc8821a2ant_sw_mech1(btcoexist, true, false, in halbtc8821a2ant_action_a2dp_pan_hs()
2591 btc8821a2ant_sw_mech2(btcoexist, false, false, in halbtc8821a2ant_action_a2dp_pan_hs()
2598 btc8821a2ant_tdma_dur_adj(btcoexist, false, true, 2); in halbtc8821a2ant_action_a2dp_pan_hs()
2601 btc8821a2ant_tdma_dur_adj(btcoexist, false, true, 1); in halbtc8821a2ant_action_a2dp_pan_hs()
2607 btc8821a2ant_sw_mech1(btcoexist, false, false, in halbtc8821a2ant_action_a2dp_pan_hs()
2609 btc8821a2ant_sw_mech2(btcoexist, true, false, in halbtc8821a2ant_action_a2dp_pan_hs()
2612 btc8821a2ant_sw_mech1(btcoexist, false, false, in halbtc8821a2ant_action_a2dp_pan_hs()
2614 btc8821a2ant_sw_mech2(btcoexist, false, false, in halbtc8821a2ant_action_a2dp_pan_hs()
2620 static void halbtc8821a2ant_action_pan_edr(struct btc_coexist *btcoexist) in halbtc8821a2ant_action_pan_edr() argument
2625 wifi_rssi_state = halbtc8821a2ant_wifi_rssi_state(btcoexist, 0, 2, in halbtc8821a2ant_action_pan_edr()
2629 halbtc8821a2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); in halbtc8821a2ant_action_pan_edr()
2631 if (halbtc8821a2ant_need_to_dec_bt_pwr(btcoexist)) in halbtc8821a2ant_action_pan_edr()
2632 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, true); in halbtc8821a2ant_action_pan_edr()
2634 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); in halbtc8821a2ant_action_pan_edr()
2636 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); in halbtc8821a2ant_action_pan_edr()
2640 halbtc8821a2ant_coex_table(btcoexist, NORMAL_EXEC, 0x55ff55ff, in halbtc8821a2ant_action_pan_edr()
2644 halbtc8821a2ant_coex_table(btcoexist, NORMAL_EXEC, 0x55ff55ff, in halbtc8821a2ant_action_pan_edr()
2652 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in halbtc8821a2ant_action_pan_edr()
2655 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in halbtc8821a2ant_action_pan_edr()
2662 btc8821a2ant_sw_mech1(btcoexist, true, false, in halbtc8821a2ant_action_pan_edr()
2664 btc8821a2ant_sw_mech2(btcoexist, true, false, in halbtc8821a2ant_action_pan_edr()
2667 btc8821a2ant_sw_mech1(btcoexist, true, false, in halbtc8821a2ant_action_pan_edr()
2669 btc8821a2ant_sw_mech2(btcoexist, false, false, in halbtc8821a2ant_action_pan_edr()
2676 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in halbtc8821a2ant_action_pan_edr()
2679 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in halbtc8821a2ant_action_pan_edr()
2686 btc8821a2ant_sw_mech1(btcoexist, false, false, in halbtc8821a2ant_action_pan_edr()
2688 btc8821a2ant_sw_mech2(btcoexist, true, false, in halbtc8821a2ant_action_pan_edr()
2691 btc8821a2ant_sw_mech1(btcoexist, false, false, in halbtc8821a2ant_action_pan_edr()
2693 btc8821a2ant_sw_mech2(btcoexist, false, false, in halbtc8821a2ant_action_pan_edr()
2700 static void halbtc8821a2ant_action_pan_hs(struct btc_coexist *btcoexist) in halbtc8821a2ant_action_pan_hs() argument
2705 wifi_rssi_state = halbtc8821a2ant_wifi_rssi_state(btcoexist, in halbtc8821a2ant_action_pan_hs()
2709 halbtc8821a2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); in halbtc8821a2ant_action_pan_hs()
2711 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); in halbtc8821a2ant_action_pan_hs()
2717 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, in halbtc8821a2ant_action_pan_hs()
2720 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, in halbtc8821a2ant_action_pan_hs()
2723 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 1); in halbtc8821a2ant_action_pan_hs()
2728 btc8821a2ant_sw_mech1(btcoexist, true, false, in halbtc8821a2ant_action_pan_hs()
2730 btc8821a2ant_sw_mech2(btcoexist, true, false, in halbtc8821a2ant_action_pan_hs()
2733 btc8821a2ant_sw_mech1(btcoexist, true, false, in halbtc8821a2ant_action_pan_hs()
2735 btc8821a2ant_sw_mech2(btcoexist, false, false, in halbtc8821a2ant_action_pan_hs()
2742 halbtc8821a2ant_dec_bt_pwr(btcoexist, in halbtc8821a2ant_action_pan_hs()
2745 halbtc8821a2ant_dec_bt_pwr(btcoexist, in halbtc8821a2ant_action_pan_hs()
2751 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in halbtc8821a2ant_action_pan_hs()
2754 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in halbtc8821a2ant_action_pan_hs()
2761 btc8821a2ant_sw_mech1(btcoexist, false, false, in halbtc8821a2ant_action_pan_hs()
2763 btc8821a2ant_sw_mech2(btcoexist, true, false, in halbtc8821a2ant_action_pan_hs()
2766 btc8821a2ant_sw_mech1(btcoexist, false, false, in halbtc8821a2ant_action_pan_hs()
2768 btc8821a2ant_sw_mech2(btcoexist, false, false, in halbtc8821a2ant_action_pan_hs()
2775 static void halbtc8821a2ant_action_pan_edr_a2dp(struct btc_coexist *btcoexist) in halbtc8821a2ant_action_pan_edr_a2dp() argument
2781 wifi_rssi_state = halbtc8821a2ant_wifi_rssi_state(btcoexist, 0, 2, in halbtc8821a2ant_action_pan_edr_a2dp()
2785 halbtc8821a2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); in halbtc8821a2ant_action_pan_edr_a2dp()
2787 if (halbtc8821a2ant_need_to_dec_bt_pwr(btcoexist)) in halbtc8821a2ant_action_pan_edr_a2dp()
2788 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, true); in halbtc8821a2ant_action_pan_edr_a2dp()
2790 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); in halbtc8821a2ant_action_pan_edr_a2dp()
2792 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); in halbtc8821a2ant_action_pan_edr_a2dp()
2796 halbtc8821a2ant_coex_table(btcoexist, NORMAL_EXEC, 0x55ff55ff, in halbtc8821a2ant_action_pan_edr_a2dp()
2800 halbtc8821a2ant_coex_table(btcoexist, NORMAL_EXEC, 0x55ff55ff, in halbtc8821a2ant_action_pan_edr_a2dp()
2810 btc8821a2ant_tdma_dur_adj(btcoexist, false, in halbtc8821a2ant_action_pan_edr_a2dp()
2814 btc8821a2ant_tdma_dur_adj(btcoexist, false, in halbtc8821a2ant_action_pan_edr_a2dp()
2820 btc8821a2ant_tdma_dur_adj(btcoexist, false, in halbtc8821a2ant_action_pan_edr_a2dp()
2824 btc8821a2ant_tdma_dur_adj(btcoexist, false, in halbtc8821a2ant_action_pan_edr_a2dp()
2832 btc8821a2ant_sw_mech1(btcoexist, true, false, in halbtc8821a2ant_action_pan_edr_a2dp()
2834 btc8821a2ant_sw_mech2(btcoexist, true, false, in halbtc8821a2ant_action_pan_edr_a2dp()
2837 btc8821a2ant_sw_mech1(btcoexist, true, false, in halbtc8821a2ant_action_pan_edr_a2dp()
2839 btc8821a2ant_sw_mech2(btcoexist, false, false, in halbtc8821a2ant_action_pan_edr_a2dp()
2848 btc8821a2ant_tdma_dur_adj(btcoexist, false, in halbtc8821a2ant_action_pan_edr_a2dp()
2852 btc8821a2ant_tdma_dur_adj(btcoexist, false, in halbtc8821a2ant_action_pan_edr_a2dp()
2858 btc8821a2ant_tdma_dur_adj(btcoexist, false, in halbtc8821a2ant_action_pan_edr_a2dp()
2862 btc8821a2ant_tdma_dur_adj(btcoexist, false, in halbtc8821a2ant_action_pan_edr_a2dp()
2870 btc8821a2ant_sw_mech1(btcoexist, false, false, in halbtc8821a2ant_action_pan_edr_a2dp()
2872 btc8821a2ant_sw_mech2(btcoexist, true, false, in halbtc8821a2ant_action_pan_edr_a2dp()
2875 btc8821a2ant_sw_mech1(btcoexist, false, false, in halbtc8821a2ant_action_pan_edr_a2dp()
2877 btc8821a2ant_sw_mech2(btcoexist, false, false, in halbtc8821a2ant_action_pan_edr_a2dp()
2883 static void halbtc8821a2ant_action_pan_edr_hid(struct btc_coexist *btcoexist) in halbtc8821a2ant_action_pan_edr_hid() argument
2888 wifi_rssi_state = halbtc8821a2ant_wifi_rssi_state(btcoexist, 0, 2, in halbtc8821a2ant_action_pan_edr_hid()
2892 halbtc8821a2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); in halbtc8821a2ant_action_pan_edr_hid()
2894 if (halbtc8821a2ant_need_to_dec_bt_pwr(btcoexist)) in halbtc8821a2ant_action_pan_edr_hid()
2895 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, true); in halbtc8821a2ant_action_pan_edr_hid()
2897 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); in halbtc8821a2ant_action_pan_edr_hid()
2899 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); in halbtc8821a2ant_action_pan_edr_hid()
2903 halbtc8821a2ant_coex_table(btcoexist, NORMAL_EXEC, 0x55ff55ff, in halbtc8821a2ant_action_pan_edr_hid()
2907 halbtc8821a2ant_coex_table(btcoexist, NORMAL_EXEC, 0x55ff55ff, in halbtc8821a2ant_action_pan_edr_hid()
2912 halbtc8821a2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 3); in halbtc8821a2ant_action_pan_edr_hid()
2916 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in halbtc8821a2ant_action_pan_edr_hid()
2919 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in halbtc8821a2ant_action_pan_edr_hid()
2926 btc8821a2ant_sw_mech1(btcoexist, true, true, in halbtc8821a2ant_action_pan_edr_hid()
2928 btc8821a2ant_sw_mech2(btcoexist, true, false, in halbtc8821a2ant_action_pan_edr_hid()
2931 btc8821a2ant_sw_mech1(btcoexist, true, true, in halbtc8821a2ant_action_pan_edr_hid()
2933 btc8821a2ant_sw_mech2(btcoexist, false, false, in halbtc8821a2ant_action_pan_edr_hid()
2937 halbtc8821a2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); in halbtc8821a2ant_action_pan_edr_hid()
2941 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in halbtc8821a2ant_action_pan_edr_hid()
2944 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, in halbtc8821a2ant_action_pan_edr_hid()
2951 btc8821a2ant_sw_mech1(btcoexist, false, true, in halbtc8821a2ant_action_pan_edr_hid()
2953 btc8821a2ant_sw_mech2(btcoexist, true, false, in halbtc8821a2ant_action_pan_edr_hid()
2956 btc8821a2ant_sw_mech1(btcoexist, false, true, in halbtc8821a2ant_action_pan_edr_hid()
2958 btc8821a2ant_sw_mech2(btcoexist, false, false, in halbtc8821a2ant_action_pan_edr_hid()
2965 static void btc8821a2ant_act_hid_a2dp_pan_edr(struct btc_coexist *btcoexist) in btc8821a2ant_act_hid_a2dp_pan_edr() argument
2971 wifi_rssi_state = halbtc8821a2ant_wifi_rssi_state(btcoexist, in btc8821a2ant_act_hid_a2dp_pan_edr()
2975 halbtc8821a2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); in btc8821a2ant_act_hid_a2dp_pan_edr()
2977 if (halbtc8821a2ant_need_to_dec_bt_pwr(btcoexist)) in btc8821a2ant_act_hid_a2dp_pan_edr()
2978 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, true); in btc8821a2ant_act_hid_a2dp_pan_edr()
2980 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); in btc8821a2ant_act_hid_a2dp_pan_edr()
2982 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); in btc8821a2ant_act_hid_a2dp_pan_edr()
2986 halbtc8821a2ant_coex_table(btcoexist, NORMAL_EXEC, 0x55ff55ff, in btc8821a2ant_act_hid_a2dp_pan_edr()
2990 halbtc8821a2ant_coex_table(btcoexist, NORMAL_EXEC, 0x55ff55ff, in btc8821a2ant_act_hid_a2dp_pan_edr()
3000 btc8821a2ant_tdma_dur_adj(btcoexist, true, in btc8821a2ant_act_hid_a2dp_pan_edr()
3004 btc8821a2ant_tdma_dur_adj(btcoexist, true, in btc8821a2ant_act_hid_a2dp_pan_edr()
3010 btc8821a2ant_tdma_dur_adj(btcoexist, true, in btc8821a2ant_act_hid_a2dp_pan_edr()
3014 btc8821a2ant_tdma_dur_adj(btcoexist, true, in btc8821a2ant_act_hid_a2dp_pan_edr()
3022 btc8821a2ant_sw_mech1(btcoexist, true, true, in btc8821a2ant_act_hid_a2dp_pan_edr()
3024 btc8821a2ant_sw_mech2(btcoexist, true, false, in btc8821a2ant_act_hid_a2dp_pan_edr()
3027 btc8821a2ant_sw_mech1(btcoexist, true, true, in btc8821a2ant_act_hid_a2dp_pan_edr()
3029 btc8821a2ant_sw_mech2(btcoexist, false, false, in btc8821a2ant_act_hid_a2dp_pan_edr()
3038 btc8821a2ant_tdma_dur_adj(btcoexist, true, in btc8821a2ant_act_hid_a2dp_pan_edr()
3042 btc8821a2ant_tdma_dur_adj(btcoexist, true, in btc8821a2ant_act_hid_a2dp_pan_edr()
3048 btc8821a2ant_tdma_dur_adj(btcoexist, true, in btc8821a2ant_act_hid_a2dp_pan_edr()
3052 btc8821a2ant_tdma_dur_adj(btcoexist, true, in btc8821a2ant_act_hid_a2dp_pan_edr()
3060 btc8821a2ant_sw_mech1(btcoexist, false, true, in btc8821a2ant_act_hid_a2dp_pan_edr()
3062 btc8821a2ant_sw_mech2(btcoexist, true, false, in btc8821a2ant_act_hid_a2dp_pan_edr()
3065 btc8821a2ant_sw_mech1(btcoexist, false, true, in btc8821a2ant_act_hid_a2dp_pan_edr()
3067 btc8821a2ant_sw_mech2(btcoexist, false, false, in btc8821a2ant_act_hid_a2dp_pan_edr()
3073 static void halbtc8821a2ant_action_hid_a2dp(struct btc_coexist *btcoexist) in halbtc8821a2ant_action_hid_a2dp() argument
3079 wifi_rssi_state = halbtc8821a2ant_wifi_rssi_state(btcoexist, 0, 2, in halbtc8821a2ant_action_hid_a2dp()
3083 if (halbtc8821a2ant_need_to_dec_bt_pwr(btcoexist)) in halbtc8821a2ant_action_hid_a2dp()
3084 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, true); in halbtc8821a2ant_action_hid_a2dp()
3086 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); in halbtc8821a2ant_action_hid_a2dp()
3088 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); in halbtc8821a2ant_action_hid_a2dp()
3092 halbtc8821a2ant_coex_table(btcoexist, NORMAL_EXEC, 0x55ff55ff, in halbtc8821a2ant_action_hid_a2dp()
3096 halbtc8821a2ant_coex_table(btcoexist, NORMAL_EXEC, 0x55ff55ff, in halbtc8821a2ant_action_hid_a2dp()
3106 btc8821a2ant_tdma_dur_adj(btcoexist, in halbtc8821a2ant_action_hid_a2dp()
3110 btc8821a2ant_tdma_dur_adj(btcoexist, in halbtc8821a2ant_action_hid_a2dp()
3116 btc8821a2ant_tdma_dur_adj(btcoexist, in halbtc8821a2ant_action_hid_a2dp()
3120 btc8821a2ant_tdma_dur_adj(btcoexist, in halbtc8821a2ant_action_hid_a2dp()
3128 btc8821a2ant_sw_mech1(btcoexist, true, true, in halbtc8821a2ant_action_hid_a2dp()
3130 btc8821a2ant_sw_mech2(btcoexist, true, false, in halbtc8821a2ant_action_hid_a2dp()
3133 btc8821a2ant_sw_mech1(btcoexist, true, true, in halbtc8821a2ant_action_hid_a2dp()
3135 btc8821a2ant_sw_mech2(btcoexist, false, false, in halbtc8821a2ant_action_hid_a2dp()
3144 btc8821a2ant_tdma_dur_adj(btcoexist, in halbtc8821a2ant_action_hid_a2dp()
3149 btc8821a2ant_tdma_dur_adj(btcoexist, in halbtc8821a2ant_action_hid_a2dp()
3155 btc8821a2ant_tdma_dur_adj(btcoexist, in halbtc8821a2ant_action_hid_a2dp()
3159 btc8821a2ant_tdma_dur_adj(btcoexist, in halbtc8821a2ant_action_hid_a2dp()
3167 btc8821a2ant_sw_mech1(btcoexist, false, true, in halbtc8821a2ant_action_hid_a2dp()
3169 btc8821a2ant_sw_mech2(btcoexist, true, false, in halbtc8821a2ant_action_hid_a2dp()
3172 btc8821a2ant_sw_mech1(btcoexist, false, true, in halbtc8821a2ant_action_hid_a2dp()
3174 btc8821a2ant_sw_mech2(btcoexist, false, false, in halbtc8821a2ant_action_hid_a2dp()
3180 static void halbtc8821a2ant_run_coexist_mechanism(struct btc_coexist *btcoexist) in halbtc8821a2ant_run_coexist_mechanism() argument
3185 if (btcoexist->manual_control) { in halbtc8821a2ant_run_coexist_mechanism()
3191 btcoexist->btc_get(btcoexist, in halbtc8821a2ant_run_coexist_mechanism()
3197 halbtc8821a2ant_coex_under_5g(btcoexist); in halbtc8821a2ant_run_coexist_mechanism()
3201 algorithm = halbtc8821a2ant_action_algorithm(btcoexist); in halbtc8821a2ant_run_coexist_mechanism()
3206 halbtc8821a2ant_bt_inquiry_page(btcoexist); in halbtc8821a2ant_run_coexist_mechanism()
3214 if (halbtc8821a2ant_is_common_action(btcoexist)) { in halbtc8821a2ant_run_coexist_mechanism()
3229 halbtc8821a2ant_action_sco(btcoexist); in halbtc8821a2ant_run_coexist_mechanism()
3234 halbtc8821a2ant_action_hid(btcoexist); in halbtc8821a2ant_run_coexist_mechanism()
3239 halbtc8821a2ant_action_a2dp(btcoexist); in halbtc8821a2ant_run_coexist_mechanism()
3244 halbtc8821a2ant_action_a2dp_pan_hs(btcoexist); in halbtc8821a2ant_run_coexist_mechanism()
3249 halbtc8821a2ant_action_pan_edr(btcoexist); in halbtc8821a2ant_run_coexist_mechanism()
3254 halbtc8821a2ant_action_pan_hs(btcoexist); in halbtc8821a2ant_run_coexist_mechanism()
3259 halbtc8821a2ant_action_pan_edr_a2dp(btcoexist); in halbtc8821a2ant_run_coexist_mechanism()
3264 halbtc8821a2ant_action_pan_edr_hid(btcoexist); in halbtc8821a2ant_run_coexist_mechanism()
3269 btc8821a2ant_act_hid_a2dp_pan_edr(btcoexist); in halbtc8821a2ant_run_coexist_mechanism()
3274 halbtc8821a2ant_action_hid_a2dp(btcoexist); in halbtc8821a2ant_run_coexist_mechanism()
3279 halbtc8821a2ant_coex_all_off(btcoexist); in halbtc8821a2ant_run_coexist_mechanism()
3293 void ex_halbtc8821a2ant_init_hwconfig(struct btc_coexist *btcoexist) in ex_halbtc8821a2ant_init_hwconfig() argument
3302 btcoexist->btc_get_rf_reg(btcoexist, BTC_RF_A, 0x1e, 0xfffff); in ex_halbtc8821a2ant_init_hwconfig()
3305 u1tmp = btcoexist->btc_read_1byte(btcoexist, 0x790); in ex_halbtc8821a2ant_init_hwconfig()
3308 btcoexist->btc_write_1byte(btcoexist, 0x790, u1tmp); in ex_halbtc8821a2ant_init_hwconfig()
3311 halbtc8821a2ant_set_ant_path(btcoexist, in ex_halbtc8821a2ant_init_hwconfig()
3315 halbtc8821a2ant_coex_table(btcoexist, in ex_halbtc8821a2ant_init_hwconfig()
3321 btcoexist->btc_write_1byte(btcoexist, 0x76e, 0xc); in ex_halbtc8821a2ant_init_hwconfig()
3322 btcoexist->btc_write_1byte(btcoexist, 0x778, 0x3); in ex_halbtc8821a2ant_init_hwconfig()
3323 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x40, 0x20, 0x1); in ex_halbtc8821a2ant_init_hwconfig()
3328 struct btc_coexist *btcoexist in ex_halbtc8821a2ant_init_coex_dm() argument
3334 halbtc8821a2ant_init_coex_dm(btcoexist); in ex_halbtc8821a2ant_init_coex_dm()
3339 struct btc_coexist *btcoexist in ex_halbtc8821a2ant_display_coex_info() argument
3342 struct btc_board_info *board_info = &btcoexist->board_info; in ex_halbtc8821a2ant_display_coex_info()
3343 struct btc_stack_info *stack_info = &btcoexist->stack_info; in ex_halbtc8821a2ant_display_coex_info()
3344 struct rtl_priv *rtlpriv = btcoexist->adapter; in ex_halbtc8821a2ant_display_coex_info()
3366 if (btcoexist->manual_control) { in ex_halbtc8821a2ant_display_coex_info()
3376 btcoexist->btc_get(btcoexist, BTC_GET_U4_BT_PATCH_VER, &bt_patch_ver); in ex_halbtc8821a2ant_display_coex_info()
3377 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_FW_VER, &fw_ver); in ex_halbtc8821a2ant_display_coex_info()
3384 btcoexist->btc_get(btcoexist, in ex_halbtc8821a2ant_display_coex_info()
3386 btcoexist->btc_get(btcoexist, in ex_halbtc8821a2ant_display_coex_info()
3388 btcoexist->btc_get(btcoexist, in ex_halbtc8821a2ant_display_coex_info()
3401 btcoexist->btc_get(btcoexist, BTC_GET_S4_WIFI_RSSI, &wifi_rssi); in ex_halbtc8821a2ant_display_coex_info()
3402 btcoexist->btc_get(btcoexist, BTC_GET_S4_HS_RSSI, &bt_hs_rssi); in ex_halbtc8821a2ant_display_coex_info()
3407 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_SCAN, &scan); in ex_halbtc8821a2ant_display_coex_info()
3408 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link); in ex_halbtc8821a2ant_display_coex_info()
3409 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_ROAM, &roam); in ex_halbtc8821a2ant_display_coex_info()
3414 btcoexist->btc_get(btcoexist, in ex_halbtc8821a2ant_display_coex_info()
3416 btcoexist->btc_get(btcoexist, in ex_halbtc8821a2ant_display_coex_info()
3418 btcoexist->btc_get(btcoexist, in ex_halbtc8821a2ant_display_coex_info()
3420 btcoexist->btc_get(btcoexist, in ex_halbtc8821a2ant_display_coex_info()
3445 btcoexist->btc_disp_dbg_msg(btcoexist, in ex_halbtc8821a2ant_display_coex_info()
3474 btcoexist->btc_disp_dbg_msg(btcoexist, BTC_DBG_DISP_FW_PWR_MODE_CMD); in ex_halbtc8821a2ant_display_coex_info()
3494 if (!btcoexist->manual_control) { in ex_halbtc8821a2ant_display_coex_info()
3517 u1tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x778); in ex_halbtc8821a2ant_display_coex_info()
3518 u1tmp[1] = btcoexist->btc_read_1byte(btcoexist, 0x6cc); in ex_halbtc8821a2ant_display_coex_info()
3523 u1tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x8db); in ex_halbtc8821a2ant_display_coex_info()
3524 u1tmp[1] = btcoexist->btc_read_1byte(btcoexist, 0xc5b); in ex_halbtc8821a2ant_display_coex_info()
3529 u4tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0xcb4); in ex_halbtc8821a2ant_display_coex_info()
3534 u1tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x40); in ex_halbtc8821a2ant_display_coex_info()
3535 u4tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x4c); in ex_halbtc8821a2ant_display_coex_info()
3536 u4tmp[1] = btcoexist->btc_read_4byte(btcoexist, 0x974); in ex_halbtc8821a2ant_display_coex_info()
3541 u4tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x550); in ex_halbtc8821a2ant_display_coex_info()
3542 u1tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x522); in ex_halbtc8821a2ant_display_coex_info()
3547 u4tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0xc50); in ex_halbtc8821a2ant_display_coex_info()
3548 u1tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0xa0a); in ex_halbtc8821a2ant_display_coex_info()
3553 u4tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0xf48); in ex_halbtc8821a2ant_display_coex_info()
3554 u1tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0xa5b); in ex_halbtc8821a2ant_display_coex_info()
3555 u1tmp[1] = btcoexist->btc_read_1byte(btcoexist, 0xa5c); in ex_halbtc8821a2ant_display_coex_info()
3560 u4tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x6c0); in ex_halbtc8821a2ant_display_coex_info()
3561 u4tmp[1] = btcoexist->btc_read_4byte(btcoexist, 0x6c4); in ex_halbtc8821a2ant_display_coex_info()
3562 u4tmp[2] = btcoexist->btc_read_4byte(btcoexist, 0x6c8); in ex_halbtc8821a2ant_display_coex_info()
3575 u1tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x41b); in ex_halbtc8821a2ant_display_coex_info()
3580 btcoexist->btc_disp_dbg_msg(btcoexist, BTC_DBG_DISP_COEX_STATISTICS); in ex_halbtc8821a2ant_display_coex_info()
3583 void ex_halbtc8821a2ant_ips_notify(struct btc_coexist *btcoexist, u8 type) in ex_halbtc8821a2ant_ips_notify() argument
3589 halbtc8821a2ant_coex_all_off(btcoexist); in ex_halbtc8821a2ant_ips_notify()
3598 void ex_halbtc8821a2ant_lps_notify(struct btc_coexist *btcoexist, u8 type) in ex_halbtc8821a2ant_lps_notify() argument
3611 void ex_halbtc8821a2ant_scan_notify(struct btc_coexist *btcoexist, u8 type) in ex_halbtc8821a2ant_scan_notify() argument
3622 void ex_halbtc8821a2ant_connect_notify(struct btc_coexist *btcoexist, u8 type) in ex_halbtc8821a2ant_connect_notify() argument
3633 void ex_halbtc8821a2ant_media_status_notify(struct btc_coexist *btcoexist, in ex_halbtc8821a2ant_media_status_notify() argument
3649 btcoexist->btc_get(btcoexist, BTC_GET_U1_WIFI_CENTRAL_CHNL, in ex_halbtc8821a2ant_media_status_notify()
3655 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); in ex_halbtc8821a2ant_media_status_notify()
3670 btcoexist->btc_fill_h2c(btcoexist, 0x66, 3, h2c_parameter); in ex_halbtc8821a2ant_media_status_notify()
3673 void ex_halbtc8821a2ant_special_packet_notify(struct btc_coexist *btcoexist, in ex_halbtc8821a2ant_special_packet_notify() argument
3681 void ex_halbtc8821a2ant_bt_info_notify(struct btc_coexist *btcoexist, in ex_halbtc8821a2ant_bt_info_notify() argument
3726 btcoexist->btc_get(btcoexist, in ex_halbtc8821a2ant_bt_info_notify()
3729 ex_halbtc8821a2ant_media_status_notify(btcoexist, in ex_halbtc8821a2ant_bt_info_notify()
3732 ex_halbtc8821a2ant_media_status_notify(btcoexist, in ex_halbtc8821a2ant_bt_info_notify()
3739 halbtc8821a2ant_set_bt_psd_mode(btcoexist, FORCE_EXEC, in ex_halbtc8821a2ant_bt_info_notify()
3747 btc8821a2_set_bt_lna_const(btcoexist, in ex_halbtc8821a2ant_bt_info_notify()
3758 halbtc8821a2ant_ignore_wlan_act(btcoexist, in ex_halbtc8821a2ant_bt_info_notify()
3767 halbtc8821a2ant_bt_auto_report(btcoexist, in ex_halbtc8821a2ant_bt_info_notify()
3772 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); in ex_halbtc8821a2ant_bt_info_notify()
3820 btcoexist->btc_set(btcoexist, BTC_SET_BL_BT_TRAFFIC_BUSY, &bt_busy); in ex_halbtc8821a2ant_bt_info_notify()
3827 btcoexist->btc_set(btcoexist, in ex_halbtc8821a2ant_bt_info_notify()
3830 halbtc8821a2ant_run_coexist_mechanism(btcoexist); in ex_halbtc8821a2ant_bt_info_notify()
3833 void ex_halbtc8821a2ant_halt_notify(struct btc_coexist *btcoexist) in ex_halbtc8821a2ant_halt_notify() argument
3838 halbtc8821a2ant_ignore_wlan_act(btcoexist, FORCE_EXEC, true); in ex_halbtc8821a2ant_halt_notify()
3839 ex_halbtc8821a2ant_media_status_notify(btcoexist, BTC_MEDIA_DISCONNECT); in ex_halbtc8821a2ant_halt_notify()
3842 void ex_halbtc8821a2ant_periodical(struct btc_coexist *btcoexist) in ex_halbtc8821a2ant_periodical() argument
3846 struct btc_board_info *board_info = &btcoexist->board_info; in ex_halbtc8821a2ant_periodical()
3847 struct btc_stack_info *stack_info = &btcoexist->stack_info; in ex_halbtc8821a2ant_periodical()
3865 btcoexist->btc_get(btcoexist, BTC_GET_U4_BT_PATCH_VER, in ex_halbtc8821a2ant_periodical()
3867 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_FW_VER, &fw_ver); in ex_halbtc8821a2ant_periodical()
3876 halbtc8821a2ant_query_bt_info(btcoexist); in ex_halbtc8821a2ant_periodical()
3877 halbtc8821a2ant_monitor_bt_ctr(btcoexist); in ex_halbtc8821a2ant_periodical()
3878 btc8821a2ant_mon_bt_en_dis(btcoexist); in ex_halbtc8821a2ant_periodical()