Lines Matching refs:btcoexist
159 static u8 halbtc8192e2ant_wifirssi_state(struct btc_coexist *btcoexist, in halbtc8192e2ant_wifirssi_state() argument
166 btcoexist->btc_get(btcoexist, BTC_GET_S4_WIFI_RSSI, &wifirssi); in halbtc8192e2ant_wifirssi_state()
262 static void btc8192e2ant_monitor_bt_enable_dis(struct btc_coexist *btcoexist) in btc8192e2ant_monitor_bt_enable_dis() argument
285 btcoexist->btc_set(btcoexist, BTC_SET_BL_BT_DISABLE, in btc8192e2ant_monitor_bt_enable_dis()
296 btcoexist->btc_set(btcoexist, BTC_SET_BL_BT_DISABLE, in btc8192e2ant_monitor_bt_enable_dis()
311 static u32 halbtc8192e2ant_decidera_mask(struct btc_coexist *btcoexist, in halbtc8192e2ant_decidera_mask() argument
342 static void halbtc8192e2ant_Updatera_mask(struct btc_coexist *btcoexist, in halbtc8192e2ant_Updatera_mask() argument
348 btcoexist->btc_set(btcoexist, BTC_SET_ACT_UPDATE_ra_mask, in halbtc8192e2ant_Updatera_mask()
353 static void btc8192e2ant_autorate_fallback_retry(struct btc_coexist *btcoexist, in btc8192e2ant_autorate_fallback_retry() argument
363 btcoexist->btc_write_4byte(btcoexist, 0x430, in btc8192e2ant_autorate_fallback_retry()
365 btcoexist->btc_write_4byte(btcoexist, 0x434, in btc8192e2ant_autorate_fallback_retry()
369 btcoexist->btc_get(btcoexist, in btc8192e2ant_autorate_fallback_retry()
373 btcoexist->btc_write_4byte(btcoexist, 0x430, in btc8192e2ant_autorate_fallback_retry()
375 btcoexist->btc_write_4byte(btcoexist, 0x434, in btc8192e2ant_autorate_fallback_retry()
378 btcoexist->btc_write_4byte(btcoexist, 0x430, in btc8192e2ant_autorate_fallback_retry()
380 btcoexist->btc_write_4byte(btcoexist, 0x434, in btc8192e2ant_autorate_fallback_retry()
392 static void halbtc8192e2ant_retrylimit(struct btc_coexist *btcoexist, in halbtc8192e2ant_retrylimit() argument
401 btcoexist->btc_write_2byte(btcoexist, 0x42a, in halbtc8192e2ant_retrylimit()
405 btcoexist->btc_write_2byte(btcoexist, 0x42a, in halbtc8192e2ant_retrylimit()
416 static void halbtc8192e2ant_ampdu_maxtime(struct btc_coexist *btcoexist, in halbtc8192e2ant_ampdu_maxtime() argument
425 btcoexist->btc_write_1byte(btcoexist, 0x456, in halbtc8192e2ant_ampdu_maxtime()
429 btcoexist->btc_write_1byte(btcoexist, 0x456, 0x38); in halbtc8192e2ant_ampdu_maxtime()
439 static void halbtc8192e2ant_limited_tx(struct btc_coexist *btcoexist, in halbtc8192e2ant_limited_tx() argument
447 disra_mask = halbtc8192e2ant_decidera_mask(btcoexist, in halbtc8192e2ant_limited_tx()
450 halbtc8192e2ant_Updatera_mask(btcoexist, force_exec, disra_mask); in halbtc8192e2ant_limited_tx()
451 btc8192e2ant_autorate_fallback_retry(btcoexist, force_exec, arfr_type); in halbtc8192e2ant_limited_tx()
452 halbtc8192e2ant_retrylimit(btcoexist, force_exec, retrylimit_type); in halbtc8192e2ant_limited_tx()
453 halbtc8192e2ant_ampdu_maxtime(btcoexist, force_exec, ampdutime_type); in halbtc8192e2ant_limited_tx()
456 static void halbtc8192e2ant_limited_rx(struct btc_coexist *btcoexist, in halbtc8192e2ant_limited_rx() argument
468 btcoexist->btc_set(btcoexist, BTC_SET_BL_TO_REJ_AP_AGG_PKT, in halbtc8192e2ant_limited_rx()
471 btcoexist->btc_set(btcoexist, BTC_SET_BL_BT_CTRL_AGG_SIZE, in halbtc8192e2ant_limited_rx()
476 btcoexist->btc_set(btcoexist, BTC_SET_U1_AGG_BUF_SIZE, &rx_agg_size); in halbtc8192e2ant_limited_rx()
478 btcoexist->btc_set(btcoexist, BTC_SET_ACT_AGGREGATE_CTRL, NULL); in halbtc8192e2ant_limited_rx()
481 static void halbtc8192e2ant_monitor_bt_ctr(struct btc_coexist *btcoexist) in halbtc8192e2ant_monitor_bt_ctr() argument
489 u32tmp = btcoexist->btc_read_4byte(btcoexist, reg_hp_txrx); in halbtc8192e2ant_monitor_bt_ctr()
493 u32tmp = btcoexist->btc_read_4byte(btcoexist, reg_lp_txrx); in halbtc8192e2ant_monitor_bt_ctr()
510 btcoexist->btc_write_1byte(btcoexist, 0x76e, 0xc); in halbtc8192e2ant_monitor_bt_ctr()
513 static void halbtc8192e2ant_querybt_info(struct btc_coexist *btcoexist) in halbtc8192e2ant_querybt_info() argument
525 btcoexist->btc_fill_h2c(btcoexist, 0x61, 1, h2c_parameter); in halbtc8192e2ant_querybt_info()
528 static void halbtc8192e2ant_update_btlink_info(struct btc_coexist *btcoexist) in halbtc8192e2ant_update_btlink_info() argument
530 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; in halbtc8192e2ant_update_btlink_info()
533 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hson); in halbtc8192e2ant_update_btlink_info()
584 static u8 halbtc8192e2ant_action_algorithm(struct btc_coexist *btcoexist) in halbtc8192e2ant_action_algorithm() argument
586 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; in halbtc8192e2ant_action_algorithm()
587 struct btc_stack_info *stack_info = &btcoexist->stack_info; in halbtc8192e2ant_action_algorithm()
592 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hson); in halbtc8192e2ant_action_algorithm()
771 static void halbtc8192e2ant_setfw_dac_swinglevel(struct btc_coexist *btcoexist, in halbtc8192e2ant_setfw_dac_swinglevel() argument
786 btcoexist->btc_fill_h2c(btcoexist, 0x64, 1, h2c_parameter); in halbtc8192e2ant_setfw_dac_swinglevel()
789 static void halbtc8192e2ant_set_fwdec_btpwr(struct btc_coexist *btcoexist, in halbtc8192e2ant_set_fwdec_btpwr() argument
800 btcoexist->btc_fill_h2c(btcoexist, 0x62, 1, h2c_parameter); in halbtc8192e2ant_set_fwdec_btpwr()
803 static void halbtc8192e2ant_dec_btpwr(struct btc_coexist *btcoexist, in halbtc8192e2ant_dec_btpwr() argument
816 halbtc8192e2ant_set_fwdec_btpwr(btcoexist, coex_dm->cur_dec_bt_pwr); in halbtc8192e2ant_dec_btpwr()
821 static void halbtc8192e2ant_set_bt_autoreport(struct btc_coexist *btcoexist, in halbtc8192e2ant_set_bt_autoreport() argument
836 btcoexist->btc_fill_h2c(btcoexist, 0x68, 1, h2c_parameter); in halbtc8192e2ant_set_bt_autoreport()
839 static void halbtc8192e2ant_bt_autoreport(struct btc_coexist *btcoexist, in halbtc8192e2ant_bt_autoreport() argument
858 halbtc8192e2ant_set_bt_autoreport(btcoexist, in halbtc8192e2ant_bt_autoreport()
864 static void halbtc8192e2ant_fw_dac_swinglvl(struct btc_coexist *btcoexist, in halbtc8192e2ant_fw_dac_swinglvl() argument
883 halbtc8192e2ant_setfw_dac_swinglevel(btcoexist, in halbtc8192e2ant_fw_dac_swinglvl()
889 static void btc8192e2ant_set_sw_rf_rx_lpf_corner(struct btc_coexist *btcoexist, in btc8192e2ant_set_sw_rf_rx_lpf_corner() argument
896 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x1e, in btc8192e2ant_set_sw_rf_rx_lpf_corner()
902 if (btcoexist->initilized) { in btc8192e2ant_set_sw_rf_rx_lpf_corner()
905 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x1e, in btc8192e2ant_set_sw_rf_rx_lpf_corner()
912 static void halbtc8192e2ant_rf_shrink(struct btc_coexist *btcoexist, in halbtc8192e2ant_rf_shrink() argument
931 btc8192e2ant_set_sw_rf_rx_lpf_corner(btcoexist, in halbtc8192e2ant_rf_shrink()
937 static void halbtc8192e2ant_set_dac_swingreg(struct btc_coexist *btcoexist, in halbtc8192e2ant_set_dac_swingreg() argument
944 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x883, 0x3e, val); in halbtc8192e2ant_set_dac_swingreg()
947 static void btc8192e2ant_setsw_full_swing(struct btc_coexist *btcoexist, in btc8192e2ant_setsw_full_swing() argument
952 halbtc8192e2ant_set_dac_swingreg(btcoexist, sw_dac_swinglvl); in btc8192e2ant_setsw_full_swing()
954 halbtc8192e2ant_set_dac_swingreg(btcoexist, 0x18); in btc8192e2ant_setsw_full_swing()
957 static void halbtc8192e2ant_DacSwing(struct btc_coexist *btcoexist, in halbtc8192e2ant_DacSwing() argument
983 btc8192e2ant_setsw_full_swing(btcoexist, dac_swingon, dac_swinglvl); in halbtc8192e2ant_DacSwing()
989 static void halbtc8192e2ant_set_agc_table(struct btc_coexist *btcoexist, in halbtc8192e2ant_set_agc_table() argument
996 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0x0a1A0001); in halbtc8192e2ant_set_agc_table()
997 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0x091B0001); in halbtc8192e2ant_set_agc_table()
998 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0x081C0001); in halbtc8192e2ant_set_agc_table()
999 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0x071D0001); in halbtc8192e2ant_set_agc_table()
1000 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0x061E0001); in halbtc8192e2ant_set_agc_table()
1001 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0x051F0001); in halbtc8192e2ant_set_agc_table()
1005 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0xaa1A0001); in halbtc8192e2ant_set_agc_table()
1006 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0xa91B0001); in halbtc8192e2ant_set_agc_table()
1007 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0xa81C0001); in halbtc8192e2ant_set_agc_table()
1008 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0xa71D0001); in halbtc8192e2ant_set_agc_table()
1009 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0xa61E0001); in halbtc8192e2ant_set_agc_table()
1010 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0xa51F0001); in halbtc8192e2ant_set_agc_table()
1014 static void halbtc8192e2ant_AgcTable(struct btc_coexist *btcoexist, in halbtc8192e2ant_AgcTable() argument
1031 halbtc8192e2ant_set_agc_table(btcoexist, agc_table_en); in halbtc8192e2ant_AgcTable()
1036 static void halbtc8192e2ant_set_coex_table(struct btc_coexist *btcoexist, in halbtc8192e2ant_set_coex_table() argument
1042 btcoexist->btc_write_4byte(btcoexist, 0x6c0, val0x6c0); in halbtc8192e2ant_set_coex_table()
1046 btcoexist->btc_write_4byte(btcoexist, 0x6c4, val0x6c4); in halbtc8192e2ant_set_coex_table()
1050 btcoexist->btc_write_4byte(btcoexist, 0x6c8, val0x6c8); in halbtc8192e2ant_set_coex_table()
1054 btcoexist->btc_write_1byte(btcoexist, 0x6cc, val0x6cc); in halbtc8192e2ant_set_coex_table()
1057 static void halbtc8192e2ant_coex_table(struct btc_coexist *btcoexist, in halbtc8192e2ant_coex_table() argument
1093 halbtc8192e2ant_set_coex_table(btcoexist, val0x6c0, val0x6c4, in halbtc8192e2ant_coex_table()
1102 static void btc8192e2ant_coex_tbl_w_type(struct btc_coexist *btcoexist, in btc8192e2ant_coex_tbl_w_type() argument
1107 halbtc8192e2ant_coex_table(btcoexist, force_exec, 0x55555555, in btc8192e2ant_coex_tbl_w_type()
1111 halbtc8192e2ant_coex_table(btcoexist, force_exec, 0x5a5a5a5a, in btc8192e2ant_coex_tbl_w_type()
1115 halbtc8192e2ant_coex_table(btcoexist, force_exec, 0x55555555, in btc8192e2ant_coex_tbl_w_type()
1119 halbtc8192e2ant_coex_table(btcoexist, force_exec, 0xdfffdfff, in btc8192e2ant_coex_tbl_w_type()
1123 halbtc8192e2ant_coex_table(btcoexist, force_exec, 0xdfffdfff, in btc8192e2ant_coex_tbl_w_type()
1131 static void halbtc8192e2ant_set_fw_ignore_wlanact(struct btc_coexist *btcoexist, in halbtc8192e2ant_set_fw_ignore_wlanact() argument
1143 btcoexist->btc_fill_h2c(btcoexist, 0x63, 1, h2c_parameter); in halbtc8192e2ant_set_fw_ignore_wlanact()
1146 static void halbtc8192e2ant_IgnoreWlanAct(struct btc_coexist *btcoexist, in halbtc8192e2ant_IgnoreWlanAct() argument
1166 halbtc8192e2ant_set_fw_ignore_wlanact(btcoexist, enable); in halbtc8192e2ant_IgnoreWlanAct()
1171 static void halbtc8192e2ant_SetFwPstdma(struct btc_coexist *btcoexist, u8 byte1, in halbtc8192e2ant_SetFwPstdma() argument
1194 btcoexist->btc_fill_h2c(btcoexist, 0x60, 5, h2c_parameter); in halbtc8192e2ant_SetFwPstdma()
1197 static void btc8192e2ant_sw_mec1(struct btc_coexist *btcoexist, in btc8192e2ant_sw_mec1() argument
1201 halbtc8192e2ant_rf_shrink(btcoexist, NORMAL_EXEC, shrink_rx_lpf); in btc8192e2ant_sw_mec1()
1204 static void btc8192e2ant_sw_mec2(struct btc_coexist *btcoexist, in btc8192e2ant_sw_mec2() argument
1208 halbtc8192e2ant_AgcTable(btcoexist, NORMAL_EXEC, agc_table_shift); in btc8192e2ant_sw_mec2()
1209 halbtc8192e2ant_DacSwing(btcoexist, NORMAL_EXEC, sw_dac_swing, in btc8192e2ant_sw_mec2()
1213 static void halbtc8192e2ant_ps_tdma(struct btc_coexist *btcoexist, in halbtc8192e2ant_ps_tdma() argument
1239 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x1a, in halbtc8192e2ant_ps_tdma()
1243 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x12, in halbtc8192e2ant_ps_tdma()
1247 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x1c, in halbtc8192e2ant_ps_tdma()
1251 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x10, in halbtc8192e2ant_ps_tdma()
1255 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x1a, in halbtc8192e2ant_ps_tdma()
1259 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x12, in halbtc8192e2ant_ps_tdma()
1263 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x1c, in halbtc8192e2ant_ps_tdma()
1267 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xa3, 0x10, in halbtc8192e2ant_ps_tdma()
1271 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x1a, in halbtc8192e2ant_ps_tdma()
1275 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x12, in halbtc8192e2ant_ps_tdma()
1279 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x1c, in halbtc8192e2ant_ps_tdma()
1283 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x10, in halbtc8192e2ant_ps_tdma()
1287 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x1a, in halbtc8192e2ant_ps_tdma()
1291 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x12, in halbtc8192e2ant_ps_tdma()
1295 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x1c, in halbtc8192e2ant_ps_tdma()
1299 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x12, in halbtc8192e2ant_ps_tdma()
1303 halbtc8192e2ant_SetFwPstdma(btcoexist, 0x61, 0x20, in halbtc8192e2ant_ps_tdma()
1307 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x5, in halbtc8192e2ant_ps_tdma()
1311 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x25, in halbtc8192e2ant_ps_tdma()
1315 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x25, in halbtc8192e2ant_ps_tdma()
1319 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x15, in halbtc8192e2ant_ps_tdma()
1323 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x1a, in halbtc8192e2ant_ps_tdma()
1332 halbtc8192e2ant_SetFwPstdma(btcoexist, 0x8, 0x0, 0x0, in halbtc8192e2ant_ps_tdma()
1334 btcoexist->btc_write_1byte(btcoexist, 0x92c, 0x4); in halbtc8192e2ant_ps_tdma()
1337 halbtc8192e2ant_SetFwPstdma(btcoexist, 0x0, 0x0, 0x0, in halbtc8192e2ant_ps_tdma()
1340 btcoexist->btc_write_1byte(btcoexist, 0x92c, 0x20); in halbtc8192e2ant_ps_tdma()
1350 static void halbtc8192e2ant_set_switch_sstype(struct btc_coexist *btcoexist, in halbtc8192e2ant_set_switch_sstype() argument
1359 disra_mask = halbtc8192e2ant_decidera_mask(btcoexist, sstype, in halbtc8192e2ant_set_switch_sstype()
1361 halbtc8192e2ant_Updatera_mask(btcoexist, FORCE_EXEC, disra_mask); in halbtc8192e2ant_set_switch_sstype()
1364 halbtc8192e2ant_ps_tdma(btcoexist, FORCE_EXEC, false, 1); in halbtc8192e2ant_set_switch_sstype()
1366 btcoexist->btc_write_1byte(btcoexist, 0xc04, 0x11); in halbtc8192e2ant_set_switch_sstype()
1367 btcoexist->btc_write_1byte(btcoexist, 0xd04, 0x1); in halbtc8192e2ant_set_switch_sstype()
1368 btcoexist->btc_write_4byte(btcoexist, 0x90c, 0x81111111); in halbtc8192e2ant_set_switch_sstype()
1370 btcoexist->btc_write_1byte_bitmask(btcoexist, 0xe77, 0x4, 0x1); in halbtc8192e2ant_set_switch_sstype()
1371 btcoexist->btc_write_1byte(btcoexist, 0xa07, 0x81); in halbtc8192e2ant_set_switch_sstype()
1374 halbtc8192e2ant_ps_tdma(btcoexist, FORCE_EXEC, false, 0); in halbtc8192e2ant_set_switch_sstype()
1375 btcoexist->btc_write_1byte(btcoexist, 0xc04, 0x33); in halbtc8192e2ant_set_switch_sstype()
1376 btcoexist->btc_write_1byte(btcoexist, 0xd04, 0x3); in halbtc8192e2ant_set_switch_sstype()
1377 btcoexist->btc_write_4byte(btcoexist, 0x90c, 0x81121313); in halbtc8192e2ant_set_switch_sstype()
1378 btcoexist->btc_write_1byte_bitmask(btcoexist, 0xe77, 0x4, 0x0); in halbtc8192e2ant_set_switch_sstype()
1379 btcoexist->btc_write_1byte(btcoexist, 0xa07, 0x41); in halbtc8192e2ant_set_switch_sstype()
1383 btcoexist->btc_set(btcoexist, BTC_SET_ACT_SEND_MIMO_PS, &mimops); in halbtc8192e2ant_set_switch_sstype()
1386 static void halbtc8192e2ant_switch_sstype(struct btc_coexist *btcoexist, in halbtc8192e2ant_switch_sstype() argument
1398 halbtc8192e2ant_set_switch_sstype(btcoexist, coex_dm->cur_sstype); in halbtc8192e2ant_switch_sstype()
1403 static void halbtc8192e2ant_coex_alloff(struct btc_coexist *btcoexist) in halbtc8192e2ant_coex_alloff() argument
1406 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 1); in halbtc8192e2ant_coex_alloff()
1407 halbtc8192e2ant_fw_dac_swinglvl(btcoexist, NORMAL_EXEC, 6); in halbtc8192e2ant_coex_alloff()
1408 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 0); in halbtc8192e2ant_coex_alloff()
1411 btc8192e2ant_sw_mec1(btcoexist, false, false, false, false); in halbtc8192e2ant_coex_alloff()
1412 btc8192e2ant_sw_mec2(btcoexist, false, false, false, 0x18); in halbtc8192e2ant_coex_alloff()
1415 btc8192e2ant_coex_tbl_w_type(btcoexist, NORMAL_EXEC, 0); in halbtc8192e2ant_coex_alloff()
1418 static void halbtc8192e2ant_init_coex_dm(struct btc_coexist *btcoexist) in halbtc8192e2ant_init_coex_dm() argument
1422 halbtc8192e2ant_ps_tdma(btcoexist, FORCE_EXEC, false, 1); in halbtc8192e2ant_init_coex_dm()
1423 halbtc8192e2ant_fw_dac_swinglvl(btcoexist, FORCE_EXEC, 6); in halbtc8192e2ant_init_coex_dm()
1424 halbtc8192e2ant_dec_btpwr(btcoexist, FORCE_EXEC, 0); in halbtc8192e2ant_init_coex_dm()
1426 btc8192e2ant_coex_tbl_w_type(btcoexist, FORCE_EXEC, 0); in halbtc8192e2ant_init_coex_dm()
1427 halbtc8192e2ant_switch_sstype(btcoexist, FORCE_EXEC, 2); in halbtc8192e2ant_init_coex_dm()
1429 btc8192e2ant_sw_mec1(btcoexist, false, false, false, false); in halbtc8192e2ant_init_coex_dm()
1430 btc8192e2ant_sw_mec2(btcoexist, false, false, false, 0x18); in halbtc8192e2ant_init_coex_dm()
1433 static void halbtc8192e2ant_action_bt_inquiry(struct btc_coexist *btcoexist) in halbtc8192e2ant_action_bt_inquiry() argument
1437 btcoexist->btc_set(btcoexist, BTC_SET_ACT_DISABLE_LOW_POWER, in halbtc8192e2ant_action_bt_inquiry()
1440 halbtc8192e2ant_switch_sstype(btcoexist, NORMAL_EXEC, 1); in halbtc8192e2ant_action_bt_inquiry()
1442 btc8192e2ant_coex_tbl_w_type(btcoexist, NORMAL_EXEC, 2); in halbtc8192e2ant_action_bt_inquiry()
1443 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 3); in halbtc8192e2ant_action_bt_inquiry()
1444 halbtc8192e2ant_fw_dac_swinglvl(btcoexist, NORMAL_EXEC, 6); in halbtc8192e2ant_action_bt_inquiry()
1445 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 0); in halbtc8192e2ant_action_bt_inquiry()
1447 btc8192e2ant_sw_mec1(btcoexist, false, false, false, false); in halbtc8192e2ant_action_bt_inquiry()
1448 btc8192e2ant_sw_mec2(btcoexist, false, false, false, 0x18); in halbtc8192e2ant_action_bt_inquiry()
1451 static bool halbtc8192e2ant_is_common_action(struct btc_coexist *btcoexist) in halbtc8192e2ant_is_common_action() argument
1453 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; in halbtc8192e2ant_is_common_action()
1457 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hson); in halbtc8192e2ant_is_common_action()
1458 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_CONNECTED, in halbtc8192e2ant_is_common_action()
1460 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_BUSY, &wifi_busy); in halbtc8192e2ant_is_common_action()
1463 halbtc8192e2ant_limited_tx(btcoexist, NORMAL_EXEC, 1, 0, 0, 0); in halbtc8192e2ant_is_common_action()
1465 halbtc8192e2ant_limited_tx(btcoexist, NORMAL_EXEC, 0, 0, 0, 0); in halbtc8192e2ant_is_common_action()
1469 btcoexist->btc_set(btcoexist, BTC_SET_ACT_DISABLE_LOW_POWER, in halbtc8192e2ant_is_common_action()
1479 halbtc8192e2ant_switch_sstype(btcoexist, in halbtc8192e2ant_is_common_action()
1481 btc8192e2ant_coex_tbl_w_type(btcoexist, in halbtc8192e2ant_is_common_action()
1483 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in halbtc8192e2ant_is_common_action()
1486 halbtc8192e2ant_switch_sstype(btcoexist, in halbtc8192e2ant_is_common_action()
1488 btc8192e2ant_coex_tbl_w_type(btcoexist, in halbtc8192e2ant_is_common_action()
1490 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in halbtc8192e2ant_is_common_action()
1494 halbtc8192e2ant_fw_dac_swinglvl(btcoexist, NORMAL_EXEC, 6); in halbtc8192e2ant_is_common_action()
1495 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 0); in halbtc8192e2ant_is_common_action()
1497 btc8192e2ant_sw_mec1(btcoexist, false, false, false, false); in halbtc8192e2ant_is_common_action()
1498 btc8192e2ant_sw_mec2(btcoexist, false, false, false, 0x18); in halbtc8192e2ant_is_common_action()
1505 btcoexist->btc_set(btcoexist, in halbtc8192e2ant_is_common_action()
1512 halbtc8192e2ant_switch_sstype(btcoexist, in halbtc8192e2ant_is_common_action()
1514 btc8192e2ant_coex_tbl_w_type(btcoexist, in halbtc8192e2ant_is_common_action()
1516 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in halbtc8192e2ant_is_common_action()
1518 halbtc8192e2ant_fw_dac_swinglvl(btcoexist, in halbtc8192e2ant_is_common_action()
1520 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 0); in halbtc8192e2ant_is_common_action()
1522 btc8192e2ant_sw_mec1(btcoexist, false, false, in halbtc8192e2ant_is_common_action()
1524 btc8192e2ant_sw_mec2(btcoexist, false, false, in halbtc8192e2ant_is_common_action()
1531 btcoexist->btc_set(btcoexist, in halbtc8192e2ant_is_common_action()
1540 halbtc8192e2ant_switch_sstype(btcoexist, in halbtc8192e2ant_is_common_action()
1542 btc8192e2ant_coex_tbl_w_type(btcoexist, in halbtc8192e2ant_is_common_action()
1544 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in halbtc8192e2ant_is_common_action()
1546 halbtc8192e2ant_fw_dac_swinglvl(btcoexist, in halbtc8192e2ant_is_common_action()
1548 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 0); in halbtc8192e2ant_is_common_action()
1550 btc8192e2ant_sw_mec1(btcoexist, true, false, in halbtc8192e2ant_is_common_action()
1552 btc8192e2ant_sw_mec2(btcoexist, false, false, in halbtc8192e2ant_is_common_action()
1558 btcoexist->btc_set(btcoexist, in halbtc8192e2ant_is_common_action()
1570 halbtc8192e2ant_switch_sstype(btcoexist, in halbtc8192e2ant_is_common_action()
1572 btc8192e2ant_coex_tbl_w_type(btcoexist, in halbtc8192e2ant_is_common_action()
1574 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in halbtc8192e2ant_is_common_action()
1576 halbtc8192e2ant_fw_dac_swinglvl(btcoexist, in halbtc8192e2ant_is_common_action()
1578 halbtc8192e2ant_dec_btpwr(btcoexist, in halbtc8192e2ant_is_common_action()
1580 btc8192e2ant_sw_mec1(btcoexist, false, in halbtc8192e2ant_is_common_action()
1582 btc8192e2ant_sw_mec2(btcoexist, false, in halbtc8192e2ant_is_common_action()
1591 static void btc8192e_int1(struct btc_coexist *btcoexist, bool tx_pause, in btc8192e_int1() argument
1600 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1604 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1608 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1612 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1616 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1621 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1625 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1629 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1633 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1640 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1644 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1648 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1652 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1656 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1660 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1666 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1670 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1674 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1678 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1682 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1686 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1696 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1700 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1704 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1708 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1713 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1717 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1721 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1725 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1732 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1736 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1740 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1744 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1748 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1752 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1756 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1762 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1766 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1770 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1774 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1778 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1782 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1786 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int1()
1794 static void btc8192e_int2(struct btc_coexist *btcoexist, bool tx_pause, in btc8192e_int2() argument
1802 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1806 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1810 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1814 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1819 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1823 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1827 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1831 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1837 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1841 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1845 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1849 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1853 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1857 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1863 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1867 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1871 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1875 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1879 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1883 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1893 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1897 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1901 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1905 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1910 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1914 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1918 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1922 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1928 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1932 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1936 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1940 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1944 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1948 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1954 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1958 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1962 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1966 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1970 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1974 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int2()
1982 static void btc8192e_int3(struct btc_coexist *btcoexist, bool tx_pause, in btc8192e_int3() argument
1990 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
1994 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
1998 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
2002 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
2007 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
2011 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
2015 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
2019 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
2025 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
2029 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
2033 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
2037 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
2041 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
2045 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
2051 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
2055 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
2059 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
2063 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
2067 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
2071 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
2081 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
2085 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
2089 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
2093 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
2098 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
2102 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
2106 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
2110 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
2116 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
2120 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
2124 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
2128 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
2132 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
2136 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
2142 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
2146 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
2150 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
2154 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
2158 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
2162 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8192e_int3()
2170 static void halbtc8192e2ant_tdma_duration_adjust(struct btc_coexist *btcoexist, in halbtc8192e2ant_tdma_duration_adjust() argument
2191 halbtc8192e2ant_ps_tdma(btcoexist, in halbtc8192e2ant_tdma_duration_adjust()
2196 halbtc8192e2ant_ps_tdma(btcoexist, in halbtc8192e2ant_tdma_duration_adjust()
2201 halbtc8192e2ant_ps_tdma(btcoexist, in halbtc8192e2ant_tdma_duration_adjust()
2206 halbtc8192e2ant_ps_tdma(btcoexist, in halbtc8192e2ant_tdma_duration_adjust()
2213 halbtc8192e2ant_ps_tdma(btcoexist, in halbtc8192e2ant_tdma_duration_adjust()
2218 halbtc8192e2ant_ps_tdma(btcoexist, in halbtc8192e2ant_tdma_duration_adjust()
2223 halbtc8192e2ant_ps_tdma(btcoexist, in halbtc8192e2ant_tdma_duration_adjust()
2228 halbtc8192e2ant_ps_tdma(btcoexist, in halbtc8192e2ant_tdma_duration_adjust()
2237 halbtc8192e2ant_ps_tdma(btcoexist, in halbtc8192e2ant_tdma_duration_adjust()
2242 halbtc8192e2ant_ps_tdma(btcoexist, in halbtc8192e2ant_tdma_duration_adjust()
2247 halbtc8192e2ant_ps_tdma(btcoexist, in halbtc8192e2ant_tdma_duration_adjust()
2252 halbtc8192e2ant_ps_tdma(btcoexist, in halbtc8192e2ant_tdma_duration_adjust()
2259 halbtc8192e2ant_ps_tdma(btcoexist, in halbtc8192e2ant_tdma_duration_adjust()
2264 halbtc8192e2ant_ps_tdma(btcoexist, in halbtc8192e2ant_tdma_duration_adjust()
2269 halbtc8192e2ant_ps_tdma(btcoexist, in halbtc8192e2ant_tdma_duration_adjust()
2274 halbtc8192e2ant_ps_tdma(btcoexist, in halbtc8192e2ant_tdma_duration_adjust()
2362 btc8192e_int1(btcoexist, tx_pause, result); in halbtc8192e2ant_tdma_duration_adjust()
2364 btc8192e_int2(btcoexist, tx_pause, result); in halbtc8192e2ant_tdma_duration_adjust()
2366 btc8192e_int3(btcoexist, tx_pause, result); in halbtc8192e2ant_tdma_duration_adjust()
2382 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_SCAN, &scan); in halbtc8192e2ant_tdma_duration_adjust()
2383 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link); in halbtc8192e2ant_tdma_duration_adjust()
2384 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_ROAM, &roam); in halbtc8192e2ant_tdma_duration_adjust()
2387 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in halbtc8192e2ant_tdma_duration_adjust()
2398 static void halbtc8192e2ant_action_sco(struct btc_coexist *btcoexist) in halbtc8192e2ant_action_sco() argument
2403 wifirssi_state = halbtc8192e2ant_wifirssi_state(btcoexist, 0, 2, 15, 0); in halbtc8192e2ant_action_sco()
2405 halbtc8192e2ant_switch_sstype(btcoexist, NORMAL_EXEC, 1); in halbtc8192e2ant_action_sco()
2406 halbtc8192e2ant_limited_rx(btcoexist, NORMAL_EXEC, false, false, 0x8); in halbtc8192e2ant_action_sco()
2408 halbtc8192e2ant_fw_dac_swinglvl(btcoexist, NORMAL_EXEC, 6); in halbtc8192e2ant_action_sco()
2410 btc8192e2ant_coex_tbl_w_type(btcoexist, NORMAL_EXEC, 4); in halbtc8192e2ant_action_sco()
2416 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 0); in halbtc8192e2ant_action_sco()
2417 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 13); in halbtc8192e2ant_action_sco()
2420 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 2); in halbtc8192e2ant_action_sco()
2421 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 9); in halbtc8192e2ant_action_sco()
2424 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 4); in halbtc8192e2ant_action_sco()
2425 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 9); in halbtc8192e2ant_action_sco()
2428 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); in halbtc8192e2ant_action_sco()
2434 btc8192e2ant_sw_mec1(btcoexist, true, true, in halbtc8192e2ant_action_sco()
2436 btc8192e2ant_sw_mec2(btcoexist, true, false, in halbtc8192e2ant_action_sco()
2439 btc8192e2ant_sw_mec1(btcoexist, true, true, in halbtc8192e2ant_action_sco()
2441 btc8192e2ant_sw_mec2(btcoexist, false, false, in halbtc8192e2ant_action_sco()
2447 btc8192e2ant_sw_mec1(btcoexist, false, true, in halbtc8192e2ant_action_sco()
2449 btc8192e2ant_sw_mec2(btcoexist, true, false, in halbtc8192e2ant_action_sco()
2452 btc8192e2ant_sw_mec1(btcoexist, false, true, in halbtc8192e2ant_action_sco()
2454 btc8192e2ant_sw_mec2(btcoexist, false, false, in halbtc8192e2ant_action_sco()
2460 static void halbtc8192e2ant_action_sco_pan(struct btc_coexist *btcoexist) in halbtc8192e2ant_action_sco_pan() argument
2465 wifirssi_state = halbtc8192e2ant_wifirssi_state(btcoexist, 0, 2, 15, 0); in halbtc8192e2ant_action_sco_pan()
2467 halbtc8192e2ant_switch_sstype(btcoexist, NORMAL_EXEC, 1); in halbtc8192e2ant_action_sco_pan()
2468 halbtc8192e2ant_limited_rx(btcoexist, NORMAL_EXEC, false, false, 0x8); in halbtc8192e2ant_action_sco_pan()
2470 halbtc8192e2ant_fw_dac_swinglvl(btcoexist, NORMAL_EXEC, 6); in halbtc8192e2ant_action_sco_pan()
2472 btc8192e2ant_coex_tbl_w_type(btcoexist, NORMAL_EXEC, 4); in halbtc8192e2ant_action_sco_pan()
2478 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 0); in halbtc8192e2ant_action_sco_pan()
2479 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 14); in halbtc8192e2ant_action_sco_pan()
2482 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 2); in halbtc8192e2ant_action_sco_pan()
2483 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 10); in halbtc8192e2ant_action_sco_pan()
2486 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 4); in halbtc8192e2ant_action_sco_pan()
2487 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 10); in halbtc8192e2ant_action_sco_pan()
2490 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); in halbtc8192e2ant_action_sco_pan()
2496 btc8192e2ant_sw_mec1(btcoexist, true, true, in halbtc8192e2ant_action_sco_pan()
2498 btc8192e2ant_sw_mec2(btcoexist, true, false, in halbtc8192e2ant_action_sco_pan()
2501 btc8192e2ant_sw_mec1(btcoexist, true, true, in halbtc8192e2ant_action_sco_pan()
2503 btc8192e2ant_sw_mec2(btcoexist, false, false, in halbtc8192e2ant_action_sco_pan()
2509 btc8192e2ant_sw_mec1(btcoexist, false, true, in halbtc8192e2ant_action_sco_pan()
2511 btc8192e2ant_sw_mec2(btcoexist, true, false, in halbtc8192e2ant_action_sco_pan()
2514 btc8192e2ant_sw_mec1(btcoexist, false, true, in halbtc8192e2ant_action_sco_pan()
2516 btc8192e2ant_sw_mec2(btcoexist, false, false, in halbtc8192e2ant_action_sco_pan()
2522 static void halbtc8192e2ant_action_hid(struct btc_coexist *btcoexist) in halbtc8192e2ant_action_hid() argument
2527 wifirssi_state = halbtc8192e2ant_wifirssi_state(btcoexist, 0, 2, 15, 0); in halbtc8192e2ant_action_hid()
2530 halbtc8192e2ant_switch_sstype(btcoexist, NORMAL_EXEC, 1); in halbtc8192e2ant_action_hid()
2531 halbtc8192e2ant_limited_rx(btcoexist, NORMAL_EXEC, false, false, 0x8); in halbtc8192e2ant_action_hid()
2533 halbtc8192e2ant_fw_dac_swinglvl(btcoexist, NORMAL_EXEC, 6); in halbtc8192e2ant_action_hid()
2535 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); in halbtc8192e2ant_action_hid()
2537 btc8192e2ant_coex_tbl_w_type(btcoexist, NORMAL_EXEC, 3); in halbtc8192e2ant_action_hid()
2541 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 0); in halbtc8192e2ant_action_hid()
2542 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 13); in halbtc8192e2ant_action_hid()
2545 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 2); in halbtc8192e2ant_action_hid()
2546 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 9); in halbtc8192e2ant_action_hid()
2549 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 4); in halbtc8192e2ant_action_hid()
2550 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 9); in halbtc8192e2ant_action_hid()
2557 btc8192e2ant_sw_mec1(btcoexist, true, true, in halbtc8192e2ant_action_hid()
2559 btc8192e2ant_sw_mec2(btcoexist, true, false, in halbtc8192e2ant_action_hid()
2562 btc8192e2ant_sw_mec1(btcoexist, true, true, in halbtc8192e2ant_action_hid()
2564 btc8192e2ant_sw_mec2(btcoexist, false, false, in halbtc8192e2ant_action_hid()
2570 btc8192e2ant_sw_mec1(btcoexist, false, true, in halbtc8192e2ant_action_hid()
2572 btc8192e2ant_sw_mec2(btcoexist, true, false, in halbtc8192e2ant_action_hid()
2575 btc8192e2ant_sw_mec1(btcoexist, false, true, in halbtc8192e2ant_action_hid()
2577 btc8192e2ant_sw_mec2(btcoexist, false, false, in halbtc8192e2ant_action_hid()
2584 static void halbtc8192e2ant_action_a2dp(struct btc_coexist *btcoexist) in halbtc8192e2ant_action_a2dp() argument
2590 wifirssi_state = halbtc8192e2ant_wifirssi_state(btcoexist, 0, 2, 15, 0); in halbtc8192e2ant_action_a2dp()
2602 halbtc8192e2ant_switch_sstype(btcoexist, NORMAL_EXEC, 2); in halbtc8192e2ant_action_a2dp()
2603 halbtc8192e2ant_limited_rx(btcoexist, NORMAL_EXEC, false, true, in halbtc8192e2ant_action_a2dp()
2606 halbtc8192e2ant_switch_sstype(btcoexist, NORMAL_EXEC, 1); in halbtc8192e2ant_action_a2dp()
2607 halbtc8192e2ant_limited_rx(btcoexist, NORMAL_EXEC, false, false, in halbtc8192e2ant_action_a2dp()
2611 halbtc8192e2ant_fw_dac_swinglvl(btcoexist, NORMAL_EXEC, 6); in halbtc8192e2ant_action_a2dp()
2614 btc8192e2ant_coex_tbl_w_type(btcoexist, NORMAL_EXEC, 0); in halbtc8192e2ant_action_a2dp()
2616 btc8192e2ant_coex_tbl_w_type(btcoexist, NORMAL_EXEC, 2); in halbtc8192e2ant_action_a2dp()
2619 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 17); in halbtc8192e2ant_action_a2dp()
2621 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 0); in halbtc8192e2ant_action_a2dp()
2625 halbtc8192e2ant_tdma_duration_adjust(btcoexist, false, in halbtc8192e2ant_action_a2dp()
2627 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 0); in halbtc8192e2ant_action_a2dp()
2630 halbtc8192e2ant_tdma_duration_adjust(btcoexist, false, in halbtc8192e2ant_action_a2dp()
2632 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 2); in halbtc8192e2ant_action_a2dp()
2635 halbtc8192e2ant_tdma_duration_adjust(btcoexist, false, in halbtc8192e2ant_action_a2dp()
2637 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 4); in halbtc8192e2ant_action_a2dp()
2642 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); in halbtc8192e2ant_action_a2dp()
2646 btc8192e2ant_sw_mec1(btcoexist, true, false, in halbtc8192e2ant_action_a2dp()
2648 btc8192e2ant_sw_mec2(btcoexist, true, false, in halbtc8192e2ant_action_a2dp()
2651 btc8192e2ant_sw_mec1(btcoexist, true, false, in halbtc8192e2ant_action_a2dp()
2653 btc8192e2ant_sw_mec2(btcoexist, false, false, in halbtc8192e2ant_action_a2dp()
2659 btc8192e2ant_sw_mec1(btcoexist, false, false, in halbtc8192e2ant_action_a2dp()
2661 btc8192e2ant_sw_mec2(btcoexist, true, false, in halbtc8192e2ant_action_a2dp()
2664 btc8192e2ant_sw_mec1(btcoexist, false, false, in halbtc8192e2ant_action_a2dp()
2666 btc8192e2ant_sw_mec2(btcoexist, false, false, in halbtc8192e2ant_action_a2dp()
2672 static void halbtc8192e2ant_action_a2dp_pan_hs(struct btc_coexist *btcoexist) in halbtc8192e2ant_action_a2dp_pan_hs() argument
2677 wifirssi_state = halbtc8192e2ant_wifirssi_state(btcoexist, 0, 2, 15, 0); in halbtc8192e2ant_action_a2dp_pan_hs()
2680 halbtc8192e2ant_switch_sstype(btcoexist, NORMAL_EXEC, 1); in halbtc8192e2ant_action_a2dp_pan_hs()
2681 halbtc8192e2ant_limited_rx(btcoexist, NORMAL_EXEC, false, false, 0x8); in halbtc8192e2ant_action_a2dp_pan_hs()
2683 halbtc8192e2ant_fw_dac_swinglvl(btcoexist, NORMAL_EXEC, 6); in halbtc8192e2ant_action_a2dp_pan_hs()
2684 btc8192e2ant_coex_tbl_w_type(btcoexist, NORMAL_EXEC, 2); in halbtc8192e2ant_action_a2dp_pan_hs()
2688 halbtc8192e2ant_tdma_duration_adjust(btcoexist, false, true, 2); in halbtc8192e2ant_action_a2dp_pan_hs()
2689 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 0); in halbtc8192e2ant_action_a2dp_pan_hs()
2692 halbtc8192e2ant_tdma_duration_adjust(btcoexist, false, in halbtc8192e2ant_action_a2dp_pan_hs()
2694 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 2); in halbtc8192e2ant_action_a2dp_pan_hs()
2697 halbtc8192e2ant_tdma_duration_adjust(btcoexist, false, in halbtc8192e2ant_action_a2dp_pan_hs()
2699 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 4); in halbtc8192e2ant_action_a2dp_pan_hs()
2703 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); in halbtc8192e2ant_action_a2dp_pan_hs()
2707 btc8192e2ant_sw_mec1(btcoexist, true, false, in halbtc8192e2ant_action_a2dp_pan_hs()
2709 btc8192e2ant_sw_mec2(btcoexist, true, false, in halbtc8192e2ant_action_a2dp_pan_hs()
2712 btc8192e2ant_sw_mec1(btcoexist, true, false, in halbtc8192e2ant_action_a2dp_pan_hs()
2714 btc8192e2ant_sw_mec2(btcoexist, false, false, in halbtc8192e2ant_action_a2dp_pan_hs()
2720 btc8192e2ant_sw_mec1(btcoexist, false, false, in halbtc8192e2ant_action_a2dp_pan_hs()
2722 btc8192e2ant_sw_mec2(btcoexist, true, false, in halbtc8192e2ant_action_a2dp_pan_hs()
2725 btc8192e2ant_sw_mec1(btcoexist, false, false, in halbtc8192e2ant_action_a2dp_pan_hs()
2727 btc8192e2ant_sw_mec2(btcoexist, false, false, in halbtc8192e2ant_action_a2dp_pan_hs()
2733 static void halbtc8192e2ant_action_pan_edr(struct btc_coexist *btcoexist) in halbtc8192e2ant_action_pan_edr() argument
2738 wifirssi_state = halbtc8192e2ant_wifirssi_state(btcoexist, 0, 2, 15, 0); in halbtc8192e2ant_action_pan_edr()
2741 halbtc8192e2ant_switch_sstype(btcoexist, NORMAL_EXEC, 1); in halbtc8192e2ant_action_pan_edr()
2742 halbtc8192e2ant_limited_rx(btcoexist, NORMAL_EXEC, false, false, 0x8); in halbtc8192e2ant_action_pan_edr()
2744 halbtc8192e2ant_fw_dac_swinglvl(btcoexist, NORMAL_EXEC, 6); in halbtc8192e2ant_action_pan_edr()
2746 btc8192e2ant_coex_tbl_w_type(btcoexist, NORMAL_EXEC, 2); in halbtc8192e2ant_action_pan_edr()
2750 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 0); in halbtc8192e2ant_action_pan_edr()
2751 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 5); in halbtc8192e2ant_action_pan_edr()
2754 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 2); in halbtc8192e2ant_action_pan_edr()
2755 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 1); in halbtc8192e2ant_action_pan_edr()
2758 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 4); in halbtc8192e2ant_action_pan_edr()
2759 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 1); in halbtc8192e2ant_action_pan_edr()
2763 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); in halbtc8192e2ant_action_pan_edr()
2767 btc8192e2ant_sw_mec1(btcoexist, true, false, in halbtc8192e2ant_action_pan_edr()
2769 btc8192e2ant_sw_mec2(btcoexist, true, false, in halbtc8192e2ant_action_pan_edr()
2772 btc8192e2ant_sw_mec1(btcoexist, true, false, in halbtc8192e2ant_action_pan_edr()
2774 btc8192e2ant_sw_mec2(btcoexist, false, false, in halbtc8192e2ant_action_pan_edr()
2780 btc8192e2ant_sw_mec1(btcoexist, false, false, in halbtc8192e2ant_action_pan_edr()
2782 btc8192e2ant_sw_mec2(btcoexist, true, false, in halbtc8192e2ant_action_pan_edr()
2785 btc8192e2ant_sw_mec1(btcoexist, false, false, in halbtc8192e2ant_action_pan_edr()
2787 btc8192e2ant_sw_mec2(btcoexist, false, false, in halbtc8192e2ant_action_pan_edr()
2794 static void halbtc8192e2ant_action_pan_hs(struct btc_coexist *btcoexist) in halbtc8192e2ant_action_pan_hs() argument
2799 wifirssi_state = halbtc8192e2ant_wifirssi_state(btcoexist, 0, 2, 15, 0); in halbtc8192e2ant_action_pan_hs()
2802 halbtc8192e2ant_switch_sstype(btcoexist, NORMAL_EXEC, 1); in halbtc8192e2ant_action_pan_hs()
2803 halbtc8192e2ant_limited_rx(btcoexist, NORMAL_EXEC, false, false, 0x8); in halbtc8192e2ant_action_pan_hs()
2805 halbtc8192e2ant_fw_dac_swinglvl(btcoexist, NORMAL_EXEC, 6); in halbtc8192e2ant_action_pan_hs()
2807 btc8192e2ant_coex_tbl_w_type(btcoexist, NORMAL_EXEC, 2); in halbtc8192e2ant_action_pan_hs()
2811 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 0); in halbtc8192e2ant_action_pan_hs()
2814 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 2); in halbtc8192e2ant_action_pan_hs()
2817 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 4); in halbtc8192e2ant_action_pan_hs()
2819 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 1); in halbtc8192e2ant_action_pan_hs()
2821 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); in halbtc8192e2ant_action_pan_hs()
2825 btc8192e2ant_sw_mec1(btcoexist, true, false, in halbtc8192e2ant_action_pan_hs()
2827 btc8192e2ant_sw_mec2(btcoexist, true, false, in halbtc8192e2ant_action_pan_hs()
2830 btc8192e2ant_sw_mec1(btcoexist, true, false, in halbtc8192e2ant_action_pan_hs()
2832 btc8192e2ant_sw_mec2(btcoexist, false, false, in halbtc8192e2ant_action_pan_hs()
2838 btc8192e2ant_sw_mec1(btcoexist, false, false, in halbtc8192e2ant_action_pan_hs()
2840 btc8192e2ant_sw_mec2(btcoexist, true, false, in halbtc8192e2ant_action_pan_hs()
2843 btc8192e2ant_sw_mec1(btcoexist, false, false, in halbtc8192e2ant_action_pan_hs()
2845 btc8192e2ant_sw_mec2(btcoexist, false, false, in halbtc8192e2ant_action_pan_hs()
2852 static void halbtc8192e2ant_action_pan_edr_a2dp(struct btc_coexist *btcoexist) in halbtc8192e2ant_action_pan_edr_a2dp() argument
2857 wifirssi_state = halbtc8192e2ant_wifirssi_state(btcoexist, 0, 2, 15, 0); in halbtc8192e2ant_action_pan_edr_a2dp()
2860 halbtc8192e2ant_switch_sstype(btcoexist, NORMAL_EXEC, 1); in halbtc8192e2ant_action_pan_edr_a2dp()
2861 halbtc8192e2ant_limited_rx(btcoexist, NORMAL_EXEC, false, false, 0x8); in halbtc8192e2ant_action_pan_edr_a2dp()
2863 halbtc8192e2ant_fw_dac_swinglvl(btcoexist, NORMAL_EXEC, 6); in halbtc8192e2ant_action_pan_edr_a2dp()
2865 btc8192e2ant_coex_tbl_w_type(btcoexist, NORMAL_EXEC, 2); in halbtc8192e2ant_action_pan_edr_a2dp()
2867 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); in halbtc8192e2ant_action_pan_edr_a2dp()
2871 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 0); in halbtc8192e2ant_action_pan_edr_a2dp()
2872 halbtc8192e2ant_tdma_duration_adjust(btcoexist, false, true, 3); in halbtc8192e2ant_action_pan_edr_a2dp()
2875 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 2); in halbtc8192e2ant_action_pan_edr_a2dp()
2876 halbtc8192e2ant_tdma_duration_adjust(btcoexist, false, in halbtc8192e2ant_action_pan_edr_a2dp()
2880 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 4); in halbtc8192e2ant_action_pan_edr_a2dp()
2881 halbtc8192e2ant_tdma_duration_adjust(btcoexist, false, in halbtc8192e2ant_action_pan_edr_a2dp()
2889 btc8192e2ant_sw_mec1(btcoexist, true, false, in halbtc8192e2ant_action_pan_edr_a2dp()
2891 btc8192e2ant_sw_mec2(btcoexist, true, false, in halbtc8192e2ant_action_pan_edr_a2dp()
2894 btc8192e2ant_sw_mec1(btcoexist, true, false, in halbtc8192e2ant_action_pan_edr_a2dp()
2896 btc8192e2ant_sw_mec2(btcoexist, false, false, in halbtc8192e2ant_action_pan_edr_a2dp()
2902 btc8192e2ant_sw_mec1(btcoexist, false, false, in halbtc8192e2ant_action_pan_edr_a2dp()
2904 btc8192e2ant_sw_mec2(btcoexist, true, false, in halbtc8192e2ant_action_pan_edr_a2dp()
2907 btc8192e2ant_sw_mec1(btcoexist, false, false, in halbtc8192e2ant_action_pan_edr_a2dp()
2909 btc8192e2ant_sw_mec2(btcoexist, false, false, in halbtc8192e2ant_action_pan_edr_a2dp()
2915 static void halbtc8192e2ant_action_pan_edr_hid(struct btc_coexist *btcoexist) in halbtc8192e2ant_action_pan_edr_hid() argument
2920 wifirssi_state = halbtc8192e2ant_wifirssi_state(btcoexist, 0, 2, 15, 0); in halbtc8192e2ant_action_pan_edr_hid()
2923 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); in halbtc8192e2ant_action_pan_edr_hid()
2925 halbtc8192e2ant_switch_sstype(btcoexist, NORMAL_EXEC, 1); in halbtc8192e2ant_action_pan_edr_hid()
2926 halbtc8192e2ant_limited_rx(btcoexist, NORMAL_EXEC, false, false, 0x8); in halbtc8192e2ant_action_pan_edr_hid()
2928 halbtc8192e2ant_fw_dac_swinglvl(btcoexist, NORMAL_EXEC, 6); in halbtc8192e2ant_action_pan_edr_hid()
2930 btc8192e2ant_coex_tbl_w_type(btcoexist, NORMAL_EXEC, 3); in halbtc8192e2ant_action_pan_edr_hid()
2934 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 0); in halbtc8192e2ant_action_pan_edr_hid()
2935 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 14); in halbtc8192e2ant_action_pan_edr_hid()
2938 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 2); in halbtc8192e2ant_action_pan_edr_hid()
2939 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in halbtc8192e2ant_action_pan_edr_hid()
2943 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 4); in halbtc8192e2ant_action_pan_edr_hid()
2944 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, in halbtc8192e2ant_action_pan_edr_hid()
2952 btc8192e2ant_sw_mec1(btcoexist, true, true, in halbtc8192e2ant_action_pan_edr_hid()
2954 btc8192e2ant_sw_mec2(btcoexist, true, false, in halbtc8192e2ant_action_pan_edr_hid()
2957 btc8192e2ant_sw_mec1(btcoexist, true, true, in halbtc8192e2ant_action_pan_edr_hid()
2959 btc8192e2ant_sw_mec2(btcoexist, false, false, in halbtc8192e2ant_action_pan_edr_hid()
2965 btc8192e2ant_sw_mec1(btcoexist, false, true, in halbtc8192e2ant_action_pan_edr_hid()
2967 btc8192e2ant_sw_mec2(btcoexist, true, false, in halbtc8192e2ant_action_pan_edr_hid()
2970 btc8192e2ant_sw_mec1(btcoexist, false, true, in halbtc8192e2ant_action_pan_edr_hid()
2972 btc8192e2ant_sw_mec2(btcoexist, false, false, in halbtc8192e2ant_action_pan_edr_hid()
2979 static void btc8192e2ant_action_hid_a2dp_pan_edr(struct btc_coexist *btcoexist) in btc8192e2ant_action_hid_a2dp_pan_edr() argument
2984 wifirssi_state = halbtc8192e2ant_wifirssi_state(btcoexist, 0, 2, 15, 0); in btc8192e2ant_action_hid_a2dp_pan_edr()
2987 halbtc8192e2ant_switch_sstype(btcoexist, NORMAL_EXEC, 1); in btc8192e2ant_action_hid_a2dp_pan_edr()
2988 halbtc8192e2ant_limited_rx(btcoexist, NORMAL_EXEC, false, false, 0x8); in btc8192e2ant_action_hid_a2dp_pan_edr()
2990 halbtc8192e2ant_fw_dac_swinglvl(btcoexist, NORMAL_EXEC, 6); in btc8192e2ant_action_hid_a2dp_pan_edr()
2992 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); in btc8192e2ant_action_hid_a2dp_pan_edr()
2994 btc8192e2ant_coex_tbl_w_type(btcoexist, NORMAL_EXEC, 3); in btc8192e2ant_action_hid_a2dp_pan_edr()
2998 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 0); in btc8192e2ant_action_hid_a2dp_pan_edr()
2999 halbtc8192e2ant_tdma_duration_adjust(btcoexist, true, true, 3); in btc8192e2ant_action_hid_a2dp_pan_edr()
3002 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 2); in btc8192e2ant_action_hid_a2dp_pan_edr()
3003 halbtc8192e2ant_tdma_duration_adjust(btcoexist, true, false, 3); in btc8192e2ant_action_hid_a2dp_pan_edr()
3006 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 4); in btc8192e2ant_action_hid_a2dp_pan_edr()
3007 halbtc8192e2ant_tdma_duration_adjust(btcoexist, true, false, 3); in btc8192e2ant_action_hid_a2dp_pan_edr()
3014 btc8192e2ant_sw_mec1(btcoexist, true, true, in btc8192e2ant_action_hid_a2dp_pan_edr()
3016 btc8192e2ant_sw_mec2(btcoexist, true, false, in btc8192e2ant_action_hid_a2dp_pan_edr()
3019 btc8192e2ant_sw_mec1(btcoexist, true, true, in btc8192e2ant_action_hid_a2dp_pan_edr()
3021 btc8192e2ant_sw_mec2(btcoexist, false, false, in btc8192e2ant_action_hid_a2dp_pan_edr()
3027 btc8192e2ant_sw_mec1(btcoexist, false, true, in btc8192e2ant_action_hid_a2dp_pan_edr()
3029 btc8192e2ant_sw_mec2(btcoexist, true, false, in btc8192e2ant_action_hid_a2dp_pan_edr()
3032 btc8192e2ant_sw_mec1(btcoexist, false, true, in btc8192e2ant_action_hid_a2dp_pan_edr()
3034 btc8192e2ant_sw_mec2(btcoexist, false, false, in btc8192e2ant_action_hid_a2dp_pan_edr()
3040 static void halbtc8192e2ant_action_hid_a2dp(struct btc_coexist *btcoexist) in halbtc8192e2ant_action_hid_a2dp() argument
3045 wifirssi_state = halbtc8192e2ant_wifirssi_state(btcoexist, 0, 2, 15, 0); in halbtc8192e2ant_action_hid_a2dp()
3048 halbtc8192e2ant_switch_sstype(btcoexist, NORMAL_EXEC, 1); in halbtc8192e2ant_action_hid_a2dp()
3049 halbtc8192e2ant_limited_rx(btcoexist, NORMAL_EXEC, false, false, 0x8); in halbtc8192e2ant_action_hid_a2dp()
3051 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); in halbtc8192e2ant_action_hid_a2dp()
3053 btc8192e2ant_coex_tbl_w_type(btcoexist, NORMAL_EXEC, 3); in halbtc8192e2ant_action_hid_a2dp()
3057 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 0); in halbtc8192e2ant_action_hid_a2dp()
3058 halbtc8192e2ant_tdma_duration_adjust(btcoexist, true, true, 2); in halbtc8192e2ant_action_hid_a2dp()
3061 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 2); in halbtc8192e2ant_action_hid_a2dp()
3062 halbtc8192e2ant_tdma_duration_adjust(btcoexist, true, false, 2); in halbtc8192e2ant_action_hid_a2dp()
3065 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 4); in halbtc8192e2ant_action_hid_a2dp()
3066 halbtc8192e2ant_tdma_duration_adjust(btcoexist, true, false, 2); in halbtc8192e2ant_action_hid_a2dp()
3073 btc8192e2ant_sw_mec1(btcoexist, true, true, in halbtc8192e2ant_action_hid_a2dp()
3075 btc8192e2ant_sw_mec2(btcoexist, true, false, in halbtc8192e2ant_action_hid_a2dp()
3078 btc8192e2ant_sw_mec1(btcoexist, true, true, in halbtc8192e2ant_action_hid_a2dp()
3080 btc8192e2ant_sw_mec2(btcoexist, false, false, in halbtc8192e2ant_action_hid_a2dp()
3086 btc8192e2ant_sw_mec1(btcoexist, false, true, in halbtc8192e2ant_action_hid_a2dp()
3088 btc8192e2ant_sw_mec2(btcoexist, true, false, in halbtc8192e2ant_action_hid_a2dp()
3091 btc8192e2ant_sw_mec1(btcoexist, false, true, in halbtc8192e2ant_action_hid_a2dp()
3093 btc8192e2ant_sw_mec2(btcoexist, false, false, in halbtc8192e2ant_action_hid_a2dp()
3099 static void halbtc8192e2ant_run_coexist_mechanism(struct btc_coexist *btcoexist) in halbtc8192e2ant_run_coexist_mechanism() argument
3106 if (btcoexist->manual_control) { in halbtc8192e2ant_run_coexist_mechanism()
3118 algorithm = halbtc8192e2ant_action_algorithm(btcoexist); in halbtc8192e2ant_run_coexist_mechanism()
3123 halbtc8192e2ant_action_bt_inquiry(btcoexist); in halbtc8192e2ant_run_coexist_mechanism()
3131 if (halbtc8192e2ant_is_common_action(btcoexist)) { in halbtc8192e2ant_run_coexist_mechanism()
3147 halbtc8192e2ant_action_sco(btcoexist); in halbtc8192e2ant_run_coexist_mechanism()
3152 halbtc8192e2ant_action_sco_pan(btcoexist); in halbtc8192e2ant_run_coexist_mechanism()
3157 halbtc8192e2ant_action_hid(btcoexist); in halbtc8192e2ant_run_coexist_mechanism()
3162 halbtc8192e2ant_action_a2dp(btcoexist); in halbtc8192e2ant_run_coexist_mechanism()
3167 halbtc8192e2ant_action_a2dp_pan_hs(btcoexist); in halbtc8192e2ant_run_coexist_mechanism()
3172 halbtc8192e2ant_action_pan_edr(btcoexist); in halbtc8192e2ant_run_coexist_mechanism()
3177 halbtc8192e2ant_action_pan_hs(btcoexist); in halbtc8192e2ant_run_coexist_mechanism()
3182 halbtc8192e2ant_action_pan_edr_a2dp(btcoexist); in halbtc8192e2ant_run_coexist_mechanism()
3187 halbtc8192e2ant_action_pan_edr_hid(btcoexist); in halbtc8192e2ant_run_coexist_mechanism()
3192 btc8192e2ant_action_hid_a2dp_pan_edr(btcoexist); in halbtc8192e2ant_run_coexist_mechanism()
3197 halbtc8192e2ant_action_hid_a2dp(btcoexist); in halbtc8192e2ant_run_coexist_mechanism()
3209 static void halbtc8192e2ant_init_hwconfig(struct btc_coexist *btcoexist, in halbtc8192e2ant_init_hwconfig() argument
3221 btcoexist->btc_get_rf_reg(btcoexist, BTC_RF_A, in halbtc8192e2ant_init_hwconfig()
3224 coex_dm->backup_arfr_cnt1 = btcoexist->btc_read_4byte(btcoexist, in halbtc8192e2ant_init_hwconfig()
3226 coex_dm->backup_arfr_cnt2 = btcoexist->btc_read_4byte(btcoexist, in halbtc8192e2ant_init_hwconfig()
3228 coex_dm->backup_retrylimit = btcoexist->btc_read_2byte( in halbtc8192e2ant_init_hwconfig()
3229 btcoexist, in halbtc8192e2ant_init_hwconfig()
3231 coex_dm->backup_ampdu_maxtime = btcoexist->btc_read_1byte( in halbtc8192e2ant_init_hwconfig()
3232 btcoexist, in halbtc8192e2ant_init_hwconfig()
3237 btcoexist->btc_write_1byte(btcoexist, 0x4f, 0x6); in halbtc8192e2ant_init_hwconfig()
3238 btcoexist->btc_write_1byte(btcoexist, 0x944, 0x24); in halbtc8192e2ant_init_hwconfig()
3239 btcoexist->btc_write_4byte(btcoexist, 0x930, 0x700700); in halbtc8192e2ant_init_hwconfig()
3240 btcoexist->btc_write_1byte(btcoexist, 0x92c, 0x20); in halbtc8192e2ant_init_hwconfig()
3241 if (btcoexist->chip_interface == BTC_INTF_USB) in halbtc8192e2ant_init_hwconfig()
3242 btcoexist->btc_write_4byte(btcoexist, 0x64, 0x30430004); in halbtc8192e2ant_init_hwconfig()
3244 btcoexist->btc_write_4byte(btcoexist, 0x64, 0x30030004); in halbtc8192e2ant_init_hwconfig()
3246 btc8192e2ant_coex_tbl_w_type(btcoexist, FORCE_EXEC, 0); in halbtc8192e2ant_init_hwconfig()
3249 btcoexist->btc_write_4byte(btcoexist, 0x858, 0x55555555); in halbtc8192e2ant_init_hwconfig()
3252 btcoexist->btc_write_1byte(btcoexist, 0x778, 0x3); in halbtc8192e2ant_init_hwconfig()
3254 u8tmp = btcoexist->btc_read_1byte(btcoexist, 0x790); in halbtc8192e2ant_init_hwconfig()
3257 btcoexist->btc_write_1byte(btcoexist, 0x790, u8tmp); in halbtc8192e2ant_init_hwconfig()
3260 btcoexist->btc_write_1byte(btcoexist, 0x76e, 0x4); in halbtc8192e2ant_init_hwconfig()
3263 btcoexist->btc_write_1byte(btcoexist, 0x40, 0x20); in halbtc8192e2ant_init_hwconfig()
3265 u16tmp = btcoexist->btc_read_2byte(btcoexist, 0x40); in halbtc8192e2ant_init_hwconfig()
3267 btcoexist->btc_write_2byte(btcoexist, 0x40, u16tmp); in halbtc8192e2ant_init_hwconfig()
3270 u8tmp = btcoexist->btc_read_1byte(btcoexist, 0x101); in halbtc8192e2ant_init_hwconfig()
3272 btcoexist->btc_write_1byte(btcoexist, 0x101, u8tmp); in halbtc8192e2ant_init_hwconfig()
3275 u8tmp = btcoexist->btc_read_1byte(btcoexist, 0x93); in halbtc8192e2ant_init_hwconfig()
3277 btcoexist->btc_write_1byte(btcoexist, 0x93, u8tmp); in halbtc8192e2ant_init_hwconfig()
3279 u8tmp = btcoexist->btc_read_1byte(btcoexist, 0x7); in halbtc8192e2ant_init_hwconfig()
3281 btcoexist->btc_write_1byte(btcoexist, 0x7, u8tmp); in halbtc8192e2ant_init_hwconfig()
3292 void ex_halbtc8192e2ant_init_hwconfig(struct btc_coexist *btcoexist) in ex_halbtc8192e2ant_init_hwconfig() argument
3294 halbtc8192e2ant_init_hwconfig(btcoexist, true); in ex_halbtc8192e2ant_init_hwconfig()
3297 void ex_halbtc8192e2ant_init_coex_dm(struct btc_coexist *btcoexist) in ex_halbtc8192e2ant_init_coex_dm() argument
3301 halbtc8192e2ant_init_coex_dm(btcoexist); in ex_halbtc8192e2ant_init_coex_dm()
3304 void ex_halbtc8192e2ant_display_coex_info(struct btc_coexist *btcoexist) in ex_halbtc8192e2ant_display_coex_info() argument
3306 struct btc_board_info *board_info = &btcoexist->board_info; in ex_halbtc8192e2ant_display_coex_info()
3307 struct btc_stack_info *stack_info = &btcoexist->stack_info; in ex_halbtc8192e2ant_display_coex_info()
3308 struct rtl_priv *rtlpriv = btcoexist->adapter; in ex_halbtc8192e2ant_display_coex_info()
3322 if (btcoexist->manual_control) { in ex_halbtc8192e2ant_display_coex_info()
3343 btcoexist->btc_get(btcoexist, BTC_GET_U4_BT_PATCH_VER, &bt_patch_ver); in ex_halbtc8192e2ant_display_coex_info()
3344 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_FW_VER, &fw_ver); in ex_halbtc8192e2ant_display_coex_info()
3351 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hson); in ex_halbtc8192e2ant_display_coex_info()
3352 btcoexist->btc_get(btcoexist, BTC_GET_U1_WIFI_DOT11_CHNL, in ex_halbtc8192e2ant_display_coex_info()
3354 btcoexist->btc_get(btcoexist, BTC_GET_U1_WIFI_HS_CHNL, &wifi_hs_chnl); in ex_halbtc8192e2ant_display_coex_info()
3363 btcoexist->btc_get(btcoexist, BTC_GET_S4_WIFI_RSSI, &wifirssi); in ex_halbtc8192e2ant_display_coex_info()
3364 btcoexist->btc_get(btcoexist, BTC_GET_S4_HS_RSSI, &bt_hs_rssi); in ex_halbtc8192e2ant_display_coex_info()
3368 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_SCAN, &scan); in ex_halbtc8192e2ant_display_coex_info()
3369 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link); in ex_halbtc8192e2ant_display_coex_info()
3370 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_ROAM, &roam); in ex_halbtc8192e2ant_display_coex_info()
3374 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_UNDER_5G, &wifi_under_5g); in ex_halbtc8192e2ant_display_coex_info()
3375 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); in ex_halbtc8192e2ant_display_coex_info()
3376 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_BUSY, &wifi_busy); in ex_halbtc8192e2ant_display_coex_info()
3377 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_TRAFFIC_DIRECTION, in ex_halbtc8192e2ant_display_coex_info()
3389 ((btcoexist->bt_info.bt_disabled) ? ("disabled") : in ex_halbtc8192e2ant_display_coex_info()
3402 btcoexist->btc_disp_dbg_msg(btcoexist, BTC_DBG_DISP_BT_LINK_INFO); in ex_halbtc8192e2ant_display_coex_info()
3431 btcoexist->btc_disp_dbg_msg(btcoexist, BTC_DBG_DISP_FW_PWR_MODE_CMD); in ex_halbtc8192e2ant_display_coex_info()
3448 btcoexist->bt_info.ra_mask); in ex_halbtc8192e2ant_display_coex_info()
3478 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x430); in ex_halbtc8192e2ant_display_coex_info()
3479 u32tmp[1] = btcoexist->btc_read_4byte(btcoexist, 0x434); in ex_halbtc8192e2ant_display_coex_info()
3480 u16tmp[0] = btcoexist->btc_read_2byte(btcoexist, 0x42a); in ex_halbtc8192e2ant_display_coex_info()
3481 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x456); in ex_halbtc8192e2ant_display_coex_info()
3486 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0xc04); in ex_halbtc8192e2ant_display_coex_info()
3487 u32tmp[1] = btcoexist->btc_read_4byte(btcoexist, 0xd04); in ex_halbtc8192e2ant_display_coex_info()
3488 u32tmp[2] = btcoexist->btc_read_4byte(btcoexist, 0x90c); in ex_halbtc8192e2ant_display_coex_info()
3492 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x778); in ex_halbtc8192e2ant_display_coex_info()
3496 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x92c); in ex_halbtc8192e2ant_display_coex_info()
3497 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x930); in ex_halbtc8192e2ant_display_coex_info()
3501 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x40); in ex_halbtc8192e2ant_display_coex_info()
3502 u8tmp[1] = btcoexist->btc_read_1byte(btcoexist, 0x4f); in ex_halbtc8192e2ant_display_coex_info()
3506 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x550); in ex_halbtc8192e2ant_display_coex_info()
3507 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x522); in ex_halbtc8192e2ant_display_coex_info()
3511 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0xc50); in ex_halbtc8192e2ant_display_coex_info()
3515 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x6c0); in ex_halbtc8192e2ant_display_coex_info()
3516 u32tmp[1] = btcoexist->btc_read_4byte(btcoexist, 0x6c4); in ex_halbtc8192e2ant_display_coex_info()
3517 u32tmp[2] = btcoexist->btc_read_4byte(btcoexist, 0x6c8); in ex_halbtc8192e2ant_display_coex_info()
3518 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x6cc); in ex_halbtc8192e2ant_display_coex_info()
3531 halbtc8192e2ant_monitor_bt_ctr(btcoexist); in ex_halbtc8192e2ant_display_coex_info()
3533 btcoexist->btc_disp_dbg_msg(btcoexist, BTC_DBG_DISP_COEX_STATISTICS); in ex_halbtc8192e2ant_display_coex_info()
3536 void ex_halbtc8192e2ant_ips_notify(struct btc_coexist *btcoexist, u8 type) in ex_halbtc8192e2ant_ips_notify() argument
3542 halbtc8192e2ant_coex_alloff(btcoexist); in ex_halbtc8192e2ant_ips_notify()
3550 void ex_halbtc8192e2ant_lps_notify(struct btc_coexist *btcoexist, u8 type) in ex_halbtc8192e2ant_lps_notify() argument
3563 void ex_halbtc8192e2ant_scan_notify(struct btc_coexist *btcoexist, u8 type) in ex_halbtc8192e2ant_scan_notify() argument
3573 void ex_halbtc8192e2ant_connect_notify(struct btc_coexist *btcoexist, u8 type) in ex_halbtc8192e2ant_connect_notify() argument
3583 void ex_halbtc8192e2ant_media_status_notify(struct btc_coexist *btcoexist, in ex_halbtc8192e2ant_media_status_notify() argument
3590 if (btcoexist->manual_control || in ex_halbtc8192e2ant_media_status_notify()
3591 btcoexist->stop_coex_dm || in ex_halbtc8192e2ant_media_status_notify()
3592 btcoexist->bt_info.bt_disabled) in ex_halbtc8192e2ant_media_status_notify()
3603 btcoexist->btc_get(btcoexist, BTC_GET_U1_WIFI_CENTRAL_CHNL, in ex_halbtc8192e2ant_media_status_notify()
3609 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); in ex_halbtc8192e2ant_media_status_notify()
3625 btcoexist->btc_fill_h2c(btcoexist, 0x66, 3, h2c_parameter); in ex_halbtc8192e2ant_media_status_notify()
3628 void ex_halbtc8192e2ant_special_packet_notify(struct btc_coexist *btcoexist, in ex_halbtc8192e2ant_special_packet_notify() argument
3636 void ex_halbtc8192e2ant_bt_info_notify(struct btc_coexist *btcoexist, in ex_halbtc8192e2ant_bt_info_notify() argument
3682 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_CONNECTED, in ex_halbtc8192e2ant_bt_info_notify()
3686 btcoexist, in ex_halbtc8192e2ant_bt_info_notify()
3690 btcoexist, in ex_halbtc8192e2ant_bt_info_notify()
3695 if (!btcoexist->manual_control && in ex_halbtc8192e2ant_bt_info_notify()
3696 !btcoexist->stop_coex_dm) { in ex_halbtc8192e2ant_bt_info_notify()
3699 halbtc8192e2ant_IgnoreWlanAct(btcoexist, in ex_halbtc8192e2ant_bt_info_notify()
3713 halbtc8192e2ant_bt_autoreport(btcoexist, FORCE_EXEC, in ex_halbtc8192e2ant_bt_info_notify()
3752 halbtc8192e2ant_update_btlink_info(btcoexist); in ex_halbtc8192e2ant_bt_info_notify()
3787 btcoexist->btc_set(btcoexist, BTC_SET_BL_BT_TRAFFIC_BUSY, &bt_busy); in ex_halbtc8192e2ant_bt_info_notify()
3790 btcoexist->btc_set(btcoexist, BTC_SET_BL_BT_LIMITED_DIG, &limited_dig); in ex_halbtc8192e2ant_bt_info_notify()
3792 halbtc8192e2ant_run_coexist_mechanism(btcoexist); in ex_halbtc8192e2ant_bt_info_notify()
3795 void ex_halbtc8192e2ant_stack_operation_notify(struct btc_coexist *btcoexist, in ex_halbtc8192e2ant_stack_operation_notify() argument
3800 void ex_halbtc8192e2ant_halt_notify(struct btc_coexist *btcoexist) in ex_halbtc8192e2ant_halt_notify() argument
3804 halbtc8192e2ant_IgnoreWlanAct(btcoexist, FORCE_EXEC, true); in ex_halbtc8192e2ant_halt_notify()
3805 ex_halbtc8192e2ant_media_status_notify(btcoexist, BTC_MEDIA_DISCONNECT); in ex_halbtc8192e2ant_halt_notify()
3808 void ex_halbtc8192e2ant_periodical(struct btc_coexist *btcoexist) in ex_halbtc8192e2ant_periodical() argument
3812 struct btc_board_info *board_info = &btcoexist->board_info; in ex_halbtc8192e2ant_periodical()
3813 struct btc_stack_info *stack_info = &btcoexist->stack_info; in ex_halbtc8192e2ant_periodical()
3829 btcoexist->btc_get(btcoexist, BTC_GET_U4_BT_PATCH_VER, in ex_halbtc8192e2ant_periodical()
3831 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_FW_VER, &fw_ver); in ex_halbtc8192e2ant_periodical()
3841 halbtc8192e2ant_querybt_info(btcoexist); in ex_halbtc8192e2ant_periodical()
3842 halbtc8192e2ant_monitor_bt_ctr(btcoexist); in ex_halbtc8192e2ant_periodical()
3843 btc8192e2ant_monitor_bt_enable_dis(btcoexist); in ex_halbtc8192e2ant_periodical()
3845 if (halbtc8192e2ant_iswifi_status_changed(btcoexist) || in ex_halbtc8192e2ant_periodical()
3847 halbtc8192e2ant_run_coexist_mechanism(btcoexist); in ex_halbtc8192e2ant_periodical()