Searched refs:btcoexist (Results 1 - 41 of 41) sorted by relevance

/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/btcoexist/
H A DMakefile0 btcoexist-objs := halbtc8723b2ant.o \
5 obj-$(CONFIG_RTLBTCOEXIST) += btcoexist.o
H A Dhalbtc8821a1ant.c151 static u8 halbtc8821a1ant_WifiRssiState(struct btc_coexist *btcoexist, halbtc8821a1ant_WifiRssiState() argument
158 btcoexist->btc_get(btcoexist, BTC_GET_S4_WIFI_RSSI, &wifi_rssi); halbtc8821a1ant_WifiRssiState()
254 static void halbtc8821a1ant_update_ra_mask(struct btc_coexist *btcoexist, halbtc8821a1ant_update_ra_mask() argument
261 btcoexist->btc_set(btcoexist, BTC_SET_ACT_UPDATE_ra_mask, halbtc8821a1ant_update_ra_mask()
267 static void btc8821a1ant_auto_rate_fb_retry(struct btc_coexist *btcoexist, btc8821a1ant_auto_rate_fb_retry() argument
278 btcoexist->btc_write_4byte(btcoexist, 0x430, btc8821a1ant_auto_rate_fb_retry()
280 btcoexist->btc_write_4byte(btcoexist, 0x434, btc8821a1ant_auto_rate_fb_retry()
284 btcoexist->btc_get(btcoexist, btc8821a1ant_auto_rate_fb_retry()
288 btcoexist->btc_write_4byte(btcoexist, 0x430, btc8821a1ant_auto_rate_fb_retry()
290 btcoexist->btc_write_4byte(btcoexist, 0x434, btc8821a1ant_auto_rate_fb_retry()
293 btcoexist->btc_write_4byte(btcoexist, 0x430, btc8821a1ant_auto_rate_fb_retry()
295 btcoexist->btc_write_4byte(btcoexist, 0x434, btc8821a1ant_auto_rate_fb_retry()
307 static void halbtc8821a1ant_retry_limit(struct btc_coexist *btcoexist, halbtc8821a1ant_retry_limit() argument
316 btcoexist->btc_write_2byte(btcoexist, 0x42a, halbtc8821a1ant_retry_limit()
320 btcoexist->btc_write_2byte(btcoexist, 0x42a, 0x0808); halbtc8821a1ant_retry_limit()
329 static void halbtc8821a1ant_ampdu_max_time(struct btc_coexist *btcoexist, halbtc8821a1ant_ampdu_max_time() argument
338 btcoexist->btc_write_1byte(btcoexist, 0x456, halbtc8821a1ant_ampdu_max_time()
342 btcoexist->btc_write_1byte(btcoexist, 0x456, 0x38); halbtc8821a1ant_ampdu_max_time()
352 static void halbtc8821a1ant_limited_tx(struct btc_coexist *btcoexist, halbtc8821a1ant_limited_tx() argument
359 halbtc8821a1ant_update_ra_mask(btcoexist, force_exec, 0x0); halbtc8821a1ant_limited_tx()
362 halbtc8821a1ant_update_ra_mask(btcoexist, force_exec, halbtc8821a1ant_limited_tx()
366 halbtc8821a1ant_update_ra_mask(btcoexist, force_exec, halbtc8821a1ant_limited_tx()
373 btc8821a1ant_auto_rate_fb_retry(btcoexist, force_exec, arfr_type); halbtc8821a1ant_limited_tx()
374 halbtc8821a1ant_retry_limit(btcoexist, force_exec, retry_limit_type); halbtc8821a1ant_limited_tx()
375 halbtc8821a1ant_ampdu_max_time(btcoexist, force_exec, ampdu_time_type); halbtc8821a1ant_limited_tx()
378 static void halbtc8821a1ant_limited_rx(struct btc_coexist *btcoexist, halbtc8821a1ant_limited_rx() argument
390 btcoexist->btc_set(btcoexist, halbtc8821a1ant_limited_rx()
393 btcoexist->btc_set(btcoexist, BTC_SET_BL_BT_CTRL_AGG_SIZE, halbtc8821a1ant_limited_rx()
396 btcoexist->btc_set(btcoexist, BTC_SET_U1_AGG_BUF_SIZE, &rx_agg_size); halbtc8821a1ant_limited_rx()
398 btcoexist->btc_set(btcoexist, BTC_SET_ACT_AGGREGATE_CTRL, NULL); halbtc8821a1ant_limited_rx()
401 static void halbtc8821a1ant_monitor_bt_ctr(struct btc_coexist *btcoexist) halbtc8821a1ant_monitor_bt_ctr() argument
409 u4_tmp = btcoexist->btc_read_4byte(btcoexist, reg_hp_tx_rx); halbtc8821a1ant_monitor_bt_ctr()
413 u4_tmp = btcoexist->btc_read_4byte(btcoexist, reg_lp_tx_rx); halbtc8821a1ant_monitor_bt_ctr()
423 btcoexist->btc_write_1byte(btcoexist, 0x76e, 0xc); halbtc8821a1ant_monitor_bt_ctr()
426 static void halbtc8821a1ant_query_bt_info(struct btc_coexist *btcoexist) halbtc8821a1ant_query_bt_info() argument
438 btcoexist->btc_fill_h2c(btcoexist, 0x61, 1, h2c_parameter); halbtc8821a1ant_query_bt_info()
441 static void halbtc8821a1ant_update_bt_link_info(struct btc_coexist *btcoexist) halbtc8821a1ant_update_bt_link_info() argument
443 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; halbtc8821a1ant_update_bt_link_info()
446 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); halbtc8821a1ant_update_bt_link_info()
497 static u8 halbtc8821a1ant_action_algorithm(struct btc_coexist *btcoexist) halbtc8821a1ant_action_algorithm() argument
499 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; halbtc8821a1ant_action_algorithm()
504 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); halbtc8821a1ant_action_algorithm()
663 static void halbtc8821a1ant_set_bt_auto_report(struct btc_coexist *btcoexist, halbtc8821a1ant_set_bt_auto_report() argument
678 btcoexist->btc_fill_h2c(btcoexist, 0x68, 1, h2c_parameter); halbtc8821a1ant_set_bt_auto_report()
681 static void halbtc8821a1ant_bt_auto_report(struct btc_coexist *btcoexist, halbtc8821a1ant_bt_auto_report() argument
700 halbtc8821a1ant_set_bt_auto_report(btcoexist, coex_dm->cur_bt_auto_report); halbtc8821a1ant_bt_auto_report()
705 static void btc8821a1ant_set_sw_pen_tx_rate(struct btc_coexist *btcoexist, btc8821a1ant_set_sw_pen_tx_rate() argument
725 btcoexist->btc_fill_h2c(btcoexist, 0x69, 6, h2c_parameter); btc8821a1ant_set_sw_pen_tx_rate()
728 static void halbtc8821a1ant_low_penalty_ra(struct btc_coexist *btcoexist, halbtc8821a1ant_low_penalty_ra() argument
737 btc8821a1ant_set_sw_pen_tx_rate(btcoexist, coex_dm->cur_low_penalty_ra); halbtc8821a1ant_low_penalty_ra()
742 static void halbtc8821a1ant_set_coex_table(struct btc_coexist *btcoexist, halbtc8821a1ant_set_coex_table() argument
748 btcoexist->btc_write_4byte(btcoexist, 0x6c0, val0x6c0); halbtc8821a1ant_set_coex_table()
752 btcoexist->btc_write_4byte(btcoexist, 0x6c4, val0x6c4); halbtc8821a1ant_set_coex_table()
756 btcoexist->btc_write_4byte(btcoexist, 0x6c8, val0x6c8); halbtc8821a1ant_set_coex_table()
760 btcoexist->btc_write_1byte(btcoexist, 0x6cc, val0x6cc); halbtc8821a1ant_set_coex_table()
763 static void halbtc8821a1ant_coex_table(struct btc_coexist *btcoexist, halbtc8821a1ant_coex_table() argument
783 halbtc8821a1ant_set_coex_table(btcoexist, val0x6c0, val0x6c4, halbtc8821a1ant_coex_table()
792 static void halbtc8821a1ant_coex_table_with_type(struct btc_coexist *btcoexist, halbtc8821a1ant_coex_table_with_type() argument
797 halbtc8821a1ant_coex_table(btcoexist, force_exec, 0x55555555, halbtc8821a1ant_coex_table_with_type()
801 halbtc8821a1ant_coex_table(btcoexist, force_exec, halbtc8821a1ant_coex_table_with_type()
806 halbtc8821a1ant_coex_table(btcoexist, force_exec, 0x5a5a5a5a, halbtc8821a1ant_coex_table_with_type()
810 halbtc8821a1ant_coex_table(btcoexist, force_exec, 0x55555555, halbtc8821a1ant_coex_table_with_type()
814 halbtc8821a1ant_coex_table(btcoexist, force_exec, 0xffffffff, halbtc8821a1ant_coex_table_with_type()
818 halbtc8821a1ant_coex_table(btcoexist, force_exec, 0x5fff5fff, halbtc8821a1ant_coex_table_with_type()
822 halbtc8821a1ant_coex_table(btcoexist, force_exec, 0x55ff55ff, halbtc8821a1ant_coex_table_with_type()
826 halbtc8821a1ant_coex_table(btcoexist, force_exec, 0x5afa5afa, halbtc8821a1ant_coex_table_with_type()
834 static void btc8821a1ant_set_fw_ignore_wlan_act(struct btc_coexist *btcoexist, btc8821a1ant_set_fw_ignore_wlan_act() argument
846 btcoexist->btc_fill_h2c(btcoexist, 0x63, 1, h2c_parameter); btc8821a1ant_set_fw_ignore_wlan_act()
849 static void halbtc8821a1ant_ignore_wlan_act(struct btc_coexist *btcoexist, halbtc8821a1ant_ignore_wlan_act() argument
867 btc8821a1ant_set_fw_ignore_wlan_act(btcoexist, enable); halbtc8821a1ant_ignore_wlan_act()
872 static void halbtc8821a1ant_set_fw_pstdma(struct btc_coexist *btcoexist, halbtc8821a1ant_set_fw_pstdma() argument
897 btcoexist->btc_fill_h2c(btcoexist, 0x60, 5, h2c_parameter); halbtc8821a1ant_set_fw_pstdma()
900 static void halbtc8821a1ant_set_lps_rpwm(struct btc_coexist *btcoexist, halbtc8821a1ant_set_lps_rpwm() argument
906 btcoexist->btc_set(btcoexist, BTC_SET_U1_LPS_VAL, &lps); halbtc8821a1ant_set_lps_rpwm()
907 btcoexist->btc_set(btcoexist, BTC_SET_U1_RPWM_VAL, &rpwm); halbtc8821a1ant_set_lps_rpwm()
910 static void halbtc8821a1ant_lps_rpwm(struct btc_coexist *btcoexist, halbtc8821a1ant_lps_rpwm() argument
933 halbtc8821a1ant_set_lps_rpwm(btcoexist, lps_val, rpwm_val); halbtc8821a1ant_lps_rpwm()
939 static void halbtc8821a1ant_sw_mechanism(struct btc_coexist *btcoexist, halbtc8821a1ant_sw_mechanism() argument
945 halbtc8821a1ant_low_penalty_ra(btcoexist, NORMAL_EXEC, low_penalty_ra); halbtc8821a1ant_sw_mechanism()
948 static void halbtc8821a1ant_set_ant_path(struct btc_coexist *btcoexist, halbtc8821a1ant_set_ant_path() argument
952 struct btc_board_info *board_info = &btcoexist->board_info; halbtc8821a1ant_set_ant_path()
958 u4_tmp = btcoexist->btc_read_4byte(btcoexist, 0x4c); halbtc8821a1ant_set_ant_path()
961 btcoexist->btc_write_4byte(btcoexist, 0x4c, u4_tmp); halbtc8821a1ant_set_ant_path()
963 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x975, 0x3, 0x3); halbtc8821a1ant_set_ant_path()
964 btcoexist->btc_write_1byte(btcoexist, 0xcb4, 0x77); halbtc8821a1ant_set_ant_path()
972 btcoexist->btc_fill_h2c(btcoexist, 0x65, 2, halbtc8821a1ant_set_ant_path()
975 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x64, halbtc8821a1ant_set_ant_path()
983 btcoexist->btc_fill_h2c(btcoexist, 0x65, 2, halbtc8821a1ant_set_ant_path()
986 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x64, halbtc8821a1ant_set_ant_path()
993 u4_tmp = btcoexist->btc_read_4byte(btcoexist, 0x4c); halbtc8821a1ant_set_ant_path()
996 btcoexist->btc_write_4byte(btcoexist, 0x4c, u4_tmp); halbtc8821a1ant_set_ant_path()
1003 btcoexist->btc_write_1byte_bitmask(btcoexist, 0xcb7, halbtc8821a1ant_set_ant_path()
1006 btcoexist->btc_write_1byte_bitmask(btcoexist, 0xcb7, halbtc8821a1ant_set_ant_path()
1011 btcoexist->btc_write_1byte_bitmask(btcoexist, 0xcb7, halbtc8821a1ant_set_ant_path()
1014 btcoexist->btc_write_1byte_bitmask(btcoexist, 0xcb7, halbtc8821a1ant_set_ant_path()
1020 btcoexist->btc_write_1byte_bitmask(btcoexist, 0xcb7, halbtc8821a1ant_set_ant_path()
1023 btcoexist->btc_write_1byte_bitmask(btcoexist, 0xcb7, halbtc8821a1ant_set_ant_path()
1029 static void halbtc8821a1ant_ps_tdma(struct btc_coexist *btcoexist, halbtc8821a1ant_ps_tdma() argument
1054 halbtc8821a1ant_set_fw_pstdma(btcoexist, 0x51, 0x1a, halbtc8821a1ant_ps_tdma()
1058 halbtc8821a1ant_set_fw_pstdma(btcoexist, 0x51, 0x3a, halbtc8821a1ant_ps_tdma()
1063 halbtc8821a1ant_set_fw_pstdma(btcoexist, 0x51, 0x2b, halbtc8821a1ant_ps_tdma()
1068 halbtc8821a1ant_set_fw_pstdma(btcoexist, 0x51, 0x1d, halbtc8821a1ant_ps_tdma()
1072 halbtc8821a1ant_set_fw_pstdma(btcoexist, 0x93, 0x15, halbtc8821a1ant_ps_tdma()
1077 halbtc8821a1ant_set_fw_pstdma(btcoexist, 0x61, 0x15, halbtc8821a1ant_ps_tdma()
1081 halbtc8821a1ant_set_fw_pstdma(btcoexist, 0x13, 0xa, halbtc8821a1ant_ps_tdma()
1085 halbtc8821a1ant_set_fw_pstdma(btcoexist, 0x13, 0xc, halbtc8821a1ant_ps_tdma()
1089 halbtc8821a1ant_set_fw_pstdma(btcoexist, 0x93, 0x25, halbtc8821a1ant_ps_tdma()
1093 halbtc8821a1ant_set_fw_pstdma(btcoexist, 0x51, 0x21, halbtc8821a1ant_ps_tdma()
1098 halbtc8821a1ant_set_fw_pstdma(btcoexist, 0x13, 0xa, halbtc8821a1ant_ps_tdma()
1102 halbtc8821a1ant_set_fw_pstdma(btcoexist, 0x51, 0x14, halbtc8821a1ant_ps_tdma()
1107 halbtc8821a1ant_set_fw_pstdma(btcoexist, 0x51, 0x0a, halbtc8821a1ant_ps_tdma()
1111 halbtc8821a1ant_set_fw_pstdma(btcoexist, 0x51, 0x18, halbtc8821a1ant_ps_tdma()
1115 halbtc8821a1ant_set_fw_pstdma(btcoexist, 0x51, 0x21, halbtc8821a1ant_ps_tdma()
1119 halbtc8821a1ant_set_fw_pstdma(btcoexist, 0x13, 0xa, halbtc8821a1ant_ps_tdma()
1123 halbtc8821a1ant_set_fw_pstdma(btcoexist, 0x93, 0x15, halbtc8821a1ant_ps_tdma()
1128 halbtc8821a1ant_set_fw_pstdma(btcoexist, 0x93, 0x25, halbtc8821a1ant_ps_tdma()
1133 halbtc8821a1ant_set_fw_pstdma(btcoexist, 0x61, 0x35, halbtc8821a1ant_ps_tdma()
1137 halbtc8821a1ant_set_fw_pstdma(btcoexist, 0x61, 0x15, halbtc8821a1ant_ps_tdma()
1141 halbtc8821a1ant_set_fw_pstdma(btcoexist, 0x61, 0x25, halbtc8821a1ant_ps_tdma()
1145 halbtc8821a1ant_set_fw_pstdma(btcoexist, 0xe3, 0x25, halbtc8821a1ant_ps_tdma()
1150 halbtc8821a1ant_set_fw_pstdma(btcoexist, 0xe3, 0x15, halbtc8821a1ant_ps_tdma()
1155 halbtc8821a1ant_set_fw_pstdma(btcoexist, 0xe3, 0xa, halbtc8821a1ant_ps_tdma()
1160 halbtc8821a1ant_set_fw_pstdma(btcoexist, 0xe3, 0xa, halbtc8821a1ant_ps_tdma()
1165 halbtc8821a1ant_set_fw_pstdma(btcoexist, 0xe3, 0x25, halbtc8821a1ant_ps_tdma()
1170 halbtc8821a1ant_set_fw_pstdma(btcoexist, 0x69, 0x25, halbtc8821a1ant_ps_tdma()
1174 halbtc8821a1ant_set_fw_pstdma(btcoexist, 0xab, 0x1a, halbtc8821a1ant_ps_tdma()
1178 halbtc8821a1ant_set_fw_pstdma(btcoexist, 0x51, 0x14, halbtc8821a1ant_ps_tdma()
1182 halbtc8821a1ant_set_fw_pstdma(btcoexist, 0xd3, 0x1a, halbtc8821a1ant_ps_tdma()
1186 halbtc8821a1ant_set_fw_pstdma(btcoexist, 0x61, 0xa, halbtc8821a1ant_ps_tdma()
1190 halbtc8821a1ant_set_fw_pstdma(btcoexist, 0xa3, 0x25, halbtc8821a1ant_ps_tdma()
1194 halbtc8821a1ant_set_fw_pstdma(btcoexist, 0x53, 0x1a, halbtc8821a1ant_ps_tdma()
1198 halbtc8821a1ant_set_fw_pstdma(btcoexist, 0x63, 0x1a, halbtc8821a1ant_ps_tdma()
1202 halbtc8821a1ant_set_fw_pstdma(btcoexist, 0xd3, 0x12, halbtc8821a1ant_ps_tdma()
1210 halbtc8821a1ant_set_fw_pstdma(btcoexist, 0x8, 0x0, 0x0, halbtc8821a1ant_ps_tdma()
1212 halbtc8821a1ant_set_ant_path(btcoexist, BTC_ANT_PATH_PTA, halbtc8821a1ant_ps_tdma()
1217 halbtc8821a1ant_set_fw_pstdma(btcoexist, 0x0, 0x0, 0x0, halbtc8821a1ant_ps_tdma()
1219 halbtc8821a1ant_set_ant_path(btcoexist, BTC_ANT_PATH_BT, halbtc8821a1ant_ps_tdma()
1223 halbtc8821a1ant_set_fw_pstdma(btcoexist, 0x0, 0x0, 0x0, halbtc8821a1ant_ps_tdma()
1225 halbtc8821a1ant_set_ant_path(btcoexist, BTC_ANT_PATH_WIFI, halbtc8821a1ant_ps_tdma()
1229 halbtc8821a1ant_set_fw_pstdma(btcoexist, 0x0, 0x0, 0x0, halbtc8821a1ant_ps_tdma()
1231 halbtc8821a1ant_set_ant_path(btcoexist, BTC_ANT_PATH_BT, halbtc8821a1ant_ps_tdma()
1237 btcoexist->btc_set(btcoexist, halbtc8821a1ant_ps_tdma()
1245 static bool halbtc8821a1ant_is_common_action(struct btc_coexist *btcoexist) halbtc8821a1ant_is_common_action() argument
1249 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_CONNECTED, halbtc8821a1ant_is_common_action()
1251 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_BUSY, &wifi_busy); halbtc8821a1ant_is_common_action()
1258 halbtc8821a1ant_sw_mechanism(btcoexist, false); halbtc8821a1ant_is_common_action()
1266 halbtc8821a1ant_sw_mechanism(btcoexist, false); halbtc8821a1ant_is_common_action()
1274 halbtc8821a1ant_sw_mechanism(btcoexist, false); halbtc8821a1ant_is_common_action()
1282 halbtc8821a1ant_sw_mechanism(btcoexist, false); halbtc8821a1ant_is_common_action()
1290 halbtc8821a1ant_sw_mechanism(btcoexist, false); halbtc8821a1ant_is_common_action()
1308 static void btc8821a1ant_tdma_dur_adj(struct btc_coexist *btcoexist, btc8821a1ant_tdma_dur_adj() argument
1329 halbtc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a1ant_tdma_dur_adj()
1348 halbtc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 2); btc8821a1ant_tdma_dur_adj()
1444 halbtc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a1ant_tdma_dur_adj()
1448 halbtc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a1ant_tdma_dur_adj()
1452 halbtc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a1ant_tdma_dur_adj()
1456 halbtc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a1ant_tdma_dur_adj()
1464 halbtc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a1ant_tdma_dur_adj()
1468 halbtc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a1ant_tdma_dur_adj()
1472 halbtc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a1ant_tdma_dur_adj()
1476 halbtc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a1ant_tdma_dur_adj()
1492 halbtc8821a1ant_ps_tdma(btcoexist, btc8821a1ant_tdma_dur_adj()
1525 static void halbtc8821a1ant_power_save_state(struct btc_coexist *btcoexist, halbtc8821a1ant_power_save_state() argument
1535 btcoexist->btc_set(btcoexist, BTC_SET_ACT_DISABLE_LOW_POWER, halbtc8821a1ant_power_save_state()
1537 btcoexist->btc_set(btcoexist, BTC_SET_ACT_NORMAL_LPS, NULL); halbtc8821a1ant_power_save_state()
1540 btc8821a1ant_ps_tdma_check_for_pwr_save(btcoexist, halbtc8821a1ant_power_save_state()
1542 halbtc8821a1ant_lps_rpwm(btcoexist, halbtc8821a1ant_power_save_state()
1546 btcoexist->btc_set(btcoexist, BTC_SET_ACT_DISABLE_LOW_POWER, halbtc8821a1ant_power_save_state()
1549 btcoexist->btc_set(btcoexist, BTC_SET_ACT_ENTER_LPS, NULL); halbtc8821a1ant_power_save_state()
1552 btc8821a1ant_ps_tdma_check_for_pwr_save(btcoexist, false); halbtc8821a1ant_power_save_state()
1553 btcoexist->btc_set(btcoexist, BTC_SET_ACT_LEAVE_LPS, NULL); halbtc8821a1ant_power_save_state()
1560 static void halbtc8821a1ant_coex_under_5g(struct btc_coexist *btcoexist) halbtc8821a1ant_coex_under_5g() argument
1562 halbtc8821a1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, halbtc8821a1ant_coex_under_5g()
1564 halbtc8821a1ant_ignore_wlan_act(btcoexist, NORMAL_EXEC, true); halbtc8821a1ant_coex_under_5g()
1566 halbtc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 10); halbtc8821a1ant_coex_under_5g()
1568 halbtc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 0); halbtc8821a1ant_coex_under_5g()
1570 halbtc8821a1ant_limited_tx(btcoexist, NORMAL_EXEC, 0, 0, 0, 0); halbtc8821a1ant_coex_under_5g()
1572 halbtc8821a1ant_limited_rx(btcoexist, NORMAL_EXEC, false, false, 5); halbtc8821a1ant_coex_under_5g()
1575 static void halbtc8821a1ant_action_wifi_only(struct btc_coexist *btcoexist) halbtc8821a1ant_action_wifi_only() argument
1577 halbtc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 0); halbtc8821a1ant_action_wifi_only()
1578 halbtc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 9); halbtc8821a1ant_action_wifi_only()
1581 static void btc8821a1ant_mon_bt_en_dis(struct btc_coexist *btcoexist) btc8821a1ant_mon_bt_en_dis() argument
1604 btcoexist->btc_set(btcoexist, BTC_SET_BL_BT_DISABLE, btc8821a1ant_mon_bt_en_dis()
1615 btcoexist->btc_set(btcoexist, BTC_SET_BL_BT_DISABLE, btc8821a1ant_mon_bt_en_dis()
1619 halbtc8821a1ant_action_wifi_only(btcoexist); btc8821a1ant_mon_bt_en_dis()
1629 btcoexist->btc_set(btcoexist, BTC_SET_ACT_LEAVE_LPS, btc8821a1ant_mon_bt_en_dis()
1631 btcoexist->btc_set(btcoexist, BTC_SET_ACT_NORMAL_LPS, btc8821a1ant_mon_bt_en_dis()
1644 static void halbtc8821a1ant_action_sco(struct btc_coexist *btcoexist) halbtc8821a1ant_action_sco() argument
1646 halbtc8821a1ant_sw_mechanism(btcoexist, true); halbtc8821a1ant_action_sco()
1649 static void halbtc8821a1ant_action_hid(struct btc_coexist *btcoexist) halbtc8821a1ant_action_hid() argument
1651 halbtc8821a1ant_sw_mechanism(btcoexist, true); halbtc8821a1ant_action_hid()
1655 static void halbtc8821a1ant_action_a2dp(struct btc_coexist *btcoexist) halbtc8821a1ant_action_a2dp() argument
1657 halbtc8821a1ant_sw_mechanism(btcoexist, false); halbtc8821a1ant_action_a2dp()
1660 static void halbtc8821a1ant_action_a2dp_pan_hs(struct btc_coexist *btcoexist) halbtc8821a1ant_action_a2dp_pan_hs() argument
1662 halbtc8821a1ant_sw_mechanism(btcoexist, false); halbtc8821a1ant_action_a2dp_pan_hs()
1665 static void halbtc8821a1ant_action_pan_edr(struct btc_coexist *btcoexist) halbtc8821a1ant_action_pan_edr() argument
1667 halbtc8821a1ant_sw_mechanism(btcoexist, false); halbtc8821a1ant_action_pan_edr()
1671 static void halbtc8821a1ant_action_pan_hs(struct btc_coexist *btcoexist) halbtc8821a1ant_action_pan_hs() argument
1673 halbtc8821a1ant_sw_mechanism(btcoexist, false); halbtc8821a1ant_action_pan_hs()
1677 static void halbtc8821a1ant_action_pan_edr_a2dp(struct btc_coexist *btcoexist) halbtc8821a1ant_action_pan_edr_a2dp() argument
1679 halbtc8821a1ant_sw_mechanism(btcoexist, false); halbtc8821a1ant_action_pan_edr_a2dp()
1682 static void halbtc8821a1ant_action_pan_edr_hid(struct btc_coexist *btcoexist) halbtc8821a1ant_action_pan_edr_hid() argument
1684 halbtc8821a1ant_sw_mechanism(btcoexist, true); halbtc8821a1ant_action_pan_edr_hid()
1688 static void btc8821a1ant_action_hid_a2dp_pan_edr(struct btc_coexist *btcoexist) btc8821a1ant_action_hid_a2dp_pan_edr() argument
1690 halbtc8821a1ant_sw_mechanism(btcoexist, true); btc8821a1ant_action_hid_a2dp_pan_edr()
1693 static void halbtc8821a1ant_action_hid_a2dp(struct btc_coexist *btcoexist) halbtc8821a1ant_action_hid_a2dp() argument
1695 halbtc8821a1ant_sw_mechanism(btcoexist, true); halbtc8821a1ant_action_hid_a2dp()
1704 static void halbtc8821a1ant_action_hs(struct btc_coexist *btcoexist) halbtc8821a1ant_action_hs() argument
1706 halbtc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 5); halbtc8821a1ant_action_hs()
1707 halbtc8821a1ant_coex_table_with_type(btcoexist, FORCE_EXEC, 2); halbtc8821a1ant_action_hs()
1710 static void halbtc8821a1ant_action_bt_inquiry(struct btc_coexist *btcoexist) halbtc8821a1ant_action_bt_inquiry() argument
1712 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; halbtc8821a1ant_action_bt_inquiry()
1715 btcoexist->btc_get(btcoexist, halbtc8821a1ant_action_bt_inquiry()
1719 halbtc8821a1ant_power_save_state(btcoexist, halbtc8821a1ant_action_bt_inquiry()
1721 halbtc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 5); halbtc8821a1ant_action_bt_inquiry()
1722 halbtc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); halbtc8821a1ant_action_bt_inquiry()
1726 halbtc8821a1ant_power_save_state(btcoexist, halbtc8821a1ant_action_bt_inquiry()
1728 halbtc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 32); halbtc8821a1ant_action_bt_inquiry()
1729 halbtc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); halbtc8821a1ant_action_bt_inquiry()
1731 halbtc8821a1ant_power_save_state(btcoexist, BTC_PS_LPS_ON, halbtc8821a1ant_action_bt_inquiry()
1733 halbtc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 30); halbtc8821a1ant_action_bt_inquiry()
1734 halbtc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); halbtc8821a1ant_action_bt_inquiry()
1738 static void btc8821a1ant_act_bt_sco_hid_only_busy(struct btc_coexist *btcoexist, btc8821a1ant_act_bt_sco_hid_only_busy() argument
1741 halbtc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 5); btc8821a1ant_act_bt_sco_hid_only_busy()
1745 halbtc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); btc8821a1ant_act_bt_sco_hid_only_busy()
1747 halbtc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); btc8821a1ant_act_bt_sco_hid_only_busy()
1750 static void btc8821a1ant_act_wifi_con_bt_acl_busy(struct btc_coexist *btcoexist, btc8821a1ant_act_wifi_con_bt_acl_busy() argument
1755 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; btc8821a1ant_act_wifi_con_bt_acl_busy()
1761 btc8821a1ant_act_bt_sco_hid_only_busy(btcoexist, btc8821a1ant_act_wifi_con_bt_acl_busy()
1769 btc8821a1ant_tdma_dur_adj(btcoexist, wifi_status); btc8821a1ant_act_wifi_con_bt_acl_busy()
1772 halbtc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a1ant_act_wifi_con_bt_acl_busy()
1777 halbtc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); btc8821a1ant_act_wifi_con_bt_acl_busy()
1782 halbtc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a1ant_act_wifi_con_bt_acl_busy()
1787 halbtc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a1ant_act_wifi_con_bt_acl_busy()
1792 halbtc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); btc8821a1ant_act_wifi_con_bt_acl_busy()
1796 halbtc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 3); btc8821a1ant_act_wifi_con_bt_acl_busy()
1797 halbtc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); btc8821a1ant_act_wifi_con_bt_acl_busy()
1803 halbtc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 13); btc8821a1ant_act_wifi_con_bt_acl_busy()
1804 halbtc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); btc8821a1ant_act_wifi_con_bt_acl_busy()
1807 halbtc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 11); btc8821a1ant_act_wifi_con_bt_acl_busy()
1808 halbtc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); btc8821a1ant_act_wifi_con_bt_acl_busy()
1814 struct btc_coexist *btcoexist) halbtc8821a1ant_action_wifi_not_connected()
1817 halbtc8821a1ant_power_save_state(btcoexist, halbtc8821a1ant_action_wifi_not_connected()
1821 halbtc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 8); halbtc8821a1ant_action_wifi_not_connected()
1822 halbtc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 0); halbtc8821a1ant_action_wifi_not_connected()
1825 static void btc8821a1ant_act_wifi_not_conn_scan(struct btc_coexist *btcoexist) btc8821a1ant_act_wifi_not_conn_scan() argument
1827 halbtc8821a1ant_power_save_state(btcoexist, btc8821a1ant_act_wifi_not_conn_scan()
1830 halbtc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 22); btc8821a1ant_act_wifi_not_conn_scan()
1831 halbtc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); btc8821a1ant_act_wifi_not_conn_scan()
1835 struct btc_coexist *btcoexist) { halbtc8821a1ant_action_wifi_connected_scan()
1836 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; halbtc8821a1ant_action_wifi_connected_scan()
1839 halbtc8821a1ant_power_save_state(btcoexist, halbtc8821a1ant_action_wifi_connected_scan()
1845 halbtc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, halbtc8821a1ant_action_wifi_connected_scan()
1847 halbtc8821a1ant_coex_table_with_type(btcoexist, halbtc8821a1ant_action_wifi_connected_scan()
1850 halbtc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 20); halbtc8821a1ant_action_wifi_connected_scan()
1851 halbtc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); halbtc8821a1ant_action_wifi_connected_scan()
1857 btc8821a1ant_act_bt_sco_hid_only_busy(btcoexist, halbtc8821a1ant_action_wifi_connected_scan()
1860 halbtc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 20); halbtc8821a1ant_action_wifi_connected_scan()
1861 halbtc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); halbtc8821a1ant_action_wifi_connected_scan()
1865 static void btc8821a1ant_act_wifi_conn_sp_pkt(struct btc_coexist *btcoexist) btc8821a1ant_act_wifi_conn_sp_pkt() argument
1867 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; btc8821a1ant_act_wifi_conn_sp_pkt()
1870 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_CONNECTING, &hs_connecting); btc8821a1ant_act_wifi_conn_sp_pkt()
1872 halbtc8821a1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, btc8821a1ant_act_wifi_conn_sp_pkt()
1878 halbtc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a1ant_act_wifi_conn_sp_pkt()
1880 halbtc8821a1ant_coex_table_with_type(btcoexist, btc8821a1ant_act_wifi_conn_sp_pkt()
1883 halbtc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a1ant_act_wifi_conn_sp_pkt()
1885 halbtc8821a1ant_coex_table_with_type(btcoexist, btc8821a1ant_act_wifi_conn_sp_pkt()
1889 halbtc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 20); btc8821a1ant_act_wifi_conn_sp_pkt()
1890 halbtc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); btc8821a1ant_act_wifi_conn_sp_pkt()
1894 static void halbtc8821a1ant_action_wifi_connected(struct btc_coexist *btcoexist) halbtc8821a1ant_action_wifi_connected() argument
1903 btcoexist->btc_get(btcoexist, halbtc8821a1ant_action_wifi_connected()
1906 btc8821a1ant_act_wifi_conn_sp_pkt(btcoexist); halbtc8821a1ant_action_wifi_connected()
1912 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_SCAN, &scan); halbtc8821a1ant_action_wifi_connected()
1913 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link); halbtc8821a1ant_action_wifi_connected()
1914 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_ROAM, &roam); halbtc8821a1ant_action_wifi_connected()
1916 halbtc8821a1ant_action_wifi_connected_scan(btcoexist); halbtc8821a1ant_action_wifi_connected()
1924 coex_dm->bt_status && !btcoexist->bt_link_info.hid_only) halbtc8821a1ant_action_wifi_connected()
1925 halbtc8821a1ant_power_save_state(btcoexist, halbtc8821a1ant_action_wifi_connected()
1928 halbtc8821a1ant_power_save_state(btcoexist, halbtc8821a1ant_action_wifi_connected()
1933 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_BUSY, &wifi_busy); halbtc8821a1ant_action_wifi_connected()
1936 btc8821a1ant_act_wifi_con_bt_acl_busy(btcoexist, halbtc8821a1ant_action_wifi_connected()
1942 btc8821a1ant_act_bt_sco_hid_only_busy(btcoexist, halbtc8821a1ant_action_wifi_connected()
1945 halbtc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, halbtc8821a1ant_action_wifi_connected()
1947 halbtc8821a1ant_coex_table_with_type(btcoexist, halbtc8821a1ant_action_wifi_connected()
1952 btc8821a1ant_act_wifi_con_bt_acl_busy(btcoexist, halbtc8821a1ant_action_wifi_connected()
1958 btc8821a1ant_act_bt_sco_hid_only_busy(btcoexist, halbtc8821a1ant_action_wifi_connected()
1961 halbtc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, halbtc8821a1ant_action_wifi_connected()
1963 halbtc8821a1ant_coex_table_with_type(btcoexist, halbtc8821a1ant_action_wifi_connected()
1969 static void btc8821a1ant_run_sw_coex_mech(struct btc_coexist *btcoexist) btc8821a1ant_run_sw_coex_mech() argument
1973 algorithm = halbtc8821a1ant_action_algorithm(btcoexist); btc8821a1ant_run_sw_coex_mech()
1976 if (!halbtc8821a1ant_is_common_action(btcoexist)) { btc8821a1ant_run_sw_coex_mech()
1981 halbtc8821a1ant_action_sco(btcoexist); btc8821a1ant_run_sw_coex_mech()
1986 halbtc8821a1ant_action_hid(btcoexist); btc8821a1ant_run_sw_coex_mech()
1991 halbtc8821a1ant_action_a2dp(btcoexist); btc8821a1ant_run_sw_coex_mech()
1996 halbtc8821a1ant_action_a2dp_pan_hs(btcoexist); btc8821a1ant_run_sw_coex_mech()
2001 halbtc8821a1ant_action_pan_edr(btcoexist); btc8821a1ant_run_sw_coex_mech()
2006 halbtc8821a1ant_action_pan_hs(btcoexist); btc8821a1ant_run_sw_coex_mech()
2011 halbtc8821a1ant_action_pan_edr_a2dp(btcoexist); btc8821a1ant_run_sw_coex_mech()
2016 halbtc8821a1ant_action_pan_edr_hid(btcoexist); btc8821a1ant_run_sw_coex_mech()
2021 btc8821a1ant_action_hid_a2dp_pan_edr(btcoexist); btc8821a1ant_run_sw_coex_mech()
2026 halbtc8821a1ant_action_hid_a2dp(btcoexist); btc8821a1ant_run_sw_coex_mech()
2031 /*halbtc8821a1ant_coex_all_off(btcoexist);*/ btc8821a1ant_run_sw_coex_mech()
2038 static void halbtc8821a1ant_run_coexist_mechanism(struct btc_coexist *btcoexist) halbtc8821a1ant_run_coexist_mechanism() argument
2040 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; halbtc8821a1ant_run_coexist_mechanism()
2051 if (btcoexist->manual_control) { halbtc8821a1ant_run_coexist_mechanism()
2057 if (btcoexist->stop_coex_dm) { halbtc8821a1ant_run_coexist_mechanism()
2069 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_UNDER_5G, &wifi_under_5g); halbtc8821a1ant_run_coexist_mechanism()
2073 halbtc8821a1ant_coex_under_5g(btcoexist); halbtc8821a1ant_run_coexist_mechanism()
2082 btcoexist->btc_set(btcoexist, BTC_SET_BL_INC_SCAN_DEV_NUM, halbtc8821a1ant_run_coexist_mechanism()
2085 btcoexist->btc_get(btcoexist, halbtc8821a1ant_run_coexist_mechanism()
2089 halbtc8821a1ant_limited_tx(btcoexist, NORMAL_EXEC, 0, 0, 0, 0); halbtc8821a1ant_run_coexist_mechanism()
2093 halbtc8821a1ant_WifiRssiState(btcoexist, 1, 2, halbtc8821a1ant_run_coexist_mechanism()
2097 halbtc8821a1ant_limited_tx(btcoexist, halbtc8821a1ant_run_coexist_mechanism()
2101 halbtc8821a1ant_limited_tx(btcoexist, halbtc8821a1ant_run_coexist_mechanism()
2106 halbtc8821a1ant_limited_tx(btcoexist, NORMAL_EXEC, halbtc8821a1ant_run_coexist_mechanism()
2121 halbtc8821a1ant_limited_rx(btcoexist, NORMAL_EXEC, false, halbtc8821a1ant_run_coexist_mechanism()
2124 btc8821a1ant_run_sw_coex_mech(btcoexist); halbtc8821a1ant_run_coexist_mechanism()
2126 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); halbtc8821a1ant_run_coexist_mechanism()
2128 halbtc8821a1ant_action_bt_inquiry(btcoexist); halbtc8821a1ant_run_coexist_mechanism()
2131 halbtc8821a1ant_action_hs(btcoexist); halbtc8821a1ant_run_coexist_mechanism()
2141 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_SCAN, &scan); halbtc8821a1ant_run_coexist_mechanism()
2142 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link); halbtc8821a1ant_run_coexist_mechanism()
2143 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_ROAM, &roam); halbtc8821a1ant_run_coexist_mechanism()
2146 btc8821a1ant_act_wifi_not_conn_scan(btcoexist); halbtc8821a1ant_run_coexist_mechanism()
2148 halbtc8821a1ant_action_wifi_not_connected(btcoexist); halbtc8821a1ant_run_coexist_mechanism()
2151 halbtc8821a1ant_action_wifi_connected(btcoexist); halbtc8821a1ant_run_coexist_mechanism()
2155 static void halbtc8821a1ant_init_coex_dm(struct btc_coexist *btcoexist) halbtc8821a1ant_init_coex_dm() argument
2159 halbtc8821a1ant_sw_mechanism(btcoexist, false); halbtc8821a1ant_init_coex_dm()
2161 halbtc8821a1ant_ps_tdma(btcoexist, FORCE_EXEC, false, 8); halbtc8821a1ant_init_coex_dm()
2162 halbtc8821a1ant_coex_table_with_type(btcoexist, FORCE_EXEC, 0); halbtc8821a1ant_init_coex_dm()
2165 static void halbtc8821a1ant_init_hw_config(struct btc_coexist *btcoexist, halbtc8821a1ant_init_hw_config() argument
2175 coex_dm->backup_arfr_cnt1 = btcoexist->btc_read_4byte(btcoexist, halbtc8821a1ant_init_hw_config()
2177 coex_dm->backup_arfr_cnt2 = btcoexist->btc_read_4byte(btcoexist, halbtc8821a1ant_init_hw_config()
2180 btcoexist->btc_read_2byte(btcoexist, 0x42a); halbtc8821a1ant_init_hw_config()
2182 btcoexist->btc_read_1byte(btcoexist, 0x456); halbtc8821a1ant_init_hw_config()
2186 u1_tmp = btcoexist->btc_read_1byte(btcoexist, 0x790); halbtc8821a1ant_init_hw_config()
2189 btcoexist->btc_write_1byte(btcoexist, 0x790, u1_tmp); halbtc8821a1ant_init_hw_config()
2191 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_UNDER_5G, &wifi_under_5g); halbtc8821a1ant_init_hw_config()
2195 halbtc8821a1ant_set_ant_path(btcoexist, BTC_ANT_PATH_BT, halbtc8821a1ant_init_hw_config()
2198 halbtc8821a1ant_set_ant_path(btcoexist, BTC_ANT_PATH_PTA, halbtc8821a1ant_init_hw_config()
2201 halbtc8821a1ant_coex_table_with_type(btcoexist, FORCE_EXEC, 0); halbtc8821a1ant_init_hw_config()
2205 btcoexist->btc_write_1byte(btcoexist, 0x76e, 0xc); halbtc8821a1ant_init_hw_config()
2206 btcoexist->btc_write_1byte(btcoexist, 0x778, 0x3); halbtc8821a1ant_init_hw_config()
2207 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x40, 0x20, 0x1); halbtc8821a1ant_init_hw_config()
2216 void ex_halbtc8821a1ant_init_hwconfig(struct btc_coexist *btcoexist) ex_halbtc8821a1ant_init_hwconfig() argument
2218 halbtc8821a1ant_init_hw_config(btcoexist, true); ex_halbtc8821a1ant_init_hwconfig()
2221 void ex_halbtc8821a1ant_init_coex_dm(struct btc_coexist *btcoexist) ex_halbtc8821a1ant_init_coex_dm() argument
2226 btcoexist->stop_coex_dm = false; ex_halbtc8821a1ant_init_coex_dm()
2228 halbtc8821a1ant_init_coex_dm(btcoexist); ex_halbtc8821a1ant_init_coex_dm()
2230 halbtc8821a1ant_query_bt_info(btcoexist); ex_halbtc8821a1ant_init_coex_dm()
2233 void ex_halbtc8821a1ant_display_coex_info(struct btc_coexist *btcoexist) ex_halbtc8821a1ant_display_coex_info() argument
2235 struct btc_board_info *board_info = &btcoexist->board_info; ex_halbtc8821a1ant_display_coex_info()
2236 struct btc_stack_info *stack_info = &btcoexist->stack_info; ex_halbtc8821a1ant_display_coex_info()
2237 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; ex_halbtc8821a1ant_display_coex_info()
2238 struct rtl_priv *rtlpriv = btcoexist->adapter; ex_halbtc8821a1ant_display_coex_info()
2252 if (btcoexist->manual_control) { ex_halbtc8821a1ant_display_coex_info()
2258 if (btcoexist->stop_coex_dm) { ex_halbtc8821a1ant_display_coex_info()
2282 btcoexist->btc_get(btcoexist, BTC_GET_U4_BT_PATCH_VER, ex_halbtc8821a1ant_display_coex_info()
2284 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_FW_VER, &fw_ver); ex_halbtc8821a1ant_display_coex_info()
2293 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, ex_halbtc8821a1ant_display_coex_info()
2295 btcoexist->btc_get(btcoexist, BTC_GET_U1_WIFI_DOT11_CHNL, ex_halbtc8821a1ant_display_coex_info()
2297 btcoexist->btc_get(btcoexist, BTC_GET_U1_WIFI_HS_CHNL, ex_halbtc8821a1ant_display_coex_info()
2310 btcoexist->btc_get(btcoexist, BTC_GET_S4_WIFI_RSSI, &wifi_rssi); ex_halbtc8821a1ant_display_coex_info()
2311 btcoexist->btc_get(btcoexist, BTC_GET_S4_HS_RSSI, &bt_hs_rssi); ex_halbtc8821a1ant_display_coex_info()
2316 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_SCAN, &scan); ex_halbtc8821a1ant_display_coex_info()
2317 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link); ex_halbtc8821a1ant_display_coex_info()
2318 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_ROAM, &roam); ex_halbtc8821a1ant_display_coex_info()
2323 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_UNDER_5G, ex_halbtc8821a1ant_display_coex_info()
2325 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, ex_halbtc8821a1ant_display_coex_info()
2327 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_BUSY, ex_halbtc8821a1ant_display_coex_info()
2329 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_TRAFFIC_DIRECTION, ex_halbtc8821a1ant_display_coex_info()
2341 ((btcoexist->bt_info.bt_disabled) ? ("disabled") : ex_halbtc8821a1ant_display_coex_info()
2357 btcoexist->btc_disp_dbg_msg(btcoexist, BTC_DBG_DISP_BT_LINK_INFO); ex_halbtc8821a1ant_display_coex_info()
2386 btcoexist->bt_info.lps_val, ex_halbtc8821a1ant_display_coex_info()
2387 btcoexist->bt_info.rpwm_val); ex_halbtc8821a1ant_display_coex_info()
2388 btcoexist->btc_disp_dbg_msg(btcoexist, BTC_DBG_DISP_FW_PWR_MODE_CMD); ex_halbtc8821a1ant_display_coex_info()
2390 if (!btcoexist->manual_control) { ex_halbtc8821a1ant_display_coex_info()
2402 (btcoexist->bt_info.reject_agg_pkt ? "Yes" : "No"), ex_halbtc8821a1ant_display_coex_info()
2403 (btcoexist->bt_info.bt_ctrl_buf_size ? "Yes" : "No"), ex_halbtc8821a1ant_display_coex_info()
2404 btcoexist->bt_info.agg_buf_size); ex_halbtc8821a1ant_display_coex_info()
2407 btcoexist->bt_info.ra_mask); ex_halbtc8821a1ant_display_coex_info()
2447 u4_tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x430); ex_halbtc8821a1ant_display_coex_info()
2448 u4_tmp[1] = btcoexist->btc_read_4byte(btcoexist, 0x434); ex_halbtc8821a1ant_display_coex_info()
2449 u2_tmp[0] = btcoexist->btc_read_2byte(btcoexist, 0x42a); ex_halbtc8821a1ant_display_coex_info()
2450 u1_tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x456); ex_halbtc8821a1ant_display_coex_info()
2456 u1_tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x778); ex_halbtc8821a1ant_display_coex_info()
2457 u4_tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0xc58); ex_halbtc8821a1ant_display_coex_info()
2462 u1_tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x8db); ex_halbtc8821a1ant_display_coex_info()
2467 u1_tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x975); ex_halbtc8821a1ant_display_coex_info()
2468 u4_tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0xcb4); ex_halbtc8821a1ant_display_coex_info()
2476 u1_tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x40); ex_halbtc8821a1ant_display_coex_info()
2477 u4_tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x4c); ex_halbtc8821a1ant_display_coex_info()
2478 u1_tmp[1] = btcoexist->btc_read_1byte(btcoexist, 0x64); ex_halbtc8821a1ant_display_coex_info()
2484 u4_tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x550); ex_halbtc8821a1ant_display_coex_info()
2485 u1_tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x522); ex_halbtc8821a1ant_display_coex_info()
2490 u4_tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0xc50); ex_halbtc8821a1ant_display_coex_info()
2495 u4_tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0xf48); ex_halbtc8821a1ant_display_coex_info()
2496 u1_tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0xa5d); ex_halbtc8821a1ant_display_coex_info()
2497 u1_tmp[1] = btcoexist->btc_read_1byte(btcoexist, 0xa5c); ex_halbtc8821a1ant_display_coex_info()
2502 u4_tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x6c0); ex_halbtc8821a1ant_display_coex_info()
2503 u4_tmp[1] = btcoexist->btc_read_4byte(btcoexist, 0x6c4); ex_halbtc8821a1ant_display_coex_info()
2504 u4_tmp[2] = btcoexist->btc_read_4byte(btcoexist, 0x6c8); ex_halbtc8821a1ant_display_coex_info()
2505 u1_tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x6cc); ex_halbtc8821a1ant_display_coex_info()
2518 halbtc8821a1ant_monitor_bt_ctr(btcoexist); ex_halbtc8821a1ant_display_coex_info()
2520 btcoexist->btc_disp_dbg_msg(btcoexist, BTC_DBG_DISP_COEX_STATISTICS); ex_halbtc8821a1ant_display_coex_info()
2523 void ex_halbtc8821a1ant_ips_notify(struct btc_coexist *btcoexist, u8 type) ex_halbtc8821a1ant_ips_notify() argument
2525 if (btcoexist->manual_control || btcoexist->stop_coex_dm) ex_halbtc8821a1ant_ips_notify()
2532 halbtc8821a1ant_set_ant_path(btcoexist, ex_halbtc8821a1ant_ips_notify()
2535 halbtc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 8); ex_halbtc8821a1ant_ips_notify()
2536 halbtc8821a1ant_coex_table_with_type(btcoexist, ex_halbtc8821a1ant_ips_notify()
2543 halbtc8821a1ant_run_coexist_mechanism(btcoexist); ex_halbtc8821a1ant_ips_notify()
2547 void ex_halbtc8821a1ant_lps_notify(struct btc_coexist *btcoexist, u8 type) ex_halbtc8821a1ant_lps_notify() argument
2549 if (btcoexist->manual_control || btcoexist->stop_coex_dm) ex_halbtc8821a1ant_lps_notify()
2563 void ex_halbtc8821a1ant_scan_notify(struct btc_coexist *btcoexist, u8 type) ex_halbtc8821a1ant_scan_notify() argument
2567 if (btcoexist->manual_control || ex_halbtc8821a1ant_scan_notify()
2568 btcoexist->stop_coex_dm || ex_halbtc8821a1ant_scan_notify()
2569 btcoexist->bt_info.bt_disabled) ex_halbtc8821a1ant_scan_notify()
2572 btcoexist->btc_get(btcoexist, ex_halbtc8821a1ant_scan_notify()
2574 btcoexist->btc_get(btcoexist, ex_halbtc8821a1ant_scan_notify()
2577 halbtc8821a1ant_query_bt_info(btcoexist); ex_halbtc8821a1ant_scan_notify()
2580 halbtc8821a1ant_action_bt_inquiry(btcoexist); ex_halbtc8821a1ant_scan_notify()
2583 halbtc8821a1ant_action_hs(btcoexist); ex_halbtc8821a1ant_scan_notify()
2592 btc8821a1ant_act_wifi_not_conn_scan(btcoexist); ex_halbtc8821a1ant_scan_notify()
2595 halbtc8821a1ant_action_wifi_connected_scan(btcoexist); ex_halbtc8821a1ant_scan_notify()
2602 halbtc8821a1ant_action_wifi_not_connected(btcoexist); ex_halbtc8821a1ant_scan_notify()
2604 halbtc8821a1ant_action_wifi_connected(btcoexist); ex_halbtc8821a1ant_scan_notify()
2609 void ex_halbtc8821a1ant_connect_notify(struct btc_coexist *btcoexist, u8 type) ex_halbtc8821a1ant_connect_notify() argument
2613 if (btcoexist->manual_control || ex_halbtc8821a1ant_connect_notify()
2614 btcoexist->stop_coex_dm || ex_halbtc8821a1ant_connect_notify()
2615 btcoexist->bt_info.bt_disabled) ex_halbtc8821a1ant_connect_notify()
2618 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); ex_halbtc8821a1ant_connect_notify()
2620 halbtc8821a1ant_action_bt_inquiry(btcoexist); ex_halbtc8821a1ant_connect_notify()
2623 halbtc8821a1ant_action_hs(btcoexist); ex_halbtc8821a1ant_connect_notify()
2630 btc8821a1ant_act_wifi_not_conn_scan(btcoexist); ex_halbtc8821a1ant_connect_notify()
2635 btcoexist->btc_get(btcoexist, ex_halbtc8821a1ant_connect_notify()
2639 halbtc8821a1ant_action_wifi_not_connected(btcoexist); ex_halbtc8821a1ant_connect_notify()
2641 halbtc8821a1ant_action_wifi_connected(btcoexist); ex_halbtc8821a1ant_connect_notify()
2646 void ex_halbtc8821a1ant_media_status_notify(struct btc_coexist *btcoexist, ex_halbtc8821a1ant_media_status_notify() argument
2653 if (btcoexist->manual_control || ex_halbtc8821a1ant_media_status_notify()
2654 btcoexist->stop_coex_dm || ex_halbtc8821a1ant_media_status_notify()
2655 btcoexist->bt_info.bt_disabled) ex_halbtc8821a1ant_media_status_notify()
2667 btcoexist->btc_get(btcoexist, ex_halbtc8821a1ant_media_status_notify()
2675 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); ex_halbtc8821a1ant_media_status_notify()
2690 btcoexist->btc_fill_h2c(btcoexist, 0x66, 3, h2c_parameter); ex_halbtc8821a1ant_media_status_notify()
2693 void ex_halbtc8821a1ant_special_packet_notify(struct btc_coexist *btcoexist, ex_halbtc8821a1ant_special_packet_notify() argument
2698 if (btcoexist->manual_control || ex_halbtc8821a1ant_special_packet_notify()
2699 btcoexist->stop_coex_dm || ex_halbtc8821a1ant_special_packet_notify()
2700 btcoexist->bt_info.bt_disabled) ex_halbtc8821a1ant_special_packet_notify()
2705 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); ex_halbtc8821a1ant_special_packet_notify()
2707 halbtc8821a1ant_action_bt_inquiry(btcoexist); ex_halbtc8821a1ant_special_packet_notify()
2710 halbtc8821a1ant_action_hs(btcoexist); ex_halbtc8821a1ant_special_packet_notify()
2718 btc8821a1ant_act_wifi_conn_sp_pkt(btcoexist); ex_halbtc8821a1ant_special_packet_notify()
2722 void ex_halbtc8821a1ant_bt_info_notify(struct btc_coexist *btcoexist, ex_halbtc8821a1ant_bt_info_notify() argument
2733 btcoexist->btc_get(btcoexist, ex_halbtc8821a1ant_bt_info_notify()
2772 btcoexist->btc_get(btcoexist, ex_halbtc8821a1ant_bt_info_notify()
2776 ex_halbtc8821a1ant_media_status_notify(btcoexist, ex_halbtc8821a1ant_bt_info_notify()
2779 ex_halbtc8821a1ant_media_status_notify(btcoexist, ex_halbtc8821a1ant_bt_info_notify()
2785 if (!btcoexist->manual_control && ex_halbtc8821a1ant_bt_info_notify()
2786 !btcoexist->stop_coex_dm) { ex_halbtc8821a1ant_bt_info_notify()
2789 halbtc8821a1ant_ignore_wlan_act(btcoexist, ex_halbtc8821a1ant_bt_info_notify()
2798 halbtc8821a1ant_bt_auto_report(btcoexist, ex_halbtc8821a1ant_bt_info_notify()
2838 halbtc8821a1ant_update_bt_link_info(btcoexist); ex_halbtc8821a1ant_bt_info_notify()
2872 btcoexist->btc_set(btcoexist, ex_halbtc8821a1ant_bt_info_notify()
2875 halbtc8821a1ant_run_coexist_mechanism(btcoexist); ex_halbtc8821a1ant_bt_info_notify()
2878 void ex_halbtc8821a1ant_halt_notify(struct btc_coexist *btcoexist) ex_halbtc8821a1ant_halt_notify() argument
2883 btcoexist->stop_coex_dm = true; ex_halbtc8821a1ant_halt_notify()
2885 halbtc8821a1ant_set_ant_path(btcoexist, ex_halbtc8821a1ant_halt_notify()
2887 halbtc8821a1ant_ignore_wlan_act(btcoexist, FORCE_EXEC, true); ex_halbtc8821a1ant_halt_notify()
2889 halbtc8821a1ant_power_save_state(btcoexist, ex_halbtc8821a1ant_halt_notify()
2891 halbtc8821a1ant_ps_tdma(btcoexist, FORCE_EXEC, false, 0); ex_halbtc8821a1ant_halt_notify()
2893 ex_halbtc8821a1ant_media_status_notify(btcoexist, ex_halbtc8821a1ant_halt_notify()
2897 void ex_halbtc8821a1ant_pnp_notify(struct btc_coexist *btcoexist, u8 pnp_state) ex_halbtc8821a1ant_pnp_notify() argument
2905 btcoexist->stop_coex_dm = true; ex_halbtc8821a1ant_pnp_notify()
2906 halbtc8821a1ant_ignore_wlan_act(btcoexist, FORCE_EXEC, true); ex_halbtc8821a1ant_pnp_notify()
2907 halbtc8821a1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, ex_halbtc8821a1ant_pnp_notify()
2909 halbtc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 9); ex_halbtc8821a1ant_pnp_notify()
2913 btcoexist->stop_coex_dm = false; ex_halbtc8821a1ant_pnp_notify()
2914 halbtc8821a1ant_init_hw_config(btcoexist, false); ex_halbtc8821a1ant_pnp_notify()
2915 halbtc8821a1ant_init_coex_dm(btcoexist); ex_halbtc8821a1ant_pnp_notify()
2916 halbtc8821a1ant_query_bt_info(btcoexist); ex_halbtc8821a1ant_pnp_notify()
2922 struct btc_coexist *btcoexist) { ex_halbtc8821a1ant_periodical()
2925 struct btc_board_info *board_info = &btcoexist->board_info; ex_halbtc8821a1ant_periodical()
2926 struct btc_stack_info *stack_info = &btcoexist->stack_info; ex_halbtc8821a1ant_periodical()
2944 btcoexist->btc_get(btcoexist, BTC_GET_U4_BT_PATCH_VER, ex_halbtc8821a1ant_periodical()
2946 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_FW_VER, &fw_ver); ex_halbtc8821a1ant_periodical()
2958 halbtc8821a1ant_query_bt_info(btcoexist); ex_halbtc8821a1ant_periodical()
2959 halbtc8821a1ant_monitor_bt_ctr(btcoexist); ex_halbtc8821a1ant_periodical()
2960 btc8821a1ant_mon_bt_en_dis(btcoexist); ex_halbtc8821a1ant_periodical()
2962 if (halbtc8821a1ant_Is_wifi_status_changed(btcoexist) || ex_halbtc8821a1ant_periodical()
2965 halbtc8821a1ant_run_coexist_mechanism(btcoexist); ex_halbtc8821a1ant_periodical()
1813 halbtc8821a1ant_action_wifi_not_connected( struct btc_coexist *btcoexist) halbtc8821a1ant_action_wifi_not_connected() argument
1834 halbtc8821a1ant_action_wifi_connected_scan( struct btc_coexist *btcoexist) halbtc8821a1ant_action_wifi_connected_scan() argument
2921 ex_halbtc8821a1ant_periodical( struct btc_coexist *btcoexist) ex_halbtc8821a1ant_periodical() argument
H A Dhalbtc8192e2ant.c159 static u8 halbtc8192e2ant_wifirssi_state(struct btc_coexist *btcoexist, halbtc8192e2ant_wifirssi_state() argument
166 btcoexist->btc_get(btcoexist, BTC_GET_S4_WIFI_RSSI, &wifirssi); halbtc8192e2ant_wifirssi_state()
262 static void btc8192e2ant_monitor_bt_enable_dis(struct btc_coexist *btcoexist) btc8192e2ant_monitor_bt_enable_dis() argument
285 btcoexist->btc_set(btcoexist, BTC_SET_BL_BT_DISABLE, btc8192e2ant_monitor_bt_enable_dis()
296 btcoexist->btc_set(btcoexist, BTC_SET_BL_BT_DISABLE, btc8192e2ant_monitor_bt_enable_dis()
311 static u32 halbtc8192e2ant_decidera_mask(struct btc_coexist *btcoexist, halbtc8192e2ant_decidera_mask() argument
342 static void halbtc8192e2ant_Updatera_mask(struct btc_coexist *btcoexist, halbtc8192e2ant_Updatera_mask() argument
348 btcoexist->btc_set(btcoexist, BTC_SET_ACT_UPDATE_ra_mask, halbtc8192e2ant_Updatera_mask()
353 static void btc8192e2ant_autorate_fallback_retry(struct btc_coexist *btcoexist, btc8192e2ant_autorate_fallback_retry() argument
363 btcoexist->btc_write_4byte(btcoexist, 0x430, btc8192e2ant_autorate_fallback_retry()
365 btcoexist->btc_write_4byte(btcoexist, 0x434, btc8192e2ant_autorate_fallback_retry()
369 btcoexist->btc_get(btcoexist, btc8192e2ant_autorate_fallback_retry()
373 btcoexist->btc_write_4byte(btcoexist, 0x430, btc8192e2ant_autorate_fallback_retry()
375 btcoexist->btc_write_4byte(btcoexist, 0x434, btc8192e2ant_autorate_fallback_retry()
378 btcoexist->btc_write_4byte(btcoexist, 0x430, btc8192e2ant_autorate_fallback_retry()
380 btcoexist->btc_write_4byte(btcoexist, 0x434, btc8192e2ant_autorate_fallback_retry()
392 static void halbtc8192e2ant_retrylimit(struct btc_coexist *btcoexist, halbtc8192e2ant_retrylimit() argument
401 btcoexist->btc_write_2byte(btcoexist, 0x42a, halbtc8192e2ant_retrylimit()
405 btcoexist->btc_write_2byte(btcoexist, 0x42a, halbtc8192e2ant_retrylimit()
416 static void halbtc8192e2ant_ampdu_maxtime(struct btc_coexist *btcoexist, halbtc8192e2ant_ampdu_maxtime() argument
425 btcoexist->btc_write_1byte(btcoexist, 0x456, halbtc8192e2ant_ampdu_maxtime()
429 btcoexist->btc_write_1byte(btcoexist, 0x456, 0x38); halbtc8192e2ant_ampdu_maxtime()
439 static void halbtc8192e2ant_limited_tx(struct btc_coexist *btcoexist, halbtc8192e2ant_limited_tx() argument
447 disra_mask = halbtc8192e2ant_decidera_mask(btcoexist, halbtc8192e2ant_limited_tx()
450 halbtc8192e2ant_Updatera_mask(btcoexist, force_exec, disra_mask); halbtc8192e2ant_limited_tx()
451 btc8192e2ant_autorate_fallback_retry(btcoexist, force_exec, arfr_type); halbtc8192e2ant_limited_tx()
452 halbtc8192e2ant_retrylimit(btcoexist, force_exec, retrylimit_type); halbtc8192e2ant_limited_tx()
453 halbtc8192e2ant_ampdu_maxtime(btcoexist, force_exec, ampdutime_type); halbtc8192e2ant_limited_tx()
456 static void halbtc8192e2ant_limited_rx(struct btc_coexist *btcoexist, halbtc8192e2ant_limited_rx() argument
468 btcoexist->btc_set(btcoexist, BTC_SET_BL_TO_REJ_AP_AGG_PKT, halbtc8192e2ant_limited_rx()
471 btcoexist->btc_set(btcoexist, BTC_SET_BL_BT_CTRL_AGG_SIZE, halbtc8192e2ant_limited_rx()
476 btcoexist->btc_set(btcoexist, BTC_SET_U1_AGG_BUF_SIZE, &rx_agg_size); halbtc8192e2ant_limited_rx()
478 btcoexist->btc_set(btcoexist, BTC_SET_ACT_AGGREGATE_CTRL, NULL); halbtc8192e2ant_limited_rx()
481 static void halbtc8192e2ant_monitor_bt_ctr(struct btc_coexist *btcoexist) halbtc8192e2ant_monitor_bt_ctr() argument
489 u32tmp = btcoexist->btc_read_4byte(btcoexist, reg_hp_txrx); halbtc8192e2ant_monitor_bt_ctr()
493 u32tmp = btcoexist->btc_read_4byte(btcoexist, reg_lp_txrx); halbtc8192e2ant_monitor_bt_ctr()
510 btcoexist->btc_write_1byte(btcoexist, 0x76e, 0xc); halbtc8192e2ant_monitor_bt_ctr()
513 static void halbtc8192e2ant_querybt_info(struct btc_coexist *btcoexist) halbtc8192e2ant_querybt_info() argument
525 btcoexist->btc_fill_h2c(btcoexist, 0x61, 1, h2c_parameter); halbtc8192e2ant_querybt_info()
528 static void halbtc8192e2ant_update_btlink_info(struct btc_coexist *btcoexist) halbtc8192e2ant_update_btlink_info() argument
530 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; halbtc8192e2ant_update_btlink_info()
533 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hson); halbtc8192e2ant_update_btlink_info()
584 static u8 halbtc8192e2ant_action_algorithm(struct btc_coexist *btcoexist) halbtc8192e2ant_action_algorithm() argument
586 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; halbtc8192e2ant_action_algorithm()
587 struct btc_stack_info *stack_info = &btcoexist->stack_info; halbtc8192e2ant_action_algorithm()
592 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hson); halbtc8192e2ant_action_algorithm()
771 static void halbtc8192e2ant_setfw_dac_swinglevel(struct btc_coexist *btcoexist, halbtc8192e2ant_setfw_dac_swinglevel() argument
786 btcoexist->btc_fill_h2c(btcoexist, 0x64, 1, h2c_parameter); halbtc8192e2ant_setfw_dac_swinglevel()
789 static void halbtc8192e2ant_set_fwdec_btpwr(struct btc_coexist *btcoexist, halbtc8192e2ant_set_fwdec_btpwr() argument
800 btcoexist->btc_fill_h2c(btcoexist, 0x62, 1, h2c_parameter); halbtc8192e2ant_set_fwdec_btpwr()
803 static void halbtc8192e2ant_dec_btpwr(struct btc_coexist *btcoexist, halbtc8192e2ant_dec_btpwr() argument
816 halbtc8192e2ant_set_fwdec_btpwr(btcoexist, coex_dm->cur_dec_bt_pwr); halbtc8192e2ant_dec_btpwr()
821 static void halbtc8192e2ant_set_bt_autoreport(struct btc_coexist *btcoexist, halbtc8192e2ant_set_bt_autoreport() argument
836 btcoexist->btc_fill_h2c(btcoexist, 0x68, 1, h2c_parameter); halbtc8192e2ant_set_bt_autoreport()
839 static void halbtc8192e2ant_bt_autoreport(struct btc_coexist *btcoexist, halbtc8192e2ant_bt_autoreport() argument
858 halbtc8192e2ant_set_bt_autoreport(btcoexist, halbtc8192e2ant_bt_autoreport()
864 static void halbtc8192e2ant_fw_dac_swinglvl(struct btc_coexist *btcoexist, halbtc8192e2ant_fw_dac_swinglvl() argument
883 halbtc8192e2ant_setfw_dac_swinglevel(btcoexist, halbtc8192e2ant_fw_dac_swinglvl()
889 static void btc8192e2ant_set_sw_rf_rx_lpf_corner(struct btc_coexist *btcoexist, btc8192e2ant_set_sw_rf_rx_lpf_corner() argument
896 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x1e, btc8192e2ant_set_sw_rf_rx_lpf_corner()
902 if (btcoexist->initilized) { btc8192e2ant_set_sw_rf_rx_lpf_corner()
905 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x1e, btc8192e2ant_set_sw_rf_rx_lpf_corner()
912 static void halbtc8192e2ant_rf_shrink(struct btc_coexist *btcoexist, halbtc8192e2ant_rf_shrink() argument
931 btc8192e2ant_set_sw_rf_rx_lpf_corner(btcoexist, halbtc8192e2ant_rf_shrink()
937 static void halbtc8192e2ant_set_dac_swingreg(struct btc_coexist *btcoexist, halbtc8192e2ant_set_dac_swingreg() argument
944 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x883, 0x3e, val); halbtc8192e2ant_set_dac_swingreg()
947 static void btc8192e2ant_setsw_full_swing(struct btc_coexist *btcoexist, btc8192e2ant_setsw_full_swing() argument
952 halbtc8192e2ant_set_dac_swingreg(btcoexist, sw_dac_swinglvl); btc8192e2ant_setsw_full_swing()
954 halbtc8192e2ant_set_dac_swingreg(btcoexist, 0x18); btc8192e2ant_setsw_full_swing()
957 static void halbtc8192e2ant_DacSwing(struct btc_coexist *btcoexist, halbtc8192e2ant_DacSwing() argument
983 btc8192e2ant_setsw_full_swing(btcoexist, dac_swingon, dac_swinglvl); halbtc8192e2ant_DacSwing()
989 static void halbtc8192e2ant_set_agc_table(struct btc_coexist *btcoexist, halbtc8192e2ant_set_agc_table() argument
996 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0x0a1A0001); halbtc8192e2ant_set_agc_table()
997 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0x091B0001); halbtc8192e2ant_set_agc_table()
998 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0x081C0001); halbtc8192e2ant_set_agc_table()
999 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0x071D0001); halbtc8192e2ant_set_agc_table()
1000 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0x061E0001); halbtc8192e2ant_set_agc_table()
1001 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0x051F0001); halbtc8192e2ant_set_agc_table()
1005 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0xaa1A0001); halbtc8192e2ant_set_agc_table()
1006 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0xa91B0001); halbtc8192e2ant_set_agc_table()
1007 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0xa81C0001); halbtc8192e2ant_set_agc_table()
1008 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0xa71D0001); halbtc8192e2ant_set_agc_table()
1009 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0xa61E0001); halbtc8192e2ant_set_agc_table()
1010 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0xa51F0001); halbtc8192e2ant_set_agc_table()
1014 static void halbtc8192e2ant_AgcTable(struct btc_coexist *btcoexist, halbtc8192e2ant_AgcTable() argument
1031 halbtc8192e2ant_set_agc_table(btcoexist, agc_table_en); halbtc8192e2ant_AgcTable()
1036 static void halbtc8192e2ant_set_coex_table(struct btc_coexist *btcoexist, halbtc8192e2ant_set_coex_table() argument
1042 btcoexist->btc_write_4byte(btcoexist, 0x6c0, val0x6c0); halbtc8192e2ant_set_coex_table()
1046 btcoexist->btc_write_4byte(btcoexist, 0x6c4, val0x6c4); halbtc8192e2ant_set_coex_table()
1050 btcoexist->btc_write_4byte(btcoexist, 0x6c8, val0x6c8); halbtc8192e2ant_set_coex_table()
1054 btcoexist->btc_write_1byte(btcoexist, 0x6cc, val0x6cc); halbtc8192e2ant_set_coex_table()
1057 static void halbtc8192e2ant_coex_table(struct btc_coexist *btcoexist, halbtc8192e2ant_coex_table() argument
1093 halbtc8192e2ant_set_coex_table(btcoexist, val0x6c0, val0x6c4, halbtc8192e2ant_coex_table()
1102 static void btc8192e2ant_coex_tbl_w_type(struct btc_coexist *btcoexist, btc8192e2ant_coex_tbl_w_type() argument
1107 halbtc8192e2ant_coex_table(btcoexist, force_exec, 0x55555555, btc8192e2ant_coex_tbl_w_type()
1111 halbtc8192e2ant_coex_table(btcoexist, force_exec, 0x5a5a5a5a, btc8192e2ant_coex_tbl_w_type()
1115 halbtc8192e2ant_coex_table(btcoexist, force_exec, 0x55555555, btc8192e2ant_coex_tbl_w_type()
1119 halbtc8192e2ant_coex_table(btcoexist, force_exec, 0xdfffdfff, btc8192e2ant_coex_tbl_w_type()
1123 halbtc8192e2ant_coex_table(btcoexist, force_exec, 0xdfffdfff, btc8192e2ant_coex_tbl_w_type()
1131 static void halbtc8192e2ant_set_fw_ignore_wlanact(struct btc_coexist *btcoexist, halbtc8192e2ant_set_fw_ignore_wlanact() argument
1143 btcoexist->btc_fill_h2c(btcoexist, 0x63, 1, h2c_parameter); halbtc8192e2ant_set_fw_ignore_wlanact()
1146 static void halbtc8192e2ant_IgnoreWlanAct(struct btc_coexist *btcoexist, halbtc8192e2ant_IgnoreWlanAct() argument
1166 halbtc8192e2ant_set_fw_ignore_wlanact(btcoexist, enable); halbtc8192e2ant_IgnoreWlanAct()
1171 static void halbtc8192e2ant_SetFwPstdma(struct btc_coexist *btcoexist, u8 byte1, halbtc8192e2ant_SetFwPstdma() argument
1194 btcoexist->btc_fill_h2c(btcoexist, 0x60, 5, h2c_parameter); halbtc8192e2ant_SetFwPstdma()
1197 static void btc8192e2ant_sw_mec1(struct btc_coexist *btcoexist, btc8192e2ant_sw_mec1() argument
1201 halbtc8192e2ant_rf_shrink(btcoexist, NORMAL_EXEC, shrink_rx_lpf); btc8192e2ant_sw_mec1()
1204 static void btc8192e2ant_sw_mec2(struct btc_coexist *btcoexist, btc8192e2ant_sw_mec2() argument
1208 halbtc8192e2ant_AgcTable(btcoexist, NORMAL_EXEC, agc_table_shift); btc8192e2ant_sw_mec2()
1209 halbtc8192e2ant_DacSwing(btcoexist, NORMAL_EXEC, sw_dac_swing, btc8192e2ant_sw_mec2()
1213 static void halbtc8192e2ant_ps_tdma(struct btc_coexist *btcoexist, halbtc8192e2ant_ps_tdma() argument
1239 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x1a, halbtc8192e2ant_ps_tdma()
1243 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x12, halbtc8192e2ant_ps_tdma()
1247 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x1c, halbtc8192e2ant_ps_tdma()
1251 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x10, halbtc8192e2ant_ps_tdma()
1255 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x1a, halbtc8192e2ant_ps_tdma()
1259 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x12, halbtc8192e2ant_ps_tdma()
1263 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x1c, halbtc8192e2ant_ps_tdma()
1267 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xa3, 0x10, halbtc8192e2ant_ps_tdma()
1271 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x1a, halbtc8192e2ant_ps_tdma()
1275 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x12, halbtc8192e2ant_ps_tdma()
1279 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x1c, halbtc8192e2ant_ps_tdma()
1283 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x10, halbtc8192e2ant_ps_tdma()
1287 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x1a, halbtc8192e2ant_ps_tdma()
1291 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x12, halbtc8192e2ant_ps_tdma()
1295 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x1c, halbtc8192e2ant_ps_tdma()
1299 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x12, halbtc8192e2ant_ps_tdma()
1303 halbtc8192e2ant_SetFwPstdma(btcoexist, 0x61, 0x20, halbtc8192e2ant_ps_tdma()
1307 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x5, halbtc8192e2ant_ps_tdma()
1311 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x25, halbtc8192e2ant_ps_tdma()
1315 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x25, halbtc8192e2ant_ps_tdma()
1319 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x15, halbtc8192e2ant_ps_tdma()
1323 halbtc8192e2ant_SetFwPstdma(btcoexist, 0xe3, 0x1a, halbtc8192e2ant_ps_tdma()
1332 halbtc8192e2ant_SetFwPstdma(btcoexist, 0x8, 0x0, 0x0, halbtc8192e2ant_ps_tdma()
1334 btcoexist->btc_write_1byte(btcoexist, 0x92c, 0x4); halbtc8192e2ant_ps_tdma()
1337 halbtc8192e2ant_SetFwPstdma(btcoexist, 0x0, 0x0, 0x0, halbtc8192e2ant_ps_tdma()
1340 btcoexist->btc_write_1byte(btcoexist, 0x92c, 0x20); halbtc8192e2ant_ps_tdma()
1350 static void halbtc8192e2ant_set_switch_sstype(struct btc_coexist *btcoexist, halbtc8192e2ant_set_switch_sstype() argument
1359 disra_mask = halbtc8192e2ant_decidera_mask(btcoexist, sstype, halbtc8192e2ant_set_switch_sstype()
1361 halbtc8192e2ant_Updatera_mask(btcoexist, FORCE_EXEC, disra_mask); halbtc8192e2ant_set_switch_sstype()
1364 halbtc8192e2ant_ps_tdma(btcoexist, FORCE_EXEC, false, 1); halbtc8192e2ant_set_switch_sstype()
1366 btcoexist->btc_write_1byte(btcoexist, 0xc04, 0x11); halbtc8192e2ant_set_switch_sstype()
1367 btcoexist->btc_write_1byte(btcoexist, 0xd04, 0x1); halbtc8192e2ant_set_switch_sstype()
1368 btcoexist->btc_write_4byte(btcoexist, 0x90c, 0x81111111); halbtc8192e2ant_set_switch_sstype()
1370 btcoexist->btc_write_1byte_bitmask(btcoexist, 0xe77, 0x4, 0x1); halbtc8192e2ant_set_switch_sstype()
1371 btcoexist->btc_write_1byte(btcoexist, 0xa07, 0x81); halbtc8192e2ant_set_switch_sstype()
1374 halbtc8192e2ant_ps_tdma(btcoexist, FORCE_EXEC, false, 0); halbtc8192e2ant_set_switch_sstype()
1375 btcoexist->btc_write_1byte(btcoexist, 0xc04, 0x33); halbtc8192e2ant_set_switch_sstype()
1376 btcoexist->btc_write_1byte(btcoexist, 0xd04, 0x3); halbtc8192e2ant_set_switch_sstype()
1377 btcoexist->btc_write_4byte(btcoexist, 0x90c, 0x81121313); halbtc8192e2ant_set_switch_sstype()
1378 btcoexist->btc_write_1byte_bitmask(btcoexist, 0xe77, 0x4, 0x0); halbtc8192e2ant_set_switch_sstype()
1379 btcoexist->btc_write_1byte(btcoexist, 0xa07, 0x41); halbtc8192e2ant_set_switch_sstype()
1383 btcoexist->btc_set(btcoexist, BTC_SET_ACT_SEND_MIMO_PS, &mimops); halbtc8192e2ant_set_switch_sstype()
1386 static void halbtc8192e2ant_switch_sstype(struct btc_coexist *btcoexist, halbtc8192e2ant_switch_sstype() argument
1398 halbtc8192e2ant_set_switch_sstype(btcoexist, coex_dm->cur_sstype); halbtc8192e2ant_switch_sstype()
1403 static void halbtc8192e2ant_coex_alloff(struct btc_coexist *btcoexist) halbtc8192e2ant_coex_alloff() argument
1406 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 1); halbtc8192e2ant_coex_alloff()
1407 halbtc8192e2ant_fw_dac_swinglvl(btcoexist, NORMAL_EXEC, 6); halbtc8192e2ant_coex_alloff()
1408 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 0); halbtc8192e2ant_coex_alloff()
1411 btc8192e2ant_sw_mec1(btcoexist, false, false, false, false); halbtc8192e2ant_coex_alloff()
1412 btc8192e2ant_sw_mec2(btcoexist, false, false, false, 0x18); halbtc8192e2ant_coex_alloff()
1415 btc8192e2ant_coex_tbl_w_type(btcoexist, NORMAL_EXEC, 0); halbtc8192e2ant_coex_alloff()
1418 static void halbtc8192e2ant_init_coex_dm(struct btc_coexist *btcoexist) halbtc8192e2ant_init_coex_dm() argument
1422 halbtc8192e2ant_ps_tdma(btcoexist, FORCE_EXEC, false, 1); halbtc8192e2ant_init_coex_dm()
1423 halbtc8192e2ant_fw_dac_swinglvl(btcoexist, FORCE_EXEC, 6); halbtc8192e2ant_init_coex_dm()
1424 halbtc8192e2ant_dec_btpwr(btcoexist, FORCE_EXEC, 0); halbtc8192e2ant_init_coex_dm()
1426 btc8192e2ant_coex_tbl_w_type(btcoexist, FORCE_EXEC, 0); halbtc8192e2ant_init_coex_dm()
1427 halbtc8192e2ant_switch_sstype(btcoexist, FORCE_EXEC, 2); halbtc8192e2ant_init_coex_dm()
1429 btc8192e2ant_sw_mec1(btcoexist, false, false, false, false); halbtc8192e2ant_init_coex_dm()
1430 btc8192e2ant_sw_mec2(btcoexist, false, false, false, 0x18); halbtc8192e2ant_init_coex_dm()
1433 static void halbtc8192e2ant_action_bt_inquiry(struct btc_coexist *btcoexist) halbtc8192e2ant_action_bt_inquiry() argument
1437 btcoexist->btc_set(btcoexist, BTC_SET_ACT_DISABLE_LOW_POWER, halbtc8192e2ant_action_bt_inquiry()
1440 halbtc8192e2ant_switch_sstype(btcoexist, NORMAL_EXEC, 1); halbtc8192e2ant_action_bt_inquiry()
1442 btc8192e2ant_coex_tbl_w_type(btcoexist, NORMAL_EXEC, 2); halbtc8192e2ant_action_bt_inquiry()
1443 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 3); halbtc8192e2ant_action_bt_inquiry()
1444 halbtc8192e2ant_fw_dac_swinglvl(btcoexist, NORMAL_EXEC, 6); halbtc8192e2ant_action_bt_inquiry()
1445 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 0); halbtc8192e2ant_action_bt_inquiry()
1447 btc8192e2ant_sw_mec1(btcoexist, false, false, false, false); halbtc8192e2ant_action_bt_inquiry()
1448 btc8192e2ant_sw_mec2(btcoexist, false, false, false, 0x18); halbtc8192e2ant_action_bt_inquiry()
1451 static bool halbtc8192e2ant_is_common_action(struct btc_coexist *btcoexist) halbtc8192e2ant_is_common_action() argument
1453 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; halbtc8192e2ant_is_common_action()
1457 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hson); halbtc8192e2ant_is_common_action()
1458 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_CONNECTED, halbtc8192e2ant_is_common_action()
1460 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_BUSY, &wifi_busy); halbtc8192e2ant_is_common_action()
1463 halbtc8192e2ant_limited_tx(btcoexist, NORMAL_EXEC, 1, 0, 0, 0); halbtc8192e2ant_is_common_action()
1465 halbtc8192e2ant_limited_tx(btcoexist, NORMAL_EXEC, 0, 0, 0, 0); halbtc8192e2ant_is_common_action()
1469 btcoexist->btc_set(btcoexist, BTC_SET_ACT_DISABLE_LOW_POWER, halbtc8192e2ant_is_common_action()
1479 halbtc8192e2ant_switch_sstype(btcoexist, halbtc8192e2ant_is_common_action()
1481 btc8192e2ant_coex_tbl_w_type(btcoexist, halbtc8192e2ant_is_common_action()
1483 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, halbtc8192e2ant_is_common_action()
1486 halbtc8192e2ant_switch_sstype(btcoexist, halbtc8192e2ant_is_common_action()
1488 btc8192e2ant_coex_tbl_w_type(btcoexist, halbtc8192e2ant_is_common_action()
1490 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, halbtc8192e2ant_is_common_action()
1494 halbtc8192e2ant_fw_dac_swinglvl(btcoexist, NORMAL_EXEC, 6); halbtc8192e2ant_is_common_action()
1495 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 0); halbtc8192e2ant_is_common_action()
1497 btc8192e2ant_sw_mec1(btcoexist, false, false, false, false); halbtc8192e2ant_is_common_action()
1498 btc8192e2ant_sw_mec2(btcoexist, false, false, false, 0x18); halbtc8192e2ant_is_common_action()
1505 btcoexist->btc_set(btcoexist, halbtc8192e2ant_is_common_action()
1512 halbtc8192e2ant_switch_sstype(btcoexist, halbtc8192e2ant_is_common_action()
1514 btc8192e2ant_coex_tbl_w_type(btcoexist, halbtc8192e2ant_is_common_action()
1516 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, halbtc8192e2ant_is_common_action()
1518 halbtc8192e2ant_fw_dac_swinglvl(btcoexist, halbtc8192e2ant_is_common_action()
1520 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 0); halbtc8192e2ant_is_common_action()
1522 btc8192e2ant_sw_mec1(btcoexist, false, false, halbtc8192e2ant_is_common_action()
1524 btc8192e2ant_sw_mec2(btcoexist, false, false, halbtc8192e2ant_is_common_action()
1531 btcoexist->btc_set(btcoexist, halbtc8192e2ant_is_common_action()
1540 halbtc8192e2ant_switch_sstype(btcoexist, halbtc8192e2ant_is_common_action()
1542 btc8192e2ant_coex_tbl_w_type(btcoexist, halbtc8192e2ant_is_common_action()
1544 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, halbtc8192e2ant_is_common_action()
1546 halbtc8192e2ant_fw_dac_swinglvl(btcoexist, halbtc8192e2ant_is_common_action()
1548 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 0); halbtc8192e2ant_is_common_action()
1550 btc8192e2ant_sw_mec1(btcoexist, true, false, halbtc8192e2ant_is_common_action()
1552 btc8192e2ant_sw_mec2(btcoexist, false, false, halbtc8192e2ant_is_common_action()
1558 btcoexist->btc_set(btcoexist, halbtc8192e2ant_is_common_action()
1570 halbtc8192e2ant_switch_sstype(btcoexist, halbtc8192e2ant_is_common_action()
1572 btc8192e2ant_coex_tbl_w_type(btcoexist, halbtc8192e2ant_is_common_action()
1574 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, halbtc8192e2ant_is_common_action()
1576 halbtc8192e2ant_fw_dac_swinglvl(btcoexist, halbtc8192e2ant_is_common_action()
1578 halbtc8192e2ant_dec_btpwr(btcoexist, halbtc8192e2ant_is_common_action()
1580 btc8192e2ant_sw_mec1(btcoexist, false, halbtc8192e2ant_is_common_action()
1582 btc8192e2ant_sw_mec2(btcoexist, false, halbtc8192e2ant_is_common_action()
1591 static void btc8192e_int1(struct btc_coexist *btcoexist, bool tx_pause, btc8192e_int1() argument
1600 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1604 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1608 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1612 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1616 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1621 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1625 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1629 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1633 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1640 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1644 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1648 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1652 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1656 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1660 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1666 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1670 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1674 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1678 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1682 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1686 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1696 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1700 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1704 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1708 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1713 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1717 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1721 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1725 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1732 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1736 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1740 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1744 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1748 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1752 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1756 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1762 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1766 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1770 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1774 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1778 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1782 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1786 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int1()
1794 static void btc8192e_int2(struct btc_coexist *btcoexist, bool tx_pause, btc8192e_int2() argument
1802 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1806 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1810 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1814 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1819 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1823 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1827 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1831 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1837 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1841 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1845 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1849 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1853 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1857 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1863 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1867 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1871 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1875 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1879 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1883 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1893 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1897 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1901 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1905 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1910 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1914 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1918 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1922 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1928 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1932 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1936 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1940 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1944 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1948 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1954 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1958 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1962 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1966 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1970 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1974 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int2()
1982 static void btc8192e_int3(struct btc_coexist *btcoexist, bool tx_pause, btc8192e_int3() argument
1990 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
1994 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
1998 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
2002 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
2007 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
2011 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
2015 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
2019 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
2025 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
2029 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
2033 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
2037 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
2041 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
2045 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
2051 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
2055 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
2059 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
2063 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
2067 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
2071 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
2081 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
2085 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
2089 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
2093 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
2098 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
2102 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
2106 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
2110 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
2116 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
2120 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
2124 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
2128 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
2132 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
2136 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
2142 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
2146 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
2150 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
2154 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
2158 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
2162 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8192e_int3()
2170 static void halbtc8192e2ant_tdma_duration_adjust(struct btc_coexist *btcoexist, halbtc8192e2ant_tdma_duration_adjust() argument
2191 halbtc8192e2ant_ps_tdma(btcoexist, halbtc8192e2ant_tdma_duration_adjust()
2196 halbtc8192e2ant_ps_tdma(btcoexist, halbtc8192e2ant_tdma_duration_adjust()
2201 halbtc8192e2ant_ps_tdma(btcoexist, halbtc8192e2ant_tdma_duration_adjust()
2206 halbtc8192e2ant_ps_tdma(btcoexist, halbtc8192e2ant_tdma_duration_adjust()
2213 halbtc8192e2ant_ps_tdma(btcoexist, halbtc8192e2ant_tdma_duration_adjust()
2218 halbtc8192e2ant_ps_tdma(btcoexist, halbtc8192e2ant_tdma_duration_adjust()
2223 halbtc8192e2ant_ps_tdma(btcoexist, halbtc8192e2ant_tdma_duration_adjust()
2228 halbtc8192e2ant_ps_tdma(btcoexist, halbtc8192e2ant_tdma_duration_adjust()
2237 halbtc8192e2ant_ps_tdma(btcoexist, halbtc8192e2ant_tdma_duration_adjust()
2242 halbtc8192e2ant_ps_tdma(btcoexist, halbtc8192e2ant_tdma_duration_adjust()
2247 halbtc8192e2ant_ps_tdma(btcoexist, halbtc8192e2ant_tdma_duration_adjust()
2252 halbtc8192e2ant_ps_tdma(btcoexist, halbtc8192e2ant_tdma_duration_adjust()
2259 halbtc8192e2ant_ps_tdma(btcoexist, halbtc8192e2ant_tdma_duration_adjust()
2264 halbtc8192e2ant_ps_tdma(btcoexist, halbtc8192e2ant_tdma_duration_adjust()
2269 halbtc8192e2ant_ps_tdma(btcoexist, halbtc8192e2ant_tdma_duration_adjust()
2274 halbtc8192e2ant_ps_tdma(btcoexist, halbtc8192e2ant_tdma_duration_adjust()
2362 btc8192e_int1(btcoexist, tx_pause, result); halbtc8192e2ant_tdma_duration_adjust()
2364 btc8192e_int2(btcoexist, tx_pause, result); halbtc8192e2ant_tdma_duration_adjust()
2366 btc8192e_int3(btcoexist, tx_pause, result); halbtc8192e2ant_tdma_duration_adjust()
2382 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_SCAN, &scan); halbtc8192e2ant_tdma_duration_adjust()
2383 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link); halbtc8192e2ant_tdma_duration_adjust()
2384 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_ROAM, &roam); halbtc8192e2ant_tdma_duration_adjust()
2387 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, halbtc8192e2ant_tdma_duration_adjust()
2398 static void halbtc8192e2ant_action_sco(struct btc_coexist *btcoexist) halbtc8192e2ant_action_sco() argument
2403 wifirssi_state = halbtc8192e2ant_wifirssi_state(btcoexist, 0, 2, 15, 0); halbtc8192e2ant_action_sco()
2405 halbtc8192e2ant_switch_sstype(btcoexist, NORMAL_EXEC, 1); halbtc8192e2ant_action_sco()
2406 halbtc8192e2ant_limited_rx(btcoexist, NORMAL_EXEC, false, false, 0x8); halbtc8192e2ant_action_sco()
2408 halbtc8192e2ant_fw_dac_swinglvl(btcoexist, NORMAL_EXEC, 6); halbtc8192e2ant_action_sco()
2410 btc8192e2ant_coex_tbl_w_type(btcoexist, NORMAL_EXEC, 4); halbtc8192e2ant_action_sco()
2416 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 0); halbtc8192e2ant_action_sco()
2417 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 13); halbtc8192e2ant_action_sco()
2420 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 2); halbtc8192e2ant_action_sco()
2421 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 9); halbtc8192e2ant_action_sco()
2424 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 4); halbtc8192e2ant_action_sco()
2425 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 9); halbtc8192e2ant_action_sco()
2428 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); halbtc8192e2ant_action_sco()
2434 btc8192e2ant_sw_mec1(btcoexist, true, true, halbtc8192e2ant_action_sco()
2436 btc8192e2ant_sw_mec2(btcoexist, true, false, halbtc8192e2ant_action_sco()
2439 btc8192e2ant_sw_mec1(btcoexist, true, true, halbtc8192e2ant_action_sco()
2441 btc8192e2ant_sw_mec2(btcoexist, false, false, halbtc8192e2ant_action_sco()
2447 btc8192e2ant_sw_mec1(btcoexist, false, true, halbtc8192e2ant_action_sco()
2449 btc8192e2ant_sw_mec2(btcoexist, true, false, halbtc8192e2ant_action_sco()
2452 btc8192e2ant_sw_mec1(btcoexist, false, true, halbtc8192e2ant_action_sco()
2454 btc8192e2ant_sw_mec2(btcoexist, false, false, halbtc8192e2ant_action_sco()
2460 static void halbtc8192e2ant_action_sco_pan(struct btc_coexist *btcoexist) halbtc8192e2ant_action_sco_pan() argument
2465 wifirssi_state = halbtc8192e2ant_wifirssi_state(btcoexist, 0, 2, 15, 0); halbtc8192e2ant_action_sco_pan()
2467 halbtc8192e2ant_switch_sstype(btcoexist, NORMAL_EXEC, 1); halbtc8192e2ant_action_sco_pan()
2468 halbtc8192e2ant_limited_rx(btcoexist, NORMAL_EXEC, false, false, 0x8); halbtc8192e2ant_action_sco_pan()
2470 halbtc8192e2ant_fw_dac_swinglvl(btcoexist, NORMAL_EXEC, 6); halbtc8192e2ant_action_sco_pan()
2472 btc8192e2ant_coex_tbl_w_type(btcoexist, NORMAL_EXEC, 4); halbtc8192e2ant_action_sco_pan()
2478 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 0); halbtc8192e2ant_action_sco_pan()
2479 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 14); halbtc8192e2ant_action_sco_pan()
2482 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 2); halbtc8192e2ant_action_sco_pan()
2483 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 10); halbtc8192e2ant_action_sco_pan()
2486 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 4); halbtc8192e2ant_action_sco_pan()
2487 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 10); halbtc8192e2ant_action_sco_pan()
2490 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); halbtc8192e2ant_action_sco_pan()
2496 btc8192e2ant_sw_mec1(btcoexist, true, true, halbtc8192e2ant_action_sco_pan()
2498 btc8192e2ant_sw_mec2(btcoexist, true, false, halbtc8192e2ant_action_sco_pan()
2501 btc8192e2ant_sw_mec1(btcoexist, true, true, halbtc8192e2ant_action_sco_pan()
2503 btc8192e2ant_sw_mec2(btcoexist, false, false, halbtc8192e2ant_action_sco_pan()
2509 btc8192e2ant_sw_mec1(btcoexist, false, true, halbtc8192e2ant_action_sco_pan()
2511 btc8192e2ant_sw_mec2(btcoexist, true, false, halbtc8192e2ant_action_sco_pan()
2514 btc8192e2ant_sw_mec1(btcoexist, false, true, halbtc8192e2ant_action_sco_pan()
2516 btc8192e2ant_sw_mec2(btcoexist, false, false, halbtc8192e2ant_action_sco_pan()
2522 static void halbtc8192e2ant_action_hid(struct btc_coexist *btcoexist) halbtc8192e2ant_action_hid() argument
2527 wifirssi_state = halbtc8192e2ant_wifirssi_state(btcoexist, 0, 2, 15, 0); halbtc8192e2ant_action_hid()
2530 halbtc8192e2ant_switch_sstype(btcoexist, NORMAL_EXEC, 1); halbtc8192e2ant_action_hid()
2531 halbtc8192e2ant_limited_rx(btcoexist, NORMAL_EXEC, false, false, 0x8); halbtc8192e2ant_action_hid()
2533 halbtc8192e2ant_fw_dac_swinglvl(btcoexist, NORMAL_EXEC, 6); halbtc8192e2ant_action_hid()
2535 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); halbtc8192e2ant_action_hid()
2537 btc8192e2ant_coex_tbl_w_type(btcoexist, NORMAL_EXEC, 3); halbtc8192e2ant_action_hid()
2541 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 0); halbtc8192e2ant_action_hid()
2542 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 13); halbtc8192e2ant_action_hid()
2545 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 2); halbtc8192e2ant_action_hid()
2546 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 9); halbtc8192e2ant_action_hid()
2549 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 4); halbtc8192e2ant_action_hid()
2550 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 9); halbtc8192e2ant_action_hid()
2557 btc8192e2ant_sw_mec1(btcoexist, true, true, halbtc8192e2ant_action_hid()
2559 btc8192e2ant_sw_mec2(btcoexist, true, false, halbtc8192e2ant_action_hid()
2562 btc8192e2ant_sw_mec1(btcoexist, true, true, halbtc8192e2ant_action_hid()
2564 btc8192e2ant_sw_mec2(btcoexist, false, false, halbtc8192e2ant_action_hid()
2570 btc8192e2ant_sw_mec1(btcoexist, false, true, halbtc8192e2ant_action_hid()
2572 btc8192e2ant_sw_mec2(btcoexist, true, false, halbtc8192e2ant_action_hid()
2575 btc8192e2ant_sw_mec1(btcoexist, false, true, halbtc8192e2ant_action_hid()
2577 btc8192e2ant_sw_mec2(btcoexist, false, false, halbtc8192e2ant_action_hid()
2584 static void halbtc8192e2ant_action_a2dp(struct btc_coexist *btcoexist) halbtc8192e2ant_action_a2dp() argument
2590 wifirssi_state = halbtc8192e2ant_wifirssi_state(btcoexist, 0, 2, 15, 0); halbtc8192e2ant_action_a2dp()
2602 halbtc8192e2ant_switch_sstype(btcoexist, NORMAL_EXEC, 2); halbtc8192e2ant_action_a2dp()
2603 halbtc8192e2ant_limited_rx(btcoexist, NORMAL_EXEC, false, true, halbtc8192e2ant_action_a2dp()
2606 halbtc8192e2ant_switch_sstype(btcoexist, NORMAL_EXEC, 1); halbtc8192e2ant_action_a2dp()
2607 halbtc8192e2ant_limited_rx(btcoexist, NORMAL_EXEC, false, false, halbtc8192e2ant_action_a2dp()
2611 halbtc8192e2ant_fw_dac_swinglvl(btcoexist, NORMAL_EXEC, 6); halbtc8192e2ant_action_a2dp()
2614 btc8192e2ant_coex_tbl_w_type(btcoexist, NORMAL_EXEC, 0); halbtc8192e2ant_action_a2dp()
2616 btc8192e2ant_coex_tbl_w_type(btcoexist, NORMAL_EXEC, 2); halbtc8192e2ant_action_a2dp()
2619 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 17); halbtc8192e2ant_action_a2dp()
2621 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 0); halbtc8192e2ant_action_a2dp()
2625 halbtc8192e2ant_tdma_duration_adjust(btcoexist, false, halbtc8192e2ant_action_a2dp()
2627 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 0); halbtc8192e2ant_action_a2dp()
2630 halbtc8192e2ant_tdma_duration_adjust(btcoexist, false, halbtc8192e2ant_action_a2dp()
2632 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 2); halbtc8192e2ant_action_a2dp()
2635 halbtc8192e2ant_tdma_duration_adjust(btcoexist, false, halbtc8192e2ant_action_a2dp()
2637 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 4); halbtc8192e2ant_action_a2dp()
2642 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); halbtc8192e2ant_action_a2dp()
2646 btc8192e2ant_sw_mec1(btcoexist, true, false, halbtc8192e2ant_action_a2dp()
2648 btc8192e2ant_sw_mec2(btcoexist, true, false, halbtc8192e2ant_action_a2dp()
2651 btc8192e2ant_sw_mec1(btcoexist, true, false, halbtc8192e2ant_action_a2dp()
2653 btc8192e2ant_sw_mec2(btcoexist, false, false, halbtc8192e2ant_action_a2dp()
2659 btc8192e2ant_sw_mec1(btcoexist, false, false, halbtc8192e2ant_action_a2dp()
2661 btc8192e2ant_sw_mec2(btcoexist, true, false, halbtc8192e2ant_action_a2dp()
2664 btc8192e2ant_sw_mec1(btcoexist, false, false, halbtc8192e2ant_action_a2dp()
2666 btc8192e2ant_sw_mec2(btcoexist, false, false, halbtc8192e2ant_action_a2dp()
2672 static void halbtc8192e2ant_action_a2dp_pan_hs(struct btc_coexist *btcoexist) halbtc8192e2ant_action_a2dp_pan_hs() argument
2677 wifirssi_state = halbtc8192e2ant_wifirssi_state(btcoexist, 0, 2, 15, 0); halbtc8192e2ant_action_a2dp_pan_hs()
2680 halbtc8192e2ant_switch_sstype(btcoexist, NORMAL_EXEC, 1); halbtc8192e2ant_action_a2dp_pan_hs()
2681 halbtc8192e2ant_limited_rx(btcoexist, NORMAL_EXEC, false, false, 0x8); halbtc8192e2ant_action_a2dp_pan_hs()
2683 halbtc8192e2ant_fw_dac_swinglvl(btcoexist, NORMAL_EXEC, 6); halbtc8192e2ant_action_a2dp_pan_hs()
2684 btc8192e2ant_coex_tbl_w_type(btcoexist, NORMAL_EXEC, 2); halbtc8192e2ant_action_a2dp_pan_hs()
2688 halbtc8192e2ant_tdma_duration_adjust(btcoexist, false, true, 2); halbtc8192e2ant_action_a2dp_pan_hs()
2689 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 0); halbtc8192e2ant_action_a2dp_pan_hs()
2692 halbtc8192e2ant_tdma_duration_adjust(btcoexist, false, halbtc8192e2ant_action_a2dp_pan_hs()
2694 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 2); halbtc8192e2ant_action_a2dp_pan_hs()
2697 halbtc8192e2ant_tdma_duration_adjust(btcoexist, false, halbtc8192e2ant_action_a2dp_pan_hs()
2699 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 4); halbtc8192e2ant_action_a2dp_pan_hs()
2703 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); halbtc8192e2ant_action_a2dp_pan_hs()
2707 btc8192e2ant_sw_mec1(btcoexist, true, false, halbtc8192e2ant_action_a2dp_pan_hs()
2709 btc8192e2ant_sw_mec2(btcoexist, true, false, halbtc8192e2ant_action_a2dp_pan_hs()
2712 btc8192e2ant_sw_mec1(btcoexist, true, false, halbtc8192e2ant_action_a2dp_pan_hs()
2714 btc8192e2ant_sw_mec2(btcoexist, false, false, halbtc8192e2ant_action_a2dp_pan_hs()
2720 btc8192e2ant_sw_mec1(btcoexist, false, false, halbtc8192e2ant_action_a2dp_pan_hs()
2722 btc8192e2ant_sw_mec2(btcoexist, true, false, halbtc8192e2ant_action_a2dp_pan_hs()
2725 btc8192e2ant_sw_mec1(btcoexist, false, false, halbtc8192e2ant_action_a2dp_pan_hs()
2727 btc8192e2ant_sw_mec2(btcoexist, false, false, halbtc8192e2ant_action_a2dp_pan_hs()
2733 static void halbtc8192e2ant_action_pan_edr(struct btc_coexist *btcoexist) halbtc8192e2ant_action_pan_edr() argument
2738 wifirssi_state = halbtc8192e2ant_wifirssi_state(btcoexist, 0, 2, 15, 0); halbtc8192e2ant_action_pan_edr()
2741 halbtc8192e2ant_switch_sstype(btcoexist, NORMAL_EXEC, 1); halbtc8192e2ant_action_pan_edr()
2742 halbtc8192e2ant_limited_rx(btcoexist, NORMAL_EXEC, false, false, 0x8); halbtc8192e2ant_action_pan_edr()
2744 halbtc8192e2ant_fw_dac_swinglvl(btcoexist, NORMAL_EXEC, 6); halbtc8192e2ant_action_pan_edr()
2746 btc8192e2ant_coex_tbl_w_type(btcoexist, NORMAL_EXEC, 2); halbtc8192e2ant_action_pan_edr()
2750 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 0); halbtc8192e2ant_action_pan_edr()
2751 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 5); halbtc8192e2ant_action_pan_edr()
2754 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 2); halbtc8192e2ant_action_pan_edr()
2755 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 1); halbtc8192e2ant_action_pan_edr()
2758 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 4); halbtc8192e2ant_action_pan_edr()
2759 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 1); halbtc8192e2ant_action_pan_edr()
2763 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); halbtc8192e2ant_action_pan_edr()
2767 btc8192e2ant_sw_mec1(btcoexist, true, false, halbtc8192e2ant_action_pan_edr()
2769 btc8192e2ant_sw_mec2(btcoexist, true, false, halbtc8192e2ant_action_pan_edr()
2772 btc8192e2ant_sw_mec1(btcoexist, true, false, halbtc8192e2ant_action_pan_edr()
2774 btc8192e2ant_sw_mec2(btcoexist, false, false, halbtc8192e2ant_action_pan_edr()
2780 btc8192e2ant_sw_mec1(btcoexist, false, false, halbtc8192e2ant_action_pan_edr()
2782 btc8192e2ant_sw_mec2(btcoexist, true, false, halbtc8192e2ant_action_pan_edr()
2785 btc8192e2ant_sw_mec1(btcoexist, false, false, halbtc8192e2ant_action_pan_edr()
2787 btc8192e2ant_sw_mec2(btcoexist, false, false, halbtc8192e2ant_action_pan_edr()
2794 static void halbtc8192e2ant_action_pan_hs(struct btc_coexist *btcoexist) halbtc8192e2ant_action_pan_hs() argument
2799 wifirssi_state = halbtc8192e2ant_wifirssi_state(btcoexist, 0, 2, 15, 0); halbtc8192e2ant_action_pan_hs()
2802 halbtc8192e2ant_switch_sstype(btcoexist, NORMAL_EXEC, 1); halbtc8192e2ant_action_pan_hs()
2803 halbtc8192e2ant_limited_rx(btcoexist, NORMAL_EXEC, false, false, 0x8); halbtc8192e2ant_action_pan_hs()
2805 halbtc8192e2ant_fw_dac_swinglvl(btcoexist, NORMAL_EXEC, 6); halbtc8192e2ant_action_pan_hs()
2807 btc8192e2ant_coex_tbl_w_type(btcoexist, NORMAL_EXEC, 2); halbtc8192e2ant_action_pan_hs()
2811 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 0); halbtc8192e2ant_action_pan_hs()
2814 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 2); halbtc8192e2ant_action_pan_hs()
2817 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 4); halbtc8192e2ant_action_pan_hs()
2819 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 1); halbtc8192e2ant_action_pan_hs()
2821 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); halbtc8192e2ant_action_pan_hs()
2825 btc8192e2ant_sw_mec1(btcoexist, true, false, halbtc8192e2ant_action_pan_hs()
2827 btc8192e2ant_sw_mec2(btcoexist, true, false, halbtc8192e2ant_action_pan_hs()
2830 btc8192e2ant_sw_mec1(btcoexist, true, false, halbtc8192e2ant_action_pan_hs()
2832 btc8192e2ant_sw_mec2(btcoexist, false, false, halbtc8192e2ant_action_pan_hs()
2838 btc8192e2ant_sw_mec1(btcoexist, false, false, halbtc8192e2ant_action_pan_hs()
2840 btc8192e2ant_sw_mec2(btcoexist, true, false, halbtc8192e2ant_action_pan_hs()
2843 btc8192e2ant_sw_mec1(btcoexist, false, false, halbtc8192e2ant_action_pan_hs()
2845 btc8192e2ant_sw_mec2(btcoexist, false, false, halbtc8192e2ant_action_pan_hs()
2852 static void halbtc8192e2ant_action_pan_edr_a2dp(struct btc_coexist *btcoexist) halbtc8192e2ant_action_pan_edr_a2dp() argument
2857 wifirssi_state = halbtc8192e2ant_wifirssi_state(btcoexist, 0, 2, 15, 0); halbtc8192e2ant_action_pan_edr_a2dp()
2860 halbtc8192e2ant_switch_sstype(btcoexist, NORMAL_EXEC, 1); halbtc8192e2ant_action_pan_edr_a2dp()
2861 halbtc8192e2ant_limited_rx(btcoexist, NORMAL_EXEC, false, false, 0x8); halbtc8192e2ant_action_pan_edr_a2dp()
2863 halbtc8192e2ant_fw_dac_swinglvl(btcoexist, NORMAL_EXEC, 6); halbtc8192e2ant_action_pan_edr_a2dp()
2865 btc8192e2ant_coex_tbl_w_type(btcoexist, NORMAL_EXEC, 2); halbtc8192e2ant_action_pan_edr_a2dp()
2867 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); halbtc8192e2ant_action_pan_edr_a2dp()
2871 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 0); halbtc8192e2ant_action_pan_edr_a2dp()
2872 halbtc8192e2ant_tdma_duration_adjust(btcoexist, false, true, 3); halbtc8192e2ant_action_pan_edr_a2dp()
2875 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 2); halbtc8192e2ant_action_pan_edr_a2dp()
2876 halbtc8192e2ant_tdma_duration_adjust(btcoexist, false, halbtc8192e2ant_action_pan_edr_a2dp()
2880 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 4); halbtc8192e2ant_action_pan_edr_a2dp()
2881 halbtc8192e2ant_tdma_duration_adjust(btcoexist, false, halbtc8192e2ant_action_pan_edr_a2dp()
2889 btc8192e2ant_sw_mec1(btcoexist, true, false, halbtc8192e2ant_action_pan_edr_a2dp()
2891 btc8192e2ant_sw_mec2(btcoexist, true, false, halbtc8192e2ant_action_pan_edr_a2dp()
2894 btc8192e2ant_sw_mec1(btcoexist, true, false, halbtc8192e2ant_action_pan_edr_a2dp()
2896 btc8192e2ant_sw_mec2(btcoexist, false, false, halbtc8192e2ant_action_pan_edr_a2dp()
2902 btc8192e2ant_sw_mec1(btcoexist, false, false, halbtc8192e2ant_action_pan_edr_a2dp()
2904 btc8192e2ant_sw_mec2(btcoexist, true, false, halbtc8192e2ant_action_pan_edr_a2dp()
2907 btc8192e2ant_sw_mec1(btcoexist, false, false, halbtc8192e2ant_action_pan_edr_a2dp()
2909 btc8192e2ant_sw_mec2(btcoexist, false, false, halbtc8192e2ant_action_pan_edr_a2dp()
2915 static void halbtc8192e2ant_action_pan_edr_hid(struct btc_coexist *btcoexist) halbtc8192e2ant_action_pan_edr_hid() argument
2920 wifirssi_state = halbtc8192e2ant_wifirssi_state(btcoexist, 0, 2, 15, 0); halbtc8192e2ant_action_pan_edr_hid()
2923 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); halbtc8192e2ant_action_pan_edr_hid()
2925 halbtc8192e2ant_switch_sstype(btcoexist, NORMAL_EXEC, 1); halbtc8192e2ant_action_pan_edr_hid()
2926 halbtc8192e2ant_limited_rx(btcoexist, NORMAL_EXEC, false, false, 0x8); halbtc8192e2ant_action_pan_edr_hid()
2928 halbtc8192e2ant_fw_dac_swinglvl(btcoexist, NORMAL_EXEC, 6); halbtc8192e2ant_action_pan_edr_hid()
2930 btc8192e2ant_coex_tbl_w_type(btcoexist, NORMAL_EXEC, 3); halbtc8192e2ant_action_pan_edr_hid()
2934 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 0); halbtc8192e2ant_action_pan_edr_hid()
2935 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 14); halbtc8192e2ant_action_pan_edr_hid()
2938 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 2); halbtc8192e2ant_action_pan_edr_hid()
2939 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, halbtc8192e2ant_action_pan_edr_hid()
2943 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 4); halbtc8192e2ant_action_pan_edr_hid()
2944 halbtc8192e2ant_ps_tdma(btcoexist, NORMAL_EXEC, halbtc8192e2ant_action_pan_edr_hid()
2952 btc8192e2ant_sw_mec1(btcoexist, true, true, halbtc8192e2ant_action_pan_edr_hid()
2954 btc8192e2ant_sw_mec2(btcoexist, true, false, halbtc8192e2ant_action_pan_edr_hid()
2957 btc8192e2ant_sw_mec1(btcoexist, true, true, halbtc8192e2ant_action_pan_edr_hid()
2959 btc8192e2ant_sw_mec2(btcoexist, false, false, halbtc8192e2ant_action_pan_edr_hid()
2965 btc8192e2ant_sw_mec1(btcoexist, false, true, halbtc8192e2ant_action_pan_edr_hid()
2967 btc8192e2ant_sw_mec2(btcoexist, true, false, halbtc8192e2ant_action_pan_edr_hid()
2970 btc8192e2ant_sw_mec1(btcoexist, false, true, halbtc8192e2ant_action_pan_edr_hid()
2972 btc8192e2ant_sw_mec2(btcoexist, false, false, halbtc8192e2ant_action_pan_edr_hid()
2979 static void btc8192e2ant_action_hid_a2dp_pan_edr(struct btc_coexist *btcoexist) btc8192e2ant_action_hid_a2dp_pan_edr() argument
2984 wifirssi_state = halbtc8192e2ant_wifirssi_state(btcoexist, 0, 2, 15, 0); btc8192e2ant_action_hid_a2dp_pan_edr()
2987 halbtc8192e2ant_switch_sstype(btcoexist, NORMAL_EXEC, 1); btc8192e2ant_action_hid_a2dp_pan_edr()
2988 halbtc8192e2ant_limited_rx(btcoexist, NORMAL_EXEC, false, false, 0x8); btc8192e2ant_action_hid_a2dp_pan_edr()
2990 halbtc8192e2ant_fw_dac_swinglvl(btcoexist, NORMAL_EXEC, 6); btc8192e2ant_action_hid_a2dp_pan_edr()
2992 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); btc8192e2ant_action_hid_a2dp_pan_edr()
2994 btc8192e2ant_coex_tbl_w_type(btcoexist, NORMAL_EXEC, 3); btc8192e2ant_action_hid_a2dp_pan_edr()
2998 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 0); btc8192e2ant_action_hid_a2dp_pan_edr()
2999 halbtc8192e2ant_tdma_duration_adjust(btcoexist, true, true, 3); btc8192e2ant_action_hid_a2dp_pan_edr()
3002 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 2); btc8192e2ant_action_hid_a2dp_pan_edr()
3003 halbtc8192e2ant_tdma_duration_adjust(btcoexist, true, false, 3); btc8192e2ant_action_hid_a2dp_pan_edr()
3006 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 4); btc8192e2ant_action_hid_a2dp_pan_edr()
3007 halbtc8192e2ant_tdma_duration_adjust(btcoexist, true, false, 3); btc8192e2ant_action_hid_a2dp_pan_edr()
3014 btc8192e2ant_sw_mec1(btcoexist, true, true, btc8192e2ant_action_hid_a2dp_pan_edr()
3016 btc8192e2ant_sw_mec2(btcoexist, true, false, btc8192e2ant_action_hid_a2dp_pan_edr()
3019 btc8192e2ant_sw_mec1(btcoexist, true, true, btc8192e2ant_action_hid_a2dp_pan_edr()
3021 btc8192e2ant_sw_mec2(btcoexist, false, false, btc8192e2ant_action_hid_a2dp_pan_edr()
3027 btc8192e2ant_sw_mec1(btcoexist, false, true, btc8192e2ant_action_hid_a2dp_pan_edr()
3029 btc8192e2ant_sw_mec2(btcoexist, true, false, btc8192e2ant_action_hid_a2dp_pan_edr()
3032 btc8192e2ant_sw_mec1(btcoexist, false, true, btc8192e2ant_action_hid_a2dp_pan_edr()
3034 btc8192e2ant_sw_mec2(btcoexist, false, false, btc8192e2ant_action_hid_a2dp_pan_edr()
3040 static void halbtc8192e2ant_action_hid_a2dp(struct btc_coexist *btcoexist) halbtc8192e2ant_action_hid_a2dp() argument
3045 wifirssi_state = halbtc8192e2ant_wifirssi_state(btcoexist, 0, 2, 15, 0); halbtc8192e2ant_action_hid_a2dp()
3048 halbtc8192e2ant_switch_sstype(btcoexist, NORMAL_EXEC, 1); halbtc8192e2ant_action_hid_a2dp()
3049 halbtc8192e2ant_limited_rx(btcoexist, NORMAL_EXEC, false, false, 0x8); halbtc8192e2ant_action_hid_a2dp()
3051 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); halbtc8192e2ant_action_hid_a2dp()
3053 btc8192e2ant_coex_tbl_w_type(btcoexist, NORMAL_EXEC, 3); halbtc8192e2ant_action_hid_a2dp()
3057 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 0); halbtc8192e2ant_action_hid_a2dp()
3058 halbtc8192e2ant_tdma_duration_adjust(btcoexist, true, true, 2); halbtc8192e2ant_action_hid_a2dp()
3061 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 2); halbtc8192e2ant_action_hid_a2dp()
3062 halbtc8192e2ant_tdma_duration_adjust(btcoexist, true, false, 2); halbtc8192e2ant_action_hid_a2dp()
3065 halbtc8192e2ant_dec_btpwr(btcoexist, NORMAL_EXEC, 4); halbtc8192e2ant_action_hid_a2dp()
3066 halbtc8192e2ant_tdma_duration_adjust(btcoexist, true, false, 2); halbtc8192e2ant_action_hid_a2dp()
3073 btc8192e2ant_sw_mec1(btcoexist, true, true, halbtc8192e2ant_action_hid_a2dp()
3075 btc8192e2ant_sw_mec2(btcoexist, true, false, halbtc8192e2ant_action_hid_a2dp()
3078 btc8192e2ant_sw_mec1(btcoexist, true, true, halbtc8192e2ant_action_hid_a2dp()
3080 btc8192e2ant_sw_mec2(btcoexist, false, false, halbtc8192e2ant_action_hid_a2dp()
3086 btc8192e2ant_sw_mec1(btcoexist, false, true, halbtc8192e2ant_action_hid_a2dp()
3088 btc8192e2ant_sw_mec2(btcoexist, true, false, halbtc8192e2ant_action_hid_a2dp()
3091 btc8192e2ant_sw_mec1(btcoexist, false, true, halbtc8192e2ant_action_hid_a2dp()
3093 btc8192e2ant_sw_mec2(btcoexist, false, false, halbtc8192e2ant_action_hid_a2dp()
3099 static void halbtc8192e2ant_run_coexist_mechanism(struct btc_coexist *btcoexist) halbtc8192e2ant_run_coexist_mechanism() argument
3106 if (btcoexist->manual_control) { halbtc8192e2ant_run_coexist_mechanism()
3118 algorithm = halbtc8192e2ant_action_algorithm(btcoexist); halbtc8192e2ant_run_coexist_mechanism()
3123 halbtc8192e2ant_action_bt_inquiry(btcoexist); halbtc8192e2ant_run_coexist_mechanism()
3131 if (halbtc8192e2ant_is_common_action(btcoexist)) { halbtc8192e2ant_run_coexist_mechanism()
3147 halbtc8192e2ant_action_sco(btcoexist); halbtc8192e2ant_run_coexist_mechanism()
3152 halbtc8192e2ant_action_sco_pan(btcoexist); halbtc8192e2ant_run_coexist_mechanism()
3157 halbtc8192e2ant_action_hid(btcoexist); halbtc8192e2ant_run_coexist_mechanism()
3162 halbtc8192e2ant_action_a2dp(btcoexist); halbtc8192e2ant_run_coexist_mechanism()
3167 halbtc8192e2ant_action_a2dp_pan_hs(btcoexist); halbtc8192e2ant_run_coexist_mechanism()
3172 halbtc8192e2ant_action_pan_edr(btcoexist); halbtc8192e2ant_run_coexist_mechanism()
3177 halbtc8192e2ant_action_pan_hs(btcoexist); halbtc8192e2ant_run_coexist_mechanism()
3182 halbtc8192e2ant_action_pan_edr_a2dp(btcoexist); halbtc8192e2ant_run_coexist_mechanism()
3187 halbtc8192e2ant_action_pan_edr_hid(btcoexist); halbtc8192e2ant_run_coexist_mechanism()
3192 btc8192e2ant_action_hid_a2dp_pan_edr(btcoexist); halbtc8192e2ant_run_coexist_mechanism()
3197 halbtc8192e2ant_action_hid_a2dp(btcoexist); halbtc8192e2ant_run_coexist_mechanism()
3202 /* halbtc8192e2ant_coex_alloff(btcoexist); */ halbtc8192e2ant_run_coexist_mechanism()
3209 static void halbtc8192e2ant_init_hwconfig(struct btc_coexist *btcoexist, halbtc8192e2ant_init_hwconfig() argument
3221 btcoexist->btc_get_rf_reg(btcoexist, BTC_RF_A, halbtc8192e2ant_init_hwconfig()
3224 coex_dm->backup_arfr_cnt1 = btcoexist->btc_read_4byte(btcoexist, halbtc8192e2ant_init_hwconfig()
3226 coex_dm->backup_arfr_cnt2 = btcoexist->btc_read_4byte(btcoexist, halbtc8192e2ant_init_hwconfig()
3228 coex_dm->backup_retrylimit = btcoexist->btc_read_2byte( halbtc8192e2ant_init_hwconfig()
3229 btcoexist, halbtc8192e2ant_init_hwconfig()
3231 coex_dm->backup_ampdu_maxtime = btcoexist->btc_read_1byte( halbtc8192e2ant_init_hwconfig()
3232 btcoexist, halbtc8192e2ant_init_hwconfig()
3237 btcoexist->btc_write_1byte(btcoexist, 0x4f, 0x6); halbtc8192e2ant_init_hwconfig()
3238 btcoexist->btc_write_1byte(btcoexist, 0x944, 0x24); halbtc8192e2ant_init_hwconfig()
3239 btcoexist->btc_write_4byte(btcoexist, 0x930, 0x700700); halbtc8192e2ant_init_hwconfig()
3240 btcoexist->btc_write_1byte(btcoexist, 0x92c, 0x20); halbtc8192e2ant_init_hwconfig()
3241 if (btcoexist->chip_interface == BTC_INTF_USB) halbtc8192e2ant_init_hwconfig()
3242 btcoexist->btc_write_4byte(btcoexist, 0x64, 0x30430004); halbtc8192e2ant_init_hwconfig()
3244 btcoexist->btc_write_4byte(btcoexist, 0x64, 0x30030004); halbtc8192e2ant_init_hwconfig()
3246 btc8192e2ant_coex_tbl_w_type(btcoexist, FORCE_EXEC, 0); halbtc8192e2ant_init_hwconfig()
3249 btcoexist->btc_write_4byte(btcoexist, 0x858, 0x55555555); halbtc8192e2ant_init_hwconfig()
3252 btcoexist->btc_write_1byte(btcoexist, 0x778, 0x3); halbtc8192e2ant_init_hwconfig()
3254 u8tmp = btcoexist->btc_read_1byte(btcoexist, 0x790); halbtc8192e2ant_init_hwconfig()
3257 btcoexist->btc_write_1byte(btcoexist, 0x790, u8tmp); halbtc8192e2ant_init_hwconfig()
3260 btcoexist->btc_write_1byte(btcoexist, 0x76e, 0x4); halbtc8192e2ant_init_hwconfig()
3263 btcoexist->btc_write_1byte(btcoexist, 0x40, 0x20); halbtc8192e2ant_init_hwconfig()
3265 u16tmp = btcoexist->btc_read_2byte(btcoexist, 0x40); halbtc8192e2ant_init_hwconfig()
3267 btcoexist->btc_write_2byte(btcoexist, 0x40, u16tmp); halbtc8192e2ant_init_hwconfig()
3270 u8tmp = btcoexist->btc_read_1byte(btcoexist, 0x101); halbtc8192e2ant_init_hwconfig()
3272 btcoexist->btc_write_1byte(btcoexist, 0x101, u8tmp); halbtc8192e2ant_init_hwconfig()
3275 u8tmp = btcoexist->btc_read_1byte(btcoexist, 0x93); halbtc8192e2ant_init_hwconfig()
3277 btcoexist->btc_write_1byte(btcoexist, 0x93, u8tmp); halbtc8192e2ant_init_hwconfig()
3279 u8tmp = btcoexist->btc_read_1byte(btcoexist, 0x7); halbtc8192e2ant_init_hwconfig()
3281 btcoexist->btc_write_1byte(btcoexist, 0x7, u8tmp); halbtc8192e2ant_init_hwconfig()
3292 void ex_halbtc8192e2ant_init_hwconfig(struct btc_coexist *btcoexist) ex_halbtc8192e2ant_init_hwconfig() argument
3294 halbtc8192e2ant_init_hwconfig(btcoexist, true); ex_halbtc8192e2ant_init_hwconfig()
3297 void ex_halbtc8192e2ant_init_coex_dm(struct btc_coexist *btcoexist) ex_halbtc8192e2ant_init_coex_dm() argument
3301 halbtc8192e2ant_init_coex_dm(btcoexist); ex_halbtc8192e2ant_init_coex_dm()
3304 void ex_halbtc8192e2ant_display_coex_info(struct btc_coexist *btcoexist) ex_halbtc8192e2ant_display_coex_info() argument
3306 struct btc_board_info *board_info = &btcoexist->board_info; ex_halbtc8192e2ant_display_coex_info()
3307 struct btc_stack_info *stack_info = &btcoexist->stack_info; ex_halbtc8192e2ant_display_coex_info()
3308 struct rtl_priv *rtlpriv = btcoexist->adapter; ex_halbtc8192e2ant_display_coex_info()
3322 if (btcoexist->manual_control) { ex_halbtc8192e2ant_display_coex_info()
3343 btcoexist->btc_get(btcoexist, BTC_GET_U4_BT_PATCH_VER, &bt_patch_ver); ex_halbtc8192e2ant_display_coex_info()
3344 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_FW_VER, &fw_ver); ex_halbtc8192e2ant_display_coex_info()
3351 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hson); ex_halbtc8192e2ant_display_coex_info()
3352 btcoexist->btc_get(btcoexist, BTC_GET_U1_WIFI_DOT11_CHNL, ex_halbtc8192e2ant_display_coex_info()
3354 btcoexist->btc_get(btcoexist, BTC_GET_U1_WIFI_HS_CHNL, &wifi_hs_chnl); ex_halbtc8192e2ant_display_coex_info()
3363 btcoexist->btc_get(btcoexist, BTC_GET_S4_WIFI_RSSI, &wifirssi); ex_halbtc8192e2ant_display_coex_info()
3364 btcoexist->btc_get(btcoexist, BTC_GET_S4_HS_RSSI, &bt_hs_rssi); ex_halbtc8192e2ant_display_coex_info()
3368 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_SCAN, &scan); ex_halbtc8192e2ant_display_coex_info()
3369 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link); ex_halbtc8192e2ant_display_coex_info()
3370 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_ROAM, &roam); ex_halbtc8192e2ant_display_coex_info()
3374 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_UNDER_5G, &wifi_under_5g); ex_halbtc8192e2ant_display_coex_info()
3375 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); ex_halbtc8192e2ant_display_coex_info()
3376 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_BUSY, &wifi_busy); ex_halbtc8192e2ant_display_coex_info()
3377 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_TRAFFIC_DIRECTION, ex_halbtc8192e2ant_display_coex_info()
3389 ((btcoexist->bt_info.bt_disabled) ? ("disabled") : ex_halbtc8192e2ant_display_coex_info()
3402 btcoexist->btc_disp_dbg_msg(btcoexist, BTC_DBG_DISP_BT_LINK_INFO); ex_halbtc8192e2ant_display_coex_info()
3431 btcoexist->btc_disp_dbg_msg(btcoexist, BTC_DBG_DISP_FW_PWR_MODE_CMD); ex_halbtc8192e2ant_display_coex_info()
3448 btcoexist->bt_info.ra_mask); ex_halbtc8192e2ant_display_coex_info()
3478 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x430); ex_halbtc8192e2ant_display_coex_info()
3479 u32tmp[1] = btcoexist->btc_read_4byte(btcoexist, 0x434); ex_halbtc8192e2ant_display_coex_info()
3480 u16tmp[0] = btcoexist->btc_read_2byte(btcoexist, 0x42a); ex_halbtc8192e2ant_display_coex_info()
3481 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x456); ex_halbtc8192e2ant_display_coex_info()
3486 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0xc04); ex_halbtc8192e2ant_display_coex_info()
3487 u32tmp[1] = btcoexist->btc_read_4byte(btcoexist, 0xd04); ex_halbtc8192e2ant_display_coex_info()
3488 u32tmp[2] = btcoexist->btc_read_4byte(btcoexist, 0x90c); ex_halbtc8192e2ant_display_coex_info()
3492 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x778); ex_halbtc8192e2ant_display_coex_info()
3496 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x92c); ex_halbtc8192e2ant_display_coex_info()
3497 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x930); ex_halbtc8192e2ant_display_coex_info()
3501 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x40); ex_halbtc8192e2ant_display_coex_info()
3502 u8tmp[1] = btcoexist->btc_read_1byte(btcoexist, 0x4f); ex_halbtc8192e2ant_display_coex_info()
3506 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x550); ex_halbtc8192e2ant_display_coex_info()
3507 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x522); ex_halbtc8192e2ant_display_coex_info()
3511 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0xc50); ex_halbtc8192e2ant_display_coex_info()
3515 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x6c0); ex_halbtc8192e2ant_display_coex_info()
3516 u32tmp[1] = btcoexist->btc_read_4byte(btcoexist, 0x6c4); ex_halbtc8192e2ant_display_coex_info()
3517 u32tmp[2] = btcoexist->btc_read_4byte(btcoexist, 0x6c8); ex_halbtc8192e2ant_display_coex_info()
3518 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x6cc); ex_halbtc8192e2ant_display_coex_info()
3531 halbtc8192e2ant_monitor_bt_ctr(btcoexist); ex_halbtc8192e2ant_display_coex_info()
3533 btcoexist->btc_disp_dbg_msg(btcoexist, BTC_DBG_DISP_COEX_STATISTICS); ex_halbtc8192e2ant_display_coex_info()
3536 void ex_halbtc8192e2ant_ips_notify(struct btc_coexist *btcoexist, u8 type) ex_halbtc8192e2ant_ips_notify() argument
3542 halbtc8192e2ant_coex_alloff(btcoexist); ex_halbtc8192e2ant_ips_notify()
3550 void ex_halbtc8192e2ant_lps_notify(struct btc_coexist *btcoexist, u8 type) ex_halbtc8192e2ant_lps_notify() argument
3563 void ex_halbtc8192e2ant_scan_notify(struct btc_coexist *btcoexist, u8 type) ex_halbtc8192e2ant_scan_notify() argument
3573 void ex_halbtc8192e2ant_connect_notify(struct btc_coexist *btcoexist, u8 type) ex_halbtc8192e2ant_connect_notify() argument
3583 void ex_halbtc8192e2ant_media_status_notify(struct btc_coexist *btcoexist, ex_halbtc8192e2ant_media_status_notify() argument
3590 if (btcoexist->manual_control || ex_halbtc8192e2ant_media_status_notify()
3591 btcoexist->stop_coex_dm || ex_halbtc8192e2ant_media_status_notify()
3592 btcoexist->bt_info.bt_disabled) ex_halbtc8192e2ant_media_status_notify()
3603 btcoexist->btc_get(btcoexist, BTC_GET_U1_WIFI_CENTRAL_CHNL, ex_halbtc8192e2ant_media_status_notify()
3609 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); ex_halbtc8192e2ant_media_status_notify()
3625 btcoexist->btc_fill_h2c(btcoexist, 0x66, 3, h2c_parameter); ex_halbtc8192e2ant_media_status_notify()
3628 void ex_halbtc8192e2ant_special_packet_notify(struct btc_coexist *btcoexist, ex_halbtc8192e2ant_special_packet_notify() argument
3636 void ex_halbtc8192e2ant_bt_info_notify(struct btc_coexist *btcoexist, ex_halbtc8192e2ant_bt_info_notify() argument
3682 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_CONNECTED, ex_halbtc8192e2ant_bt_info_notify()
3686 btcoexist, ex_halbtc8192e2ant_bt_info_notify()
3690 btcoexist, ex_halbtc8192e2ant_bt_info_notify()
3695 if (!btcoexist->manual_control && ex_halbtc8192e2ant_bt_info_notify()
3696 !btcoexist->stop_coex_dm) { ex_halbtc8192e2ant_bt_info_notify()
3699 halbtc8192e2ant_IgnoreWlanAct(btcoexist, ex_halbtc8192e2ant_bt_info_notify()
3713 halbtc8192e2ant_bt_autoreport(btcoexist, FORCE_EXEC, ex_halbtc8192e2ant_bt_info_notify()
3752 halbtc8192e2ant_update_btlink_info(btcoexist); ex_halbtc8192e2ant_bt_info_notify()
3787 btcoexist->btc_set(btcoexist, BTC_SET_BL_BT_TRAFFIC_BUSY, &bt_busy); ex_halbtc8192e2ant_bt_info_notify()
3790 btcoexist->btc_set(btcoexist, BTC_SET_BL_BT_LIMITED_DIG, &limited_dig); ex_halbtc8192e2ant_bt_info_notify()
3792 halbtc8192e2ant_run_coexist_mechanism(btcoexist); ex_halbtc8192e2ant_bt_info_notify()
3795 void ex_halbtc8192e2ant_stack_operation_notify(struct btc_coexist *btcoexist, ex_halbtc8192e2ant_stack_operation_notify() argument
3800 void ex_halbtc8192e2ant_halt_notify(struct btc_coexist *btcoexist) ex_halbtc8192e2ant_halt_notify() argument
3804 halbtc8192e2ant_IgnoreWlanAct(btcoexist, FORCE_EXEC, true); ex_halbtc8192e2ant_halt_notify()
3805 ex_halbtc8192e2ant_media_status_notify(btcoexist, BTC_MEDIA_DISCONNECT); ex_halbtc8192e2ant_halt_notify()
3808 void ex_halbtc8192e2ant_periodical(struct btc_coexist *btcoexist) ex_halbtc8192e2ant_periodical() argument
3812 struct btc_board_info *board_info = &btcoexist->board_info; ex_halbtc8192e2ant_periodical()
3813 struct btc_stack_info *stack_info = &btcoexist->stack_info; ex_halbtc8192e2ant_periodical()
3829 btcoexist->btc_get(btcoexist, BTC_GET_U4_BT_PATCH_VER, ex_halbtc8192e2ant_periodical()
3831 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_FW_VER, &fw_ver); ex_halbtc8192e2ant_periodical()
3841 halbtc8192e2ant_querybt_info(btcoexist); ex_halbtc8192e2ant_periodical()
3842 halbtc8192e2ant_monitor_bt_ctr(btcoexist); ex_halbtc8192e2ant_periodical()
3843 btc8192e2ant_monitor_bt_enable_dis(btcoexist); ex_halbtc8192e2ant_periodical()
3845 if (halbtc8192e2ant_iswifi_status_changed(btcoexist) || ex_halbtc8192e2ant_periodical()
3847 halbtc8192e2ant_run_coexist_mechanism(btcoexist); ex_halbtc8192e2ant_periodical()
H A Dhalbtc8723b2ant.c159 static u8 btc8723b2ant_wifi_rssi_state(struct btc_coexist *btcoexist, btc8723b2ant_wifi_rssi_state() argument
166 btcoexist->btc_get(btcoexist, BTC_GET_S4_WIFI_RSSI, &wifi_rssi); btc8723b2ant_wifi_rssi_state()
273 static void btc8723b2ant_monitor_bt_ctr(struct btc_coexist *btcoexist) btc8723b2ant_monitor_bt_ctr() argument
282 u32tmp = btcoexist->btc_read_4byte(btcoexist, reg_hp_txrx); btc8723b2ant_monitor_bt_ctr()
286 u32tmp = btcoexist->btc_read_4byte(btcoexist, reg_lp_txrx); btc8723b2ant_monitor_bt_ctr()
303 btcoexist->btc_write_1byte(btcoexist, 0x76e, 0xc); btc8723b2ant_monitor_bt_ctr()
306 static void btc8723b2ant_query_bt_info(struct btc_coexist *btcoexist) btc8723b2ant_query_bt_info() argument
318 btcoexist->btc_fill_h2c(btcoexist, 0x61, 1, h2c_parameter); btc8723b2ant_query_bt_info()
321 static bool btc8723b2ant_is_wifi_status_changed(struct btc_coexist *btcoexist) btc8723b2ant_is_wifi_status_changed() argument
329 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_CONNECTED, btc8723b2ant_is_wifi_status_changed()
331 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_BUSY, &wifi_busy); btc8723b2ant_is_wifi_status_changed()
332 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); btc8723b2ant_is_wifi_status_changed()
333 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_4_WAY_PROGRESS, btc8723b2ant_is_wifi_status_changed()
356 static void btc8723b2ant_update_bt_link_info(struct btc_coexist *btcoexist) btc8723b2ant_update_bt_link_info() argument
358 /*struct btc_stack_info *stack_info = &btcoexist->stack_info;*/ btc8723b2ant_update_bt_link_info()
359 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; btc8723b2ant_update_bt_link_info()
363 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); btc8723b2ant_update_bt_link_info()
420 static u8 btc8723b2ant_action_algorithm(struct btc_coexist *btcoexist) btc8723b2ant_action_algorithm() argument
422 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; btc8723b2ant_action_algorithm()
427 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); btc8723b2ant_action_algorithm()
607 static bool btc8723b_need_dec_pwr(struct btc_coexist *btcoexist) btc8723b_need_dec_pwr() argument
614 if (!btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on)) btc8723b_need_dec_pwr()
616 if (!btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_CONNECTED, btc8723b_need_dec_pwr()
619 if (!btcoexist->btc_get(btcoexist, BTC_GET_S4_HS_RSSI, &bt_hs_rssi)) btc8723b_need_dec_pwr()
646 static void btc8723b2ant_set_fw_dac_swing_level(struct btc_coexist *btcoexist, btc8723b2ant_set_fw_dac_swing_level() argument
661 btcoexist->btc_fill_h2c(btcoexist, 0x64, 1, h2c_parameter); btc8723b2ant_set_fw_dac_swing_level()
664 static void btc8723b2ant_set_fw_dec_bt_pwr(struct btc_coexist *btcoexist, btc8723b2ant_set_fw_dec_bt_pwr() argument
678 btcoexist->btc_fill_h2c(btcoexist, 0x62, 1, h2c_parameter); btc8723b2ant_set_fw_dec_bt_pwr()
681 static void btc8723b2ant_dec_bt_pwr(struct btc_coexist *btcoexist, btc8723b2ant_dec_bt_pwr() argument
697 btc8723b2ant_set_fw_dec_bt_pwr(btcoexist, coex_dm->cur_dec_bt_pwr); btc8723b2ant_dec_bt_pwr()
702 static void btc8723b2ant_fw_dac_swing_lvl(struct btc_coexist *btcoexist, btc8723b2ant_fw_dac_swing_lvl() argument
722 btc8723b2ant_set_fw_dac_swing_level(btcoexist, btc8723b2ant_fw_dac_swing_lvl()
727 static void btc8723b2ant_set_sw_rf_rx_lpf_corner(struct btc_coexist *btcoexist, btc8723b2ant_set_sw_rf_rx_lpf_corner() argument
734 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x1e, btc8723b2ant_set_sw_rf_rx_lpf_corner()
739 if (btcoexist->initilized) { btc8723b2ant_set_sw_rf_rx_lpf_corner()
742 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x1e, btc8723b2ant_set_sw_rf_rx_lpf_corner()
749 static void btc8723b2ant_rf_shrink(struct btc_coexist *btcoexist, btc8723b2ant_rf_shrink() argument
769 btc8723b2ant_set_sw_rf_rx_lpf_corner(btcoexist, btc8723b2ant_rf_shrink()
775 static void btc8723b_set_penalty_txrate(struct btc_coexist *btcoexist, btc8723b_set_penalty_txrate() argument
795 btcoexist->btc_fill_h2c(btcoexist, 0x69, 6, h2c_parameter); btc8723b_set_penalty_txrate()
798 static void btc8723b2ant_low_penalty_ra(struct btc_coexist *btcoexist, btc8723b2ant_low_penalty_ra() argument
818 btc8723b_set_penalty_txrate(btcoexist, coex_dm->cur_low_penalty_ra); btc8723b2ant_low_penalty_ra()
823 static void btc8723b2ant_set_dac_swing_reg(struct btc_coexist *btcoexist, btc8723b2ant_set_dac_swing_reg() argument
829 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x883, 0x3e, val); btc8723b2ant_set_dac_swing_reg()
842 static void btc8723b2ant_dac_swing(struct btc_coexist *btcoexist, btc8723b2ant_dac_swing() argument
866 btc8723b2ant_set_sw_fulltime_dac_swing(btcoexist, dac_swing_on, btc8723b2ant_dac_swing()
873 static void btc8723b2ant_set_agc_table(struct btc_coexist *btcoexist, btc8723b2ant_set_agc_table() argument
882 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0x6e1A0001); btc8723b2ant_set_agc_table()
883 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0x6d1B0001); btc8723b2ant_set_agc_table()
884 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0x6c1C0001); btc8723b2ant_set_agc_table()
885 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0x6b1D0001); btc8723b2ant_set_agc_table()
886 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0x6a1E0001); btc8723b2ant_set_agc_table()
887 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0x691F0001); btc8723b2ant_set_agc_table()
888 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0x68200001); btc8723b2ant_set_agc_table()
892 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0xaa1A0001); btc8723b2ant_set_agc_table()
893 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0xa91B0001); btc8723b2ant_set_agc_table()
894 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0xa81C0001); btc8723b2ant_set_agc_table()
895 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0xa71D0001); btc8723b2ant_set_agc_table()
896 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0xa61E0001); btc8723b2ant_set_agc_table()
897 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0xa51F0001); btc8723b2ant_set_agc_table()
898 btcoexist->btc_write_4byte(btcoexist, 0xc78, 0xa4200001); btc8723b2ant_set_agc_table()
902 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0xef, 0xfffff, 0x02000); btc8723b2ant_set_agc_table()
906 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x3b, btc8723b2ant_set_agc_table()
908 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x3b, btc8723b2ant_set_agc_table()
913 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x3b, btc8723b2ant_set_agc_table()
915 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x3b, btc8723b2ant_set_agc_table()
918 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0xef, 0xfffff, 0x0); btc8723b2ant_set_agc_table()
920 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0xed, 0xfffff, 0x1); btc8723b2ant_set_agc_table()
925 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x40, btc8723b2ant_set_agc_table()
927 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x40, btc8723b2ant_set_agc_table()
932 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x40, btc8723b2ant_set_agc_table()
934 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x40, btc8723b2ant_set_agc_table()
937 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0xed, 0xfffff, 0x0); btc8723b2ant_set_agc_table()
942 btcoexist->btc_set(btcoexist, BTC_SET_U1_RSSI_ADJ_VAL_FOR_AGC_TABLE_ON, btc8723b2ant_set_agc_table()
946 static void btc8723b2ant_agc_table(struct btc_coexist *btcoexist, btc8723b2ant_agc_table() argument
963 btc8723b2ant_set_agc_table(btcoexist, agc_table_en); btc8723b2ant_agc_table()
968 static void btc8723b2ant_set_coex_table(struct btc_coexist *btcoexist, btc8723b2ant_set_coex_table() argument
974 btcoexist->btc_write_4byte(btcoexist, 0x6c0, val0x6c0); btc8723b2ant_set_coex_table()
978 btcoexist->btc_write_4byte(btcoexist, 0x6c4, val0x6c4); btc8723b2ant_set_coex_table()
982 btcoexist->btc_write_4byte(btcoexist, 0x6c8, val0x6c8); btc8723b2ant_set_coex_table()
986 btcoexist->btc_write_1byte(btcoexist, 0x6cc, val0x6cc); btc8723b2ant_set_coex_table()
989 static void btc8723b2ant_coex_table(struct btc_coexist *btcoexist, btc8723b2ant_coex_table() argument
1024 btc8723b2ant_set_coex_table(btcoexist, val0x6c0, val0x6c4, btc8723b2ant_coex_table()
1033 static void btc8723b_coex_tbl_type(struct btc_coexist *btcoexist, btc8723b_coex_tbl_type() argument
1038 btc8723b2ant_coex_table(btcoexist, force_exec, 0x55555555, btc8723b_coex_tbl_type()
1042 btc8723b2ant_coex_table(btcoexist, force_exec, 0x55555555, btc8723b_coex_tbl_type()
1046 btc8723b2ant_coex_table(btcoexist, force_exec, 0x5a5a5a5a, btc8723b_coex_tbl_type()
1050 btc8723b2ant_coex_table(btcoexist, force_exec, 0xaaaaaaaa, btc8723b_coex_tbl_type()
1054 btc8723b2ant_coex_table(btcoexist, force_exec, 0xffffffff, btc8723b_coex_tbl_type()
1058 btc8723b2ant_coex_table(btcoexist, force_exec, 0x5fff5fff, btc8723b_coex_tbl_type()
1062 btc8723b2ant_coex_table(btcoexist, force_exec, 0x55ff55ff, btc8723b_coex_tbl_type()
1066 btc8723b2ant_coex_table(btcoexist, force_exec, 0x55ff55ff, btc8723b_coex_tbl_type()
1070 btc8723b2ant_coex_table(btcoexist, force_exec, 0x5aea5aea, btc8723b_coex_tbl_type()
1074 btc8723b2ant_coex_table(btcoexist, force_exec, 0x55ff55ff, btc8723b_coex_tbl_type()
1078 btc8723b2ant_coex_table(btcoexist, force_exec, 0x55ff55ff, btc8723b_coex_tbl_type()
1082 btc8723b2ant_coex_table(btcoexist, force_exec, 0x55ff55ff, btc8723b_coex_tbl_type()
1086 btc8723b2ant_coex_table(btcoexist, force_exec, 0x55ff55ff, btc8723b_coex_tbl_type()
1094 static void btc8723b2ant_set_fw_ignore_wlan_act(struct btc_coexist *btcoexist, btc8723b2ant_set_fw_ignore_wlan_act() argument
1106 btcoexist->btc_fill_h2c(btcoexist, 0x63, 1, h2c_parameter); btc8723b2ant_set_fw_ignore_wlan_act()
1109 static void btc8723b2ant_ignore_wlan_act(struct btc_coexist *btcoexist, btc8723b2ant_ignore_wlan_act() argument
1128 btc8723b2ant_set_fw_ignore_wlan_act(btcoexist, enable); btc8723b2ant_ignore_wlan_act()
1133 static void btc8723b2ant_set_fw_ps_tdma(struct btc_coexist *btcoexist, u8 byte1, btc8723b2ant_set_fw_ps_tdma() argument
1156 btcoexist->btc_fill_h2c(btcoexist, 0x60, 5, h2c_parameter); btc8723b2ant_set_fw_ps_tdma()
1159 static void btc8723b2ant_sw_mechanism1(struct btc_coexist *btcoexist, btc8723b2ant_sw_mechanism1() argument
1163 btc8723b2ant_rf_shrink(btcoexist, NORMAL_EXEC, shrink_rx_lpf); btc8723b2ant_sw_mechanism1()
1164 btc8723b2ant_low_penalty_ra(btcoexist, NORMAL_EXEC, low_penalty_ra); btc8723b2ant_sw_mechanism1()
1167 static void btc8723b2ant_sw_mechanism2(struct btc_coexist *btcoexist, btc8723b2ant_sw_mechanism2() argument
1171 btc8723b2ant_agc_table(btcoexist, NORMAL_EXEC, agc_table_shift); btc8723b2ant_sw_mechanism2()
1172 btc8723b2ant_dac_swing(btcoexist, NORMAL_EXEC, sw_dac_swing, btc8723b2ant_sw_mechanism2()
1176 static void btc8723b2ant_set_ant_path(struct btc_coexist *btcoexist, btc8723b2ant_set_ant_path() argument
1180 struct btc_board_info *board_info = &btcoexist->board_info; btc8723b2ant_set_ant_path()
1186 btcoexist->btc_get(btcoexist, BTC_GET_BL_EXT_SWITCH, &pg_ext_switch); btc8723b2ant_set_ant_path()
1187 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_FW_VER, &fw_ver); btc8723b2ant_set_ant_path()
1194 u32tmp = btcoexist->btc_read_4byte(btcoexist, 0x4c); btc8723b2ant_set_ant_path()
1197 btcoexist->btc_write_4byte(btcoexist, 0x4c, u32tmp); btc8723b2ant_set_ant_path()
1199 btcoexist->btc_write_1byte(btcoexist, 0x974, 0xff); btc8723b2ant_set_ant_path()
1200 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x944, 0x3, 0x3); btc8723b2ant_set_ant_path()
1201 btcoexist->btc_write_1byte(btcoexist, 0x930, 0x77); btc8723b2ant_set_ant_path()
1202 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x67, 0x20, 0x1); btc8723b2ant_set_ant_path()
1205 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x765, 0x18, 0x0); btc8723b2ant_set_ant_path()
1211 btcoexist->btc_fill_h2c(btcoexist, 0x65, 2, btc8723b2ant_set_ant_path()
1213 btcoexist->btc_write_2byte(btcoexist, 0x948, 0x0); btc8723b2ant_set_ant_path()
1218 btcoexist->btc_fill_h2c(btcoexist, 0x65, 2, btc8723b2ant_set_ant_path()
1220 btcoexist->btc_write_2byte(btcoexist, 0x948, 0x280); btc8723b2ant_set_ant_path()
1228 btcoexist->btc_write_2byte(btcoexist, 0x948, 0x0); btc8723b2ant_set_ant_path()
1230 btcoexist->btc_write_2byte(btcoexist, 0x948, 0x280); btc8723b2ant_set_ant_path()
1235 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x92c, btc8723b2ant_set_ant_path()
1240 btcoexist->btc_write_1byte_bitmask(btcoexist, btc8723b2ant_set_ant_path()
1246 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x92c, 0x3, 0x1); btc8723b2ant_set_ant_path()
1250 btcoexist->btc_write_2byte(btcoexist, 0x948, 0x0); btc8723b2ant_set_ant_path()
1254 btcoexist->btc_write_2byte(btcoexist, 0x948, 0x280); btc8723b2ant_set_ant_path()
1260 static void btc8723b2ant_ps_tdma(struct btc_coexist *btcoexist, bool force_exec, btc8723b2ant_ps_tdma() argument
1286 btc8723b2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x1a, btc8723b2ant_ps_tdma()
1290 btc8723b2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x12, btc8723b2ant_ps_tdma()
1296 * btc8723b2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x1c, btc8723b2ant_ps_tdma()
1301 btc8723b2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x10, btc8723b2ant_ps_tdma()
1305 btc8723b2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x1a, btc8723b2ant_ps_tdma()
1309 btc8723b2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x12, btc8723b2ant_ps_tdma()
1313 btc8723b2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x1c, btc8723b2ant_ps_tdma()
1317 btc8723b2ant_set_fw_ps_tdma(btcoexist, 0xa3, 0x10, btc8723b2ant_ps_tdma()
1321 btc8723b2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x1a, btc8723b2ant_ps_tdma()
1325 btc8723b2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x12, btc8723b2ant_ps_tdma()
1329 btc8723b2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0xa, btc8723b2ant_ps_tdma()
1333 btc8723b2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x5, btc8723b2ant_ps_tdma()
1337 btc8723b2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x1a, btc8723b2ant_ps_tdma()
1341 btc8723b2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x12, btc8723b2ant_ps_tdma()
1345 btc8723b2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0xa, btc8723b2ant_ps_tdma()
1349 btc8723b2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x5, btc8723b2ant_ps_tdma()
1353 btc8723b2ant_set_fw_ps_tdma(btcoexist, 0xa3, 0x2f, btc8723b2ant_ps_tdma()
1357 btc8723b2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x5, btc8723b2ant_ps_tdma()
1361 btc8723b2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x25, btc8723b2ant_ps_tdma()
1365 btc8723b2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x25, btc8723b2ant_ps_tdma()
1369 btc8723b2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x15, btc8723b2ant_ps_tdma()
1373 btc8723b2ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x1a, btc8723b2ant_ps_tdma()
1381 btc8723b2ant_set_fw_ps_tdma(btcoexist, 0x0, 0x0, 0x0, btc8723b2ant_ps_tdma()
1385 btc8723b2ant_set_fw_ps_tdma(btcoexist, 0x0, 0x0, 0x0, btc8723b2ant_ps_tdma()
1389 btc8723b2ant_set_fw_ps_tdma(btcoexist, 0x0, 0x0, 0x0, btc8723b2ant_ps_tdma()
1400 static void btc8723b2ant_coex_alloff(struct btc_coexist *btcoexist) btc8723b2ant_coex_alloff() argument
1403 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 1); btc8723b2ant_coex_alloff()
1404 btc8723b2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); btc8723b2ant_coex_alloff()
1405 btc8723b2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); btc8723b2ant_coex_alloff()
1408 btc8723b2ant_sw_mechanism1(btcoexist, false, false, false, false); btc8723b2ant_coex_alloff()
1409 btc8723b2ant_sw_mechanism2(btcoexist, false, false, false, 0x18); btc8723b2ant_coex_alloff()
1412 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x1, 0xfffff, 0x0); btc8723b2ant_coex_alloff()
1413 btc8723b_coex_tbl_type(btcoexist, NORMAL_EXEC, 0); btc8723b2ant_coex_alloff()
1416 static void btc8723b2ant_init_coex_dm(struct btc_coexist *btcoexist) btc8723b2ant_init_coex_dm() argument
1420 btc8723b2ant_ps_tdma(btcoexist, FORCE_EXEC, false, 1); btc8723b2ant_init_coex_dm()
1421 btc8723b2ant_fw_dac_swing_lvl(btcoexist, FORCE_EXEC, 6); btc8723b2ant_init_coex_dm()
1422 btc8723b2ant_dec_bt_pwr(btcoexist, FORCE_EXEC, false); btc8723b2ant_init_coex_dm()
1424 btc8723b2ant_sw_mechanism1(btcoexist, false, false, false, false); btc8723b2ant_init_coex_dm()
1425 btc8723b2ant_sw_mechanism2(btcoexist, false, false, false, 0x18); btc8723b2ant_init_coex_dm()
1428 static void btc8723b2ant_action_bt_inquiry(struct btc_coexist *btcoexist) btc8723b2ant_action_bt_inquiry() argument
1433 btcoexist->btc_set(btcoexist, BTC_SET_ACT_DISABLE_LOW_POWER, btc8723b2ant_action_bt_inquiry()
1435 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_CONNECTED, btc8723b2ant_action_bt_inquiry()
1439 btc8723b_coex_tbl_type(btcoexist, NORMAL_EXEC, 7); btc8723b2ant_action_bt_inquiry()
1440 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 3); btc8723b2ant_action_bt_inquiry()
1442 btc8723b_coex_tbl_type(btcoexist, NORMAL_EXEC, 0); btc8723b2ant_action_bt_inquiry()
1443 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 1); btc8723b2ant_action_bt_inquiry()
1445 btc8723b2ant_fw_dac_swing_lvl(btcoexist, FORCE_EXEC, 6); btc8723b2ant_action_bt_inquiry()
1446 btc8723b2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); btc8723b2ant_action_bt_inquiry()
1448 btc8723b2ant_sw_mechanism1(btcoexist, false, false, false, false); btc8723b2ant_action_bt_inquiry()
1449 btc8723b2ant_sw_mechanism2(btcoexist, false, false, false, 0x18); btc8723b2ant_action_bt_inquiry()
1452 coex_dm->backup_0x948 = btcoexist->btc_read_2byte(btcoexist, 0x948); btc8723b2ant_action_bt_inquiry()
1454 btc8723b2ant_set_ant_path(btcoexist, BTC_ANT_WIFI_AT_AUX, btc8723b2ant_action_bt_inquiry()
1458 static bool btc8723b2ant_is_common_action(struct btc_coexist *btcoexist) btc8723b2ant_is_common_action() argument
1464 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); btc8723b2ant_is_common_action()
1465 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_CONNECTED, btc8723b2ant_is_common_action()
1467 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_BUSY, &wifi_busy); btc8723b2ant_is_common_action()
1471 btcoexist->btc_set(btcoexist, BTC_SET_ACT_DISABLE_LOW_POWER, btc8723b2ant_is_common_action()
1477 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x1, 0xfffff, btc8723b2ant_is_common_action()
1479 btc8723b_coex_tbl_type(btcoexist, NORMAL_EXEC, 0); btc8723b2ant_is_common_action()
1480 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 1); btc8723b2ant_is_common_action()
1481 btc8723b2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); btc8723b2ant_is_common_action()
1482 btc8723b2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); btc8723b2ant_is_common_action()
1484 btc8723b2ant_sw_mechanism1(btcoexist, false, false, false, btc8723b2ant_is_common_action()
1486 btc8723b2ant_sw_mechanism2(btcoexist, false, false, false, btc8723b2ant_is_common_action()
1494 btcoexist->btc_set(btcoexist, btc8723b2ant_is_common_action()
1502 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x1, btc8723b2ant_is_common_action()
1504 btc8723b_coex_tbl_type(btcoexist, NORMAL_EXEC, 0); btc8723b2ant_is_common_action()
1505 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 1); btc8723b2ant_is_common_action()
1506 btc8723b2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, btc8723b2ant_is_common_action()
1508 btc8723b2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, btc8723b2ant_is_common_action()
1511 btc8723b2ant_sw_mechanism1(btcoexist, false, false, btc8723b2ant_is_common_action()
1513 btc8723b2ant_sw_mechanism2(btcoexist, false, false, btc8723b2ant_is_common_action()
1520 btcoexist->btc_set(btcoexist, btc8723b2ant_is_common_action()
1530 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x1, btc8723b2ant_is_common_action()
1532 btc8723b_coex_tbl_type(btcoexist, NORMAL_EXEC, 0); btc8723b2ant_is_common_action()
1533 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 1); btc8723b2ant_is_common_action()
1534 btc8723b2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, btc8723b2ant_is_common_action()
1536 btc8723b2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, btc8723b2ant_is_common_action()
1539 btc8723b2ant_sw_mechanism1(btcoexist, true, false, btc8723b2ant_is_common_action()
1541 btc8723b2ant_sw_mechanism2(btcoexist, false, false, btc8723b2ant_is_common_action()
1547 btcoexist->btc_set(btcoexist, btc8723b2ant_is_common_action()
1564 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, btc8723b2ant_is_common_action()
1566 btc8723b_coex_tbl_type(btcoexist, NORMAL_EXEC, btc8723b2ant_is_common_action()
1568 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8723b2ant_is_common_action()
1570 btc8723b2ant_fw_dac_swing_lvl(btcoexist, btc8723b2ant_is_common_action()
1573 if (btc8723b_need_dec_pwr(btcoexist)) btc8723b2ant_is_common_action()
1574 btc8723b2ant_dec_bt_pwr(btcoexist, btc8723b2ant_is_common_action()
1578 btc8723b2ant_dec_bt_pwr(btcoexist, btc8723b2ant_is_common_action()
1581 btc8723b2ant_sw_mechanism1(btcoexist, false, btc8723b2ant_is_common_action()
1584 btc8723b2ant_sw_mechanism2(btcoexist, false, btc8723b2ant_is_common_action()
1595 static void set_tdma_int1(struct btc_coexist *btcoexist, bool tx_pause, set_tdma_int1() argument
1605 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int1()
1609 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int1()
1613 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int1()
1617 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int1()
1621 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int1()
1627 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int1()
1631 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int1()
1635 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int1()
1639 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int1()
1646 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int1()
1650 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int1()
1654 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int1()
1658 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int1()
1662 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int1()
1666 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int1()
1672 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int1()
1676 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int1()
1680 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int1()
1684 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int1()
1688 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int1()
1692 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int1()
1702 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 71); set_tdma_int1()
1705 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 2); set_tdma_int1()
1708 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 3); set_tdma_int1()
1711 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 4); set_tdma_int1()
1716 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 9); set_tdma_int1()
1719 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 10); set_tdma_int1()
1722 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 11); set_tdma_int1()
1725 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 12); set_tdma_int1()
1731 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int1()
1735 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int1()
1739 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int1()
1743 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int1()
1747 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int1()
1751 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int1()
1755 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int1()
1761 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int1()
1765 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int1()
1769 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int1()
1773 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int1()
1777 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int1()
1781 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int1()
1785 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int1()
1793 static void set_tdma_int2(struct btc_coexist *btcoexist, bool tx_pause, set_tdma_int2() argument
1802 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 6); set_tdma_int2()
1805 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 6); set_tdma_int2()
1808 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 7); set_tdma_int2()
1811 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 8); set_tdma_int2()
1815 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 14); set_tdma_int2()
1818 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 14); set_tdma_int2()
1821 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 15); set_tdma_int2()
1824 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 16); set_tdma_int2()
1829 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int2()
1833 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int2()
1837 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int2()
1841 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int2()
1845 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int2()
1849 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int2()
1855 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int2()
1859 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int2()
1863 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int2()
1867 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int2()
1871 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int2()
1875 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int2()
1885 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 2); set_tdma_int2()
1888 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 2); set_tdma_int2()
1891 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 3); set_tdma_int2()
1894 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 4); set_tdma_int2()
1898 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 10); set_tdma_int2()
1901 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 10); set_tdma_int2()
1904 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 11); set_tdma_int2()
1907 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 12); set_tdma_int2()
1912 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int2()
1916 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int2()
1920 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int2()
1924 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int2()
1928 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int2()
1932 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int2()
1938 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int2()
1942 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int2()
1946 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int2()
1950 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int2()
1954 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int2()
1958 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int2()
1966 static void set_tdma_int3(struct btc_coexist *btcoexist, bool tx_pause, set_tdma_int3() argument
1975 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 7); set_tdma_int3()
1978 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 7); set_tdma_int3()
1981 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 7); set_tdma_int3()
1984 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 8); set_tdma_int3()
1988 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 15); set_tdma_int3()
1991 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 15); set_tdma_int3()
1994 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 15); set_tdma_int3()
1997 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 16); set_tdma_int3()
2002 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int3()
2006 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int3()
2010 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int3()
2014 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int3()
2018 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int3()
2022 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int3()
2028 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int3()
2032 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int3()
2036 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int3()
2040 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int3()
2044 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int3()
2048 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int3()
2058 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 3); set_tdma_int3()
2061 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 3); set_tdma_int3()
2064 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 3); set_tdma_int3()
2067 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 4); set_tdma_int3()
2071 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 11); set_tdma_int3()
2074 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 11); set_tdma_int3()
2077 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 11); set_tdma_int3()
2080 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 12); set_tdma_int3()
2085 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int3()
2089 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int3()
2093 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int3()
2097 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int3()
2101 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int3()
2105 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int3()
2111 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int3()
2115 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int3()
2119 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int3()
2123 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int3()
2127 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int3()
2131 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, set_tdma_int3()
2139 static void btc8723b2ant_tdma_duration_adjust(struct btc_coexist *btcoexist, btc8723b2ant_tdma_duration_adjust() argument
2158 btc8723b2ant_ps_tdma(btcoexist, btc8723b2ant_tdma_duration_adjust()
2163 btc8723b2ant_ps_tdma(btcoexist, btc8723b2ant_tdma_duration_adjust()
2168 btc8723b2ant_ps_tdma(btcoexist, btc8723b2ant_tdma_duration_adjust()
2173 btc8723b2ant_ps_tdma(btcoexist, btc8723b2ant_tdma_duration_adjust()
2180 btc8723b2ant_ps_tdma(btcoexist, btc8723b2ant_tdma_duration_adjust()
2185 btc8723b2ant_ps_tdma(btcoexist, btc8723b2ant_tdma_duration_adjust()
2190 btc8723b2ant_ps_tdma(btcoexist, btc8723b2ant_tdma_duration_adjust()
2195 btc8723b2ant_ps_tdma(btcoexist, btc8723b2ant_tdma_duration_adjust()
2204 btc8723b2ant_ps_tdma(btcoexist, btc8723b2ant_tdma_duration_adjust()
2209 btc8723b2ant_ps_tdma(btcoexist, btc8723b2ant_tdma_duration_adjust()
2214 btc8723b2ant_ps_tdma(btcoexist, btc8723b2ant_tdma_duration_adjust()
2219 btc8723b2ant_ps_tdma(btcoexist, btc8723b2ant_tdma_duration_adjust()
2226 btc8723b2ant_ps_tdma(btcoexist, btc8723b2ant_tdma_duration_adjust()
2231 btc8723b2ant_ps_tdma(btcoexist, btc8723b2ant_tdma_duration_adjust()
2236 btc8723b2ant_ps_tdma(btcoexist, btc8723b2ant_tdma_duration_adjust()
2241 btc8723b2ant_ps_tdma(btcoexist, btc8723b2ant_tdma_duration_adjust()
2332 set_tdma_int1(btcoexist, tx_pause, result); btc8723b2ant_tdma_duration_adjust()
2334 set_tdma_int2(btcoexist, tx_pause, result); btc8723b2ant_tdma_duration_adjust()
2336 set_tdma_int3(btcoexist, tx_pause, result); btc8723b2ant_tdma_duration_adjust()
2349 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_SCAN, &scan); btc8723b2ant_tdma_duration_adjust()
2350 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link); btc8723b2ant_tdma_duration_adjust()
2351 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_ROAM, &roam); btc8723b2ant_tdma_duration_adjust()
2354 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, btc8723b2ant_tdma_duration_adjust()
2364 static void btc8723b2ant_action_sco(struct btc_coexist *btcoexist) btc8723b2ant_action_sco() argument
2369 wifi_rssi_state = btc8723b2ant_wifi_rssi_state(btcoexist, btc8723b2ant_action_sco()
2372 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x1, 0xfffff, 0x0); btc8723b2ant_action_sco()
2374 btc8723b2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 4); btc8723b2ant_action_sco()
2376 if (btc8723b_need_dec_pwr(btcoexist)) btc8723b2ant_action_sco()
2377 btc8723b2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, true); btc8723b2ant_action_sco()
2379 btc8723b2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); btc8723b2ant_action_sco()
2381 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); btc8723b2ant_action_sco()
2385 btc8723b_coex_tbl_type(btcoexist, NORMAL_EXEC, 2); btc8723b2ant_action_sco()
2387 btc8723b_coex_tbl_type(btcoexist, NORMAL_EXEC, 8); btc8723b2ant_action_sco()
2390 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 0); btc8723b2ant_action_sco()
2396 btc8723b2ant_sw_mechanism1(btcoexist, true, true, btc8723b2ant_action_sco()
2398 btc8723b2ant_sw_mechanism2(btcoexist, true, false, btc8723b2ant_action_sco()
2401 btc8723b2ant_sw_mechanism1(btcoexist, true, true, btc8723b2ant_action_sco()
2403 btc8723b2ant_sw_mechanism2(btcoexist, false, false, btc8723b2ant_action_sco()
2409 btc8723b2ant_sw_mechanism1(btcoexist, false, true, btc8723b2ant_action_sco()
2411 btc8723b2ant_sw_mechanism2(btcoexist, true, false, btc8723b2ant_action_sco()
2414 btc8723b2ant_sw_mechanism1(btcoexist, false, true, btc8723b2ant_action_sco()
2416 btc8723b2ant_sw_mechanism2(btcoexist, false, false, btc8723b2ant_action_sco()
2422 static void btc8723b2ant_action_hid(struct btc_coexist *btcoexist) btc8723b2ant_action_hid() argument
2427 wifi_rssi_state = btc8723b2ant_wifi_rssi_state(btcoexist, btc8723b2ant_action_hid()
2431 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x1, 0xfffff, 0x0); btc8723b2ant_action_hid()
2433 btc8723b2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); btc8723b2ant_action_hid()
2435 if (btc8723b_need_dec_pwr(btcoexist)) btc8723b2ant_action_hid()
2436 btc8723b2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, true); btc8723b2ant_action_hid()
2438 btc8723b2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); btc8723b2ant_action_hid()
2440 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); btc8723b2ant_action_hid()
2443 btc8723b_coex_tbl_type(btcoexist, NORMAL_EXEC, 7); btc8723b2ant_action_hid()
2445 btc8723b_coex_tbl_type(btcoexist, NORMAL_EXEC, 9); btc8723b2ant_action_hid()
2449 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 9); btc8723b2ant_action_hid()
2451 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 13); btc8723b2ant_action_hid()
2457 btc8723b2ant_sw_mechanism1(btcoexist, true, true, btc8723b2ant_action_hid()
2459 btc8723b2ant_sw_mechanism2(btcoexist, true, false, btc8723b2ant_action_hid()
2462 btc8723b2ant_sw_mechanism1(btcoexist, true, true, btc8723b2ant_action_hid()
2464 btc8723b2ant_sw_mechanism2(btcoexist, false, false, btc8723b2ant_action_hid()
2470 btc8723b2ant_sw_mechanism1(btcoexist, false, true, btc8723b2ant_action_hid()
2472 btc8723b2ant_sw_mechanism2(btcoexist, true, false, btc8723b2ant_action_hid()
2475 btc8723b2ant_sw_mechanism1(btcoexist, false, true, btc8723b2ant_action_hid()
2477 btc8723b2ant_sw_mechanism2(btcoexist, false, false, btc8723b2ant_action_hid()
2484 static void btc8723b2ant_action_a2dp(struct btc_coexist *btcoexist) btc8723b2ant_action_a2dp() argument
2490 wifi_rssi_state = btc8723b2ant_wifi_rssi_state(btcoexist, btc8723b2ant_action_a2dp()
2492 wifi_rssi_state1 = btc8723b2ant_wifi_rssi_state(btcoexist, btc8723b2ant_action_a2dp()
2496 btcoexist->btc_get(btcoexist, BTC_GET_U1_AP_NUM, &ap_num); btc8723b2ant_action_a2dp()
2501 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x1, 0xfffff, btc8723b2ant_action_a2dp()
2503 btc8723b2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); btc8723b2ant_action_a2dp()
2504 btc8723b2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); btc8723b2ant_action_a2dp()
2505 btc8723b_coex_tbl_type(btcoexist, NORMAL_EXEC, 0); btc8723b2ant_action_a2dp()
2506 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 1); btc8723b2ant_action_a2dp()
2509 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); btc8723b2ant_action_a2dp()
2511 btc8723b2ant_sw_mechanism1(btcoexist, true, false, btc8723b2ant_action_a2dp()
2513 btc8723b2ant_sw_mechanism2(btcoexist, true, false, btc8723b2ant_action_a2dp()
2516 btc8723b2ant_sw_mechanism1(btcoexist, false, false, btc8723b2ant_action_a2dp()
2518 btc8723b2ant_sw_mechanism2(btcoexist, true, false, btc8723b2ant_action_a2dp()
2524 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x1, 0xfffff, 0x0); btc8723b2ant_action_a2dp()
2526 btc8723b2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); btc8723b2ant_action_a2dp()
2528 if (btc8723b_need_dec_pwr(btcoexist)) btc8723b2ant_action_a2dp()
2529 btc8723b2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, true); btc8723b2ant_action_a2dp()
2531 btc8723b2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); btc8723b2ant_action_a2dp()
2533 btc8723b_coex_tbl_type(btcoexist, NORMAL_EXEC, 7); btc8723b2ant_action_a2dp()
2537 btc8723b2ant_tdma_duration_adjust(btcoexist, false, btc8723b2ant_action_a2dp()
2540 btc8723b2ant_tdma_duration_adjust(btcoexist, false, true, 1); btc8723b2ant_action_a2dp()
2543 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); btc8723b2ant_action_a2dp()
2547 btc8723b2ant_sw_mechanism1(btcoexist, true, false, btc8723b2ant_action_a2dp()
2549 btc8723b2ant_sw_mechanism2(btcoexist, true, false, btc8723b2ant_action_a2dp()
2552 btc8723b2ant_sw_mechanism1(btcoexist, true, false, btc8723b2ant_action_a2dp()
2554 btc8723b2ant_sw_mechanism2(btcoexist, false, false, btc8723b2ant_action_a2dp()
2560 btc8723b2ant_sw_mechanism1(btcoexist, false, false, btc8723b2ant_action_a2dp()
2562 btc8723b2ant_sw_mechanism2(btcoexist, true, false, btc8723b2ant_action_a2dp()
2565 btc8723b2ant_sw_mechanism1(btcoexist, false, false, btc8723b2ant_action_a2dp()
2567 btc8723b2ant_sw_mechanism2(btcoexist, false, false, btc8723b2ant_action_a2dp()
2573 static void btc8723b2ant_action_a2dp_pan_hs(struct btc_coexist *btcoexist) btc8723b2ant_action_a2dp_pan_hs() argument
2578 wifi_rssi_state = btc8723b2ant_wifi_rssi_state(btcoexist, btc8723b2ant_action_a2dp_pan_hs()
2581 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x1, 0xfffff, 0x0); btc8723b2ant_action_a2dp_pan_hs()
2583 btc8723b2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); btc8723b2ant_action_a2dp_pan_hs()
2585 if (btc8723b_need_dec_pwr(btcoexist)) btc8723b2ant_action_a2dp_pan_hs()
2586 btc8723b2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, true); btc8723b2ant_action_a2dp_pan_hs()
2588 btc8723b2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); btc8723b2ant_action_a2dp_pan_hs()
2590 btc8723b_coex_tbl_type(btcoexist, NORMAL_EXEC, 7); btc8723b2ant_action_a2dp_pan_hs()
2592 btc8723b2ant_tdma_duration_adjust(btcoexist, false, true, 2); btc8723b2ant_action_a2dp_pan_hs()
2595 btcoexist->btc_get(btcoexist, btc8723b2ant_action_a2dp_pan_hs()
2600 btc8723b2ant_sw_mechanism1(btcoexist, true, false, btc8723b2ant_action_a2dp_pan_hs()
2602 btc8723b2ant_sw_mechanism2(btcoexist, true, false, btc8723b2ant_action_a2dp_pan_hs()
2605 btc8723b2ant_sw_mechanism1(btcoexist, true, false, btc8723b2ant_action_a2dp_pan_hs()
2607 btc8723b2ant_sw_mechanism2(btcoexist, false, false, btc8723b2ant_action_a2dp_pan_hs()
2613 btc8723b2ant_sw_mechanism1(btcoexist, false, false, btc8723b2ant_action_a2dp_pan_hs()
2615 btc8723b2ant_sw_mechanism2(btcoexist, true, false, btc8723b2ant_action_a2dp_pan_hs()
2618 btc8723b2ant_sw_mechanism1(btcoexist, false, false, btc8723b2ant_action_a2dp_pan_hs()
2620 btc8723b2ant_sw_mechanism2(btcoexist, false, false, btc8723b2ant_action_a2dp_pan_hs()
2626 static void btc8723b2ant_action_pan_edr(struct btc_coexist *btcoexist) btc8723b2ant_action_pan_edr() argument
2631 wifi_rssi_state = btc8723b2ant_wifi_rssi_state(btcoexist, btc8723b2ant_action_pan_edr()
2635 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x1, 0xfffff, 0x0); btc8723b2ant_action_pan_edr()
2637 btc8723b2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); btc8723b2ant_action_pan_edr()
2639 if (btc8723b_need_dec_pwr(btcoexist)) btc8723b2ant_action_pan_edr()
2640 btc8723b2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, true); btc8723b2ant_action_pan_edr()
2642 btc8723b2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); btc8723b2ant_action_pan_edr()
2644 btc8723b_coex_tbl_type(btcoexist, NORMAL_EXEC, 10); btc8723b2ant_action_pan_edr()
2648 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 1); btc8723b2ant_action_pan_edr()
2650 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 5); btc8723b2ant_action_pan_edr()
2653 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); btc8723b2ant_action_pan_edr()
2657 btc8723b2ant_sw_mechanism1(btcoexist, true, false, btc8723b2ant_action_pan_edr()
2659 btc8723b2ant_sw_mechanism2(btcoexist, true, false, btc8723b2ant_action_pan_edr()
2662 btc8723b2ant_sw_mechanism1(btcoexist, true, false, btc8723b2ant_action_pan_edr()
2664 btc8723b2ant_sw_mechanism2(btcoexist, false, false, btc8723b2ant_action_pan_edr()
2670 btc8723b2ant_sw_mechanism1(btcoexist, false, false, btc8723b2ant_action_pan_edr()
2672 btc8723b2ant_sw_mechanism2(btcoexist, true, false, btc8723b2ant_action_pan_edr()
2675 btc8723b2ant_sw_mechanism1(btcoexist, false, false, btc8723b2ant_action_pan_edr()
2677 btc8723b2ant_sw_mechanism2(btcoexist, false, false, btc8723b2ant_action_pan_edr()
2684 static void btc8723b2ant_action_pan_hs(struct btc_coexist *btcoexist) btc8723b2ant_action_pan_hs() argument
2689 wifi_rssi_state = btc8723b2ant_wifi_rssi_state(btcoexist, btc8723b2ant_action_pan_hs()
2692 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x1, 0xfffff, 0x0); btc8723b2ant_action_pan_hs()
2694 btc8723b2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); btc8723b2ant_action_pan_hs()
2698 btc8723b2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, true); btc8723b2ant_action_pan_hs()
2700 btc8723b2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); btc8723b2ant_action_pan_hs()
2702 btc8723b_coex_tbl_type(btcoexist, NORMAL_EXEC, 7); btc8723b2ant_action_pan_hs()
2704 btc8723b2ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 1); btc8723b2ant_action_pan_hs()
2706 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); btc8723b2ant_action_pan_hs()
2710 btc8723b2ant_sw_mechanism1(btcoexist, true, false, btc8723b2ant_action_pan_hs()
2712 btc8723b2ant_sw_mechanism2(btcoexist, true, false, btc8723b2ant_action_pan_hs()
2715 btc8723b2ant_sw_mechanism1(btcoexist, true, false, btc8723b2ant_action_pan_hs()
2717 btc8723b2ant_sw_mechanism2(btcoexist, false, false, btc8723b2ant_action_pan_hs()
2723 btc8723b2ant_sw_mechanism1(btcoexist, false, false, btc8723b2ant_action_pan_hs()
2725 btc8723b2ant_sw_mechanism2(btcoexist, true, false, btc8723b2ant_action_pan_hs()
2728 btc8723b2ant_sw_mechanism1(btcoexist, false, false, btc8723b2ant_action_pan_hs()
2730 btc8723b2ant_sw_mechanism2(btcoexist, false, false, btc8723b2ant_action_pan_hs()
2737 static void btc8723b2ant_action_pan_edr_a2dp(struct btc_coexist *btcoexist) btc8723b2ant_action_pan_edr_a2dp() argument
2742 wifi_rssi_state = btc8723b2ant_wifi_rssi_state(btcoexist, btc8723b2ant_action_pan_edr_a2dp()
2746 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x1, 0xfffff, 0x0); btc8723b2ant_action_pan_edr_a2dp()
2748 btc8723b2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); btc8723b2ant_action_pan_edr_a2dp()
2750 if (btc8723b_need_dec_pwr(btcoexist)) btc8723b2ant_action_pan_edr_a2dp()
2751 btc8723b2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, true); btc8723b2ant_action_pan_edr_a2dp()
2753 btc8723b2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); btc8723b2ant_action_pan_edr_a2dp()
2755 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); btc8723b2ant_action_pan_edr_a2dp()
2759 btc8723b_coex_tbl_type(btcoexist, NORMAL_EXEC, 12); btc8723b2ant_action_pan_edr_a2dp()
2761 btc8723b2ant_tdma_duration_adjust(btcoexist, false, btc8723b2ant_action_pan_edr_a2dp()
2764 btc8723b2ant_tdma_duration_adjust(btcoexist, false, btc8723b2ant_action_pan_edr_a2dp()
2767 btc8723b_coex_tbl_type(btcoexist, NORMAL_EXEC, 7); btc8723b2ant_action_pan_edr_a2dp()
2768 btc8723b2ant_tdma_duration_adjust(btcoexist, false, true, 3); btc8723b2ant_action_pan_edr_a2dp()
2775 btc8723b2ant_sw_mechanism1(btcoexist, true, false, btc8723b2ant_action_pan_edr_a2dp()
2777 btc8723b2ant_sw_mechanism2(btcoexist, true, false, btc8723b2ant_action_pan_edr_a2dp()
2780 btc8723b2ant_sw_mechanism1(btcoexist, true, false, btc8723b2ant_action_pan_edr_a2dp()
2782 btc8723b2ant_sw_mechanism2(btcoexist, false, false, btc8723b2ant_action_pan_edr_a2dp()
2788 btc8723b2ant_sw_mechanism1(btcoexist, false, false, btc8723b2ant_action_pan_edr_a2dp()
2790 btc8723b2ant_sw_mechanism2(btcoexist, true, false, btc8723b2ant_action_pan_edr_a2dp()
2793 btc8723b2ant_sw_mechanism1(btcoexist, false, false, btc8723b2ant_action_pan_edr_a2dp()
2795 btc8723b2ant_sw_mechanism2(btcoexist, false, false, btc8723b2ant_action_pan_edr_a2dp()
2801 static void btc8723b2ant_action_pan_edr_hid(struct btc_coexist *btcoexist) btc8723b2ant_action_pan_edr_hid() argument
2806 wifi_rssi_state = btc8723b2ant_wifi_rssi_state(btcoexist, btc8723b2ant_action_pan_edr_hid()
2809 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); btc8723b2ant_action_pan_edr_hid()
2811 if (btc8723b_need_dec_pwr(btcoexist)) btc8723b2ant_action_pan_edr_hid()
2812 btc8723b2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, true); btc8723b2ant_action_pan_edr_hid()
2814 btc8723b2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); btc8723b2ant_action_pan_edr_hid()
2819 btc8723b2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, btc8723b2ant_action_pan_edr_hid()
2821 btc8723b_coex_tbl_type(btcoexist, NORMAL_EXEC, 11); btc8723b2ant_action_pan_edr_hid()
2822 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x1, btc8723b2ant_action_pan_edr_hid()
2825 btc8723b2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, btc8723b2ant_action_pan_edr_hid()
2827 btc8723b_coex_tbl_type(btcoexist, NORMAL_EXEC, 7); btc8723b2ant_action_pan_edr_hid()
2828 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x1, btc8723b2ant_action_pan_edr_hid()
2831 btc8723b2ant_tdma_duration_adjust(btcoexist, true, false, 2); btc8723b2ant_action_pan_edr_hid()
2833 btc8723b2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); btc8723b2ant_action_pan_edr_hid()
2834 btc8723b_coex_tbl_type(btcoexist, NORMAL_EXEC, 11); btc8723b2ant_action_pan_edr_hid()
2835 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x1, 0xfffff, btc8723b2ant_action_pan_edr_hid()
2837 btc8723b2ant_tdma_duration_adjust(btcoexist, true, true, 2); btc8723b2ant_action_pan_edr_hid()
2844 btc8723b2ant_sw_mechanism1(btcoexist, true, true, btc8723b2ant_action_pan_edr_hid()
2846 btc8723b2ant_sw_mechanism2(btcoexist, true, false, btc8723b2ant_action_pan_edr_hid()
2849 btc8723b2ant_sw_mechanism1(btcoexist, true, true, btc8723b2ant_action_pan_edr_hid()
2851 btc8723b2ant_sw_mechanism2(btcoexist, false, false, btc8723b2ant_action_pan_edr_hid()
2857 btc8723b2ant_sw_mechanism1(btcoexist, false, true, btc8723b2ant_action_pan_edr_hid()
2859 btc8723b2ant_sw_mechanism2(btcoexist, true, false, btc8723b2ant_action_pan_edr_hid()
2862 btc8723b2ant_sw_mechanism1(btcoexist, false, true, btc8723b2ant_action_pan_edr_hid()
2864 btc8723b2ant_sw_mechanism2(btcoexist, false, false, btc8723b2ant_action_pan_edr_hid()
2871 static void btc8723b2ant_action_hid_a2dp_pan_edr(struct btc_coexist *btcoexist) btc8723b2ant_action_hid_a2dp_pan_edr() argument
2876 wifi_rssi_state = btc8723b2ant_wifi_rssi_state(btcoexist, btc8723b2ant_action_hid_a2dp_pan_edr()
2880 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x1, 0xfffff, 0x0); btc8723b2ant_action_hid_a2dp_pan_edr()
2882 btc8723b2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); btc8723b2ant_action_hid_a2dp_pan_edr()
2884 if (btc8723b_need_dec_pwr(btcoexist)) btc8723b2ant_action_hid_a2dp_pan_edr()
2885 btc8723b2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, true); btc8723b2ant_action_hid_a2dp_pan_edr()
2887 btc8723b2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); btc8723b2ant_action_hid_a2dp_pan_edr()
2889 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); btc8723b2ant_action_hid_a2dp_pan_edr()
2891 btc8723b_coex_tbl_type(btcoexist, NORMAL_EXEC, 7); btc8723b2ant_action_hid_a2dp_pan_edr()
2896 btc8723b2ant_tdma_duration_adjust(btcoexist, true, btc8723b2ant_action_hid_a2dp_pan_edr()
2899 btc8723b2ant_tdma_duration_adjust(btcoexist, true, btc8723b2ant_action_hid_a2dp_pan_edr()
2902 btc8723b2ant_tdma_duration_adjust(btcoexist, true, true, 3); btc8723b2ant_action_hid_a2dp_pan_edr()
2909 btc8723b2ant_sw_mechanism1(btcoexist, true, true, btc8723b2ant_action_hid_a2dp_pan_edr()
2911 btc8723b2ant_sw_mechanism2(btcoexist, true, false, btc8723b2ant_action_hid_a2dp_pan_edr()
2914 btc8723b2ant_sw_mechanism1(btcoexist, true, true, btc8723b2ant_action_hid_a2dp_pan_edr()
2916 btc8723b2ant_sw_mechanism2(btcoexist, false, false, btc8723b2ant_action_hid_a2dp_pan_edr()
2922 btc8723b2ant_sw_mechanism1(btcoexist, false, true, btc8723b2ant_action_hid_a2dp_pan_edr()
2924 btc8723b2ant_sw_mechanism2(btcoexist, true, false, btc8723b2ant_action_hid_a2dp_pan_edr()
2927 btc8723b2ant_sw_mechanism1(btcoexist, false, true, btc8723b2ant_action_hid_a2dp_pan_edr()
2929 btc8723b2ant_sw_mechanism2(btcoexist, false, false, btc8723b2ant_action_hid_a2dp_pan_edr()
2935 static void btc8723b2ant_action_hid_a2dp(struct btc_coexist *btcoexist) btc8723b2ant_action_hid_a2dp() argument
2940 wifi_rssi_state = btc8723b2ant_wifi_rssi_state(btcoexist, btc8723b2ant_action_hid_a2dp()
2944 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x1, 0xfffff, 0x0); btc8723b2ant_action_hid_a2dp()
2946 btc8723b2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); btc8723b2ant_action_hid_a2dp()
2948 if (btc8723b_need_dec_pwr(btcoexist)) btc8723b2ant_action_hid_a2dp()
2949 btc8723b2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, true); btc8723b2ant_action_hid_a2dp()
2951 btc8723b2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); btc8723b2ant_action_hid_a2dp()
2953 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); btc8723b2ant_action_hid_a2dp()
2955 btc8723b_coex_tbl_type(btcoexist, NORMAL_EXEC, 7); btc8723b2ant_action_hid_a2dp()
2959 btc8723b2ant_tdma_duration_adjust(btcoexist, true, false, 2); btc8723b2ant_action_hid_a2dp()
2961 btc8723b2ant_tdma_duration_adjust(btcoexist, true, true, 2); btc8723b2ant_action_hid_a2dp()
2967 btc8723b2ant_sw_mechanism1(btcoexist, true, true, btc8723b2ant_action_hid_a2dp()
2969 btc8723b2ant_sw_mechanism2(btcoexist, true, false, btc8723b2ant_action_hid_a2dp()
2972 btc8723b2ant_sw_mechanism1(btcoexist, true, true, btc8723b2ant_action_hid_a2dp()
2974 btc8723b2ant_sw_mechanism2(btcoexist, false, false, btc8723b2ant_action_hid_a2dp()
2980 btc8723b2ant_sw_mechanism1(btcoexist, false, true, btc8723b2ant_action_hid_a2dp()
2982 btc8723b2ant_sw_mechanism2(btcoexist, true, false, btc8723b2ant_action_hid_a2dp()
2985 btc8723b2ant_sw_mechanism1(btcoexist, false, true, btc8723b2ant_action_hid_a2dp()
2987 btc8723b2ant_sw_mechanism2(btcoexist, false, false, btc8723b2ant_action_hid_a2dp()
2993 static void btc8723b2ant_run_coexist_mechanism(struct btc_coexist *btcoexist) btc8723b2ant_run_coexist_mechanism() argument
3000 if (btcoexist->manual_control) { btc8723b2ant_run_coexist_mechanism()
3013 algorithm = btc8723b2ant_action_algorithm(btcoexist); btc8723b2ant_run_coexist_mechanism()
3018 btc8723b2ant_action_bt_inquiry(btcoexist); btc8723b2ant_run_coexist_mechanism()
3023 btcoexist->btc_write_2byte(btcoexist, 0x948, btc8723b2ant_run_coexist_mechanism()
3032 if (btc8723b2ant_is_common_action(btcoexist)) { btc8723b2ant_run_coexist_mechanism()
3048 btc8723b2ant_action_sco(btcoexist); btc8723b2ant_run_coexist_mechanism()
3053 btc8723b2ant_action_hid(btcoexist); btc8723b2ant_run_coexist_mechanism()
3059 btc8723b2ant_action_a2dp(btcoexist); btc8723b2ant_run_coexist_mechanism()
3065 btc8723b2ant_action_a2dp_pan_hs(btcoexist); btc8723b2ant_run_coexist_mechanism()
3071 btc8723b2ant_action_pan_edr(btcoexist); btc8723b2ant_run_coexist_mechanism()
3077 btc8723b2ant_action_pan_hs(btcoexist); btc8723b2ant_run_coexist_mechanism()
3083 btc8723b2ant_action_pan_edr_a2dp(btcoexist); btc8723b2ant_run_coexist_mechanism()
3089 btc8723b2ant_action_pan_edr_hid(btcoexist); btc8723b2ant_run_coexist_mechanism()
3095 btc8723b2ant_action_hid_a2dp_pan_edr(btcoexist); btc8723b2ant_run_coexist_mechanism()
3101 btc8723b2ant_action_hid_a2dp(btcoexist); btc8723b2ant_run_coexist_mechanism()
3107 btc8723b2ant_coex_alloff(btcoexist); btc8723b2ant_run_coexist_mechanism()
3114 static void btc8723b2ant_wifioff_hwcfg(struct btc_coexist *btcoexist) btc8723b2ant_wifioff_hwcfg() argument
3117 btcoexist->btc_write_1byte(btcoexist, 0x76e, 0x4); btc8723b2ant_wifioff_hwcfg()
3119 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x765, 0x18, 0x3); btc8723b2ant_wifioff_hwcfg()
3121 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x67, 0x20, 0x0); btc8723b2ant_wifioff_hwcfg()
3130 void ex_btc8723b2ant_init_hwconfig(struct btc_coexist *btcoexist) ex_btc8723b2ant_init_hwconfig() argument
3137 btcoexist->btc_get_rf_reg(btcoexist, BTC_RF_A, 0x1e, 0xfffff); ex_btc8723b2ant_init_hwconfig()
3140 u8tmp = btcoexist->btc_read_1byte(btcoexist, 0x790); ex_btc8723b2ant_init_hwconfig()
3143 btcoexist->btc_write_1byte(btcoexist, 0x790, u8tmp); ex_btc8723b2ant_init_hwconfig()
3146 btc8723b2ant_set_ant_path(btcoexist, BTC_ANT_WIFI_AT_MAIN, ex_btc8723b2ant_init_hwconfig()
3149 btc8723b_coex_tbl_type(btcoexist, FORCE_EXEC, 0); ex_btc8723b2ant_init_hwconfig()
3153 btcoexist->btc_write_1byte(btcoexist, 0x76e, 0xc); ex_btc8723b2ant_init_hwconfig()
3154 btcoexist->btc_write_1byte(btcoexist, 0x778, 0x3); ex_btc8723b2ant_init_hwconfig()
3155 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x40, 0x20, 0x1); ex_btc8723b2ant_init_hwconfig()
3158 void ex_btc8723b2ant_init_coex_dm(struct btc_coexist *btcoexist) ex_btc8723b2ant_init_coex_dm() argument
3162 btc8723b2ant_init_coex_dm(btcoexist); ex_btc8723b2ant_init_coex_dm()
3165 void ex_btc8723b2ant_display_coex_info(struct btc_coexist *btcoexist) ex_btc8723b2ant_display_coex_info() argument
3167 struct btc_board_info *board_info = &btcoexist->board_info; ex_btc8723b2ant_display_coex_info()
3168 struct btc_stack_info *stack_info = &btcoexist->stack_info; ex_btc8723b2ant_display_coex_info()
3169 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; ex_btc8723b2ant_display_coex_info()
3170 struct rtl_priv *rtlpriv = btcoexist->adapter; ex_btc8723b2ant_display_coex_info()
3185 if (btcoexist->manual_control) { ex_btc8723b2ant_display_coex_info()
3206 btcoexist->btc_get(btcoexist, BTC_GET_U4_BT_PATCH_VER, &bt_patch_ver); ex_btc8723b2ant_display_coex_info()
3207 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_FW_VER, &fw_ver); ex_btc8723b2ant_display_coex_info()
3214 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); ex_btc8723b2ant_display_coex_info()
3215 btcoexist->btc_get(btcoexist, BTC_GET_U1_WIFI_DOT11_CHNL, ex_btc8723b2ant_display_coex_info()
3217 btcoexist->btc_get(btcoexist, BTC_GET_U1_WIFI_HS_CHNL, &wifi_hs_chnl); ex_btc8723b2ant_display_coex_info()
3227 btcoexist->btc_get(btcoexist, BTC_GET_S4_WIFI_RSSI, &wifi_rssi); ex_btc8723b2ant_display_coex_info()
3228 btcoexist->btc_get(btcoexist, BTC_GET_S4_HS_RSSI, &bt_hs_rssi); ex_btc8723b2ant_display_coex_info()
3229 btcoexist->btc_get(btcoexist, BTC_GET_U1_AP_NUM, &ap_num); ex_btc8723b2ant_display_coex_info()
3233 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_SCAN, &scan); ex_btc8723b2ant_display_coex_info()
3234 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link); ex_btc8723b2ant_display_coex_info()
3235 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_ROAM, &roam); ex_btc8723b2ant_display_coex_info()
3239 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_UNDER_5G, &wifi_under_5g); ex_btc8723b2ant_display_coex_info()
3240 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); ex_btc8723b2ant_display_coex_info()
3241 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_BUSY, &wifi_busy); ex_btc8723b2ant_display_coex_info()
3242 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_TRAFFIC_DIRECTION, ex_btc8723b2ant_display_coex_info()
3257 btcoexist->btc_disp_dbg_msg(btcoexist, BTC_DBG_DISP_BT_LINK_INFO); ex_btc8723b2ant_display_coex_info()
3285 btcoexist->btc_disp_dbg_msg(btcoexist, BTC_DBG_DISP_FW_PWR_MODE_CMD); ex_btc8723b2ant_display_coex_info()
3321 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x778); ex_btc8723b2ant_display_coex_info()
3322 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x880); ex_btc8723b2ant_display_coex_info()
3327 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x948); ex_btc8723b2ant_display_coex_info()
3328 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x67); ex_btc8723b2ant_display_coex_info()
3329 u8tmp[1] = btcoexist->btc_read_1byte(btcoexist, 0x765); ex_btc8723b2ant_display_coex_info()
3334 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x92c); ex_btc8723b2ant_display_coex_info()
3335 u32tmp[1] = btcoexist->btc_read_4byte(btcoexist, 0x930); ex_btc8723b2ant_display_coex_info()
3336 u32tmp[2] = btcoexist->btc_read_4byte(btcoexist, 0x944); ex_btc8723b2ant_display_coex_info()
3341 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x39); ex_btc8723b2ant_display_coex_info()
3342 u8tmp[1] = btcoexist->btc_read_1byte(btcoexist, 0x40); ex_btc8723b2ant_display_coex_info()
3343 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x4c); ex_btc8723b2ant_display_coex_info()
3344 u8tmp[2] = btcoexist->btc_read_1byte(btcoexist, 0x64); ex_btc8723b2ant_display_coex_info()
3351 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x550); ex_btc8723b2ant_display_coex_info()
3352 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x522); ex_btc8723b2ant_display_coex_info()
3356 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0xc50); ex_btc8723b2ant_display_coex_info()
3357 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x49c); ex_btc8723b2ant_display_coex_info()
3361 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0xda0); ex_btc8723b2ant_display_coex_info()
3362 u32tmp[1] = btcoexist->btc_read_4byte(btcoexist, 0xda4); ex_btc8723b2ant_display_coex_info()
3363 u32tmp[2] = btcoexist->btc_read_4byte(btcoexist, 0xda8); ex_btc8723b2ant_display_coex_info()
3364 u32tmp[3] = btcoexist->btc_read_4byte(btcoexist, 0xcf0); ex_btc8723b2ant_display_coex_info()
3366 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0xa5b); ex_btc8723b2ant_display_coex_info()
3367 u8tmp[1] = btcoexist->btc_read_1byte(btcoexist, 0xa5c); ex_btc8723b2ant_display_coex_info()
3381 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x6c0); ex_btc8723b2ant_display_coex_info()
3382 u32tmp[1] = btcoexist->btc_read_4byte(btcoexist, 0x6c4); ex_btc8723b2ant_display_coex_info()
3383 u32tmp[2] = btcoexist->btc_read_4byte(btcoexist, 0x6c8); ex_btc8723b2ant_display_coex_info()
3384 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x6cc); ex_btc8723b2ant_display_coex_info()
3397 btc8723b2ant_monitor_bt_ctr(btcoexist); ex_btc8723b2ant_display_coex_info()
3399 btcoexist->btc_disp_dbg_msg(btcoexist, ex_btc8723b2ant_display_coex_info()
3403 void ex_btc8723b2ant_ips_notify(struct btc_coexist *btcoexist, u8 type) ex_btc8723b2ant_ips_notify() argument
3409 btc8723b2ant_wifioff_hwcfg(btcoexist); ex_btc8723b2ant_ips_notify()
3410 btc8723b2ant_ignore_wlan_act(btcoexist, FORCE_EXEC, true); ex_btc8723b2ant_ips_notify()
3411 btc8723b2ant_coex_alloff(btcoexist); ex_btc8723b2ant_ips_notify()
3416 ex_btc8723b2ant_init_hwconfig(btcoexist); ex_btc8723b2ant_ips_notify()
3417 btc8723b2ant_init_coex_dm(btcoexist); ex_btc8723b2ant_ips_notify()
3418 btc8723b2ant_query_bt_info(btcoexist); ex_btc8723b2ant_ips_notify()
3422 void ex_btc8723b2ant_lps_notify(struct btc_coexist *btcoexist, u8 type) ex_btc8723b2ant_lps_notify() argument
3435 void ex_btc8723b2ant_scan_notify(struct btc_coexist *btcoexist, u8 type) ex_btc8723b2ant_scan_notify() argument
3445 void ex_btc8723b2ant_connect_notify(struct btc_coexist *btcoexist, u8 type) ex_btc8723b2ant_connect_notify() argument
3455 void ex_btc8723b2ant_media_status_notify(struct btc_coexist *btcoexist, ex_btc8723b2ant_media_status_notify() argument
3470 btcoexist->btc_get(btcoexist, ex_btc8723b2ant_media_status_notify()
3476 btcoexist->btc_get(btcoexist, ex_btc8723b2ant_media_status_notify()
3493 btcoexist->btc_fill_h2c(btcoexist, 0x66, 3, h2c_parameter); ex_btc8723b2ant_media_status_notify()
3496 void ex_btc8723b2ant_special_packet_notify(struct btc_coexist *btcoexist, ex_btc8723b2ant_special_packet_notify() argument
3504 void ex_btc8723b2ant_bt_info_notify(struct btc_coexist *btcoexist, ex_btc8723b2ant_bt_info_notify() argument
3534 if (btcoexist->manual_control) { ex_btc8723b2ant_bt_info_notify()
3558 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_CONNECTED, ex_btc8723b2ant_bt_info_notify()
3562 btcoexist, ex_btc8723b2ant_bt_info_notify()
3566 btcoexist, ex_btc8723b2ant_bt_info_notify()
3574 btc8723b2ant_ignore_wlan_act(btcoexist, FORCE_EXEC, ex_btc8723b2ant_bt_info_notify()
3583 btc8723b2ant_bt_auto_report(btcoexist, FORCE_EXEC, ex_btc8723b2ant_bt_info_notify()
3622 btc8723b2ant_update_bt_link_info(btcoexist); ex_btc8723b2ant_bt_info_notify()
3660 btcoexist->btc_set(btcoexist, BTC_SET_BL_BT_TRAFFIC_BUSY, &bt_busy); ex_btc8723b2ant_bt_info_notify()
3663 btcoexist->btc_set(btcoexist, BTC_SET_BL_BT_LIMITED_DIG, &limited_dig); ex_btc8723b2ant_bt_info_notify()
3665 btc8723b2ant_run_coexist_mechanism(btcoexist); ex_btc8723b2ant_bt_info_notify()
3668 void ex_btc8723b2ant_halt_notify(struct btc_coexist *btcoexist) ex_btc8723b2ant_halt_notify() argument
3672 btc8723b2ant_wifioff_hwcfg(btcoexist); ex_btc8723b2ant_halt_notify()
3673 btc8723b2ant_ignore_wlan_act(btcoexist, FORCE_EXEC, true); ex_btc8723b2ant_halt_notify()
3674 ex_btc8723b2ant_media_status_notify(btcoexist, BTC_MEDIA_DISCONNECT); ex_btc8723b2ant_halt_notify()
3677 void ex_btc8723b2ant_periodical(struct btc_coexist *btcoexist) ex_btc8723b2ant_periodical() argument
3679 struct btc_board_info *board_info = &btcoexist->board_info; ex_btc8723b2ant_periodical()
3680 struct btc_stack_info *stack_info = &btcoexist->stack_info; ex_btc8723b2ant_periodical()
3701 btcoexist->btc_get(btcoexist, BTC_GET_U4_BT_PATCH_VER, ex_btc8723b2ant_periodical()
3703 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_FW_VER, &fw_ver); ex_btc8723b2ant_periodical()
3714 btc8723b2ant_query_bt_info(btcoexist); ex_btc8723b2ant_periodical()
3715 btc8723b2ant_monitor_bt_ctr(btcoexist); ex_btc8723b2ant_periodical()
3716 btc8723b2ant_monitor_bt_enable_disable(btcoexist); ex_btc8723b2ant_periodical()
3718 if (btc8723b2ant_is_wifi_status_changed(btcoexist) || ex_btc8723b2ant_periodical()
3720 btc8723b2ant_run_coexist_mechanism(btcoexist); ex_btc8723b2ant_periodical()
H A Dhalbtcoutsrc.c39 static bool halbtc_is_bt_coexist_available(struct btc_coexist *btcoexist) halbtc_is_bt_coexist_available() argument
41 if (!btcoexist->binded || NULL == btcoexist->adapter) halbtc_is_bt_coexist_available()
119 static u32 halbtc_get_wifi_bw(struct btc_coexist *btcoexist) halbtc_get_wifi_bw() argument
122 (struct rtl_priv *)btcoexist->adapter; halbtc_get_wifi_bw()
136 static u8 halbtc_get_wifi_central_chnl(struct btc_coexist *btcoexist) halbtc_get_wifi_central_chnl() argument
138 struct rtl_priv *rtlpriv = btcoexist->adapter; halbtc_get_wifi_central_chnl()
149 static void halbtc_leave_lps(struct btc_coexist *btcoexist) halbtc_leave_lps() argument
155 rtlpriv = btcoexist->adapter; halbtc_leave_lps()
158 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_AP_MODE_ENABLE, halbtc_leave_lps()
166 btcoexist->bt_info.bt_ctrl_lps = true; halbtc_leave_lps()
167 btcoexist->bt_info.bt_lps_on = false; halbtc_leave_lps()
170 static void halbtc_enter_lps(struct btc_coexist *btcoexist) halbtc_enter_lps() argument
176 rtlpriv = btcoexist->adapter; halbtc_enter_lps()
179 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_AP_MODE_ENABLE, halbtc_enter_lps()
187 btcoexist->bt_info.bt_ctrl_lps = true; halbtc_enter_lps()
188 btcoexist->bt_info.bt_lps_on = false; halbtc_enter_lps()
191 static void halbtc_normal_lps(struct btc_coexist *btcoexist) halbtc_normal_lps() argument
193 if (btcoexist->bt_info.bt_ctrl_lps) { halbtc_normal_lps()
194 btcoexist->bt_info.bt_lps_on = false; halbtc_normal_lps()
195 btcoexist->bt_info.bt_ctrl_lps = false; halbtc_normal_lps()
215 static u32 halbtc_get_bt_patch_version(struct btc_coexist *btcoexist) halbtc_get_bt_patch_version() argument
234 struct btc_coexist *btcoexist = (struct btc_coexist *)void_btcoexist; halbtc_get() local
235 struct rtl_priv *rtlpriv = btcoexist->adapter; halbtc_get()
245 if (!halbtc_is_bt_coexist_available(btcoexist)) halbtc_get()
324 *u32_tmp = halbtc_get_wifi_bw(btcoexist); halbtc_get()
336 *u32_tmp = halbtc_get_bt_patch_version(btcoexist); halbtc_get()
342 *u8_tmp = halbtc_get_wifi_central_chnl(btcoexist); halbtc_get()
353 *u8_tmp = btcoexist->pwr_mode_val[0]; halbtc_get()
365 struct btc_coexist *btcoexist = (struct btc_coexist *)void_btcoexist; halbtc_set() local
370 if (!halbtc_is_bt_coexist_available(btcoexist)) halbtc_set()
376 btcoexist->bt_info.bt_disabled = *bool_tmp; halbtc_set()
379 btcoexist->bt_info.bt_busy = *bool_tmp; halbtc_set()
382 btcoexist->bt_info.limited_dig = *bool_tmp; halbtc_set()
385 btcoexist->bt_info.force_to_roam = *bool_tmp; halbtc_set()
388 btcoexist->bt_info.reject_agg_pkt = *bool_tmp; halbtc_set()
391 btcoexist->bt_info.bt_ctrl_buf_size = *bool_tmp; halbtc_set()
394 btcoexist->bt_info.increase_scan_dev_num = *bool_tmp; halbtc_set()
398 btcoexist->bt_info.rssi_adjust_for_agc_table_on = *u8_tmp; halbtc_set()
401 btcoexist->bt_info.agg_buf_size = *u8_tmp; halbtc_set()
413 btcoexist->bt_info.rssi_adjust_for_1ant_coex_type = *u8_tmp; halbtc_set()
419 btcoexist->bt_info.lps_val = *u8_tmp; halbtc_set()
422 btcoexist->bt_info.rpwm_val = *u8_tmp; halbtc_set()
426 halbtc_leave_lps(btcoexist); halbtc_set()
429 halbtc_enter_lps(btcoexist); halbtc_set()
432 halbtc_normal_lps(btcoexist); halbtc_set()
438 btcoexist->bt_info.ra_mask = *u32_tmp; halbtc_set()
443 btcoexist->bt_info.force_exec_pwr_cmd_cnt++; halbtc_set()
456 static void halbtc_display_coex_statistics(struct btc_coexist *btcoexist) halbtc_display_coex_statistics() argument
460 static void halbtc_display_bt_link_info(struct btc_coexist *btcoexist) halbtc_display_bt_link_info() argument
464 static void halbtc_display_bt_fw_info(struct btc_coexist *btcoexist) halbtc_display_bt_fw_info() argument
468 static void halbtc_display_fw_pwr_mode_cmd(struct btc_coexist *btcoexist) halbtc_display_fw_pwr_mode_cmd() argument
477 struct btc_coexist *btcoexist = (struct btc_coexist *)bt_context; halbtc_read_1byte() local
478 struct rtl_priv *rtlpriv = btcoexist->adapter; halbtc_read_1byte()
485 struct btc_coexist *btcoexist = (struct btc_coexist *)bt_context; halbtc_read_2byte() local
486 struct rtl_priv *rtlpriv = btcoexist->adapter; halbtc_read_2byte()
493 struct btc_coexist *btcoexist = (struct btc_coexist *)bt_context; halbtc_read_4byte() local
494 struct rtl_priv *rtlpriv = btcoexist->adapter; halbtc_read_4byte()
501 struct btc_coexist *btcoexist = (struct btc_coexist *)bt_context; halbtc_write_1byte() local
502 struct rtl_priv *rtlpriv = btcoexist->adapter; halbtc_write_1byte()
510 struct btc_coexist *btcoexist = (struct btc_coexist *)bt_context; halbtc_bitmask_write_1byte() local
511 struct rtl_priv *rtlpriv = btcoexist->adapter; halbtc_bitmask_write_1byte()
530 struct btc_coexist *btcoexist = (struct btc_coexist *)bt_context; halbtc_write_2byte() local
531 struct rtl_priv *rtlpriv = btcoexist->adapter; halbtc_write_2byte()
538 struct btc_coexist *btcoexist = halbtc_write_4byte() local
540 struct rtl_priv *rtlpriv = btcoexist->adapter; halbtc_write_4byte()
548 struct btc_coexist *btcoexist = (struct btc_coexist *)bt_context; halbtc_set_bbreg() local
549 struct rtl_priv *rtlpriv = btcoexist->adapter; halbtc_set_bbreg()
556 struct btc_coexist *btcoexist = (struct btc_coexist *)bt_context; halbtc_get_bbreg() local
557 struct rtl_priv *rtlpriv = btcoexist->adapter; halbtc_get_bbreg()
565 struct btc_coexist *btcoexist = (struct btc_coexist *)bt_context; halbtc_set_rfreg() local
566 struct rtl_priv *rtlpriv = btcoexist->adapter; halbtc_set_rfreg()
574 struct btc_coexist *btcoexist = (struct btc_coexist *)bt_context; halbtc_get_rfreg() local
575 struct rtl_priv *rtlpriv = btcoexist->adapter; halbtc_get_rfreg()
583 struct btc_coexist *btcoexist = (struct btc_coexist *)bt_context; halbtc_fill_h2c_cmd() local
584 struct rtl_priv *rtlpriv = btcoexist->adapter; halbtc_fill_h2c_cmd()
592 struct btc_coexist *btcoexist = (struct btc_coexist *)bt_context; halbtc_display_dbg_msg() local
595 halbtc_display_coex_statistics(btcoexist); halbtc_display_dbg_msg()
598 halbtc_display_bt_link_info(btcoexist); halbtc_display_dbg_msg()
601 halbtc_display_bt_fw_info(btcoexist); halbtc_display_dbg_msg()
604 halbtc_display_fw_pwr_mode_cmd(btcoexist); halbtc_display_dbg_msg()
616 struct btc_coexist *btcoexist = &gl_bt_coexist; exhalbtc_initlize_variables() local
618 btcoexist->statistics.cnt_bind++; exhalbtc_initlize_variables()
622 if (btcoexist->binded) exhalbtc_initlize_variables()
625 btcoexist->binded = true; exhalbtc_initlize_variables()
627 btcoexist->chip_interface = BTC_INTF_UNKNOWN; exhalbtc_initlize_variables()
629 if (NULL == btcoexist->adapter) exhalbtc_initlize_variables()
630 btcoexist->adapter = adapter; exhalbtc_initlize_variables()
632 btcoexist->stack_info.profile_notified = false; exhalbtc_initlize_variables()
634 btcoexist->btc_read_1byte = halbtc_read_1byte; exhalbtc_initlize_variables()
635 btcoexist->btc_write_1byte = halbtc_write_1byte; exhalbtc_initlize_variables()
636 btcoexist->btc_write_1byte_bitmask = halbtc_bitmask_write_1byte; exhalbtc_initlize_variables()
637 btcoexist->btc_read_2byte = halbtc_read_2byte; exhalbtc_initlize_variables()
638 btcoexist->btc_write_2byte = halbtc_write_2byte; exhalbtc_initlize_variables()
639 btcoexist->btc_read_4byte = halbtc_read_4byte; exhalbtc_initlize_variables()
640 btcoexist->btc_write_4byte = halbtc_write_4byte; exhalbtc_initlize_variables()
642 btcoexist->btc_set_bb_reg = halbtc_set_bbreg; exhalbtc_initlize_variables()
643 btcoexist->btc_get_bb_reg = halbtc_get_bbreg; exhalbtc_initlize_variables()
645 btcoexist->btc_set_rf_reg = halbtc_set_rfreg; exhalbtc_initlize_variables()
646 btcoexist->btc_get_rf_reg = halbtc_get_rfreg; exhalbtc_initlize_variables()
648 btcoexist->btc_fill_h2c = halbtc_fill_h2c_cmd; exhalbtc_initlize_variables()
649 btcoexist->btc_disp_dbg_msg = halbtc_display_dbg_msg; exhalbtc_initlize_variables()
651 btcoexist->btc_get = halbtc_get; exhalbtc_initlize_variables()
652 btcoexist->btc_set = halbtc_set; exhalbtc_initlize_variables()
654 btcoexist->bt_info.bt_ctrl_buf_size = false; exhalbtc_initlize_variables()
655 btcoexist->bt_info.agg_buf_size = 5; exhalbtc_initlize_variables()
657 btcoexist->bt_info.increase_scan_dev_num = false; exhalbtc_initlize_variables()
661 void exhalbtc_init_hw_config(struct btc_coexist *btcoexist) exhalbtc_init_hw_config() argument
663 struct rtl_priv *rtlpriv = btcoexist->adapter; exhalbtc_init_hw_config()
666 if (!halbtc_is_bt_coexist_available(btcoexist)) exhalbtc_init_hw_config()
669 btcoexist->statistics.cnt_init_hw_config++; exhalbtc_init_hw_config()
672 ex_btc8723b2ant_init_hwconfig(btcoexist); exhalbtc_init_hw_config()
675 void exhalbtc_init_coex_dm(struct btc_coexist *btcoexist) exhalbtc_init_coex_dm() argument
677 struct rtl_priv *rtlpriv = btcoexist->adapter; exhalbtc_init_coex_dm()
680 if (!halbtc_is_bt_coexist_available(btcoexist)) exhalbtc_init_coex_dm()
683 btcoexist->statistics.cnt_init_coex_dm++; exhalbtc_init_coex_dm()
686 ex_btc8723b2ant_init_coex_dm(btcoexist); exhalbtc_init_coex_dm()
688 btcoexist->initilized = true; exhalbtc_init_coex_dm()
691 void exhalbtc_ips_notify(struct btc_coexist *btcoexist, u8 type) exhalbtc_ips_notify() argument
693 struct rtl_priv *rtlpriv = btcoexist->adapter; exhalbtc_ips_notify()
697 if (!halbtc_is_bt_coexist_available(btcoexist)) exhalbtc_ips_notify()
699 btcoexist->statistics.cnt_ips_notify++; exhalbtc_ips_notify()
700 if (btcoexist->manual_control) exhalbtc_ips_notify()
711 ex_btc8723b2ant_ips_notify(btcoexist, ips_type); exhalbtc_ips_notify()
716 void exhalbtc_lps_notify(struct btc_coexist *btcoexist, u8 type) exhalbtc_lps_notify() argument
718 struct rtl_priv *rtlpriv = btcoexist->adapter; exhalbtc_lps_notify()
722 if (!halbtc_is_bt_coexist_available(btcoexist)) exhalbtc_lps_notify()
724 btcoexist->statistics.cnt_lps_notify++; exhalbtc_lps_notify()
725 if (btcoexist->manual_control) exhalbtc_lps_notify()
734 ex_btc8723b2ant_lps_notify(btcoexist, lps_type); exhalbtc_lps_notify()
737 void exhalbtc_scan_notify(struct btc_coexist *btcoexist, u8 type) exhalbtc_scan_notify() argument
739 struct rtl_priv *rtlpriv = btcoexist->adapter; exhalbtc_scan_notify()
743 if (!halbtc_is_bt_coexist_available(btcoexist)) exhalbtc_scan_notify()
745 btcoexist->statistics.cnt_scan_notify++; exhalbtc_scan_notify()
746 if (btcoexist->manual_control) exhalbtc_scan_notify()
757 ex_btc8723b2ant_scan_notify(btcoexist, scan_type); exhalbtc_scan_notify()
762 void exhalbtc_connect_notify(struct btc_coexist *btcoexist, u8 action) exhalbtc_connect_notify() argument
764 struct rtl_priv *rtlpriv = btcoexist->adapter; exhalbtc_connect_notify()
768 if (!halbtc_is_bt_coexist_available(btcoexist)) exhalbtc_connect_notify()
770 btcoexist->statistics.cnt_connect_notify++; exhalbtc_connect_notify()
771 if (btcoexist->manual_control) exhalbtc_connect_notify()
782 ex_btc8723b2ant_connect_notify(btcoexist, asso_type); exhalbtc_connect_notify()
785 void exhalbtc_mediastatus_notify(struct btc_coexist *btcoexist, exhalbtc_mediastatus_notify() argument
790 if (!halbtc_is_bt_coexist_available(btcoexist)) exhalbtc_mediastatus_notify()
792 btcoexist->statistics.cnt_media_status_notify++; exhalbtc_mediastatus_notify()
793 if (btcoexist->manual_control) exhalbtc_mediastatus_notify()
806 void exhalbtc_special_packet_notify(struct btc_coexist *btcoexist, u8 pkt_type) exhalbtc_special_packet_notify() argument
808 struct rtl_priv *rtlpriv = btcoexist->adapter; exhalbtc_special_packet_notify()
812 if (!halbtc_is_bt_coexist_available(btcoexist)) exhalbtc_special_packet_notify()
814 btcoexist->statistics.cnt_special_packet_notify++; exhalbtc_special_packet_notify()
815 if (btcoexist->manual_control) exhalbtc_special_packet_notify()
823 ex_btc8723b2ant_special_packet_notify(btcoexist, exhalbtc_special_packet_notify()
829 void exhalbtc_bt_info_notify(struct btc_coexist *btcoexist, exhalbtc_bt_info_notify() argument
832 struct rtl_priv *rtlpriv = btcoexist->adapter; exhalbtc_bt_info_notify()
834 if (!halbtc_is_bt_coexist_available(btcoexist)) exhalbtc_bt_info_notify()
836 btcoexist->statistics.cnt_bt_info_notify++; exhalbtc_bt_info_notify()
839 ex_btc8723b2ant_bt_info_notify(btcoexist, tmp_buf, length); exhalbtc_bt_info_notify()
842 void exhalbtc_stack_operation_notify(struct btc_coexist *btcoexist, u8 type) exhalbtc_stack_operation_notify() argument
846 if (!halbtc_is_bt_coexist_available(btcoexist)) exhalbtc_stack_operation_notify()
848 btcoexist->statistics.cnt_stack_operation_notify++; exhalbtc_stack_operation_notify()
849 if (btcoexist->manual_control) exhalbtc_stack_operation_notify()
859 void exhalbtc_halt_notify(struct btc_coexist *btcoexist) exhalbtc_halt_notify() argument
861 struct rtl_priv *rtlpriv = btcoexist->adapter; exhalbtc_halt_notify()
863 if (!halbtc_is_bt_coexist_available(btcoexist)) exhalbtc_halt_notify()
867 ex_btc8723b2ant_halt_notify(btcoexist); exhalbtc_halt_notify()
870 void exhalbtc_pnp_notify(struct btc_coexist *btcoexist, u8 pnp_state) exhalbtc_pnp_notify() argument
872 if (!halbtc_is_bt_coexist_available(btcoexist)) exhalbtc_pnp_notify()
876 void exhalbtc_periodical(struct btc_coexist *btcoexist) exhalbtc_periodical() argument
878 struct rtl_priv *rtlpriv = btcoexist->adapter; exhalbtc_periodical()
880 if (!halbtc_is_bt_coexist_available(btcoexist)) exhalbtc_periodical()
882 btcoexist->statistics.cnt_periodical++; exhalbtc_periodical()
887 ex_btc8723b2ant_periodical(btcoexist); exhalbtc_periodical()
892 void exhalbtc_dbg_control(struct btc_coexist *btcoexist, exhalbtc_dbg_control() argument
895 if (!halbtc_is_bt_coexist_available(btcoexist)) exhalbtc_dbg_control()
897 btcoexist->statistics.cnt_dbg_ctrl++; exhalbtc_dbg_control()
906 struct btc_coexist *btcoexist = &gl_bt_coexist; exhalbtc_update_min_bt_rssi() local
908 if (!halbtc_is_bt_coexist_available(btcoexist)) exhalbtc_update_min_bt_rssi()
911 btcoexist->stack_info.min_bt_rssi = bt_rssi; exhalbtc_update_min_bt_rssi()
916 struct btc_coexist *btcoexist = &gl_bt_coexist; exhalbtc_set_hci_version() local
918 if (!halbtc_is_bt_coexist_available(btcoexist)) exhalbtc_set_hci_version()
921 btcoexist->stack_info.hci_version = hci_version; exhalbtc_set_hci_version()
926 struct btc_coexist *btcoexist = &gl_bt_coexist; exhalbtc_set_bt_patch_version() local
928 if (!halbtc_is_bt_coexist_available(btcoexist)) exhalbtc_set_bt_patch_version()
931 btcoexist->bt_info.bt_real_fw_ver = bt_patch_version; exhalbtc_set_bt_patch_version()
932 btcoexist->bt_info.bt_hci_ver = bt_hci_version; exhalbtc_set_bt_patch_version()
1003 void exhalbtc_display_bt_coex_info(struct btc_coexist *btcoexist) exhalbtc_display_bt_coex_info() argument
1005 struct rtl_priv *rtlpriv = btcoexist->adapter; exhalbtc_display_bt_coex_info()
1007 if (!halbtc_is_bt_coexist_available(btcoexist)) exhalbtc_display_bt_coex_info()
1011 ex_btc8723b2ant_display_coex_info(btcoexist); exhalbtc_display_bt_coex_info()
H A Dhalbtc8821a2ant.c157 static u8 halbtc8821a2ant_wifi_rssi_state(struct btc_coexist *btcoexist, halbtc8821a2ant_wifi_rssi_state() argument
164 btcoexist->btc_get(btcoexist, BTC_GET_S4_WIFI_RSSI, &wifi_rssi); halbtc8821a2ant_wifi_rssi_state()
259 static void btc8821a2ant_mon_bt_en_dis(struct btc_coexist *btcoexist) btc8821a2ant_mon_bt_en_dis() argument
280 btcoexist->btc_set(btcoexist, BTC_SET_BL_BT_DISABLE, btc8821a2ant_mon_bt_en_dis()
291 btcoexist->btc_set(btcoexist, BTC_SET_BL_BT_DISABLE, btc8821a2ant_mon_bt_en_dis()
306 static void halbtc8821a2ant_monitor_bt_ctr(struct btc_coexist *btcoexist) halbtc8821a2ant_monitor_bt_ctr() argument
314 u4tmp = btcoexist->btc_read_4byte(btcoexist, reg_hp_txrx); halbtc8821a2ant_monitor_bt_ctr()
318 u4tmp = btcoexist->btc_read_4byte(btcoexist, reg_lp_txrx); halbtc8821a2ant_monitor_bt_ctr()
335 btcoexist->btc_write_1byte(btcoexist, 0x76e, 0xc); halbtc8821a2ant_monitor_bt_ctr()
338 static void halbtc8821a2ant_query_bt_info(struct btc_coexist *btcoexist) halbtc8821a2ant_query_bt_info() argument
350 btcoexist->btc_fill_h2c(btcoexist, 0x61, 1, h2c_parameter); halbtc8821a2ant_query_bt_info()
353 static u8 halbtc8821a2ant_action_algorithm(struct btc_coexist *btcoexist) halbtc8821a2ant_action_algorithm() argument
355 struct btc_stack_info *stack_info = &btcoexist->stack_info; halbtc8821a2ant_action_algorithm()
360 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); halbtc8821a2ant_action_algorithm()
527 static bool halbtc8821a2ant_need_to_dec_bt_pwr(struct btc_coexist *btcoexist) halbtc8821a2ant_need_to_dec_bt_pwr() argument
534 if (!btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on)) halbtc8821a2ant_need_to_dec_bt_pwr()
536 if (!btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_CONNECTED, halbtc8821a2ant_need_to_dec_bt_pwr()
539 if (!btcoexist->btc_get(btcoexist, BTC_GET_S4_HS_RSSI, &bt_hs_rssi)) halbtc8821a2ant_need_to_dec_bt_pwr()
563 static void btc8821a2ant_set_fw_dac_swing_lev(struct btc_coexist *btcoexist, btc8821a2ant_set_fw_dac_swing_lev() argument
578 btcoexist->btc_fill_h2c(btcoexist, 0x64, 1, h2c_parameter); btc8821a2ant_set_fw_dac_swing_lev()
581 static void halbtc8821a2ant_set_fw_dec_bt_pwr(struct btc_coexist *btcoexist, halbtc8821a2ant_set_fw_dec_bt_pwr() argument
595 btcoexist->btc_fill_h2c(btcoexist, 0x62, 1, h2c_parameter); halbtc8821a2ant_set_fw_dec_bt_pwr()
598 static void halbtc8821a2ant_dec_bt_pwr(struct btc_coexist *btcoexist, halbtc8821a2ant_dec_bt_pwr() argument
615 halbtc8821a2ant_set_fw_dec_bt_pwr(btcoexist, coex_dm->cur_dec_bt_pwr); halbtc8821a2ant_dec_bt_pwr()
620 static void btc8821a2ant_set_fw_bt_lna_constr(struct btc_coexist *btcoexist, btc8821a2ant_set_fw_bt_lna_constr() argument
635 btcoexist->btc_fill_h2c(btcoexist, 0x69, 2, h2c_parameter); btc8821a2ant_set_fw_bt_lna_constr()
638 static void btc8821a2_set_bt_lna_const(struct btc_coexist *btcoexist, btc8821a2_set_bt_lna_const() argument
657 btc8821a2ant_set_fw_bt_lna_constr(btcoexist, btc8821a2_set_bt_lna_const()
663 static void halbtc8821a2ant_set_fw_bt_psd_mode(struct btc_coexist *btcoexist, halbtc8821a2ant_set_fw_bt_psd_mode() argument
677 btcoexist->btc_fill_h2c(btcoexist, 0x69, 2, h2c_parameter); halbtc8821a2ant_set_fw_bt_psd_mode()
680 static void halbtc8821a2ant_set_bt_psd_mode(struct btc_coexist *btcoexist, halbtc8821a2ant_set_bt_psd_mode() argument
696 halbtc8821a2ant_set_fw_bt_psd_mode(btcoexist, halbtc8821a2ant_set_bt_psd_mode()
702 static void halbtc8821a2ant_set_bt_auto_report(struct btc_coexist *btcoexist, halbtc8821a2ant_set_bt_auto_report() argument
717 btcoexist->btc_fill_h2c(btcoexist, 0x68, 1, h2c_parameter); halbtc8821a2ant_set_bt_auto_report()
720 static void halbtc8821a2ant_bt_auto_report(struct btc_coexist *btcoexist, halbtc8821a2ant_bt_auto_report() argument
739 halbtc8821a2ant_set_bt_auto_report(btcoexist, halbtc8821a2ant_bt_auto_report()
745 static void halbtc8821a2ant_fw_dac_swing_lvl(struct btc_coexist *btcoexist, halbtc8821a2ant_fw_dac_swing_lvl() argument
765 btc8821a2ant_set_fw_dac_swing_lev(btcoexist, halbtc8821a2ant_fw_dac_swing_lvl()
771 static void btc8821a2ant_set_sw_rf_rx_lpf_corner(struct btc_coexist *btcoexist, btc8821a2ant_set_sw_rf_rx_lpf_corner() argument
778 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x1e, btc8821a2ant_set_sw_rf_rx_lpf_corner()
784 if (btcoexist->initilized) { btc8821a2ant_set_sw_rf_rx_lpf_corner()
787 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, btc8821a2ant_set_sw_rf_rx_lpf_corner()
794 static void halbtc8821a2ant_RfShrink(struct btc_coexist *btcoexist, halbtc8821a2ant_RfShrink() argument
813 btc8821a2ant_set_sw_rf_rx_lpf_corner(btcoexist, halbtc8821a2ant_RfShrink()
819 static void btc8821a2ant_SetSwPenTxRateAdapt(struct btc_coexist *btcoexist, btc8821a2ant_SetSwPenTxRateAdapt() argument
842 btcoexist->btc_fill_h2c(btcoexist, 0x69, 6, h2c_parameter); btc8821a2ant_SetSwPenTxRateAdapt()
845 static void halbtc8821a2ant_low_penalty_ra(struct btc_coexist *btcoexist, halbtc8821a2ant_low_penalty_ra() argument
864 btc8821a2ant_SetSwPenTxRateAdapt(btcoexist, halbtc8821a2ant_low_penalty_ra()
870 static void halbtc8821a2ant_set_dac_swing_reg(struct btc_coexist *btcoexist, halbtc8821a2ant_set_dac_swing_reg() argument
877 btcoexist->btc_write_1byte_bitmask(btcoexist, 0xc5b, 0x3e, val); halbtc8821a2ant_set_dac_swing_reg()
880 static void btc8821a2ant_set_sw_full_dac_swing(struct btc_coexist *btcoexist, btc8821a2ant_set_sw_full_dac_swing() argument
885 halbtc8821a2ant_set_dac_swing_reg(btcoexist, sw_dac_swing_lvl); btc8821a2ant_set_sw_full_dac_swing()
887 halbtc8821a2ant_set_dac_swing_reg(btcoexist, 0x18); btc8821a2ant_set_sw_full_dac_swing()
890 static void halbtc8821a2ant_dac_swing(struct btc_coexist *btcoexist, halbtc8821a2ant_dac_swing() argument
916 btc8821a2ant_set_sw_full_dac_swing(btcoexist, dac_swing_on, halbtc8821a2ant_dac_swing()
923 static void halbtc8821a2ant_set_adc_back_off(struct btc_coexist *btcoexist, halbtc8821a2ant_set_adc_back_off() argument
929 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x8db, 0x60, 0x3); halbtc8821a2ant_set_adc_back_off()
933 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x8db, 0x60, 0x1); halbtc8821a2ant_set_adc_back_off()
937 static void halbtc8821a2ant_adc_back_off(struct btc_coexist *btcoexist, halbtc8821a2ant_adc_back_off() argument
954 halbtc8821a2ant_set_adc_back_off(btcoexist, coex_dm->cur_adc_back_off); halbtc8821a2ant_adc_back_off()
959 static void halbtc8821a2ant_set_coex_table(struct btc_coexist *btcoexist, halbtc8821a2ant_set_coex_table() argument
965 btcoexist->btc_write_4byte(btcoexist, 0x6c0, val0x6c0); halbtc8821a2ant_set_coex_table()
969 btcoexist->btc_write_4byte(btcoexist, 0x6c4, val0x6c4); halbtc8821a2ant_set_coex_table()
973 btcoexist->btc_write_4byte(btcoexist, 0x6c8, val0x6c8); halbtc8821a2ant_set_coex_table()
977 btcoexist->btc_write_1byte(btcoexist, 0x6cc, val0x6cc); halbtc8821a2ant_set_coex_table()
980 static void halbtc8821a2ant_coex_table(struct btc_coexist *btcoexist, halbtc8821a2ant_coex_table() argument
1013 halbtc8821a2ant_set_coex_table(btcoexist, val0x6c0, val0x6c4, val0x6c8, halbtc8821a2ant_coex_table()
1037 static void halbtc8821a2ant_ignore_wlan_act(struct btc_coexist *btcoexist, halbtc8821a2ant_ignore_wlan_act() argument
1055 halbtc8821a2ant_set_fw_ignore_wlan_act(btcoexist, enable); halbtc8821a2ant_ignore_wlan_act()
1060 static void halbtc8821a2ant_set_fw_pstdma(struct btc_coexist *btcoexist, halbtc8821a2ant_set_fw_pstdma() argument
1086 btcoexist->btc_fill_h2c(btcoexist, 0x60, 5, h2c_parameter); halbtc8821a2ant_set_fw_pstdma()
1089 static void btc8821a2ant_sw_mech1(struct btc_coexist *btcoexist, btc8821a2ant_sw_mech1() argument
1096 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); btc8821a2ant_sw_mech1()
1104 halbtc8821a2ant_RfShrink(btcoexist, NORMAL_EXEC, shrink_rx_lpf); btc8821a2ant_sw_mech1()
1105 halbtc8821a2ant_low_penalty_ra(btcoexist, btc8821a2ant_sw_mech1()
1109 * btc8821a2_set_bt_lna_const(btcoexist, btc8821a2ant_sw_mech1()
1114 static void btc8821a2ant_sw_mech2(struct btc_coexist *btcoexist, btc8821a2ant_sw_mech2() argument
1119 /* halbtc8821a2ant_AgcTable(btcoexist, NORMAL_EXEC, bAGCTableShift); */ btc8821a2ant_sw_mech2()
1120 halbtc8821a2ant_adc_back_off(btcoexist, NORMAL_EXEC, adc_back_off); btc8821a2ant_sw_mech2()
1121 halbtc8821a2ant_dac_swing(btcoexist, NORMAL_EXEC, sw_dac_swing, btc8821a2ant_sw_mech2()
1125 static void halbtc8821a2ant_set_ant_path(struct btc_coexist *btcoexist, halbtc8821a2ant_set_ant_path() argument
1129 struct btc_board_info *board_info = &btcoexist->board_info; halbtc8821a2ant_set_ant_path()
1135 u4tmp = btcoexist->btc_read_4byte(btcoexist, 0x4c); halbtc8821a2ant_set_ant_path()
1138 btcoexist->btc_write_4byte(btcoexist, 0x4c, u4tmp); halbtc8821a2ant_set_ant_path()
1140 btcoexist->btc_write_4byte(btcoexist, 0x974, 0x3ff); halbtc8821a2ant_set_ant_path()
1141 btcoexist->btc_write_1byte(btcoexist, 0xcb4, 0x77); halbtc8821a2ant_set_ant_path()
1150 btcoexist->btc_fill_h2c(btcoexist, 0x65, 2, halbtc8821a2ant_set_ant_path()
1159 btcoexist->btc_fill_h2c(btcoexist, 0x65, 2, halbtc8821a2ant_set_ant_path()
1167 btcoexist->btc_write_1byte_bitmask(btcoexist, 0xcb7, 0x30, 0x1); halbtc8821a2ant_set_ant_path()
1170 btcoexist->btc_write_1byte_bitmask(btcoexist, 0xcb7, 0x30, 0x2); halbtc8821a2ant_set_ant_path()
1175 static void halbtc8821a2ant_ps_tdma(struct btc_coexist *btcoexist, halbtc8821a2ant_ps_tdma() argument
1201 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, 0x1a, halbtc8821a2ant_ps_tdma()
1205 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, 0x12, halbtc8821a2ant_ps_tdma()
1209 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, 0x1c, halbtc8821a2ant_ps_tdma()
1213 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, 0x10, halbtc8821a2ant_ps_tdma()
1217 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, 0x1a, halbtc8821a2ant_ps_tdma()
1221 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, 0x12, halbtc8821a2ant_ps_tdma()
1225 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, 0x1c, halbtc8821a2ant_ps_tdma()
1229 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xa3, 0x10, halbtc8821a2ant_ps_tdma()
1233 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, 0x1a, halbtc8821a2ant_ps_tdma()
1237 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, 0x12, halbtc8821a2ant_ps_tdma()
1241 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, 0xa, halbtc8821a2ant_ps_tdma()
1245 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, 0x5, halbtc8821a2ant_ps_tdma()
1249 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, 0x1a, halbtc8821a2ant_ps_tdma()
1253 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, halbtc8821a2ant_ps_tdma()
1257 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, 0xa, halbtc8821a2ant_ps_tdma()
1261 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, 0x5, halbtc8821a2ant_ps_tdma()
1265 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xa3, 0x2f, halbtc8821a2ant_ps_tdma()
1269 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, 0x5, halbtc8821a2ant_ps_tdma()
1273 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, 0x25, halbtc8821a2ant_ps_tdma()
1277 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, 0x25, halbtc8821a2ant_ps_tdma()
1281 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, 0x15, halbtc8821a2ant_ps_tdma()
1285 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0xe3, 0x1a, halbtc8821a2ant_ps_tdma()
1293 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0x0, 0x0, 0x0, halbtc8821a2ant_ps_tdma()
1297 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0x0, 0x0, 0x0, halbtc8821a2ant_ps_tdma()
1301 halbtc8821a2ant_set_fw_pstdma(btcoexist, 0x0, 0x0, 0x0, halbtc8821a2ant_ps_tdma()
1312 static void halbtc8821a2ant_coex_all_off(struct btc_coexist *btcoexist) halbtc8821a2ant_coex_all_off() argument
1315 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 1); halbtc8821a2ant_coex_all_off()
1316 halbtc8821a2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); halbtc8821a2ant_coex_all_off()
1317 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); halbtc8821a2ant_coex_all_off()
1320 btc8821a2ant_sw_mech1(btcoexist, false, false, false, false); halbtc8821a2ant_coex_all_off()
1321 btc8821a2ant_sw_mech2(btcoexist, false, false, false, 0x18); halbtc8821a2ant_coex_all_off()
1324 halbtc8821a2ant_coex_table(btcoexist, NORMAL_EXEC, halbtc8821a2ant_coex_all_off()
1328 static void halbtc8821a2ant_coex_under_5g(struct btc_coexist *btcoexist) halbtc8821a2ant_coex_under_5g() argument
1330 halbtc8821a2ant_coex_all_off(btcoexist); halbtc8821a2ant_coex_under_5g()
1333 static void halbtc8821a2ant_init_coex_dm(struct btc_coexist *btcoexist) halbtc8821a2ant_init_coex_dm() argument
1336 halbtc8821a2ant_coex_table(btcoexist, FORCE_EXEC, 0x55555555, halbtc8821a2ant_init_coex_dm()
1339 halbtc8821a2ant_ps_tdma(btcoexist, FORCE_EXEC, false, 1); halbtc8821a2ant_init_coex_dm()
1340 halbtc8821a2ant_fw_dac_swing_lvl(btcoexist, FORCE_EXEC, 6); halbtc8821a2ant_init_coex_dm()
1341 halbtc8821a2ant_dec_bt_pwr(btcoexist, FORCE_EXEC, false); halbtc8821a2ant_init_coex_dm()
1343 btc8821a2ant_sw_mech1(btcoexist, false, false, false, false); halbtc8821a2ant_init_coex_dm()
1344 btc8821a2ant_sw_mech2(btcoexist, false, false, false, 0x18); halbtc8821a2ant_init_coex_dm()
1347 static void halbtc8821a2ant_bt_inquiry_page(struct btc_coexist *btcoexist) halbtc8821a2ant_bt_inquiry_page() argument
1351 btcoexist->btc_set(btcoexist, BTC_SET_ACT_DISABLE_LOW_POWER, halbtc8821a2ant_bt_inquiry_page()
1354 halbtc8821a2ant_coex_table(btcoexist, NORMAL_EXEC, 0x55ff55ff, halbtc8821a2ant_bt_inquiry_page()
1356 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 3); halbtc8821a2ant_bt_inquiry_page()
1359 static bool halbtc8821a2ant_is_common_action(struct btc_coexist *btcoexist) halbtc8821a2ant_is_common_action() argument
1364 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_CONNECTED, halbtc8821a2ant_is_common_action()
1366 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_BUSY, &wifi_busy); halbtc8821a2ant_is_common_action()
1368 halbtc8821a2ant_coex_table(btcoexist, NORMAL_EXEC, 0x55ff55ff, halbtc8821a2ant_is_common_action()
1374 btcoexist->btc_set(btcoexist, BTC_SET_ACT_DISABLE_LOW_POWER, halbtc8821a2ant_is_common_action()
1380 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 1); halbtc8821a2ant_is_common_action()
1381 halbtc8821a2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); halbtc8821a2ant_is_common_action()
1382 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); halbtc8821a2ant_is_common_action()
1384 btc8821a2ant_sw_mech1(btcoexist, false, false, false, false); halbtc8821a2ant_is_common_action()
1385 btc8821a2ant_sw_mech2(btcoexist, false, false, false, 0x18); halbtc8821a2ant_is_common_action()
1391 btcoexist->btc_set(btcoexist, BTC_SET_ACT_DISABLE_LOW_POWER, halbtc8821a2ant_is_common_action()
1397 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, halbtc8821a2ant_is_common_action()
1402 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, halbtc8821a2ant_is_common_action()
1406 halbtc8821a2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); halbtc8821a2ant_is_common_action()
1407 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); halbtc8821a2ant_is_common_action()
1409 btc8821a2ant_sw_mech1(btcoexist, false, false, false, false); halbtc8821a2ant_is_common_action()
1410 btc8821a2ant_sw_mech2(btcoexist, false, false, false, 0x18); halbtc8821a2ant_is_common_action()
1416 btcoexist->btc_set(btcoexist, BTC_SET_ACT_DISABLE_LOW_POWER, halbtc8821a2ant_is_common_action()
1422 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 1); halbtc8821a2ant_is_common_action()
1423 halbtc8821a2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); halbtc8821a2ant_is_common_action()
1424 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); halbtc8821a2ant_is_common_action()
1426 btc8821a2ant_sw_mech1(btcoexist, false, false, false, false); halbtc8821a2ant_is_common_action()
1427 btc8821a2ant_sw_mech2(btcoexist, false, false, false, 0x18); halbtc8821a2ant_is_common_action()
1432 btcoexist->btc_set(btcoexist, halbtc8821a2ant_is_common_action()
1438 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, halbtc8821a2ant_is_common_action()
1443 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, halbtc8821a2ant_is_common_action()
1447 halbtc8821a2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); halbtc8821a2ant_is_common_action()
1448 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); halbtc8821a2ant_is_common_action()
1450 btc8821a2ant_sw_mech1(btcoexist, true, true, true, true); halbtc8821a2ant_is_common_action()
1451 btc8821a2ant_sw_mech2(btcoexist, false, false, false, 0x18); halbtc8821a2ant_is_common_action()
1458 btcoexist->btc_set(btcoexist, halbtc8821a2ant_is_common_action()
1464 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 1); halbtc8821a2ant_is_common_action()
1465 halbtc8821a2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); halbtc8821a2ant_is_common_action()
1466 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); halbtc8821a2ant_is_common_action()
1468 btc8821a2ant_sw_mech1(btcoexist, false, false, halbtc8821a2ant_is_common_action()
1470 btc8821a2ant_sw_mech2(btcoexist, false, false, halbtc8821a2ant_is_common_action()
1476 btcoexist->btc_set(btcoexist, halbtc8821a2ant_is_common_action()
1487 halbtc8821a2ant_ps_tdma(btcoexist, halbtc8821a2ant_is_common_action()
1490 if (halbtc8821a2ant_need_to_dec_bt_pwr(btcoexist)) halbtc8821a2ant_is_common_action()
1491 halbtc8821a2ant_dec_bt_pwr(btcoexist, halbtc8821a2ant_is_common_action()
1494 halbtc8821a2ant_dec_bt_pwr(btcoexist, halbtc8821a2ant_is_common_action()
1499 btc8821a2ant_sw_mech1(btcoexist, true, true, true, true); halbtc8821a2ant_is_common_action()
1504 static void btc8821a2_int1(struct btc_coexist *btcoexist, bool tx_pause, btc8821a2_int1() argument
1512 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1516 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1520 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1524 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1528 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1533 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1537 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1541 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1545 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1552 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1556 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1560 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1564 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1568 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1572 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1578 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1582 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1586 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1590 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1594 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1598 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1607 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1611 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1615 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1619 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1624 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1628 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1632 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1636 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1643 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1647 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1651 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1655 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1659 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1663 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1667 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1673 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1677 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1681 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1685 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1689 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1693 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1697 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int1()
1705 static void btc8821a2_int2(struct btc_coexist *btcoexist, bool tx_pause, btc8821a2_int2() argument
1712 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1716 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1720 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1724 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1729 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1733 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1737 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1741 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1747 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1751 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1755 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1759 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1763 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1767 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1773 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1777 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1781 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1785 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1789 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1793 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1802 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1806 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1810 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1814 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1819 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1823 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1827 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1831 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1837 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1841 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1845 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1849 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1853 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1857 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1863 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1867 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1871 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1875 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1879 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1883 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int2()
1891 static void btc8821a2_int3(struct btc_coexist *btcoexist, bool tx_pause, btc8821a2_int3() argument
1898 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
1902 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
1906 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
1910 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
1915 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
1919 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
1923 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
1927 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
1933 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
1937 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
1941 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
1945 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
1949 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
1953 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
1959 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
1963 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
1967 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
1971 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
1975 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
1979 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
1988 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
1992 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
1996 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
2000 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
2005 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
2009 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
2013 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
2017 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
2023 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
2027 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
2031 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
2035 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
2039 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
2043 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
2049 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
2053 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
2057 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
2061 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
2065 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
2069 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8821a2_int3()
2077 static void btc8821a2ant_tdma_dur_adj(struct btc_coexist *btcoexist, btc8821a2ant_tdma_dur_adj() argument
2098 halbtc8821a2ant_ps_tdma(btcoexist, btc8821a2ant_tdma_dur_adj()
2103 halbtc8821a2ant_ps_tdma(btcoexist, btc8821a2ant_tdma_dur_adj()
2108 halbtc8821a2ant_ps_tdma(btcoexist, btc8821a2ant_tdma_dur_adj()
2113 halbtc8821a2ant_ps_tdma(btcoexist, btc8821a2ant_tdma_dur_adj()
2120 halbtc8821a2ant_ps_tdma(btcoexist, btc8821a2ant_tdma_dur_adj()
2125 halbtc8821a2ant_ps_tdma(btcoexist, btc8821a2ant_tdma_dur_adj()
2130 halbtc8821a2ant_ps_tdma(btcoexist, btc8821a2ant_tdma_dur_adj()
2135 halbtc8821a2ant_ps_tdma(btcoexist, btc8821a2ant_tdma_dur_adj()
2144 halbtc8821a2ant_ps_tdma(btcoexist, btc8821a2ant_tdma_dur_adj()
2149 halbtc8821a2ant_ps_tdma(btcoexist, btc8821a2ant_tdma_dur_adj()
2154 halbtc8821a2ant_ps_tdma(btcoexist, btc8821a2ant_tdma_dur_adj()
2159 halbtc8821a2ant_ps_tdma(btcoexist, btc8821a2ant_tdma_dur_adj()
2166 halbtc8821a2ant_ps_tdma(btcoexist, btc8821a2ant_tdma_dur_adj()
2171 halbtc8821a2ant_ps_tdma(btcoexist, btc8821a2ant_tdma_dur_adj()
2176 halbtc8821a2ant_ps_tdma(btcoexist, btc8821a2ant_tdma_dur_adj()
2181 halbtc8821a2ant_ps_tdma(btcoexist, btc8821a2ant_tdma_dur_adj()
2284 btc8821a2_int1(btcoexist, tx_pause, result); btc8821a2ant_tdma_dur_adj()
2286 btc8821a2_int2(btcoexist, tx_pause, result); btc8821a2ant_tdma_dur_adj()
2288 btc8821a2_int3(btcoexist, tx_pause, result); btc8821a2ant_tdma_dur_adj()
2302 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_SCAN, &scan); btc8821a2ant_tdma_dur_adj()
2303 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link); btc8821a2ant_tdma_dur_adj()
2304 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_ROAM, &roam); btc8821a2ant_tdma_dur_adj()
2307 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, btc8821a2ant_tdma_dur_adj()
2315 halbtc8821a2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 0x6); btc8821a2ant_tdma_dur_adj()
2319 static void halbtc8821a2ant_action_sco(struct btc_coexist *btcoexist) halbtc8821a2ant_action_sco() argument
2324 wifi_rssi_state = halbtc8821a2ant_wifi_rssi_state(btcoexist, 0, 2, halbtc8821a2ant_action_sco()
2328 halbtc8821a2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 4); halbtc8821a2ant_action_sco()
2330 if (halbtc8821a2ant_need_to_dec_bt_pwr(btcoexist)) halbtc8821a2ant_action_sco()
2331 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, true); halbtc8821a2ant_action_sco()
2333 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); halbtc8821a2ant_action_sco()
2335 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); halbtc8821a2ant_action_sco()
2339 halbtc8821a2ant_coex_table(btcoexist, NORMAL_EXEC, halbtc8821a2ant_action_sco()
2343 halbtc8821a2ant_coex_table(btcoexist, NORMAL_EXEC, halbtc8821a2ant_action_sco()
2349 * halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 5); halbtc8821a2ant_action_sco()
2354 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, halbtc8821a2ant_action_sco()
2357 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, halbtc8821a2ant_action_sco()
2364 btc8821a2ant_sw_mech1(btcoexist, true, true, halbtc8821a2ant_action_sco()
2366 btc8821a2ant_sw_mech2(btcoexist, true, false, halbtc8821a2ant_action_sco()
2369 btc8821a2ant_sw_mech1(btcoexist, true, true, halbtc8821a2ant_action_sco()
2371 btc8821a2ant_sw_mech2(btcoexist, false, false, halbtc8821a2ant_action_sco()
2376 * halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 5); halbtc8821a2ant_action_sco()
2380 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, halbtc8821a2ant_action_sco()
2383 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, halbtc8821a2ant_action_sco()
2390 btc8821a2ant_sw_mech1(btcoexist, false, true, halbtc8821a2ant_action_sco()
2392 btc8821a2ant_sw_mech2(btcoexist, true, false, halbtc8821a2ant_action_sco()
2395 btc8821a2ant_sw_mech1(btcoexist, false, true, halbtc8821a2ant_action_sco()
2397 btc8821a2ant_sw_mech2(btcoexist, false, false, halbtc8821a2ant_action_sco()
2403 static void halbtc8821a2ant_action_hid(struct btc_coexist *btcoexist) halbtc8821a2ant_action_hid() argument
2408 wifi_rssi_state = halbtc8821a2ant_wifi_rssi_state(btcoexist, halbtc8821a2ant_action_hid()
2412 halbtc8821a2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); halbtc8821a2ant_action_hid()
2414 if (halbtc8821a2ant_need_to_dec_bt_pwr(btcoexist)) halbtc8821a2ant_action_hid()
2415 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, true); halbtc8821a2ant_action_hid()
2417 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); halbtc8821a2ant_action_hid()
2419 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); halbtc8821a2ant_action_hid()
2423 halbtc8821a2ant_coex_table(btcoexist, NORMAL_EXEC, 0x55ff55ff, halbtc8821a2ant_action_hid()
2427 halbtc8821a2ant_coex_table(btcoexist, NORMAL_EXEC, 0x55ff55ff, halbtc8821a2ant_action_hid()
2435 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, halbtc8821a2ant_action_hid()
2438 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, halbtc8821a2ant_action_hid()
2445 btc8821a2ant_sw_mech1(btcoexist, true, true, halbtc8821a2ant_action_hid()
2447 btc8821a2ant_sw_mech2(btcoexist, true, false, halbtc8821a2ant_action_hid()
2450 btc8821a2ant_sw_mech1(btcoexist, true, true, halbtc8821a2ant_action_hid()
2452 btc8821a2ant_sw_mech2(btcoexist, false, false, halbtc8821a2ant_action_hid()
2459 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, halbtc8821a2ant_action_hid()
2462 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, halbtc8821a2ant_action_hid()
2469 btc8821a2ant_sw_mech1(btcoexist, false, true, halbtc8821a2ant_action_hid()
2471 btc8821a2ant_sw_mech2(btcoexist, true, false, halbtc8821a2ant_action_hid()
2474 btc8821a2ant_sw_mech1(btcoexist, false, true, halbtc8821a2ant_action_hid()
2476 btc8821a2ant_sw_mech2(btcoexist, false, false, halbtc8821a2ant_action_hid()
2483 static void halbtc8821a2ant_action_a2dp(struct btc_coexist *btcoexist) halbtc8821a2ant_action_a2dp() argument
2488 wifi_rssi_state = halbtc8821a2ant_wifi_rssi_state(btcoexist, 0, 2, halbtc8821a2ant_action_a2dp()
2493 * halbtc8821a2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); halbtc8821a2ant_action_a2dp()
2496 if (halbtc8821a2ant_need_to_dec_bt_pwr(btcoexist)) halbtc8821a2ant_action_a2dp()
2497 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, true); halbtc8821a2ant_action_a2dp()
2499 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); halbtc8821a2ant_action_a2dp()
2501 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); halbtc8821a2ant_action_a2dp()
2507 btc8821a2ant_tdma_dur_adj(btcoexist, false, false, 1); halbtc8821a2ant_action_a2dp()
2509 btc8821a2ant_tdma_dur_adj(btcoexist, false, true, 1); halbtc8821a2ant_action_a2dp()
2515 btc8821a2ant_sw_mech1(btcoexist, true, false, halbtc8821a2ant_action_a2dp()
2517 btc8821a2ant_sw_mech2(btcoexist, true, false, halbtc8821a2ant_action_a2dp()
2520 btc8821a2ant_sw_mech1(btcoexist, true, false, halbtc8821a2ant_action_a2dp()
2522 btc8821a2ant_sw_mech2(btcoexist, false, false, halbtc8821a2ant_action_a2dp()
2529 btc8821a2ant_tdma_dur_adj(btcoexist, false, false, 1); halbtc8821a2ant_action_a2dp()
2531 btc8821a2ant_tdma_dur_adj(btcoexist, false, true, 1); halbtc8821a2ant_action_a2dp()
2537 btc8821a2ant_sw_mech1(btcoexist, false, false, halbtc8821a2ant_action_a2dp()
2539 btc8821a2ant_sw_mech2(btcoexist, true, false, halbtc8821a2ant_action_a2dp()
2542 btc8821a2ant_sw_mech1(btcoexist, false, false, halbtc8821a2ant_action_a2dp()
2544 btc8821a2ant_sw_mech2(btcoexist, false, false, halbtc8821a2ant_action_a2dp()
2550 static void halbtc8821a2ant_action_a2dp_pan_hs(struct btc_coexist *btcoexist) halbtc8821a2ant_action_a2dp_pan_hs() argument
2556 wifi_rssi_state = halbtc8821a2ant_wifi_rssi_state(btcoexist, 0, 2, halbtc8821a2ant_action_a2dp_pan_hs()
2561 *halbtc8821a2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); halbtc8821a2ant_action_a2dp_pan_hs()
2564 if (halbtc8821a2ant_need_to_dec_bt_pwr(btcoexist)) halbtc8821a2ant_action_a2dp_pan_hs()
2565 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, true); halbtc8821a2ant_action_a2dp_pan_hs()
2567 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); halbtc8821a2ant_action_a2dp_pan_hs()
2569 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); halbtc8821a2ant_action_a2dp_pan_hs()
2575 btc8821a2ant_tdma_dur_adj(btcoexist, false, true, 2); halbtc8821a2ant_action_a2dp_pan_hs()
2578 btc8821a2ant_tdma_dur_adj(btcoexist, false, true, 1); halbtc8821a2ant_action_a2dp_pan_hs()
2584 btc8821a2ant_sw_mech1(btcoexist, true, false, halbtc8821a2ant_action_a2dp_pan_hs()
2586 btc8821a2ant_sw_mech2(btcoexist, true, false, halbtc8821a2ant_action_a2dp_pan_hs()
2589 btc8821a2ant_sw_mech1(btcoexist, true, false, halbtc8821a2ant_action_a2dp_pan_hs()
2591 btc8821a2ant_sw_mech2(btcoexist, false, false, halbtc8821a2ant_action_a2dp_pan_hs()
2598 btc8821a2ant_tdma_dur_adj(btcoexist, false, true, 2); halbtc8821a2ant_action_a2dp_pan_hs()
2601 btc8821a2ant_tdma_dur_adj(btcoexist, false, true, 1); halbtc8821a2ant_action_a2dp_pan_hs()
2607 btc8821a2ant_sw_mech1(btcoexist, false, false, halbtc8821a2ant_action_a2dp_pan_hs()
2609 btc8821a2ant_sw_mech2(btcoexist, true, false, halbtc8821a2ant_action_a2dp_pan_hs()
2612 btc8821a2ant_sw_mech1(btcoexist, false, false, halbtc8821a2ant_action_a2dp_pan_hs()
2614 btc8821a2ant_sw_mech2(btcoexist, false, false, halbtc8821a2ant_action_a2dp_pan_hs()
2620 static void halbtc8821a2ant_action_pan_edr(struct btc_coexist *btcoexist) halbtc8821a2ant_action_pan_edr() argument
2625 wifi_rssi_state = halbtc8821a2ant_wifi_rssi_state(btcoexist, 0, 2, halbtc8821a2ant_action_pan_edr()
2629 halbtc8821a2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); halbtc8821a2ant_action_pan_edr()
2631 if (halbtc8821a2ant_need_to_dec_bt_pwr(btcoexist)) halbtc8821a2ant_action_pan_edr()
2632 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, true); halbtc8821a2ant_action_pan_edr()
2634 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); halbtc8821a2ant_action_pan_edr()
2636 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); halbtc8821a2ant_action_pan_edr()
2640 halbtc8821a2ant_coex_table(btcoexist, NORMAL_EXEC, 0x55ff55ff, halbtc8821a2ant_action_pan_edr()
2644 halbtc8821a2ant_coex_table(btcoexist, NORMAL_EXEC, 0x55ff55ff, halbtc8821a2ant_action_pan_edr()
2652 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, halbtc8821a2ant_action_pan_edr()
2655 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, halbtc8821a2ant_action_pan_edr()
2662 btc8821a2ant_sw_mech1(btcoexist, true, false, halbtc8821a2ant_action_pan_edr()
2664 btc8821a2ant_sw_mech2(btcoexist, true, false, halbtc8821a2ant_action_pan_edr()
2667 btc8821a2ant_sw_mech1(btcoexist, true, false, halbtc8821a2ant_action_pan_edr()
2669 btc8821a2ant_sw_mech2(btcoexist, false, false, halbtc8821a2ant_action_pan_edr()
2676 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, halbtc8821a2ant_action_pan_edr()
2679 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, halbtc8821a2ant_action_pan_edr()
2686 btc8821a2ant_sw_mech1(btcoexist, false, false, halbtc8821a2ant_action_pan_edr()
2688 btc8821a2ant_sw_mech2(btcoexist, true, false, halbtc8821a2ant_action_pan_edr()
2691 btc8821a2ant_sw_mech1(btcoexist, false, false, halbtc8821a2ant_action_pan_edr()
2693 btc8821a2ant_sw_mech2(btcoexist, false, false, halbtc8821a2ant_action_pan_edr()
2700 static void halbtc8821a2ant_action_pan_hs(struct btc_coexist *btcoexist) halbtc8821a2ant_action_pan_hs() argument
2705 wifi_rssi_state = halbtc8821a2ant_wifi_rssi_state(btcoexist, halbtc8821a2ant_action_pan_hs()
2709 halbtc8821a2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); halbtc8821a2ant_action_pan_hs()
2711 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); halbtc8821a2ant_action_pan_hs()
2717 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, halbtc8821a2ant_action_pan_hs()
2720 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, halbtc8821a2ant_action_pan_hs()
2723 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 1); halbtc8821a2ant_action_pan_hs()
2728 btc8821a2ant_sw_mech1(btcoexist, true, false, halbtc8821a2ant_action_pan_hs()
2730 btc8821a2ant_sw_mech2(btcoexist, true, false, halbtc8821a2ant_action_pan_hs()
2733 btc8821a2ant_sw_mech1(btcoexist, true, false, halbtc8821a2ant_action_pan_hs()
2735 btc8821a2ant_sw_mech2(btcoexist, false, false, halbtc8821a2ant_action_pan_hs()
2742 halbtc8821a2ant_dec_bt_pwr(btcoexist, halbtc8821a2ant_action_pan_hs()
2745 halbtc8821a2ant_dec_bt_pwr(btcoexist, halbtc8821a2ant_action_pan_hs()
2751 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, halbtc8821a2ant_action_pan_hs()
2754 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, halbtc8821a2ant_action_pan_hs()
2761 btc8821a2ant_sw_mech1(btcoexist, false, false, halbtc8821a2ant_action_pan_hs()
2763 btc8821a2ant_sw_mech2(btcoexist, true, false, halbtc8821a2ant_action_pan_hs()
2766 btc8821a2ant_sw_mech1(btcoexist, false, false, halbtc8821a2ant_action_pan_hs()
2768 btc8821a2ant_sw_mech2(btcoexist, false, false, halbtc8821a2ant_action_pan_hs()
2775 static void halbtc8821a2ant_action_pan_edr_a2dp(struct btc_coexist *btcoexist) halbtc8821a2ant_action_pan_edr_a2dp() argument
2781 wifi_rssi_state = halbtc8821a2ant_wifi_rssi_state(btcoexist, 0, 2, halbtc8821a2ant_action_pan_edr_a2dp()
2785 halbtc8821a2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); halbtc8821a2ant_action_pan_edr_a2dp()
2787 if (halbtc8821a2ant_need_to_dec_bt_pwr(btcoexist)) halbtc8821a2ant_action_pan_edr_a2dp()
2788 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, true); halbtc8821a2ant_action_pan_edr_a2dp()
2790 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); halbtc8821a2ant_action_pan_edr_a2dp()
2792 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); halbtc8821a2ant_action_pan_edr_a2dp()
2796 halbtc8821a2ant_coex_table(btcoexist, NORMAL_EXEC, 0x55ff55ff, halbtc8821a2ant_action_pan_edr_a2dp()
2800 halbtc8821a2ant_coex_table(btcoexist, NORMAL_EXEC, 0x55ff55ff, halbtc8821a2ant_action_pan_edr_a2dp()
2810 btc8821a2ant_tdma_dur_adj(btcoexist, false, halbtc8821a2ant_action_pan_edr_a2dp()
2814 btc8821a2ant_tdma_dur_adj(btcoexist, false, halbtc8821a2ant_action_pan_edr_a2dp()
2820 btc8821a2ant_tdma_dur_adj(btcoexist, false, halbtc8821a2ant_action_pan_edr_a2dp()
2824 btc8821a2ant_tdma_dur_adj(btcoexist, false, halbtc8821a2ant_action_pan_edr_a2dp()
2832 btc8821a2ant_sw_mech1(btcoexist, true, false, halbtc8821a2ant_action_pan_edr_a2dp()
2834 btc8821a2ant_sw_mech2(btcoexist, true, false, halbtc8821a2ant_action_pan_edr_a2dp()
2837 btc8821a2ant_sw_mech1(btcoexist, true, false, halbtc8821a2ant_action_pan_edr_a2dp()
2839 btc8821a2ant_sw_mech2(btcoexist, false, false, halbtc8821a2ant_action_pan_edr_a2dp()
2848 btc8821a2ant_tdma_dur_adj(btcoexist, false, halbtc8821a2ant_action_pan_edr_a2dp()
2852 btc8821a2ant_tdma_dur_adj(btcoexist, false, halbtc8821a2ant_action_pan_edr_a2dp()
2858 btc8821a2ant_tdma_dur_adj(btcoexist, false, halbtc8821a2ant_action_pan_edr_a2dp()
2862 btc8821a2ant_tdma_dur_adj(btcoexist, false, halbtc8821a2ant_action_pan_edr_a2dp()
2870 btc8821a2ant_sw_mech1(btcoexist, false, false, halbtc8821a2ant_action_pan_edr_a2dp()
2872 btc8821a2ant_sw_mech2(btcoexist, true, false, halbtc8821a2ant_action_pan_edr_a2dp()
2875 btc8821a2ant_sw_mech1(btcoexist, false, false, halbtc8821a2ant_action_pan_edr_a2dp()
2877 btc8821a2ant_sw_mech2(btcoexist, false, false, halbtc8821a2ant_action_pan_edr_a2dp()
2883 static void halbtc8821a2ant_action_pan_edr_hid(struct btc_coexist *btcoexist) halbtc8821a2ant_action_pan_edr_hid() argument
2888 wifi_rssi_state = halbtc8821a2ant_wifi_rssi_state(btcoexist, 0, 2, halbtc8821a2ant_action_pan_edr_hid()
2892 halbtc8821a2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); halbtc8821a2ant_action_pan_edr_hid()
2894 if (halbtc8821a2ant_need_to_dec_bt_pwr(btcoexist)) halbtc8821a2ant_action_pan_edr_hid()
2895 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, true); halbtc8821a2ant_action_pan_edr_hid()
2897 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); halbtc8821a2ant_action_pan_edr_hid()
2899 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); halbtc8821a2ant_action_pan_edr_hid()
2903 halbtc8821a2ant_coex_table(btcoexist, NORMAL_EXEC, 0x55ff55ff, halbtc8821a2ant_action_pan_edr_hid()
2907 halbtc8821a2ant_coex_table(btcoexist, NORMAL_EXEC, 0x55ff55ff, halbtc8821a2ant_action_pan_edr_hid()
2912 halbtc8821a2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 3); halbtc8821a2ant_action_pan_edr_hid()
2916 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, halbtc8821a2ant_action_pan_edr_hid()
2919 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, halbtc8821a2ant_action_pan_edr_hid()
2926 btc8821a2ant_sw_mech1(btcoexist, true, true, halbtc8821a2ant_action_pan_edr_hid()
2928 btc8821a2ant_sw_mech2(btcoexist, true, false, halbtc8821a2ant_action_pan_edr_hid()
2931 btc8821a2ant_sw_mech1(btcoexist, true, true, halbtc8821a2ant_action_pan_edr_hid()
2933 btc8821a2ant_sw_mech2(btcoexist, false, false, halbtc8821a2ant_action_pan_edr_hid()
2937 halbtc8821a2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); halbtc8821a2ant_action_pan_edr_hid()
2941 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, halbtc8821a2ant_action_pan_edr_hid()
2944 halbtc8821a2ant_ps_tdma(btcoexist, NORMAL_EXEC, halbtc8821a2ant_action_pan_edr_hid()
2951 btc8821a2ant_sw_mech1(btcoexist, false, true, halbtc8821a2ant_action_pan_edr_hid()
2953 btc8821a2ant_sw_mech2(btcoexist, true, false, halbtc8821a2ant_action_pan_edr_hid()
2956 btc8821a2ant_sw_mech1(btcoexist, false, true, halbtc8821a2ant_action_pan_edr_hid()
2958 btc8821a2ant_sw_mech2(btcoexist, false, false, halbtc8821a2ant_action_pan_edr_hid()
2965 static void btc8821a2ant_act_hid_a2dp_pan_edr(struct btc_coexist *btcoexist) btc8821a2ant_act_hid_a2dp_pan_edr() argument
2971 wifi_rssi_state = halbtc8821a2ant_wifi_rssi_state(btcoexist, btc8821a2ant_act_hid_a2dp_pan_edr()
2975 halbtc8821a2ant_fw_dac_swing_lvl(btcoexist, NORMAL_EXEC, 6); btc8821a2ant_act_hid_a2dp_pan_edr()
2977 if (halbtc8821a2ant_need_to_dec_bt_pwr(btcoexist)) btc8821a2ant_act_hid_a2dp_pan_edr()
2978 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, true); btc8821a2ant_act_hid_a2dp_pan_edr()
2980 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); btc8821a2ant_act_hid_a2dp_pan_edr()
2982 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); btc8821a2ant_act_hid_a2dp_pan_edr()
2986 halbtc8821a2ant_coex_table(btcoexist, NORMAL_EXEC, 0x55ff55ff, btc8821a2ant_act_hid_a2dp_pan_edr()
2990 halbtc8821a2ant_coex_table(btcoexist, NORMAL_EXEC, 0x55ff55ff, btc8821a2ant_act_hid_a2dp_pan_edr()
3000 btc8821a2ant_tdma_dur_adj(btcoexist, true, btc8821a2ant_act_hid_a2dp_pan_edr()
3004 btc8821a2ant_tdma_dur_adj(btcoexist, true, btc8821a2ant_act_hid_a2dp_pan_edr()
3010 btc8821a2ant_tdma_dur_adj(btcoexist, true, btc8821a2ant_act_hid_a2dp_pan_edr()
3014 btc8821a2ant_tdma_dur_adj(btcoexist, true, btc8821a2ant_act_hid_a2dp_pan_edr()
3022 btc8821a2ant_sw_mech1(btcoexist, true, true, btc8821a2ant_act_hid_a2dp_pan_edr()
3024 btc8821a2ant_sw_mech2(btcoexist, true, false, btc8821a2ant_act_hid_a2dp_pan_edr()
3027 btc8821a2ant_sw_mech1(btcoexist, true, true, btc8821a2ant_act_hid_a2dp_pan_edr()
3029 btc8821a2ant_sw_mech2(btcoexist, false, false, btc8821a2ant_act_hid_a2dp_pan_edr()
3038 btc8821a2ant_tdma_dur_adj(btcoexist, true, btc8821a2ant_act_hid_a2dp_pan_edr()
3042 btc8821a2ant_tdma_dur_adj(btcoexist, true, btc8821a2ant_act_hid_a2dp_pan_edr()
3048 btc8821a2ant_tdma_dur_adj(btcoexist, true, btc8821a2ant_act_hid_a2dp_pan_edr()
3052 btc8821a2ant_tdma_dur_adj(btcoexist, true, btc8821a2ant_act_hid_a2dp_pan_edr()
3060 btc8821a2ant_sw_mech1(btcoexist, false, true, btc8821a2ant_act_hid_a2dp_pan_edr()
3062 btc8821a2ant_sw_mech2(btcoexist, true, false, btc8821a2ant_act_hid_a2dp_pan_edr()
3065 btc8821a2ant_sw_mech1(btcoexist, false, true, btc8821a2ant_act_hid_a2dp_pan_edr()
3067 btc8821a2ant_sw_mech2(btcoexist, false, false, btc8821a2ant_act_hid_a2dp_pan_edr()
3073 static void halbtc8821a2ant_action_hid_a2dp(struct btc_coexist *btcoexist) halbtc8821a2ant_action_hid_a2dp() argument
3079 wifi_rssi_state = halbtc8821a2ant_wifi_rssi_state(btcoexist, 0, 2, halbtc8821a2ant_action_hid_a2dp()
3083 if (halbtc8821a2ant_need_to_dec_bt_pwr(btcoexist)) halbtc8821a2ant_action_hid_a2dp()
3084 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, true); halbtc8821a2ant_action_hid_a2dp()
3086 halbtc8821a2ant_dec_bt_pwr(btcoexist, NORMAL_EXEC, false); halbtc8821a2ant_action_hid_a2dp()
3088 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); halbtc8821a2ant_action_hid_a2dp()
3092 halbtc8821a2ant_coex_table(btcoexist, NORMAL_EXEC, 0x55ff55ff, halbtc8821a2ant_action_hid_a2dp()
3096 halbtc8821a2ant_coex_table(btcoexist, NORMAL_EXEC, 0x55ff55ff, halbtc8821a2ant_action_hid_a2dp()
3106 btc8821a2ant_tdma_dur_adj(btcoexist, halbtc8821a2ant_action_hid_a2dp()
3110 btc8821a2ant_tdma_dur_adj(btcoexist, halbtc8821a2ant_action_hid_a2dp()
3116 btc8821a2ant_tdma_dur_adj(btcoexist, halbtc8821a2ant_action_hid_a2dp()
3120 btc8821a2ant_tdma_dur_adj(btcoexist, halbtc8821a2ant_action_hid_a2dp()
3128 btc8821a2ant_sw_mech1(btcoexist, true, true, halbtc8821a2ant_action_hid_a2dp()
3130 btc8821a2ant_sw_mech2(btcoexist, true, false, halbtc8821a2ant_action_hid_a2dp()
3133 btc8821a2ant_sw_mech1(btcoexist, true, true, halbtc8821a2ant_action_hid_a2dp()
3135 btc8821a2ant_sw_mech2(btcoexist, false, false, halbtc8821a2ant_action_hid_a2dp()
3144 btc8821a2ant_tdma_dur_adj(btcoexist, halbtc8821a2ant_action_hid_a2dp()
3149 btc8821a2ant_tdma_dur_adj(btcoexist, halbtc8821a2ant_action_hid_a2dp()
3155 btc8821a2ant_tdma_dur_adj(btcoexist, halbtc8821a2ant_action_hid_a2dp()
3159 btc8821a2ant_tdma_dur_adj(btcoexist, halbtc8821a2ant_action_hid_a2dp()
3167 btc8821a2ant_sw_mech1(btcoexist, false, true, halbtc8821a2ant_action_hid_a2dp()
3169 btc8821a2ant_sw_mech2(btcoexist, true, false, halbtc8821a2ant_action_hid_a2dp()
3172 btc8821a2ant_sw_mech1(btcoexist, false, true, halbtc8821a2ant_action_hid_a2dp()
3174 btc8821a2ant_sw_mech2(btcoexist, false, false, halbtc8821a2ant_action_hid_a2dp()
3180 static void halbtc8821a2ant_run_coexist_mechanism(struct btc_coexist *btcoexist) halbtc8821a2ant_run_coexist_mechanism() argument
3185 if (btcoexist->manual_control) { halbtc8821a2ant_run_coexist_mechanism()
3191 btcoexist->btc_get(btcoexist, halbtc8821a2ant_run_coexist_mechanism()
3197 halbtc8821a2ant_coex_under_5g(btcoexist); halbtc8821a2ant_run_coexist_mechanism()
3201 algorithm = halbtc8821a2ant_action_algorithm(btcoexist); halbtc8821a2ant_run_coexist_mechanism()
3206 halbtc8821a2ant_bt_inquiry_page(btcoexist); halbtc8821a2ant_run_coexist_mechanism()
3214 if (halbtc8821a2ant_is_common_action(btcoexist)) { halbtc8821a2ant_run_coexist_mechanism()
3229 halbtc8821a2ant_action_sco(btcoexist); halbtc8821a2ant_run_coexist_mechanism()
3234 halbtc8821a2ant_action_hid(btcoexist); halbtc8821a2ant_run_coexist_mechanism()
3239 halbtc8821a2ant_action_a2dp(btcoexist); halbtc8821a2ant_run_coexist_mechanism()
3244 halbtc8821a2ant_action_a2dp_pan_hs(btcoexist); halbtc8821a2ant_run_coexist_mechanism()
3249 halbtc8821a2ant_action_pan_edr(btcoexist); halbtc8821a2ant_run_coexist_mechanism()
3254 halbtc8821a2ant_action_pan_hs(btcoexist); halbtc8821a2ant_run_coexist_mechanism()
3259 halbtc8821a2ant_action_pan_edr_a2dp(btcoexist); halbtc8821a2ant_run_coexist_mechanism()
3264 halbtc8821a2ant_action_pan_edr_hid(btcoexist); halbtc8821a2ant_run_coexist_mechanism()
3269 btc8821a2ant_act_hid_a2dp_pan_edr(btcoexist); halbtc8821a2ant_run_coexist_mechanism()
3274 halbtc8821a2ant_action_hid_a2dp(btcoexist); halbtc8821a2ant_run_coexist_mechanism()
3279 halbtc8821a2ant_coex_all_off(btcoexist); halbtc8821a2ant_run_coexist_mechanism()
3293 void ex_halbtc8821a2ant_init_hwconfig(struct btc_coexist *btcoexist) ex_halbtc8821a2ant_init_hwconfig() argument
3302 btcoexist->btc_get_rf_reg(btcoexist, BTC_RF_A, 0x1e, 0xfffff); ex_halbtc8821a2ant_init_hwconfig()
3305 u1tmp = btcoexist->btc_read_1byte(btcoexist, 0x790); ex_halbtc8821a2ant_init_hwconfig()
3308 btcoexist->btc_write_1byte(btcoexist, 0x790, u1tmp); ex_halbtc8821a2ant_init_hwconfig()
3311 halbtc8821a2ant_set_ant_path(btcoexist, ex_halbtc8821a2ant_init_hwconfig()
3315 halbtc8821a2ant_coex_table(btcoexist, ex_halbtc8821a2ant_init_hwconfig()
3321 btcoexist->btc_write_1byte(btcoexist, 0x76e, 0xc); ex_halbtc8821a2ant_init_hwconfig()
3322 btcoexist->btc_write_1byte(btcoexist, 0x778, 0x3); ex_halbtc8821a2ant_init_hwconfig()
3323 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x40, 0x20, 0x1); ex_halbtc8821a2ant_init_hwconfig()
3328 struct btc_coexist *btcoexist ex_halbtc8821a2ant_init_coex_dm()
3334 halbtc8821a2ant_init_coex_dm(btcoexist); ex_halbtc8821a2ant_init_coex_dm()
3339 struct btc_coexist *btcoexist ex_halbtc8821a2ant_display_coex_info()
3342 struct btc_board_info *board_info = &btcoexist->board_info; ex_halbtc8821a2ant_display_coex_info()
3343 struct btc_stack_info *stack_info = &btcoexist->stack_info; ex_halbtc8821a2ant_display_coex_info()
3344 struct rtl_priv *rtlpriv = btcoexist->adapter; ex_halbtc8821a2ant_display_coex_info()
3366 if (btcoexist->manual_control) { ex_halbtc8821a2ant_display_coex_info()
3376 btcoexist->btc_get(btcoexist, BTC_GET_U4_BT_PATCH_VER, &bt_patch_ver); ex_halbtc8821a2ant_display_coex_info()
3377 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_FW_VER, &fw_ver); ex_halbtc8821a2ant_display_coex_info()
3384 btcoexist->btc_get(btcoexist, ex_halbtc8821a2ant_display_coex_info()
3386 btcoexist->btc_get(btcoexist, ex_halbtc8821a2ant_display_coex_info()
3388 btcoexist->btc_get(btcoexist, ex_halbtc8821a2ant_display_coex_info()
3401 btcoexist->btc_get(btcoexist, BTC_GET_S4_WIFI_RSSI, &wifi_rssi); ex_halbtc8821a2ant_display_coex_info()
3402 btcoexist->btc_get(btcoexist, BTC_GET_S4_HS_RSSI, &bt_hs_rssi); ex_halbtc8821a2ant_display_coex_info()
3407 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_SCAN, &scan); ex_halbtc8821a2ant_display_coex_info()
3408 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link); ex_halbtc8821a2ant_display_coex_info()
3409 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_ROAM, &roam); ex_halbtc8821a2ant_display_coex_info()
3414 btcoexist->btc_get(btcoexist, ex_halbtc8821a2ant_display_coex_info()
3416 btcoexist->btc_get(btcoexist, ex_halbtc8821a2ant_display_coex_info()
3418 btcoexist->btc_get(btcoexist, ex_halbtc8821a2ant_display_coex_info()
3420 btcoexist->btc_get(btcoexist, ex_halbtc8821a2ant_display_coex_info()
3445 btcoexist->btc_disp_dbg_msg(btcoexist, ex_halbtc8821a2ant_display_coex_info()
3474 btcoexist->btc_disp_dbg_msg(btcoexist, BTC_DBG_DISP_FW_PWR_MODE_CMD); ex_halbtc8821a2ant_display_coex_info()
3494 if (!btcoexist->manual_control) { ex_halbtc8821a2ant_display_coex_info()
3517 u1tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x778); ex_halbtc8821a2ant_display_coex_info()
3518 u1tmp[1] = btcoexist->btc_read_1byte(btcoexist, 0x6cc); ex_halbtc8821a2ant_display_coex_info()
3523 u1tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x8db); ex_halbtc8821a2ant_display_coex_info()
3524 u1tmp[1] = btcoexist->btc_read_1byte(btcoexist, 0xc5b); ex_halbtc8821a2ant_display_coex_info()
3529 u4tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0xcb4); ex_halbtc8821a2ant_display_coex_info()
3534 u1tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x40); ex_halbtc8821a2ant_display_coex_info()
3535 u4tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x4c); ex_halbtc8821a2ant_display_coex_info()
3536 u4tmp[1] = btcoexist->btc_read_4byte(btcoexist, 0x974); ex_halbtc8821a2ant_display_coex_info()
3541 u4tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x550); ex_halbtc8821a2ant_display_coex_info()
3542 u1tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x522); ex_halbtc8821a2ant_display_coex_info()
3547 u4tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0xc50); ex_halbtc8821a2ant_display_coex_info()
3548 u1tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0xa0a); ex_halbtc8821a2ant_display_coex_info()
3553 u4tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0xf48); ex_halbtc8821a2ant_display_coex_info()
3554 u1tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0xa5b); ex_halbtc8821a2ant_display_coex_info()
3555 u1tmp[1] = btcoexist->btc_read_1byte(btcoexist, 0xa5c); ex_halbtc8821a2ant_display_coex_info()
3560 u4tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x6c0); ex_halbtc8821a2ant_display_coex_info()
3561 u4tmp[1] = btcoexist->btc_read_4byte(btcoexist, 0x6c4); ex_halbtc8821a2ant_display_coex_info()
3562 u4tmp[2] = btcoexist->btc_read_4byte(btcoexist, 0x6c8); ex_halbtc8821a2ant_display_coex_info()
3575 u1tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x41b); ex_halbtc8821a2ant_display_coex_info()
3580 btcoexist->btc_disp_dbg_msg(btcoexist, BTC_DBG_DISP_COEX_STATISTICS); ex_halbtc8821a2ant_display_coex_info()
3583 void ex_halbtc8821a2ant_ips_notify(struct btc_coexist *btcoexist, u8 type) ex_halbtc8821a2ant_ips_notify() argument
3589 halbtc8821a2ant_coex_all_off(btcoexist); ex_halbtc8821a2ant_ips_notify()
3594 /*halbtc8821a2ant_init_coex_dm(btcoexist);*/ ex_halbtc8821a2ant_ips_notify()
3598 void ex_halbtc8821a2ant_lps_notify(struct btc_coexist *btcoexist, u8 type) ex_halbtc8821a2ant_lps_notify() argument
3611 void ex_halbtc8821a2ant_scan_notify(struct btc_coexist *btcoexist, u8 type) ex_halbtc8821a2ant_scan_notify() argument
3622 void ex_halbtc8821a2ant_connect_notify(struct btc_coexist *btcoexist, u8 type) ex_halbtc8821a2ant_connect_notify() argument
3633 void ex_halbtc8821a2ant_media_status_notify(struct btc_coexist *btcoexist, ex_halbtc8821a2ant_media_status_notify() argument
3649 btcoexist->btc_get(btcoexist, BTC_GET_U1_WIFI_CENTRAL_CHNL, ex_halbtc8821a2ant_media_status_notify()
3655 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); ex_halbtc8821a2ant_media_status_notify()
3670 btcoexist->btc_fill_h2c(btcoexist, 0x66, 3, h2c_parameter); ex_halbtc8821a2ant_media_status_notify()
3673 void ex_halbtc8821a2ant_special_packet_notify(struct btc_coexist *btcoexist, ex_halbtc8821a2ant_special_packet_notify() argument
3681 void ex_halbtc8821a2ant_bt_info_notify(struct btc_coexist *btcoexist, ex_halbtc8821a2ant_bt_info_notify() argument
3726 btcoexist->btc_get(btcoexist, ex_halbtc8821a2ant_bt_info_notify()
3729 ex_halbtc8821a2ant_media_status_notify(btcoexist, ex_halbtc8821a2ant_bt_info_notify()
3732 ex_halbtc8821a2ant_media_status_notify(btcoexist, ex_halbtc8821a2ant_bt_info_notify()
3739 halbtc8821a2ant_set_bt_psd_mode(btcoexist, FORCE_EXEC, ex_halbtc8821a2ant_bt_info_notify()
3747 btc8821a2_set_bt_lna_const(btcoexist, ex_halbtc8821a2ant_bt_info_notify()
3758 halbtc8821a2ant_ignore_wlan_act(btcoexist, ex_halbtc8821a2ant_bt_info_notify()
3767 halbtc8821a2ant_bt_auto_report(btcoexist, ex_halbtc8821a2ant_bt_info_notify()
3772 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); ex_halbtc8821a2ant_bt_info_notify()
3820 btcoexist->btc_set(btcoexist, BTC_SET_BL_BT_TRAFFIC_BUSY, &bt_busy); ex_halbtc8821a2ant_bt_info_notify()
3827 btcoexist->btc_set(btcoexist, ex_halbtc8821a2ant_bt_info_notify()
3830 halbtc8821a2ant_run_coexist_mechanism(btcoexist); ex_halbtc8821a2ant_bt_info_notify()
3833 void ex_halbtc8821a2ant_halt_notify(struct btc_coexist *btcoexist) ex_halbtc8821a2ant_halt_notify() argument
3838 halbtc8821a2ant_ignore_wlan_act(btcoexist, FORCE_EXEC, true); ex_halbtc8821a2ant_halt_notify()
3839 ex_halbtc8821a2ant_media_status_notify(btcoexist, BTC_MEDIA_DISCONNECT); ex_halbtc8821a2ant_halt_notify()
3842 void ex_halbtc8821a2ant_periodical(struct btc_coexist *btcoexist) ex_halbtc8821a2ant_periodical() argument
3846 struct btc_board_info *board_info = &btcoexist->board_info; ex_halbtc8821a2ant_periodical()
3847 struct btc_stack_info *stack_info = &btcoexist->stack_info; ex_halbtc8821a2ant_periodical()
3865 btcoexist->btc_get(btcoexist, BTC_GET_U4_BT_PATCH_VER, ex_halbtc8821a2ant_periodical()
3867 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_FW_VER, &fw_ver); ex_halbtc8821a2ant_periodical()
3876 halbtc8821a2ant_query_bt_info(btcoexist); ex_halbtc8821a2ant_periodical()
3877 halbtc8821a2ant_monitor_bt_ctr(btcoexist); ex_halbtc8821a2ant_periodical()
3878 btc8821a2ant_mon_bt_en_dis(btcoexist); ex_halbtc8821a2ant_periodical()
H A Dhalbtc8723b1ant.c150 static u8 halbtc8723b1ant_wifi_rssi_state(struct btc_coexist *btcoexist, halbtc8723b1ant_wifi_rssi_state() argument
157 btcoexist->btc_get(btcoexist, halbtc8723b1ant_wifi_rssi_state()
254 static void halbtc8723b1ant_updatera_mask(struct btc_coexist *btcoexist, halbtc8723b1ant_updatera_mask() argument
260 btcoexist->btc_set(btcoexist, BTC_SET_ACT_UPDATE_ra_mask, halbtc8723b1ant_updatera_mask()
266 static void btc8723b1ant_auto_rate_fb_retry(struct btc_coexist *btcoexist, btc8723b1ant_auto_rate_fb_retry() argument
276 btcoexist->btc_write_4byte(btcoexist, 0x430, btc8723b1ant_auto_rate_fb_retry()
278 btcoexist->btc_write_4byte(btcoexist, 0x434, btc8723b1ant_auto_rate_fb_retry()
282 btcoexist->btc_get(btcoexist, btc8723b1ant_auto_rate_fb_retry()
286 btcoexist->btc_write_4byte(btcoexist, btc8723b1ant_auto_rate_fb_retry()
288 btcoexist->btc_write_4byte(btcoexist, btc8723b1ant_auto_rate_fb_retry()
291 btcoexist->btc_write_4byte(btcoexist, btc8723b1ant_auto_rate_fb_retry()
293 btcoexist->btc_write_4byte(btcoexist, btc8723b1ant_auto_rate_fb_retry()
305 static void halbtc8723b1ant_retry_limit(struct btc_coexist *btcoexist, halbtc8723b1ant_retry_limit() argument
314 btcoexist->btc_write_2byte(btcoexist, 0x42a, halbtc8723b1ant_retry_limit()
318 btcoexist->btc_write_2byte(btcoexist, 0x42a, 0x0808); halbtc8723b1ant_retry_limit()
328 static void halbtc8723b1ant_ampdu_maxtime(struct btc_coexist *btcoexist, halbtc8723b1ant_ampdu_maxtime() argument
337 btcoexist->btc_write_1byte(btcoexist, 0x456, halbtc8723b1ant_ampdu_maxtime()
341 btcoexist->btc_write_1byte(btcoexist, halbtc8723b1ant_ampdu_maxtime()
352 static void halbtc8723b1ant_limited_tx(struct btc_coexist *btcoexist, halbtc8723b1ant_limited_tx() argument
359 halbtc8723b1ant_updatera_mask(btcoexist, force_exec, 0x0); halbtc8723b1ant_limited_tx()
362 halbtc8723b1ant_updatera_mask(btcoexist, force_exec, halbtc8723b1ant_limited_tx()
367 halbtc8723b1ant_updatera_mask(btcoexist, force_exec, halbtc8723b1ant_limited_tx()
374 btc8723b1ant_auto_rate_fb_retry(btcoexist, force_exec, arfr_type); halbtc8723b1ant_limited_tx()
375 halbtc8723b1ant_retry_limit(btcoexist, force_exec, retry_limit_type); halbtc8723b1ant_limited_tx()
376 halbtc8723b1ant_ampdu_maxtime(btcoexist, force_exec, ampdu_time_type); halbtc8723b1ant_limited_tx()
379 static void halbtc8723b1ant_limited_rx(struct btc_coexist *btcoexist, halbtc8723b1ant_limited_rx() argument
391 btcoexist->btc_set(btcoexist, BTC_SET_BL_TO_REJ_AP_AGG_PKT, halbtc8723b1ant_limited_rx()
394 btcoexist->btc_set(btcoexist, BTC_SET_BL_BT_CTRL_AGG_SIZE, halbtc8723b1ant_limited_rx()
399 btcoexist->btc_set(btcoexist, BTC_SET_U1_AGG_BUF_SIZE, &rxaggsize); halbtc8723b1ant_limited_rx()
401 btcoexist->btc_set(btcoexist, BTC_SET_ACT_AGGREGATE_CTRL, NULL); halbtc8723b1ant_limited_rx()
404 static void halbtc8723b1ant_monitor_bt_ctr(struct btc_coexist *btcoexist) halbtc8723b1ant_monitor_bt_ctr() argument
413 u32tmp = btcoexist->btc_read_4byte(btcoexist, reg_hp_txrx); halbtc8723b1ant_monitor_bt_ctr()
417 u32tmp = btcoexist->btc_read_4byte(btcoexist, reg_lp_txrx); halbtc8723b1ant_monitor_bt_ctr()
427 btcoexist->btc_write_1byte(btcoexist, 0x76e, 0xc); halbtc8723b1ant_monitor_bt_ctr()
430 static void halbtc8723b1ant_query_bt_info(struct btc_coexist *btcoexist) halbtc8723b1ant_query_bt_info() argument
442 btcoexist->btc_fill_h2c(btcoexist, 0x61, 1, h2c_parameter); halbtc8723b1ant_query_bt_info()
445 static bool btc8723b1ant_is_wifi_status_changed(struct btc_coexist *btcoexist) btc8723b1ant_is_wifi_status_changed() argument
452 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_CONNECTED, btc8723b1ant_is_wifi_status_changed()
454 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_BUSY, &wifi_busy); btc8723b1ant_is_wifi_status_changed()
455 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); btc8723b1ant_is_wifi_status_changed()
456 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_4_WAY_PROGRESS, btc8723b1ant_is_wifi_status_changed()
477 static void halbtc8723b1ant_update_bt_link_info(struct btc_coexist *btcoexist) halbtc8723b1ant_update_bt_link_info() argument
479 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; halbtc8723b1ant_update_bt_link_info()
482 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); halbtc8723b1ant_update_bt_link_info()
525 static u8 halbtc8723b1ant_action_algorithm(struct btc_coexist *btcoexist) halbtc8723b1ant_action_algorithm() argument
527 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; halbtc8723b1ant_action_algorithm()
532 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); halbtc8723b1ant_action_algorithm()
704 static void btc8723b1ant_set_sw_pen_tx_rate_adapt(struct btc_coexist *btcoexist, btc8723b1ant_set_sw_pen_tx_rate_adapt() argument
724 btcoexist->btc_fill_h2c(btcoexist, 0x69, 6, h2c_parameter); btc8723b1ant_set_sw_pen_tx_rate_adapt()
727 static void halbtc8723b1ant_low_penalty_ra(struct btc_coexist *btcoexist, halbtc8723b1ant_low_penalty_ra() argument
736 btc8723b1ant_set_sw_pen_tx_rate_adapt(btcoexist, halbtc8723b1ant_low_penalty_ra()
742 static void halbtc8723b1ant_set_coex_table(struct btc_coexist *btcoexist, halbtc8723b1ant_set_coex_table() argument
748 btcoexist->btc_write_4byte(btcoexist, 0x6c0, val0x6c0); halbtc8723b1ant_set_coex_table()
752 btcoexist->btc_write_4byte(btcoexist, 0x6c4, val0x6c4); halbtc8723b1ant_set_coex_table()
756 btcoexist->btc_write_4byte(btcoexist, 0x6c8, val0x6c8); halbtc8723b1ant_set_coex_table()
760 btcoexist->btc_write_1byte(btcoexist, 0x6cc, val0x6cc); halbtc8723b1ant_set_coex_table()
763 static void halbtc8723b1ant_coex_table(struct btc_coexist *btcoexist, halbtc8723b1ant_coex_table() argument
784 halbtc8723b1ant_set_coex_table(btcoexist, val0x6c0, val0x6c4, halbtc8723b1ant_coex_table()
793 static void halbtc8723b1ant_coex_table_with_type(struct btc_coexist *btcoexist, halbtc8723b1ant_coex_table_with_type() argument
798 halbtc8723b1ant_coex_table(btcoexist, force_exec, 0x55555555, halbtc8723b1ant_coex_table_with_type()
802 halbtc8723b1ant_coex_table(btcoexist, force_exec, 0x55555555, halbtc8723b1ant_coex_table_with_type()
806 halbtc8723b1ant_coex_table(btcoexist, force_exec, 0x5a5a5a5a, halbtc8723b1ant_coex_table_with_type()
810 halbtc8723b1ant_coex_table(btcoexist, force_exec, 0x55555555, halbtc8723b1ant_coex_table_with_type()
814 halbtc8723b1ant_coex_table(btcoexist, force_exec, 0x55555555, halbtc8723b1ant_coex_table_with_type()
818 halbtc8723b1ant_coex_table(btcoexist, force_exec, 0x5a5a5a5a, halbtc8723b1ant_coex_table_with_type()
822 halbtc8723b1ant_coex_table(btcoexist, force_exec, 0x55555555, halbtc8723b1ant_coex_table_with_type()
826 halbtc8723b1ant_coex_table(btcoexist, force_exec, 0xaaaaaaaa, halbtc8723b1ant_coex_table_with_type()
834 static void halbtc8723b1ant_SetFwIgnoreWlanAct(struct btc_coexist *btcoexist, halbtc8723b1ant_SetFwIgnoreWlanAct() argument
846 btcoexist->btc_fill_h2c(btcoexist, 0x63, 1, h2c_parameter); halbtc8723b1ant_SetFwIgnoreWlanAct()
849 static void halbtc8723b1ant_ignore_wlan_act(struct btc_coexist *btcoexist, halbtc8723b1ant_ignore_wlan_act() argument
867 halbtc8723b1ant_SetFwIgnoreWlanAct(btcoexist, enable); halbtc8723b1ant_ignore_wlan_act()
872 static void halbtc8723b1ant_set_fw_ps_tdma(struct btc_coexist *btcoexist, halbtc8723b1ant_set_fw_ps_tdma() argument
880 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_AP_MODE_ENABLE, halbtc8723b1ant_set_fw_ps_tdma()
915 btcoexist->btc_fill_h2c(btcoexist, 0x60, 5, h2c_parameter); halbtc8723b1ant_set_fw_ps_tdma()
918 static void halbtc8723b1ant_set_lps_rpwm(struct btc_coexist *btcoexist, halbtc8723b1ant_set_lps_rpwm() argument
924 btcoexist->btc_set(btcoexist, BTC_SET_U1_LPS_VAL, &lps); halbtc8723b1ant_set_lps_rpwm()
925 btcoexist->btc_set(btcoexist, BTC_SET_U1_RPWM_VAL, &rpwm); halbtc8723b1ant_set_lps_rpwm()
928 static void halbtc8723b1ant_LpsRpwm(struct btc_coexist *btcoexist, halbtc8723b1ant_LpsRpwm() argument
952 halbtc8723b1ant_set_lps_rpwm(btcoexist, lps_val, rpwm_val); halbtc8723b1ant_LpsRpwm()
958 static void halbtc8723b1ant_sw_mechanism(struct btc_coexist *btcoexist, halbtc8723b1ant_sw_mechanism() argument
964 halbtc8723b1ant_low_penalty_ra(btcoexist, NORMAL_EXEC, low_penalty_ra); halbtc8723b1ant_sw_mechanism()
967 static void halbtc8723b1ant_SetAntPath(struct btc_coexist *btcoexist, halbtc8723b1ant_SetAntPath() argument
971 struct btc_board_info *board_info = &btcoexist->board_info; halbtc8723b1ant_SetAntPath()
977 btcoexist->btc_get(btcoexist, BTC_GET_BL_EXT_SWITCH, &pg_ext_switch); halbtc8723b1ant_SetAntPath()
979 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_FW_VER, &fw_ver); halbtc8723b1ant_SetAntPath()
986 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x67, 0x20, 0x1); halbtc8723b1ant_SetAntPath()
989 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x765, 0x18, 0x0); halbtc8723b1ant_SetAntPath()
992 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x765, 0x18, 0x3); halbtc8723b1ant_SetAntPath()
994 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x67, 0x20, 0x0); halbtc8723b1ant_SetAntPath()
999 u32tmp = btcoexist->btc_read_4byte(btcoexist, 0x4c); halbtc8723b1ant_SetAntPath()
1002 btcoexist->btc_write_4byte(btcoexist, 0x4c, u32tmp); halbtc8723b1ant_SetAntPath()
1010 u32tmp = btcoexist->btc_read_4byte(btcoexist, 0x4c); halbtc8723b1ant_SetAntPath()
1013 btcoexist->btc_write_4byte(btcoexist, 0x4c, u32tmp); halbtc8723b1ant_SetAntPath()
1018 btcoexist->btc_write_1byte_bitmask(btcoexist, halbtc8723b1ant_SetAntPath()
1025 btcoexist->btc_fill_h2c(btcoexist, 0x65, 2, halbtc8723b1ant_SetAntPath()
1029 btcoexist->btc_write_1byte_bitmask(btcoexist, halbtc8723b1ant_SetAntPath()
1036 btcoexist->btc_fill_h2c(btcoexist, 0x65, 2, halbtc8723b1ant_SetAntPath()
1044 btcoexist->btc_write_2byte(btcoexist, 0x948, 0x0); halbtc8723b1ant_SetAntPath()
1046 btcoexist->btc_write_2byte(btcoexist, 0x948, 0x280); halbtc8723b1ant_SetAntPath()
1053 btcoexist->btc_write_1byte_bitmask(btcoexist, halbtc8723b1ant_SetAntPath()
1057 btcoexist->btc_write_1byte_bitmask(btcoexist, halbtc8723b1ant_SetAntPath()
1064 btcoexist->btc_write_1byte_bitmask(btcoexist, halbtc8723b1ant_SetAntPath()
1068 btcoexist->btc_write_1byte_bitmask(btcoexist, halbtc8723b1ant_SetAntPath()
1076 btcoexist->btc_write_1byte_bitmask(btcoexist, halbtc8723b1ant_SetAntPath()
1080 btcoexist->btc_write_1byte_bitmask(btcoexist, halbtc8723b1ant_SetAntPath()
1089 u32tmp = btcoexist->btc_read_4byte(btcoexist, 0x4c); halbtc8723b1ant_SetAntPath()
1092 btcoexist->btc_write_4byte(btcoexist, 0x4c, u32tmp); halbtc8723b1ant_SetAntPath()
1097 btcoexist->btc_write_1byte_bitmask(btcoexist, halbtc8723b1ant_SetAntPath()
1104 btcoexist->btc_fill_h2c(btcoexist, 0x65, 2, halbtc8723b1ant_SetAntPath()
1108 btcoexist->btc_write_1byte_bitmask(btcoexist, halbtc8723b1ant_SetAntPath()
1115 btcoexist->btc_fill_h2c(btcoexist, 0x65, 2, halbtc8723b1ant_SetAntPath()
1124 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x92c, halbtc8723b1ant_SetAntPath()
1127 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x92c, halbtc8723b1ant_SetAntPath()
1135 btcoexist->btc_write_2byte(btcoexist, 0x948, halbtc8723b1ant_SetAntPath()
1138 btcoexist->btc_write_2byte(btcoexist, 0x948, halbtc8723b1ant_SetAntPath()
1144 btcoexist->btc_write_2byte(btcoexist, 0x948, halbtc8723b1ant_SetAntPath()
1147 btcoexist->btc_write_2byte(btcoexist, 0x948, halbtc8723b1ant_SetAntPath()
1154 btcoexist->btc_write_2byte(btcoexist, 0x948, halbtc8723b1ant_SetAntPath()
1157 btcoexist->btc_write_2byte(btcoexist, 0x948, halbtc8723b1ant_SetAntPath()
1164 static void halbtc8723b1ant_ps_tdma(struct btc_coexist *btcoexist, halbtc8723b1ant_ps_tdma() argument
1173 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_BUSY, &wifi_busy); halbtc8723b1ant_ps_tdma()
1192 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x1a, halbtc8723b1ant_ps_tdma()
1196 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x3a, halbtc8723b1ant_ps_tdma()
1202 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x2b, halbtc8723b1ant_ps_tdma()
1207 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x1d, halbtc8723b1ant_ps_tdma()
1211 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x93, 0x15, halbtc8723b1ant_ps_tdma()
1216 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x61, 0x15, halbtc8723b1ant_ps_tdma()
1220 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x61, 0x20, halbtc8723b1ant_ps_tdma()
1224 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x13, 0xc, halbtc8723b1ant_ps_tdma()
1228 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x93, 0x25, halbtc8723b1ant_ps_tdma()
1232 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x21, halbtc8723b1ant_ps_tdma()
1237 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x13, 0xa, halbtc8723b1ant_ps_tdma()
1241 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x15, halbtc8723b1ant_ps_tdma()
1246 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x0a, halbtc8723b1ant_ps_tdma()
1250 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x15, halbtc8723b1ant_ps_tdma()
1254 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x21, halbtc8723b1ant_ps_tdma()
1258 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x13, 0xa, halbtc8723b1ant_ps_tdma()
1262 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x93, 0x15, halbtc8723b1ant_ps_tdma()
1267 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x93, 0x25, halbtc8723b1ant_ps_tdma()
1272 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x61, 0x35, halbtc8723b1ant_ps_tdma()
1276 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x61, 0x25, halbtc8723b1ant_ps_tdma()
1280 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x61, 0x25, halbtc8723b1ant_ps_tdma()
1284 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x25, halbtc8723b1ant_ps_tdma()
1289 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x15, halbtc8723b1ant_ps_tdma()
1294 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0xe3, 0xa, halbtc8723b1ant_ps_tdma()
1299 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0xe3, 0xa, halbtc8723b1ant_ps_tdma()
1304 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x25, halbtc8723b1ant_ps_tdma()
1309 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x69, 0x25, halbtc8723b1ant_ps_tdma()
1313 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0xab, 0x1a, halbtc8723b1ant_ps_tdma()
1317 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x14, halbtc8723b1ant_ps_tdma()
1321 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0xd3, 0x1a, halbtc8723b1ant_ps_tdma()
1325 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x61, 0xa, halbtc8723b1ant_ps_tdma()
1329 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0xa3, 0x25, halbtc8723b1ant_ps_tdma()
1333 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x53, 0x1a, halbtc8723b1ant_ps_tdma()
1337 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x63, 0x1a, halbtc8723b1ant_ps_tdma()
1341 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0xd3, 0x12, halbtc8723b1ant_ps_tdma()
1349 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x23, 0x18, halbtc8723b1ant_ps_tdma()
1356 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x8, 0x0, halbtc8723b1ant_ps_tdma()
1358 halbtc8723b1ant_SetAntPath(btcoexist, BTC_ANT_PATH_PTA, halbtc8723b1ant_ps_tdma()
1363 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x0, 0x0, halbtc8723b1ant_ps_tdma()
1365 halbtc8723b1ant_SetAntPath(btcoexist, BTC_ANT_PATH_BT, halbtc8723b1ant_ps_tdma()
1369 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x0, 0x0, halbtc8723b1ant_ps_tdma()
1371 halbtc8723b1ant_SetAntPath(btcoexist, BTC_ANT_PATH_WIFI, halbtc8723b1ant_ps_tdma()
1377 btcoexist->btc_set(btcoexist, halbtc8723b1ant_ps_tdma()
1386 static bool halbtc8723b1ant_is_common_action(struct btc_coexist *btcoexist) halbtc8723b1ant_is_common_action() argument
1391 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_CONNECTED, halbtc8723b1ant_is_common_action()
1393 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_BUSY, &wifi_busy); halbtc8723b1ant_is_common_action()
1399 halbtc8723b1ant_sw_mechanism(btcoexist, false); halbtc8723b1ant_is_common_action()
1406 halbtc8723b1ant_sw_mechanism(btcoexist, false); halbtc8723b1ant_is_common_action()
1413 halbtc8723b1ant_sw_mechanism(btcoexist, false); halbtc8723b1ant_is_common_action()
1420 halbtc8723b1ant_sw_mechanism(btcoexist, false); halbtc8723b1ant_is_common_action()
1427 halbtc8723b1ant_sw_mechanism(btcoexist, false); halbtc8723b1ant_is_common_action()
1443 static void btc8723b1ant_tdma_dur_adj_for_acl(struct btc_coexist *btcoexist, btc8723b1ant_tdma_dur_adj_for_acl() argument
1468 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8723b1ant_tdma_dur_adj_for_acl()
1487 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 2); btc8723b1ant_tdma_dur_adj_for_acl()
1567 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8723b1ant_tdma_dur_adj_for_acl()
1571 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8723b1ant_tdma_dur_adj_for_acl()
1575 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8723b1ant_tdma_dur_adj_for_acl()
1579 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8723b1ant_tdma_dur_adj_for_acl()
1587 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8723b1ant_tdma_dur_adj_for_acl()
1591 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8723b1ant_tdma_dur_adj_for_acl()
1595 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8723b1ant_tdma_dur_adj_for_acl()
1599 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8723b1ant_tdma_dur_adj_for_acl()
1613 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, btc8723b1ant_tdma_dur_adj_for_acl()
1619 static void btc8723b1ant_pstdmachkpwrsave(struct btc_coexist *btcoexist, btc8723b1ant_pstdmachkpwrsave() argument
1624 btcoexist->btc_get(btcoexist, BTC_GET_U1_LPS_MODE, &lps_mode); btc8723b1ant_pstdmachkpwrsave()
1631 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8723b1ant_pstdmachkpwrsave()
1637 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8723b1ant_pstdmachkpwrsave()
1645 static void halbtc8723b1ant_power_save_state(struct btc_coexist *btcoexist, halbtc8723b1ant_power_save_state() argument
1655 btcoexist->btc_set(btcoexist, BTC_SET_ACT_DISABLE_LOW_POWER, halbtc8723b1ant_power_save_state()
1657 btcoexist->btc_set(btcoexist, BTC_SET_ACT_NORMAL_LPS, NULL); halbtc8723b1ant_power_save_state()
1660 btc8723b1ant_pstdmachkpwrsave(btcoexist, true); halbtc8723b1ant_power_save_state()
1661 halbtc8723b1ant_LpsRpwm(btcoexist, NORMAL_EXEC, lps_val, halbtc8723b1ant_power_save_state()
1665 btcoexist->btc_set(btcoexist, BTC_SET_ACT_DISABLE_LOW_POWER, halbtc8723b1ant_power_save_state()
1668 btcoexist->btc_set(btcoexist, BTC_SET_ACT_ENTER_LPS, NULL); halbtc8723b1ant_power_save_state()
1671 btc8723b1ant_pstdmachkpwrsave(btcoexist, false); halbtc8723b1ant_power_save_state()
1672 btcoexist->btc_set(btcoexist, BTC_SET_ACT_LEAVE_LPS, NULL); halbtc8723b1ant_power_save_state()
1685 static void halbtc8723b1ant_action_sco(struct btc_coexist *btcoexist) halbtc8723b1ant_action_sco() argument
1687 halbtc8723b1ant_sw_mechanism(btcoexist, true); halbtc8723b1ant_action_sco()
1690 static void halbtc8723b1ant_action_hid(struct btc_coexist *btcoexist) halbtc8723b1ant_action_hid() argument
1692 halbtc8723b1ant_sw_mechanism(btcoexist, true); halbtc8723b1ant_action_hid()
1696 static void halbtc8723b1ant_action_a2dp(struct btc_coexist *btcoexist) halbtc8723b1ant_action_a2dp() argument
1698 halbtc8723b1ant_sw_mechanism(btcoexist, false); halbtc8723b1ant_action_a2dp()
1701 static void halbtc8723b1ant_action_a2dp_pan_hs(struct btc_coexist *btcoexist) halbtc8723b1ant_action_a2dp_pan_hs() argument
1703 halbtc8723b1ant_sw_mechanism(btcoexist, false); halbtc8723b1ant_action_a2dp_pan_hs()
1706 static void halbtc8723b1ant_action_pan_edr(struct btc_coexist *btcoexist) halbtc8723b1ant_action_pan_edr() argument
1708 halbtc8723b1ant_sw_mechanism(btcoexist, false); halbtc8723b1ant_action_pan_edr()
1712 static void halbtc8723b1ant_action_pan_hs(struct btc_coexist *btcoexist) halbtc8723b1ant_action_pan_hs() argument
1714 halbtc8723b1ant_sw_mechanism(btcoexist, false); halbtc8723b1ant_action_pan_hs()
1718 static void halbtc8723b1ant_action_pan_edr_a2dp(struct btc_coexist *btcoexist) halbtc8723b1ant_action_pan_edr_a2dp() argument
1720 halbtc8723b1ant_sw_mechanism(btcoexist, false); halbtc8723b1ant_action_pan_edr_a2dp()
1723 static void halbtc8723b1ant_action_pan_edr_hid(struct btc_coexist *btcoexist) halbtc8723b1ant_action_pan_edr_hid() argument
1725 halbtc8723b1ant_sw_mechanism(btcoexist, true); halbtc8723b1ant_action_pan_edr_hid()
1729 static void btc8723b1ant_action_hid_a2dp_pan_edr(struct btc_coexist *btcoexist) btc8723b1ant_action_hid_a2dp_pan_edr() argument
1731 halbtc8723b1ant_sw_mechanism(btcoexist, true); btc8723b1ant_action_hid_a2dp_pan_edr()
1734 static void halbtc8723b1ant_action_hid_a2dp(struct btc_coexist *btcoexist) halbtc8723b1ant_action_hid_a2dp() argument
1736 halbtc8723b1ant_sw_mechanism(btcoexist, true); halbtc8723b1ant_action_hid_a2dp()
1744 static void halbtc8723b1ant_action_wifi_multiport(struct btc_coexist *btcoexist) halbtc8723b1ant_action_wifi_multiport() argument
1746 halbtc8723b1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, halbtc8723b1ant_action_wifi_multiport()
1749 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 8); halbtc8723b1ant_action_wifi_multiport()
1750 halbtc8723b1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 2); halbtc8723b1ant_action_wifi_multiport()
1753 static void halbtc8723b1ant_action_hs(struct btc_coexist *btcoexist) halbtc8723b1ant_action_hs() argument
1755 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 5); halbtc8723b1ant_action_hs()
1756 halbtc8723b1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 2); halbtc8723b1ant_action_hs()
1759 static void halbtc8723b1ant_action_bt_inquiry(struct btc_coexist *btcoexist) halbtc8723b1ant_action_bt_inquiry() argument
1761 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; halbtc8723b1ant_action_bt_inquiry()
1764 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_AP_MODE_ENABLE, halbtc8723b1ant_action_bt_inquiry()
1766 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_CONNECTED, halbtc8723b1ant_action_bt_inquiry()
1770 halbtc8723b1ant_power_save_state(btcoexist, halbtc8723b1ant_action_bt_inquiry()
1772 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 8); halbtc8723b1ant_action_bt_inquiry()
1773 halbtc8723b1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 2); halbtc8723b1ant_action_bt_inquiry()
1776 halbtc8723b1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, halbtc8723b1ant_action_bt_inquiry()
1778 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 32); halbtc8723b1ant_action_bt_inquiry()
1779 halbtc8723b1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); halbtc8723b1ant_action_bt_inquiry()
1782 halbtc8723b1ant_power_save_state(btcoexist, halbtc8723b1ant_action_bt_inquiry()
1786 halbtc8723b1ant_power_save_state(btcoexist, halbtc8723b1ant_action_bt_inquiry()
1790 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 30); halbtc8723b1ant_action_bt_inquiry()
1791 halbtc8723b1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); halbtc8723b1ant_action_bt_inquiry()
1795 static void btc8723b1ant_act_bt_sco_hid_only_busy(struct btc_coexist *btcoexist, btc8723b1ant_act_bt_sco_hid_only_busy() argument
1798 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; btc8723b1ant_act_bt_sco_hid_only_busy()
1801 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_CONNECTED, btc8723b1ant_act_bt_sco_hid_only_busy()
1807 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 5); btc8723b1ant_act_bt_sco_hid_only_busy()
1808 halbtc8723b1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 2); btc8723b1ant_act_bt_sco_hid_only_busy()
1810 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 6); btc8723b1ant_act_bt_sco_hid_only_busy()
1811 halbtc8723b1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 5); btc8723b1ant_act_bt_sco_hid_only_busy()
1816 struct btc_coexist *btcoexist, halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1821 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1826 btc8723b1ant_act_bt_sco_hid_only_busy(btcoexist, wifi_status); halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1831 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1833 halbtc8723b1ant_coex_table_with_type(btcoexist, halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1838 btc8723b1ant_tdma_dur_adj_for_acl(btcoexist, halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1840 halbtc8723b1ant_coex_table_with_type(btcoexist, halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1843 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1845 halbtc8723b1ant_coex_table_with_type(btcoexist, halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1853 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1857 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1862 halbtc8723b1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 6); halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1866 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 3); halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1867 halbtc8723b1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 6); halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1873 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 13); halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1874 halbtc8723b1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1877 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 11); halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1878 halbtc8723b1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1883 static void btc8723b1ant_action_wifi_not_conn(struct btc_coexist *btcoexist) btc8723b1ant_action_wifi_not_conn() argument
1886 halbtc8723b1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, btc8723b1ant_action_wifi_not_conn()
1890 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 8); btc8723b1ant_action_wifi_not_conn()
1891 halbtc8723b1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 0); btc8723b1ant_action_wifi_not_conn()
1948 static void btc8723b1ant_action_wifi_conn_scan(struct btc_coexist *btcoexist) btc8723b1ant_action_wifi_conn_scan() argument
1950 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; btc8723b1ant_action_wifi_conn_scan()
1952 halbtc8723b1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, btc8723b1ant_action_wifi_conn_scan()
1958 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8723b1ant_action_wifi_conn_scan()
1960 halbtc8723b1ant_coex_table_with_type(btcoexist, btc8723b1ant_action_wifi_conn_scan()
1963 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8723b1ant_action_wifi_conn_scan()
1965 halbtc8723b1ant_coex_table_with_type(btcoexist, btc8723b1ant_action_wifi_conn_scan()
1968 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, btc8723b1ant_action_wifi_conn_scan()
1970 halbtc8723b1ant_coex_table_with_type(btcoexist, btc8723b1ant_action_wifi_conn_scan()
1976 btc8723b1ant_act_bt_sco_hid_only_busy(btcoexist, btc8723b1ant_action_wifi_conn_scan()
1979 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 8); btc8723b1ant_action_wifi_conn_scan()
1980 halbtc8723b1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 2); btc8723b1ant_action_wifi_conn_scan()
1985 struct btc_coexist *btcoexist) halbtc8723b1ant_action_wifi_connected_special_packet()
1988 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; halbtc8723b1ant_action_wifi_connected_special_packet()
1990 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_CONNECTING, &hs_connecting); halbtc8723b1ant_action_wifi_connected_special_packet()
1992 halbtc8723b1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, halbtc8723b1ant_action_wifi_connected_special_packet()
1999 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 8); halbtc8723b1ant_action_wifi_connected_special_packet()
2000 halbtc8723b1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 7); halbtc8723b1ant_action_wifi_connected_special_packet()
2002 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 20); halbtc8723b1ant_action_wifi_connected_special_packet()
2003 halbtc8723b1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); halbtc8723b1ant_action_wifi_connected_special_packet()
2007 static void halbtc8723b1ant_action_wifi_connected(struct btc_coexist *btcoexist) halbtc8723b1ant_action_wifi_connected() argument
2016 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_4_WAY_PROGRESS, halbtc8723b1ant_action_wifi_connected()
2019 halbtc8723b1ant_action_wifi_connected_special_packet(btcoexist); halbtc8723b1ant_action_wifi_connected()
2025 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_SCAN, &scan); halbtc8723b1ant_action_wifi_connected()
2026 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link); halbtc8723b1ant_action_wifi_connected()
2027 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_ROAM, &roam); halbtc8723b1ant_action_wifi_connected()
2031 btc8723b1ant_action_wifi_conn_scan(btcoexist); halbtc8723b1ant_action_wifi_connected()
2034 btcoexist); halbtc8723b1ant_action_wifi_connected()
2040 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_AP_MODE_ENABLE, halbtc8723b1ant_action_wifi_connected()
2042 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_BUSY, &wifi_busy); halbtc8723b1ant_action_wifi_connected()
2046 !btcoexist->bt_link_info.hid_only) { halbtc8723b1ant_action_wifi_connected()
2047 if (!wifi_busy && btcoexist->bt_link_info.a2dp_only) halbtc8723b1ant_action_wifi_connected()
2048 halbtc8723b1ant_power_save_state(btcoexist, halbtc8723b1ant_action_wifi_connected()
2052 halbtc8723b1ant_power_save_state(btcoexist, halbtc8723b1ant_action_wifi_connected()
2056 halbtc8723b1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, halbtc8723b1ant_action_wifi_connected()
2062 halbtc8723b1ant_action_wifi_connected_bt_acl_busy(btcoexist, halbtc8723b1ant_action_wifi_connected()
2068 btc8723b1ant_act_bt_sco_hid_only_busy(btcoexist, halbtc8723b1ant_action_wifi_connected()
2071 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, halbtc8723b1ant_action_wifi_connected()
2073 halbtc8723b1ant_coex_table_with_type(btcoexist, halbtc8723b1ant_action_wifi_connected()
2078 halbtc8723b1ant_action_wifi_connected_bt_acl_busy(btcoexist, halbtc8723b1ant_action_wifi_connected()
2084 btc8723b1ant_act_bt_sco_hid_only_busy(btcoexist, halbtc8723b1ant_action_wifi_connected()
2087 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, halbtc8723b1ant_action_wifi_connected()
2089 halbtc8723b1ant_coex_table_with_type(btcoexist, halbtc8723b1ant_action_wifi_connected()
2095 static void btc8723b1ant_run_sw_coex_mech(struct btc_coexist *btcoexist) btc8723b1ant_run_sw_coex_mech() argument
2099 algorithm = halbtc8723b1ant_action_algorithm(btcoexist); btc8723b1ant_run_sw_coex_mech()
2102 if (!halbtc8723b1ant_is_common_action(btcoexist)) { btc8723b1ant_run_sw_coex_mech()
2107 halbtc8723b1ant_action_sco(btcoexist); btc8723b1ant_run_sw_coex_mech()
2112 halbtc8723b1ant_action_hid(btcoexist); btc8723b1ant_run_sw_coex_mech()
2117 halbtc8723b1ant_action_a2dp(btcoexist); btc8723b1ant_run_sw_coex_mech()
2122 halbtc8723b1ant_action_a2dp_pan_hs(btcoexist); btc8723b1ant_run_sw_coex_mech()
2127 halbtc8723b1ant_action_pan_edr(btcoexist); btc8723b1ant_run_sw_coex_mech()
2132 halbtc8723b1ant_action_pan_hs(btcoexist); btc8723b1ant_run_sw_coex_mech()
2137 halbtc8723b1ant_action_pan_edr_a2dp(btcoexist); btc8723b1ant_run_sw_coex_mech()
2142 halbtc8723b1ant_action_pan_edr_hid(btcoexist); btc8723b1ant_run_sw_coex_mech()
2147 btc8723b1ant_action_hid_a2dp_pan_edr(btcoexist); btc8723b1ant_run_sw_coex_mech()
2152 halbtc8723b1ant_action_hid_a2dp(btcoexist); btc8723b1ant_run_sw_coex_mech()
2163 static void halbtc8723b1ant_run_coexist_mechanism(struct btc_coexist *btcoexist) halbtc8723b1ant_run_coexist_mechanism() argument
2165 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; halbtc8723b1ant_run_coexist_mechanism()
2177 if (btcoexist->manual_control) { halbtc8723b1ant_run_coexist_mechanism()
2183 if (btcoexist->stop_coex_dm) { halbtc8723b1ant_run_coexist_mechanism()
2201 btcoexist->btc_set(btcoexist, BTC_SET_BL_INC_SCAN_DEV_NUM, halbtc8723b1ant_run_coexist_mechanism()
2204 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_CONNECTED, halbtc8723b1ant_run_coexist_mechanism()
2207 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_LINK_STATUS, halbtc8723b1ant_run_coexist_mechanism()
2211 halbtc8723b1ant_limited_tx(btcoexist, NORMAL_EXEC, 0, 0, 0, 0); halbtc8723b1ant_run_coexist_mechanism()
2212 halbtc8723b1ant_limited_rx(btcoexist, NORMAL_EXEC, false, halbtc8723b1ant_run_coexist_mechanism()
2215 halbtc8723b1ant_action_wifi_multiport(btcoexist); halbtc8723b1ant_run_coexist_mechanism()
2220 halbtc8723b1ant_limited_tx(btcoexist, NORMAL_EXEC, 0, 0, 0, 0); halbtc8723b1ant_run_coexist_mechanism()
2224 halbtc8723b1ant_wifi_rssi_state(btcoexist, halbtc8723b1ant_run_coexist_mechanism()
2228 halbtc8723b1ant_limited_tx(btcoexist, halbtc8723b1ant_run_coexist_mechanism()
2232 halbtc8723b1ant_limited_tx(btcoexist, halbtc8723b1ant_run_coexist_mechanism()
2237 halbtc8723b1ant_limited_tx(btcoexist, NORMAL_EXEC, halbtc8723b1ant_run_coexist_mechanism()
2252 halbtc8723b1ant_limited_rx(btcoexist, NORMAL_EXEC, false, halbtc8723b1ant_run_coexist_mechanism()
2255 btc8723b1ant_run_sw_coex_mech(btcoexist); halbtc8723b1ant_run_coexist_mechanism()
2257 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); halbtc8723b1ant_run_coexist_mechanism()
2260 halbtc8723b1ant_action_bt_inquiry(btcoexist); halbtc8723b1ant_run_coexist_mechanism()
2263 halbtc8723b1ant_action_hs(btcoexist); halbtc8723b1ant_run_coexist_mechanism()
2273 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_SCAN, &scan); halbtc8723b1ant_run_coexist_mechanism()
2274 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link); halbtc8723b1ant_run_coexist_mechanism()
2275 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_ROAM, &roam); halbtc8723b1ant_run_coexist_mechanism()
2280 btcoexist); halbtc8723b1ant_run_coexist_mechanism()
2283 btcoexist); halbtc8723b1ant_run_coexist_mechanism()
2285 btc8723b1ant_action_wifi_not_conn(btcoexist); halbtc8723b1ant_run_coexist_mechanism()
2288 halbtc8723b1ant_action_wifi_connected(btcoexist); halbtc8723b1ant_run_coexist_mechanism()
2292 static void halbtc8723b1ant_init_coex_dm(struct btc_coexist *btcoexist) halbtc8723b1ant_init_coex_dm() argument
2295 halbtc8723b1ant_sw_mechanism(btcoexist, false); halbtc8723b1ant_init_coex_dm()
2297 halbtc8723b1ant_ps_tdma(btcoexist, FORCE_EXEC, false, 8); halbtc8723b1ant_init_coex_dm()
2298 halbtc8723b1ant_coex_table_with_type(btcoexist, FORCE_EXEC, 0); halbtc8723b1ant_init_coex_dm()
2301 static void halbtc8723b1ant_init_hw_config(struct btc_coexist *btcoexist, halbtc8723b1ant_init_hw_config() argument
2313 btcoexist->btc_read_4byte(btcoexist, 0x430); halbtc8723b1ant_init_hw_config()
2315 btcoexist->btc_read_4byte(btcoexist, 0x434); halbtc8723b1ant_init_hw_config()
2317 btcoexist->btc_read_2byte(btcoexist, 0x42a); halbtc8723b1ant_init_hw_config()
2319 btcoexist->btc_read_1byte(btcoexist, 0x456); halbtc8723b1ant_init_hw_config()
2323 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x1, 0xfffff, 0x780); halbtc8723b1ant_init_hw_config()
2325 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x2, 0xfffff, 0x500); halbtc8723b1ant_init_hw_config()
2327 btcoexist->btc_write_1byte(btcoexist, 0x974, 0xff); halbtc8723b1ant_init_hw_config()
2328 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x944, 0x3, 0x3); halbtc8723b1ant_init_hw_config()
2329 btcoexist->btc_write_1byte(btcoexist, 0x930, 0x77); halbtc8723b1ant_init_hw_config()
2333 u32tmp = btcoexist->btc_read_4byte(btcoexist, 0x49d); halbtc8723b1ant_init_hw_config()
2349 u8tmp = btcoexist->btc_read_1byte(btcoexist, 0x790); halbtc8723b1ant_init_hw_config()
2352 btcoexist->btc_write_1byte(btcoexist, 0x790, u8tmp); halbtc8723b1ant_init_hw_config()
2356 btcoexist->btc_write_1byte(btcoexist, 0x76e, 0xc); halbtc8723b1ant_init_hw_config()
2357 btcoexist->btc_write_1byte(btcoexist, 0x778, 0x1); halbtc8723b1ant_init_hw_config()
2358 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x40, 0x20, 0x1); halbtc8723b1ant_init_hw_config()
2361 halbtc8723b1ant_SetAntPath(btcoexist, BTC_ANT_PATH_PTA, true, false); halbtc8723b1ant_init_hw_config()
2363 halbtc8723b1ant_coex_table_with_type(btcoexist, FORCE_EXEC, 0); halbtc8723b1ant_init_hw_config()
2366 static void halbtc8723b1ant_wifi_off_hw_cfg(struct btc_coexist *btcoexist) halbtc8723b1ant_wifi_off_hw_cfg() argument
2369 btcoexist->btc_write_1byte(btcoexist, 0x76e, 0x4); halbtc8723b1ant_wifi_off_hw_cfg()
2379 void ex_halbtc8723b1ant_init_hwconfig(struct btc_coexist *btcoexist) ex_halbtc8723b1ant_init_hwconfig() argument
2381 halbtc8723b1ant_init_hw_config(btcoexist, true); ex_halbtc8723b1ant_init_hwconfig()
2384 void ex_halbtc8723b1ant_init_coex_dm(struct btc_coexist *btcoexist) ex_halbtc8723b1ant_init_coex_dm() argument
2389 btcoexist->stop_coex_dm = false; ex_halbtc8723b1ant_init_coex_dm()
2391 halbtc8723b1ant_init_coex_dm(btcoexist); ex_halbtc8723b1ant_init_coex_dm()
2393 halbtc8723b1ant_query_bt_info(btcoexist); ex_halbtc8723b1ant_init_coex_dm()
2396 void ex_halbtc8723b1ant_display_coex_info(struct btc_coexist *btcoexist) ex_halbtc8723b1ant_display_coex_info() argument
2398 struct btc_board_info *board_info = &btcoexist->board_info; ex_halbtc8723b1ant_display_coex_info()
2399 struct btc_stack_info *stack_info = &btcoexist->stack_info; ex_halbtc8723b1ant_display_coex_info()
2400 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; ex_halbtc8723b1ant_display_coex_info()
2401 struct rtl_priv *rtlpriv = btcoexist->adapter; ex_halbtc8723b1ant_display_coex_info()
2416 if (btcoexist->manual_control) { ex_halbtc8723b1ant_display_coex_info()
2422 if (btcoexist->stop_coex_dm) { ex_halbtc8723b1ant_display_coex_info()
2444 btcoexist->btc_get(btcoexist, BTC_GET_U4_BT_PATCH_VER, &bt_patch_ver); ex_halbtc8723b1ant_display_coex_info()
2445 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_FW_VER, &fw_ver); ex_halbtc8723b1ant_display_coex_info()
2452 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); ex_halbtc8723b1ant_display_coex_info()
2453 btcoexist->btc_get(btcoexist, BTC_GET_U1_WIFI_DOT11_CHNL, ex_halbtc8723b1ant_display_coex_info()
2455 btcoexist->btc_get(btcoexist, BTC_GET_U1_WIFI_HS_CHNL, &wifi_hs_chnl); ex_halbtc8723b1ant_display_coex_info()
2465 btcoexist->btc_get(btcoexist, BTC_GET_S4_WIFI_RSSI, &wifi_rssi); ex_halbtc8723b1ant_display_coex_info()
2466 btcoexist->btc_get(btcoexist, BTC_GET_S4_HS_RSSI, &bt_hs_rssi); ex_halbtc8723b1ant_display_coex_info()
2470 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_SCAN, &scan); ex_halbtc8723b1ant_display_coex_info()
2471 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link); ex_halbtc8723b1ant_display_coex_info()
2472 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_ROAM, &roam); ex_halbtc8723b1ant_display_coex_info()
2476 btcoexist->btc_get(btcoexist , BTC_GET_BL_WIFI_UNDER_5G, ex_halbtc8723b1ant_display_coex_info()
2478 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); ex_halbtc8723b1ant_display_coex_info()
2479 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_BUSY, &wifi_busy); ex_halbtc8723b1ant_display_coex_info()
2480 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_TRAFFIC_DIRECTION, ex_halbtc8723b1ant_display_coex_info()
2491 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_LINK_STATUS, ex_halbtc8723b1ant_display_coex_info()
2503 ((btcoexist->bt_info.bt_disabled) ? ("disabled") : ex_halbtc8723b1ant_display_coex_info()
2518 btcoexist->btc_disp_dbg_msg(btcoexist, BTC_DBG_DISP_BT_LINK_INFO); ex_halbtc8723b1ant_display_coex_info()
2545 btcoexist->bt_info.lps_val, ex_halbtc8723b1ant_display_coex_info()
2546 btcoexist->bt_info.rpwm_val); ex_halbtc8723b1ant_display_coex_info()
2547 btcoexist->btc_disp_dbg_msg(btcoexist, BTC_DBG_DISP_FW_PWR_MODE_CMD); ex_halbtc8723b1ant_display_coex_info()
2549 if (!btcoexist->manual_control) { ex_halbtc8723b1ant_display_coex_info()
2559 (btcoexist->bt_info.reject_agg_pkt ? "Yes" : "No"), ex_halbtc8723b1ant_display_coex_info()
2560 (btcoexist->bt_info.bt_ctrl_buf_size ? "Yes" : "No"), ex_halbtc8723b1ant_display_coex_info()
2561 btcoexist->bt_info.agg_buf_size); ex_halbtc8723b1ant_display_coex_info()
2564 "Rate Mask", btcoexist->bt_info.ra_mask); ex_halbtc8723b1ant_display_coex_info()
2595 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x430); ex_halbtc8723b1ant_display_coex_info()
2596 u32tmp[1] = btcoexist->btc_read_4byte(btcoexist, 0x434); ex_halbtc8723b1ant_display_coex_info()
2597 u16tmp[0] = btcoexist->btc_read_2byte(btcoexist, 0x42a); ex_halbtc8723b1ant_display_coex_info()
2598 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x456); ex_halbtc8723b1ant_display_coex_info()
2603 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x778); ex_halbtc8723b1ant_display_coex_info()
2604 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x6cc); ex_halbtc8723b1ant_display_coex_info()
2605 u32tmp[1] = btcoexist->btc_read_4byte(btcoexist, 0x880); ex_halbtc8723b1ant_display_coex_info()
2610 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x948); ex_halbtc8723b1ant_display_coex_info()
2611 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x67); ex_halbtc8723b1ant_display_coex_info()
2612 u8tmp[1] = btcoexist->btc_read_1byte(btcoexist, 0x765); ex_halbtc8723b1ant_display_coex_info()
2617 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x92c); ex_halbtc8723b1ant_display_coex_info()
2618 u32tmp[1] = btcoexist->btc_read_4byte(btcoexist, 0x930); ex_halbtc8723b1ant_display_coex_info()
2619 u32tmp[2] = btcoexist->btc_read_4byte(btcoexist, 0x944); ex_halbtc8723b1ant_display_coex_info()
2624 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x39); ex_halbtc8723b1ant_display_coex_info()
2625 u8tmp[1] = btcoexist->btc_read_1byte(btcoexist, 0x40); ex_halbtc8723b1ant_display_coex_info()
2626 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x4c); ex_halbtc8723b1ant_display_coex_info()
2627 u8tmp[2] = btcoexist->btc_read_1byte(btcoexist, 0x64); ex_halbtc8723b1ant_display_coex_info()
2634 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x550); ex_halbtc8723b1ant_display_coex_info()
2635 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x522); ex_halbtc8723b1ant_display_coex_info()
2639 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0xc50); ex_halbtc8723b1ant_display_coex_info()
2640 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x49c); ex_halbtc8723b1ant_display_coex_info()
2644 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0xda0); ex_halbtc8723b1ant_display_coex_info()
2645 u32tmp[1] = btcoexist->btc_read_4byte(btcoexist, 0xda4); ex_halbtc8723b1ant_display_coex_info()
2646 u32tmp[2] = btcoexist->btc_read_4byte(btcoexist, 0xda8); ex_halbtc8723b1ant_display_coex_info()
2647 u32tmp[3] = btcoexist->btc_read_4byte(btcoexist, 0xcf0); ex_halbtc8723b1ant_display_coex_info()
2649 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0xa5b); ex_halbtc8723b1ant_display_coex_info()
2650 u8tmp[1] = btcoexist->btc_read_1byte(btcoexist, 0xa5c); ex_halbtc8723b1ant_display_coex_info()
2664 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x6c0); ex_halbtc8723b1ant_display_coex_info()
2665 u32tmp[1] = btcoexist->btc_read_4byte(btcoexist, 0x6c4); ex_halbtc8723b1ant_display_coex_info()
2666 u32tmp[2] = btcoexist->btc_read_4byte(btcoexist, 0x6c8); ex_halbtc8723b1ant_display_coex_info()
2678 halbtc8723b1ant_monitor_bt_ctr(btcoexist); ex_halbtc8723b1ant_display_coex_info()
2680 btcoexist->btc_disp_dbg_msg(btcoexist, BTC_DBG_DISP_COEX_STATISTICS); ex_halbtc8723b1ant_display_coex_info()
2683 void ex_halbtc8723b1ant_ips_notify(struct btc_coexist *btcoexist, u8 type) ex_halbtc8723b1ant_ips_notify() argument
2685 if (btcoexist->manual_control || btcoexist->stop_coex_dm) ex_halbtc8723b1ant_ips_notify()
2693 halbtc8723b1ant_SetAntPath(btcoexist, BTC_ANT_PATH_BT, ex_halbtc8723b1ant_ips_notify()
2696 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 0); ex_halbtc8723b1ant_ips_notify()
2697 halbtc8723b1ant_coex_table_with_type(btcoexist, ex_halbtc8723b1ant_ips_notify()
2699 halbtc8723b1ant_wifi_off_hw_cfg(btcoexist); ex_halbtc8723b1ant_ips_notify()
2705 halbtc8723b1ant_init_hw_config(btcoexist, false); ex_halbtc8723b1ant_ips_notify()
2706 halbtc8723b1ant_init_coex_dm(btcoexist); ex_halbtc8723b1ant_ips_notify()
2707 halbtc8723b1ant_query_bt_info(btcoexist); ex_halbtc8723b1ant_ips_notify()
2711 void ex_halbtc8723b1ant_lps_notify(struct btc_coexist *btcoexist, u8 type) ex_halbtc8723b1ant_lps_notify() argument
2713 if (btcoexist->manual_control || btcoexist->stop_coex_dm) ex_halbtc8723b1ant_lps_notify()
2727 void ex_halbtc8723b1ant_scan_notify(struct btc_coexist *btcoexist, u8 type) ex_halbtc8723b1ant_scan_notify() argument
2735 if (btcoexist->manual_control || btcoexist->stop_coex_dm || ex_halbtc8723b1ant_scan_notify()
2736 btcoexist->bt_info.bt_disabled) ex_halbtc8723b1ant_scan_notify()
2739 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); ex_halbtc8723b1ant_scan_notify()
2740 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_CONNECTED, ex_halbtc8723b1ant_scan_notify()
2743 halbtc8723b1ant_query_bt_info(btcoexist); ex_halbtc8723b1ant_scan_notify()
2745 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_LINK_STATUS, ex_halbtc8723b1ant_scan_notify()
2749 halbtc8723b1ant_limited_tx(btcoexist, NORMAL_EXEC, 0, 0, 0, 0); ex_halbtc8723b1ant_scan_notify()
2750 halbtc8723b1ant_limited_rx(btcoexist, NORMAL_EXEC, false, ex_halbtc8723b1ant_scan_notify()
2752 halbtc8723b1ant_action_wifi_multiport(btcoexist); ex_halbtc8723b1ant_scan_notify()
2757 halbtc8723b1ant_action_bt_inquiry(btcoexist); ex_halbtc8723b1ant_scan_notify()
2760 halbtc8723b1ant_action_hs(btcoexist); ex_halbtc8723b1ant_scan_notify()
2768 btc8723b1ant_action_wifi_not_conn_scan(btcoexist); ex_halbtc8723b1ant_scan_notify()
2770 btc8723b1ant_action_wifi_conn_scan(btcoexist); ex_halbtc8723b1ant_scan_notify()
2775 btc8723b1ant_action_wifi_not_conn(btcoexist); ex_halbtc8723b1ant_scan_notify()
2777 halbtc8723b1ant_action_wifi_connected(btcoexist); ex_halbtc8723b1ant_scan_notify()
2781 void ex_halbtc8723b1ant_connect_notify(struct btc_coexist *btcoexist, u8 type) ex_halbtc8723b1ant_connect_notify() argument
2789 if (btcoexist->manual_control || btcoexist->stop_coex_dm || ex_halbtc8723b1ant_connect_notify()
2790 btcoexist->bt_info.bt_disabled) ex_halbtc8723b1ant_connect_notify()
2793 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_LINK_STATUS, ex_halbtc8723b1ant_connect_notify()
2797 halbtc8723b1ant_limited_tx(btcoexist, NORMAL_EXEC, 0, 0, 0, 0); ex_halbtc8723b1ant_connect_notify()
2798 halbtc8723b1ant_limited_rx(btcoexist, NORMAL_EXEC, false, ex_halbtc8723b1ant_connect_notify()
2800 halbtc8723b1ant_action_wifi_multiport(btcoexist); ex_halbtc8723b1ant_connect_notify()
2804 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); ex_halbtc8723b1ant_connect_notify()
2806 halbtc8723b1ant_action_bt_inquiry(btcoexist); ex_halbtc8723b1ant_connect_notify()
2809 halbtc8723b1ant_action_hs(btcoexist); ex_halbtc8723b1ant_connect_notify()
2816 btc8723b1ant_act_wifi_not_conn_asso_auth(btcoexist); ex_halbtc8723b1ant_connect_notify()
2821 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_CONNECTED, ex_halbtc8723b1ant_connect_notify()
2824 btc8723b1ant_action_wifi_not_conn(btcoexist); ex_halbtc8723b1ant_connect_notify()
2826 halbtc8723b1ant_action_wifi_connected(btcoexist); ex_halbtc8723b1ant_connect_notify()
2830 void ex_halbtc8723b1ant_media_status_notify(struct btc_coexist *btcoexist, ex_halbtc8723b1ant_media_status_notify() argument
2837 if (btcoexist->manual_control || btcoexist->stop_coex_dm || ex_halbtc8723b1ant_media_status_notify()
2838 btcoexist->bt_info.bt_disabled) ex_halbtc8723b1ant_media_status_notify()
2849 btcoexist->btc_get(btcoexist, BTC_GET_U1_WIFI_CENTRAL_CHNL, ex_halbtc8723b1ant_media_status_notify()
2856 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); ex_halbtc8723b1ant_media_status_notify()
2872 btcoexist->btc_fill_h2c(btcoexist, 0x66, 3, h2c_parameter); ex_halbtc8723b1ant_media_status_notify()
2875 void ex_halbtc8723b1ant_special_packet_notify(struct btc_coexist *btcoexist, ex_halbtc8723b1ant_special_packet_notify() argument
2884 if (btcoexist->manual_control || btcoexist->stop_coex_dm || ex_halbtc8723b1ant_special_packet_notify()
2885 btcoexist->bt_info.bt_disabled) ex_halbtc8723b1ant_special_packet_notify()
2888 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_LINK_STATUS, ex_halbtc8723b1ant_special_packet_notify()
2892 halbtc8723b1ant_limited_tx(btcoexist, NORMAL_EXEC, 0, 0, 0, 0); ex_halbtc8723b1ant_special_packet_notify()
2893 halbtc8723b1ant_limited_rx(btcoexist, NORMAL_EXEC, false, ex_halbtc8723b1ant_special_packet_notify()
2895 halbtc8723b1ant_action_wifi_multiport(btcoexist); ex_halbtc8723b1ant_special_packet_notify()
2901 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); ex_halbtc8723b1ant_special_packet_notify()
2903 halbtc8723b1ant_action_bt_inquiry(btcoexist); ex_halbtc8723b1ant_special_packet_notify()
2906 halbtc8723b1ant_action_hs(btcoexist); ex_halbtc8723b1ant_special_packet_notify()
2914 halbtc8723b1ant_action_wifi_connected_special_packet(btcoexist); ex_halbtc8723b1ant_special_packet_notify()
2918 void ex_halbtc8723b1ant_bt_info_notify(struct btc_coexist *btcoexist, ex_halbtc8723b1ant_bt_info_notify() argument
2964 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_CONNECTED, ex_halbtc8723b1ant_bt_info_notify()
2967 ex_halbtc8723b1ant_media_status_notify(btcoexist, ex_halbtc8723b1ant_bt_info_notify()
2970 ex_halbtc8723b1ant_media_status_notify(btcoexist, ex_halbtc8723b1ant_bt_info_notify()
2975 if (!btcoexist->manual_control && ex_halbtc8723b1ant_bt_info_notify()
2976 !btcoexist->stop_coex_dm) { ex_halbtc8723b1ant_bt_info_notify()
2979 halbtc8723b1ant_ignore_wlan_act(btcoexist, ex_halbtc8723b1ant_bt_info_notify()
2990 halbtc8723b1ant_bt_auto_report(btcoexist, FORCE_EXEC, ex_halbtc8723b1ant_bt_info_notify()
3029 halbtc8723b1ant_update_bt_link_info(btcoexist); ex_halbtc8723b1ant_bt_info_notify()
3065 btcoexist->btc_set(btcoexist, BTC_SET_BL_BT_TRAFFIC_BUSY, &bt_busy); ex_halbtc8723b1ant_bt_info_notify()
3067 halbtc8723b1ant_run_coexist_mechanism(btcoexist); ex_halbtc8723b1ant_bt_info_notify()
3070 void ex_halbtc8723b1ant_halt_notify(struct btc_coexist *btcoexist) ex_halbtc8723b1ant_halt_notify() argument
3074 btcoexist->stop_coex_dm = true; ex_halbtc8723b1ant_halt_notify()
3076 halbtc8723b1ant_SetAntPath(btcoexist, BTC_ANT_PATH_BT, false, true); ex_halbtc8723b1ant_halt_notify()
3078 halbtc8723b1ant_wifi_off_hw_cfg(btcoexist); ex_halbtc8723b1ant_halt_notify()
3079 halbtc8723b1ant_ignore_wlan_act(btcoexist, FORCE_EXEC, true); ex_halbtc8723b1ant_halt_notify()
3081 halbtc8723b1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, ex_halbtc8723b1ant_halt_notify()
3083 halbtc8723b1ant_ps_tdma(btcoexist, FORCE_EXEC, false, 0); ex_halbtc8723b1ant_halt_notify()
3085 ex_halbtc8723b1ant_media_status_notify(btcoexist, BTC_MEDIA_DISCONNECT); ex_halbtc8723b1ant_halt_notify()
3088 void ex_halbtc8723b1ant_pnp_notify(struct btc_coexist *btcoexist, u8 pnp_state) ex_halbtc8723b1ant_pnp_notify() argument
3095 btcoexist->stop_coex_dm = true; ex_halbtc8723b1ant_pnp_notify()
3096 halbtc8723b1ant_SetAntPath(btcoexist, BTC_ANT_PATH_BT, false, ex_halbtc8723b1ant_pnp_notify()
3098 halbtc8723b1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, ex_halbtc8723b1ant_pnp_notify()
3100 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 0); ex_halbtc8723b1ant_pnp_notify()
3101 halbtc8723b1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 2); ex_halbtc8723b1ant_pnp_notify()
3102 halbtc8723b1ant_wifi_off_hw_cfg(btcoexist); ex_halbtc8723b1ant_pnp_notify()
3106 btcoexist->stop_coex_dm = false; ex_halbtc8723b1ant_pnp_notify()
3107 halbtc8723b1ant_init_hw_config(btcoexist, false); ex_halbtc8723b1ant_pnp_notify()
3108 halbtc8723b1ant_init_coex_dm(btcoexist); ex_halbtc8723b1ant_pnp_notify()
3109 halbtc8723b1ant_query_bt_info(btcoexist); ex_halbtc8723b1ant_pnp_notify()
3113 void ex_halbtc8723b1ant_coex_dm_reset(struct btc_coexist *btcoexist) ex_halbtc8723b1ant_coex_dm_reset() argument
3118 halbtc8723b1ant_init_hw_config(btcoexist, false); ex_halbtc8723b1ant_coex_dm_reset()
3119 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x1, 0xfffff, 0x0); ex_halbtc8723b1ant_coex_dm_reset()
3120 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x2, 0xfffff, 0x0); ex_halbtc8723b1ant_coex_dm_reset()
3121 halbtc8723b1ant_init_coex_dm(btcoexist); ex_halbtc8723b1ant_coex_dm_reset()
3124 void ex_halbtc8723b1ant_periodical(struct btc_coexist *btcoexist) ex_halbtc8723b1ant_periodical() argument
3126 struct btc_board_info *board_info = &btcoexist->board_info; ex_halbtc8723b1ant_periodical()
3127 struct btc_stack_info *stack_info = &btcoexist->stack_info; ex_halbtc8723b1ant_periodical()
3146 btcoexist->btc_get(btcoexist, BTC_GET_U4_BT_PATCH_VER, ex_halbtc8723b1ant_periodical()
3148 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_FW_VER, &fw_ver); ex_halbtc8723b1ant_periodical()
3159 halbtc8723b1ant_query_bt_info(btcoexist); ex_halbtc8723b1ant_periodical()
3160 halbtc8723b1ant_monitor_bt_ctr(btcoexist); ex_halbtc8723b1ant_periodical()
3161 halbtc8723b1ant_monitor_bt_enable_disable(btcoexist); ex_halbtc8723b1ant_periodical()
3163 if (btc8723b1ant_is_wifi_status_changed(btcoexist) || ex_halbtc8723b1ant_periodical()
3165 halbtc8723b1ant_run_coexist_mechanism(btcoexist); ex_halbtc8723b1ant_periodical()
1815 halbtc8723b1ant_action_wifi_connected_bt_acl_busy( struct btc_coexist *btcoexist, u8 wifi_status) halbtc8723b1ant_action_wifi_connected_bt_acl_busy() argument
1984 halbtc8723b1ant_action_wifi_connected_special_packet( struct btc_coexist *btcoexist) halbtc8723b1ant_action_wifi_connected_special_packet() argument
H A Dhalbtc8723b2ant.h156 void ex_btc8723b2ant_init_hwconfig(struct btc_coexist *btcoexist);
157 void ex_btc8723b2ant_init_coex_dm(struct btc_coexist *btcoexist);
158 void ex_btc8723b2ant_ips_notify(struct btc_coexist *btcoexist, u8 type);
159 void ex_btc8723b2ant_lps_notify(struct btc_coexist *btcoexist, u8 type);
160 void ex_btc8723b2ant_scan_notify(struct btc_coexist *btcoexist, u8 type);
161 void ex_btc8723b2ant_connect_notify(struct btc_coexist *btcoexist, u8 type);
162 void ex_btc8723b2ant_media_status_notify(struct btc_coexist *btcoexist,
164 void ex_btc8723b2ant_special_packet_notify(struct btc_coexist *btcoexist,
166 void ex_btc8723b2ant_bt_info_notify(struct btc_coexist *btcoexist,
168 void ex_btc8723b2ant_halt_notify(struct btc_coexist *btcoexist);
169 void ex_btc8723b2ant_periodical(struct btc_coexist *btcoexist);
170 void ex_btc8723b2ant_display_coex_info(struct btc_coexist *btcoexist);
H A Dhalbtc8821a2ant.h152 struct btc_coexist *btcoexist
156 struct btc_coexist *btcoexist
160 struct btc_coexist *btcoexist,
165 struct btc_coexist *btcoexist,
170 struct btc_coexist *btcoexist,
175 struct btc_coexist *btcoexist,
180 struct btc_coexist *btcoexist,
185 struct btc_coexist *btcoexist,
190 struct btc_coexist *btcoexist,
196 struct btc_coexist *btcoexist
200 struct btc_coexist *btcoexist
204 struct btc_coexist *btcoexist
H A Dhalbtc8723b1ant.h168 void ex_halbtc8723b1ant_init_hwconfig(struct btc_coexist *btcoexist);
169 void ex_halbtc8723b1ant_init_coex_dm(struct btc_coexist *btcoexist);
170 void ex_halbtc8723b1ant_ips_notify(struct btc_coexist *btcoexist, u8 type);
171 void ex_halbtc8723b1ant_lps_notify(struct btc_coexist *btcoexist, u8 type);
172 void ex_halbtc8723b1ant_scan_notify(struct btc_coexist *btcoexist, u8 type);
173 void ex_halbtc8723b1ant_connect_notify(struct btc_coexist *btcoexist, u8 type);
174 void ex_halbtc8723b1ant_media_status_notify(struct btc_coexist *btcoexist,
176 void ex_halbtc8723b1ant_special_packet_notify(struct btc_coexist *btcoexist,
178 void ex_halbtc8723b1ant_bt_info_notify(struct btc_coexist *btcoexist,
180 void ex_halbtc8723b1ant_halt_notify(struct btc_coexist *btcoexist);
181 void ex_halbtc8723b1ant_pnp_notify(struct btc_coexist *btcoexist, u8 pnpstate);
182 void ex_halbtc8723b1ant_coex_dm_reset(struct btc_coexist *btcoexist);
183 void ex_halbtc8723b1ant_periodical(struct btc_coexist *btcoexist);
184 void ex_halbtc8723b1ant_display_coex_info(struct btc_coexist *btcoexist);
H A Dhalbtc8821a1ant.h171 void ex_halbtc8821a1ant_init_hwconfig(struct btc_coexist *btcoexist);
172 void ex_halbtc8821a1ant_init_coex_dm(struct btc_coexist *btcoexist);
173 void ex_halbtc8821a1ant_ips_notify(struct btc_coexist *btcoexist, u8 type);
174 void ex_halbtc8821a1ant_lps_notify(struct btc_coexist *btcoexist, u8 type);
175 void ex_halbtc8821a1ant_scan_notify(struct btc_coexist *btcoexist, u8 type);
176 void ex_halbtc8821a1ant_connect_notify(struct btc_coexist *btcoexist, u8 type);
177 void ex_halbtc8821a1ant_media_status_notify(struct btc_coexist *btcoexist,
179 void ex_halbtc8821a1ant_special_packet_notify(struct btc_coexist *btcoexist,
181 void ex_halbtc8821a1ant_bt_info_notify(struct btc_coexist *btcoexist,
183 void ex_halbtc8821a1ant_halt_notify(struct btc_coexist *btcoexist);
184 void ex_halbtc8821a1ant_pnp_notify(struct btc_coexist *btcoexist, u8 pnpstate);
185 void ex_halbtc8821a1ant_periodical(struct btc_coexist *btcoexist);
186 void ex_halbtc8821a1ant_display_coex_info(struct btc_coexist *btcoexist);
187 void ex_halbtc8821a1ant_dbg_control(struct btc_coexist *btcoexist, u8 op_code,
H A Dhalbtc8192e2ant.h169 void ex_halbtc8192e2ant_init_hwconfig(struct btc_coexist *btcoexist);
170 void ex_halbtc8192e2ant_init_coex_dm(struct btc_coexist *btcoexist);
171 void ex_halbtc8192e2ant_ips_notify(struct btc_coexist *btcoexist, u8 type);
172 void ex_halbtc8192e2ant_lps_notify(struct btc_coexist *btcoexist, u8 type);
173 void ex_halbtc8192e2ant_scan_notify(struct btc_coexist *btcoexist, u8 type);
174 void ex_halbtc8192e2ant_connect_notify(struct btc_coexist *btcoexist, u8 type);
175 void ex_halbtc8192e2ant_media_status_notify(struct btc_coexist *btcoexist,
177 void ex_halbtc8192e2ant_special_packet_notify(struct btc_coexist *btcoexist,
179 void ex_halbtc8192e2ant_bt_info_notify(struct btc_coexist *btcoexist,
181 void ex_halbtc8192e2ant_stack_operation_notify(struct btc_coexist *btcoexist,
183 void ex_halbtc8192e2ant_halt_notify(struct btc_coexist *btcoexist);
184 void ex_halbtc8192e2ant_periodical(struct btc_coexist *btcoexist);
185 void ex_halbtc8192e2ant_display_coex_info(struct btc_coexist *btcoexist);
H A Dhalbtcoutsrc.h386 typedef bool (*bfp_btc_get)(void *btcoexist, u8 get_type, void *out_buf);
388 typedef bool (*bfp_btc_set)(void *btcoexist, u8 set_type, void *in_buf);
390 typedef void (*bfp_btc_disp_dbg_msg)(void *btcoexist, u8 disp_type);
514 void exhalbtc_init_hw_config(struct btc_coexist *btcoexist);
515 void exhalbtc_init_coex_dm(struct btc_coexist *btcoexist);
516 void exhalbtc_ips_notify(struct btc_coexist *btcoexist, u8 type);
517 void exhalbtc_lps_notify(struct btc_coexist *btcoexist, u8 type);
518 void exhalbtc_scan_notify(struct btc_coexist *btcoexist, u8 type);
519 void exhalbtc_connect_notify(struct btc_coexist *btcoexist, u8 action);
520 void exhalbtc_mediastatus_notify(struct btc_coexist *btcoexist,
522 void exhalbtc_special_packet_notify(struct btc_coexist *btcoexist, u8 pkt_type);
523 void exhalbtc_bt_info_notify(struct btc_coexist *btcoexist, u8 *tmp_buf,
525 void exhalbtc_stack_operation_notify(struct btc_coexist *btcoexist, u8 type);
526 void exhalbtc_halt_notify(struct btc_coexist *btcoexist);
527 void exhalbtc_pnp_notify(struct btc_coexist *btcoexist, u8 pnp_state);
528 void exhalbtc_coex_dm_switch(struct btc_coexist *btcoexist);
529 void exhalbtc_periodical(struct btc_coexist *btcoexist);
530 void exhalbtc_dbg_control(struct btc_coexist *btcoexist, u8 code, u8 len,
539 void exhalbtc_display_bt_coex_info(struct btc_coexist *btcoexist);
540 void exhalbtc_signal_compensation(struct btc_coexist *btcoexist,
542 void exhalbtc_lps_leave(struct btc_coexist *btcoexist);
543 void exhalbtc_low_wifi_traffic_notify(struct btc_coexist *btcoexist);
H A Drtl_btc.c185 if (rtlpriv->btcoexist.btc_info.ant_num == ANT_X2) rtl_get_hwpg_ant_num()
209 return rtlpriv->btcoexist.btc_info.btcoexist; rtl_get_hwpg_bt_exist()
214 return rtlpriv->btcoexist.btc_info.bt_type; rtl_get_hwpg_bt_type()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/
H A Dhal_bt_coexist.c47 rtlpriv->btcoexist.cstate &= _rtl8723_dm_bt_check_wifi_state()
51 rtlpriv->btcoexist.cstate |= _rtl8723_dm_bt_check_wifi_state()
54 rtlpriv->btcoexist.cstate &= _rtl8723_dm_bt_check_wifi_state()
58 rtlpriv->btcoexist.cstate |= _rtl8723_dm_bt_check_wifi_state()
61 rtlpriv->btcoexist.cstate &= _rtl8723_dm_bt_check_wifi_state()
64 rtlpriv->btcoexist.cstate |= BT_COEX_STATE_WIFI_IDLE; _rtl8723_dm_bt_check_wifi_state()
65 rtlpriv->btcoexist.cstate &= _rtl8723_dm_bt_check_wifi_state()
67 rtlpriv->btcoexist.cstate &= _rtl8723_dm_bt_check_wifi_state()
73 rtlpriv->btcoexist.cstate |= _rtl8723_dm_bt_check_wifi_state()
75 rtlpriv->btcoexist.cstate &= _rtl8723_dm_bt_check_wifi_state()
77 rtlpriv->btcoexist.cstate &= _rtl8723_dm_bt_check_wifi_state()
80 rtlpriv->btcoexist.cstate &= _rtl8723_dm_bt_check_wifi_state()
83 rtlpriv->btcoexist.cstate |= _rtl8723_dm_bt_check_wifi_state()
85 rtlpriv->btcoexist.cstate &= _rtl8723_dm_bt_check_wifi_state()
88 rtlpriv->btcoexist.cstate |= _rtl8723_dm_bt_check_wifi_state()
90 rtlpriv->btcoexist.cstate &= _rtl8723_dm_bt_check_wifi_state()
96 rtlpriv->btcoexist.cstate |= BT_COEX_STATE_BT30; _rtl8723_dm_bt_check_wifi_state()
98 rtlpriv->btcoexist.cstate &= ~BT_COEX_STATE_BT30; _rtl8723_dm_bt_check_wifi_state()
113 rtlpriv->btcoexist.cstate &= rtl8723e_dm_bt_check_coex_rssi_state1()
116 if ((rtlpriv->btcoexist.bt_pre_rssi_state == rtl8723e_dm_bt_check_coex_rssi_state1()
118 (rtlpriv->btcoexist.bt_pre_rssi_state == rtl8723e_dm_bt_check_coex_rssi_state1()
123 rtlpriv->btcoexist.cstate |= rtl8723e_dm_bt_check_coex_rssi_state1()
125 rtlpriv->btcoexist.cstate &= rtl8723e_dm_bt_check_coex_rssi_state1()
137 rtlpriv->btcoexist.cstate |= rtl8723e_dm_bt_check_coex_rssi_state1()
139 rtlpriv->btcoexist.cstate &= rtl8723e_dm_bt_check_coex_rssi_state1()
153 return rtlpriv->btcoexist.bt_pre_rssi_state; rtl8723e_dm_bt_check_coex_rssi_state1()
156 if ((rtlpriv->btcoexist.bt_pre_rssi_state == rtl8723e_dm_bt_check_coex_rssi_state1()
158 (rtlpriv->btcoexist.bt_pre_rssi_state == rtl8723e_dm_bt_check_coex_rssi_state1()
163 rtlpriv->btcoexist.cstate |= rtl8723e_dm_bt_check_coex_rssi_state1()
165 rtlpriv->btcoexist.cstate &= rtl8723e_dm_bt_check_coex_rssi_state1()
167 rtlpriv->btcoexist.cstate &= rtl8723e_dm_bt_check_coex_rssi_state1()
176 } else if ((rtlpriv->btcoexist.bt_pre_rssi_state == rtl8723e_dm_bt_check_coex_rssi_state1()
178 (rtlpriv->btcoexist.bt_pre_rssi_state == rtl8723e_dm_bt_check_coex_rssi_state1()
183 rtlpriv->btcoexist.cstate |= rtl8723e_dm_bt_check_coex_rssi_state1()
185 rtlpriv->btcoexist.cstate &= rtl8723e_dm_bt_check_coex_rssi_state1()
187 rtlpriv->btcoexist.cstate &= rtl8723e_dm_bt_check_coex_rssi_state1()
193 rtlpriv->btcoexist.cstate |= rtl8723e_dm_bt_check_coex_rssi_state1()
195 rtlpriv->btcoexist.cstate &= rtl8723e_dm_bt_check_coex_rssi_state1()
197 rtlpriv->btcoexist.cstate &= rtl8723e_dm_bt_check_coex_rssi_state1()
209 rtlpriv->btcoexist.cstate |= rtl8723e_dm_bt_check_coex_rssi_state1()
211 rtlpriv->btcoexist.cstate &= rtl8723e_dm_bt_check_coex_rssi_state1()
213 rtlpriv->btcoexist.cstate &= rtl8723e_dm_bt_check_coex_rssi_state1()
224 rtlpriv->btcoexist.bt_pre_rssi_state1 = bt_rssi_state; rtl8723e_dm_bt_check_coex_rssi_state1()
241 rtlpriv->btcoexist.cstate &= rtl8723e_dm_bt_check_coex_rssi_state()
244 if ((rtlpriv->btcoexist.bt_pre_rssi_state == rtl8723e_dm_bt_check_coex_rssi_state()
246 (rtlpriv->btcoexist.bt_pre_rssi_state == rtl8723e_dm_bt_check_coex_rssi_state()
251 rtlpriv->btcoexist.cstate rtl8723e_dm_bt_check_coex_rssi_state()
253 rtlpriv->btcoexist.cstate rtl8723e_dm_bt_check_coex_rssi_state()
265 rtlpriv->btcoexist.cstate rtl8723e_dm_bt_check_coex_rssi_state()
267 rtlpriv->btcoexist.cstate rtl8723e_dm_bt_check_coex_rssi_state()
281 return rtlpriv->btcoexist.bt_pre_rssi_state; rtl8723e_dm_bt_check_coex_rssi_state()
283 if ((rtlpriv->btcoexist.bt_pre_rssi_state == rtl8723e_dm_bt_check_coex_rssi_state()
285 (rtlpriv->btcoexist.bt_pre_rssi_state == rtl8723e_dm_bt_check_coex_rssi_state()
290 rtlpriv->btcoexist.cstate rtl8723e_dm_bt_check_coex_rssi_state()
292 rtlpriv->btcoexist.cstate rtl8723e_dm_bt_check_coex_rssi_state()
294 rtlpriv->btcoexist.cstate rtl8723e_dm_bt_check_coex_rssi_state()
303 } else if ((rtlpriv->btcoexist.bt_pre_rssi_state == rtl8723e_dm_bt_check_coex_rssi_state()
305 (rtlpriv->btcoexist.bt_pre_rssi_state == rtl8723e_dm_bt_check_coex_rssi_state()
310 rtlpriv->btcoexist.cstate rtl8723e_dm_bt_check_coex_rssi_state()
312 rtlpriv->btcoexist.cstate rtl8723e_dm_bt_check_coex_rssi_state()
314 rtlpriv->btcoexist.cstate rtl8723e_dm_bt_check_coex_rssi_state()
320 rtlpriv->btcoexist.cstate rtl8723e_dm_bt_check_coex_rssi_state()
322 rtlpriv->btcoexist.cstate rtl8723e_dm_bt_check_coex_rssi_state()
324 rtlpriv->btcoexist.cstate rtl8723e_dm_bt_check_coex_rssi_state()
336 rtlpriv->btcoexist.cstate rtl8723e_dm_bt_check_coex_rssi_state()
338 rtlpriv->btcoexist.cstate rtl8723e_dm_bt_check_coex_rssi_state()
340 rtlpriv->btcoexist.cstate rtl8723e_dm_bt_check_coex_rssi_state()
351 rtlpriv->btcoexist.bt_pre_rssi_state = bt_rssi_state; rtl8723e_dm_bt_check_coex_rssi_state()
384 rtlpriv->btcoexist.fw_coexist_all_off = false; rtl8723e_dm_bt_balance()
390 rtlpriv->btcoexist.balance_on = balance_on; rtl8723e_dm_bt_balance()
444 rtlpriv->btcoexist.sw_coexist_all_off = false; rtl8723e_dm_bt_agc_table()
460 rtlpriv->btcoexist.sw_coexist_all_off = false; rtl8723e_dm_bt_bb_back_off_level()
470 if (rtlpriv->btcoexist.fw_coexist_all_off) rtl8723e_dm_bt_fw_coex_all_off()
476 rtlpriv->btcoexist.fw_coexist_all_off = true; rtl8723e_dm_bt_fw_coex_all_off()
486 if (rtlpriv->btcoexist.sw_coexist_all_off) rtl8723e_dm_bt_sw_coex_all_off()
492 rtlpriv->btcoexist.sw_coexist_all_off = true; rtl8723e_dm_bt_sw_coex_all_off()
502 if (rtlpriv->btcoexist.hw_coexist_all_off) rtl8723e_dm_bt_hw_coex_all_off()
509 rtlpriv->btcoexist.hw_coexist_all_off = true; rtl8723e_dm_bt_hw_coex_all_off()
523 if ((rtlpriv->btcoexist.previous_state == rtlpriv->btcoexist.cstate) && rtl8723e_dm_bt_is_coexist_state_changed()
524 (rtlpriv->btcoexist.previous_state_h == rtl8723e_dm_bt_is_coexist_state_changed()
525 rtlpriv->btcoexist.cstate_h)) rtl8723e_dm_bt_is_coexist_state_changed()
H A Dhal_btc.c40 if (!rtlpriv->btcoexist.bt_coexistence) rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps()
46 rtlpriv->btcoexist.cstate = 0; rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps()
47 rtlpriv->btcoexist.previous_state = 0; rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps()
48 rtlpriv->btcoexist.cstate_h = 0; rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps()
49 rtlpriv->btcoexist.previous_state_h = 0; rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps()
74 if (!rtlpriv->btcoexist.bt_coexistence) rtl_8723e_bt_wifi_media_status_notify()
137 rtlpriv->btcoexist.cstate |= rtl8723e_dm_bt_need_to_dec_bt_pwr()
142 rtlpriv->btcoexist.cstate &= ~BT_COEX_STATE_DEC_BT_POWER; rtl8723e_dm_bt_need_to_dec_bt_pwr()
150 if ((rtlpriv->btcoexist.previous_state == rtl8723e_dm_bt_is_same_coexist_state()
151 rtlpriv->btcoexist.cstate) && rtl8723e_dm_bt_is_same_coexist_state()
152 (rtlpriv->btcoexist.previous_state_h == rtl8723e_dm_bt_is_same_coexist_state()
153 rtlpriv->btcoexist.cstate_h)) { rtl8723e_dm_bt_is_same_coexist_state()
191 rtlpriv->btcoexist.hw_coexist_all_off = false; rtl8723e_dm_bt_set_hw_pta_mode()
209 rtlpriv->btcoexist.sw_coexist_all_off = false; rtl8723e_dm_bt_set_sw_rf_rx_lpf_corner()
215 rtlpriv->btcoexist.bt_rfreg_origin_1e); rtl8723e_dm_bt_set_sw_rf_rx_lpf_corner()
231 rtlpriv->btcoexist.sw_coexist_all_off = false; dm_bt_set_sw_penalty_tx_rate_adapt()
302 !rtlpriv->btcoexist.bt_busy) { rtl8723e_dm_bt_is_2_ant_common_action()
308 !rtlpriv->btcoexist.bt_busy) { rtl8723e_dm_bt_is_2_ant_common_action()
330 } else if (rtlpriv->btcoexist.bt_busy) { rtl8723e_dm_bt_is_2_ant_common_action()
366 rtlpriv->btcoexist.cstate |= rtl8723e_dm_bt_is_2_ant_common_action()
387 rtlpriv->btcoexist.sw_coexist_all_off = false; rtl8723e_dm_bt_set_sw_full_time_dac_swing()
405 rtlpriv->btcoexist.fw_coexist_all_off = false; rtl8723e_dm_bt_set_fw_dec_bt_pwr()
423 rtlpriv->btcoexist.fw_coexist_all_off = false; rtl8723e_dm_bt_set_fw_2_ant_hid()
484 rtlpriv->btcoexist.fw_coexist_all_off = false; rtl8723e_dm_bt_set_fw_tdma_ctrl()
513 rtlpriv->btcoexist.fw_coexist_all_off = false; rtl8723e_dm_bt_set_fw_ignore_wlan_act()
567 rtlpriv->btcoexist.fw_coexist_all_off = false; rtl8723e_dm_bt_set_fw_tra_tdma_ctrl()
604 rtlpriv->btcoexist.fw_coexist_all_off = false; rtl8723e_dm_bt_set_fw_bt_hid_info()
779 if (rtlpriv->btcoexist.hold_for_bt_operation) { rtl8723e_dm_bt_set_bt_dm()
956 rtlpriv->btcoexist.cstate_h &= ~ rtl8723e_dm_bt_bt_tx_rx_counter_level()
964 rtlpriv->btcoexist.cstate_h |= rtl8723e_dm_bt_bt_tx_rx_counter_level()
970 rtlpriv->btcoexist.cstate_h |= rtl8723e_dm_bt_bt_tx_rx_counter_level()
976 rtlpriv->btcoexist.cstate_h |= rtl8723e_dm_bt_bt_tx_rx_counter_level()
982 rtlpriv->btcoexist.cstate_h |= rtl8723e_dm_bt_bt_tx_rx_counter_level()
1387 rtlpriv->btcoexist.cstate |= rtl8723e_dm_bt_inq_page_monitor()
1406 rtlpriv->btcoexist.cstate &= rtl8723e_dm_bt_inq_page_monitor()
1416 rtlpriv->btcoexist.cstate &= ~ rtl8723e_dm_bt_reset_action_profile_state()
1420 rtlpriv->btcoexist.cstate &= ~ rtl8723e_dm_bt_reset_action_profile_state()
1450 rtlpriv->btcoexist.bt_profile_case = BT_COEX_MECH_COMMON; _rtl8723e_dm_bt_coexist_2_ant()
1451 rtlpriv->btcoexist.bt_profile_action = BT_COEX_MECH_COMMON; _rtl8723e_dm_bt_coexist_2_ant()
1458 rtlpriv->btcoexist.cstate |= _rtl8723e_dm_bt_coexist_2_ant()
1460 rtlpriv->btcoexist.bt_profile_case = _rtl8723e_dm_bt_coexist_2_ant()
1462 rtlpriv->btcoexist.bt_profile_action = _rtl8723e_dm_bt_coexist_2_ant()
1469 rtlpriv->btcoexist.cstate |= _rtl8723e_dm_bt_coexist_2_ant()
1471 rtlpriv->btcoexist.bt_profile_case = _rtl8723e_dm_bt_coexist_2_ant()
1473 rtlpriv->btcoexist.bt_profile_action = _rtl8723e_dm_bt_coexist_2_ant()
1479 rtlpriv->btcoexist.cstate |= _rtl8723e_dm_bt_coexist_2_ant()
1481 rtlpriv->btcoexist.bt_profile_case = _rtl8723e_dm_bt_coexist_2_ant()
1483 rtlpriv->btcoexist.bt_profile_action = _rtl8723e_dm_bt_coexist_2_ant()
1562 if (rtlpriv->btcoexist.lps_counter > 1) { rtl8723e_dm_bt_bt_hw_counters_monitor()
1563 reg_hp_tx %= rtlpriv->btcoexist.lps_counter; rtl8723e_dm_bt_bt_hw_counters_monitor()
1564 reg_hp_rx %= rtlpriv->btcoexist.lps_counter; rtl8723e_dm_bt_bt_hw_counters_monitor()
1565 reg_lp_tx %= rtlpriv->btcoexist.lps_counter; rtl8723e_dm_bt_bt_hw_counters_monitor()
1566 reg_lp_rx %= rtlpriv->btcoexist.lps_counter; rtl8723e_dm_bt_bt_hw_counters_monitor()
1580 rtlpriv->btcoexist.lps_counter = 0; rtl8723e_dm_bt_bt_hw_counters_monitor()
1608 rtlpriv->btcoexist.bt_active_zero_cnt = 0; rtl8723e_dm_bt_bt_enable_disable_check()
1609 rtlpriv->btcoexist.cur_bt_disabled = false; rtl8723e_dm_bt_bt_enable_disable_check()
1613 rtlpriv->btcoexist.bt_active_zero_cnt++; rtl8723e_dm_bt_bt_enable_disable_check()
1616 rtlpriv->btcoexist.bt_active_zero_cnt); rtl8723e_dm_bt_bt_enable_disable_check()
1617 if (rtlpriv->btcoexist.bt_active_zero_cnt >= 2) { rtl8723e_dm_bt_bt_enable_disable_check()
1618 rtlpriv->btcoexist.cur_bt_disabled = true; rtl8723e_dm_bt_bt_enable_disable_check()
1623 if (rtlpriv->btcoexist.pre_bt_disabled != rtl8723e_dm_bt_bt_enable_disable_check()
1624 rtlpriv->btcoexist.cur_bt_disabled) { rtl8723e_dm_bt_bt_enable_disable_check()
1627 (rtlpriv->btcoexist.pre_bt_disabled ? rtl8723e_dm_bt_bt_enable_disable_check()
1629 (rtlpriv->btcoexist.cur_bt_disabled ? rtl8723e_dm_bt_bt_enable_disable_check()
1631 rtlpriv->btcoexist.pre_bt_disabled rtl8723e_dm_bt_bt_enable_disable_check()
1632 = rtlpriv->btcoexist.cur_bt_disabled; rtl8723e_dm_bt_bt_enable_disable_check()
1645 if (rtlpriv->btcoexist.bt_ant_num == ANT_X2) { rtl8723e_dm_bt_coexist_8723()
1658 rtlpriv->btcoexist.previous_state_h, rtl8723e_dm_bt_coexist_8723()
1659 rtlpriv->btcoexist.previous_state, rtl8723e_dm_bt_coexist_8723()
1660 rtlpriv->btcoexist.cstate_h, rtl8723e_dm_bt_coexist_8723()
1661 rtlpriv->btcoexist.cstate); rtl8723e_dm_bt_coexist_8723()
1662 rtlpriv->btcoexist.previous_state rtl8723e_dm_bt_coexist_8723()
1663 = rtlpriv->btcoexist.cstate; rtl8723e_dm_bt_coexist_8723()
1664 rtlpriv->btcoexist.previous_state_h rtl8723e_dm_bt_coexist_8723()
1665 = rtlpriv->btcoexist.cstate_h; rtl8723e_dm_bt_coexist_8723()
1705 rtlpriv->btcoexist.bt_busy = true; rtl8723e_dm_bt_parse_bt_info()
1706 rtlpriv->btcoexist.cstate &= ~BT_COEX_STATE_BT_IDLE; rtl8723e_dm_bt_parse_bt_info()
1710 rtlpriv->btcoexist.bt_busy = false; rtl8723e_dm_bt_parse_bt_info()
1711 rtlpriv->btcoexist.cstate |= BT_COEX_STATE_BT_IDLE; rtl8723e_dm_bt_parse_bt_info()
1771 rtlpriv->btcoexist.btc_ops->btc_periodical(rtlpriv); rtl_8723e_c2h_command_handle()
H A Dhw.c281 if ((rtlpriv->btcoexist.bt_coexistence) && rtl8723e_set_hw_reg()
282 (rtlpriv->btcoexist.bt_coexist_type == rtl8723e_set_hw_reg()
831 if ((rtlpriv->btcoexist.bt_coexistence) && _rtl8723e_hw_configure()
832 (rtlpriv->btcoexist.bt_coexist_type == BT_CSR_BC4)) _rtl8723e_hw_configure()
851 if ((rtlpriv->btcoexist.bt_coexistence) && _rtl8723e_hw_configure()
852 (rtlpriv->btcoexist.bt_coexist_type == BT_CSR_BC4)) { _rtl8723e_hw_configure()
860 if ((rtlpriv->btcoexist.bt_coexistence) && _rtl8723e_hw_configure()
861 (rtlpriv->btcoexist.bt_coexist_type == BT_CSR_BC4)) _rtl8723e_hw_configure()
1961 if ((rtlpriv->btcoexist.bt_coexistence) && rtl8723e_update_hal_rate_table()
1962 (rtlpriv->btcoexist.bt_coexist_type == BT_CSR_BC4) && rtl8723e_update_hal_rate_table()
1963 (rtlpriv->btcoexist.bt_cur_state) && rtl8723e_update_hal_rate_table()
1964 (rtlpriv->btcoexist.bt_ant_isolation) && rtl8723e_update_hal_rate_table()
1965 ((rtlpriv->btcoexist.bt_service == BT_SCO) || rtl8723e_update_hal_rate_table()
1966 (rtlpriv->btcoexist.bt_service == BT_BUSY))) rtl8723e_update_hal_rate_table()
2352 rtlpriv->btcoexist.bt_coexistence = rtl8723e_bt_var_init()
2353 rtlpriv->btcoexist.eeprom_bt_coexist; rtl8723e_bt_var_init()
2354 rtlpriv->btcoexist.bt_ant_num = rtl8723e_bt_var_init()
2355 rtlpriv->btcoexist.eeprom_bt_ant_num; rtl8723e_bt_var_init()
2356 rtlpriv->btcoexist.bt_coexist_type = rtl8723e_bt_var_init()
2357 rtlpriv->btcoexist.eeprom_bt_type; rtl8723e_bt_var_init()
2359 rtlpriv->btcoexist.bt_ant_isolation = rtl8723e_bt_var_init()
2360 rtlpriv->btcoexist.eeprom_bt_ant_isol; rtl8723e_bt_var_init()
2362 rtlpriv->btcoexist.bt_radio_shared_type = rtl8723e_bt_var_init()
2363 rtlpriv->btcoexist.eeprom_bt_radio_shared; rtl8723e_bt_var_init()
2367 rtlpriv->btcoexist.bt_coexistence); rtl8723e_bt_var_init()
2369 if (rtlpriv->btcoexist.bt_coexistence) { rtl8723e_bt_var_init()
2370 rtlpriv->btcoexist.bt_busy_traffic = false; rtl8723e_bt_var_init()
2371 rtlpriv->btcoexist.bt_traffic_mode_set = false; rtl8723e_bt_var_init()
2372 rtlpriv->btcoexist.bt_non_traffic_mode_set = false; rtl8723e_bt_var_init()
2374 rtlpriv->btcoexist.cstate = 0; rtl8723e_bt_var_init()
2375 rtlpriv->btcoexist.previous_state = 0; rtl8723e_bt_var_init()
2377 if (rtlpriv->btcoexist.bt_ant_num == ANT_X2) { rtl8723e_bt_var_init()
2380 } else if (rtlpriv->btcoexist.bt_ant_num == ANT_X1) { rtl8723e_bt_var_init()
2384 switch (rtlpriv->btcoexist.bt_coexist_type) { rtl8723e_bt_var_init()
2416 rtlpriv->btcoexist.bt_ant_isolation); rtl8723e_bt_var_init()
2419 rtlpriv->btcoexist.bt_radio_shared_type); rtl8723e_bt_var_init()
2420 rtlpriv->btcoexist.bt_active_zero_cnt = 0; rtl8723e_bt_var_init()
2421 rtlpriv->btcoexist.cur_bt_disabled = false; rtl8723e_bt_var_init()
2422 rtlpriv->btcoexist.pre_bt_disabled = false; rtl8723e_bt_var_init()
2436 rtlpriv->btcoexist.eeprom_bt_coexist = 1; rtl8723e_read_bt_coexist_info_from_hwpg()
2438 rtlpriv->btcoexist.eeprom_bt_coexist = 0; rtl8723e_read_bt_coexist_info_from_hwpg()
2440 rtlpriv->btcoexist.eeprom_bt_type = BT_RTL8723A; rtl8723e_read_bt_coexist_info_from_hwpg()
2441 rtlpriv->btcoexist.eeprom_bt_ant_num = (value & 0x1); rtl8723e_read_bt_coexist_info_from_hwpg()
2442 rtlpriv->btcoexist.eeprom_bt_ant_isol = ((value & 0x10) >> 4); rtl8723e_read_bt_coexist_info_from_hwpg()
2443 rtlpriv->btcoexist.eeprom_bt_radio_shared = rtl8723e_read_bt_coexist_info_from_hwpg()
2446 rtlpriv->btcoexist.eeprom_bt_coexist = 0; rtl8723e_read_bt_coexist_info_from_hwpg()
2447 rtlpriv->btcoexist.eeprom_bt_type = BT_RTL8723A; rtl8723e_read_bt_coexist_info_from_hwpg()
2448 rtlpriv->btcoexist.eeprom_bt_ant_num = ANT_X2; rtl8723e_read_bt_coexist_info_from_hwpg()
2449 rtlpriv->btcoexist.eeprom_bt_ant_isol = 0; rtl8723e_read_bt_coexist_info_from_hwpg()
2450 rtlpriv->btcoexist.eeprom_bt_radio_shared = BT_RADIO_SHARED; rtl8723e_read_bt_coexist_info_from_hwpg()
2461 rtlpriv->btcoexist.reg_bt_iso = 2; rtl8723e_bt_reg_init()
2463 rtlpriv->btcoexist.reg_bt_sco = 3; rtl8723e_bt_reg_init()
2465 rtlpriv->btcoexist.reg_bt_sco = 0; rtl8723e_bt_reg_init()
2473 rtlpriv->btcoexist.btc_ops->btc_init_hw_config(rtlpriv); rtl8723e_bt_hw_init()
H A Ddm.c582 if ((last_bt_edca_ul != rtlpriv->btcoexist.bt_edca_ul) || rtl8723e_dm_check_edca_turbo()
583 (last_bt_edca_dl != rtlpriv->btcoexist.bt_edca_dl)) { rtl8723e_dm_check_edca_turbo()
585 last_bt_edca_ul = rtlpriv->btcoexist.bt_edca_ul; rtl8723e_dm_check_edca_turbo()
586 last_bt_edca_dl = rtlpriv->btcoexist.bt_edca_dl; rtl8723e_dm_check_edca_turbo()
589 if (rtlpriv->btcoexist.bt_edca_ul != 0) { rtl8723e_dm_check_edca_turbo()
590 edca_be_ul = rtlpriv->btcoexist.bt_edca_ul; rtl8723e_dm_check_edca_turbo()
594 if (rtlpriv->btcoexist.bt_edca_dl != 0) { rtl8723e_dm_check_edca_turbo()
595 edca_be_ul = rtlpriv->btcoexist.bt_edca_dl; rtl8723e_dm_check_edca_turbo()
832 if (rtlpriv->btcoexist.init_set) rtl8723e_dm_watchdog()
840 rtlpriv->btcoexist.bt_rfreg_origin_1e rtl8723e_dm_init_bt_coexist()
842 rtlpriv->btcoexist.bt_rfreg_origin_1f rtl8723e_dm_init_bt_coexist()
845 rtlpriv->btcoexist.cstate = 0; rtl8723e_dm_init_bt_coexist()
846 rtlpriv->btcoexist.previous_state = 0; rtl8723e_dm_init_bt_coexist()
847 rtlpriv->btcoexist.cstate_h = 0; rtl8723e_dm_init_bt_coexist()
848 rtlpriv->btcoexist.previous_state_h = 0; rtl8723e_dm_init_bt_coexist()
849 rtlpriv->btcoexist.lps_counter = 0; rtl8723e_dm_init_bt_coexist()
856 rtlpriv->btcoexist.init_set = true; rtl8723e_dm_init_bt_coexist()
863 if (!rtlpriv->btcoexist.bt_coexistence) { rtl8723e_dm_bt_coexist()
869 if (!rtlpriv->btcoexist.init_set) { rtl8723e_dm_bt_coexist()
H A Dsw.c41 #include "../btcoexist/rtl_btc.h"
100 rtlpriv->btcoexist.btc_ops = rtl_btc_get_ops_pointer(); rtl8723e_init_sw_vars()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/
H A DMakefile29 obj-$(CONFIG_RTLBTCOEXIST) += btcoexist/
H A Dps.c30 #include "btcoexist/rtl_btc.h"
265 rtlpriv->btcoexist.btc_ops->btc_ips_notify(rtlpriv, rtl_ips_nic_off_wq_callback()
310 rtlpriv->btcoexist.btc_ops->btc_ips_notify(rtlpriv, rtl_ips_nic_on()
394 rtlpriv->btcoexist.btc_ops->btc_lps_notify(rtlpriv, rt_psmode); rtl_lps_set_psmode()
401 rtlpriv->btcoexist.btc_ops->btc_lps_notify(rtlpriv, rt_psmode); rtl_lps_set_psmode()
H A Dcore.c33 #include "btcoexist/rtl_btc.h"
1185 rtlpriv->btcoexist.btc_ops->btc_mediastatus_notify( rtl_op_bss_info_changed()
1427 rtlpriv->btcoexist.btc_ops->btc_scan_notify(rtlpriv, 1); rtl_op_sw_scan_start()
1480 rtlpriv->btcoexist.btc_ops->btc_scan_notify(rtlpriv, 0); rtl_op_sw_scan_complete()
H A Dpci.c1839 rtlpriv->btcoexist.btc_ops->btc_init_variables(rtlpriv); rtl_pci_start()
1840 rtlpriv->btcoexist.btc_ops->btc_init_hal_vars(rtlpriv); rtl_pci_start()
1875 rtlpriv->btcoexist.btc_ops->btc_halt_notify(); rtl_pci_stop()
H A Dbase.c1308 rtlpriv->btcoexist.btc_ops->btc_special_packet_notify( setup_arp_tx()
1709 rtlpriv->btcoexist.btc_ops->btc_periodical(rtlpriv); rtl_watchdog_wq_callback()
H A Dwifi.h2471 u8 btcoexist; member in struct:rtl_btc_info
2632 struct bt_coexist_info btcoexist; member in struct:rtl_priv
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/
H A Dhw.c1934 if (rtlpriv->btcoexist.eeprom_bt_coexist != 0 && _rtl88ee_read_adapter_info()
1935 rtlpriv->btcoexist.eeprom_bt_ant_num == ANT_X1) _rtl88ee_read_adapter_info()
2099 if ((rtlpriv->btcoexist.bt_coexistence) && rtl88ee_update_hal_rate_table()
2100 (rtlpriv->btcoexist.bt_coexist_type == BT_CSR_BC4) && rtl88ee_update_hal_rate_table()
2101 (rtlpriv->btcoexist.bt_cur_state) && rtl88ee_update_hal_rate_table()
2102 (rtlpriv->btcoexist.bt_ant_isolation) && rtl88ee_update_hal_rate_table()
2103 ((rtlpriv->btcoexist.bt_service == BT_SCO) || rtl88ee_update_hal_rate_table()
2104 (rtlpriv->btcoexist.bt_service == BT_BUSY))) rtl88ee_update_hal_rate_table()
2482 rtlpriv->btcoexist.bt_coexistence = rtl8188ee_bt_var_init()
2483 rtlpriv->btcoexist.eeprom_bt_coexist; rtl8188ee_bt_var_init()
2484 rtlpriv->btcoexist.bt_ant_num = rtlpriv->btcoexist.eeprom_bt_ant_num; rtl8188ee_bt_var_init()
2485 rtlpriv->btcoexist.bt_coexist_type = rtlpriv->btcoexist.eeprom_bt_type; rtl8188ee_bt_var_init()
2487 if (rtlpriv->btcoexist.reg_bt_iso == 2) rtl8188ee_bt_var_init()
2488 rtlpriv->btcoexist.bt_ant_isolation = rtl8188ee_bt_var_init()
2489 rtlpriv->btcoexist.eeprom_bt_ant_isol; rtl8188ee_bt_var_init()
2491 rtlpriv->btcoexist.bt_ant_isolation = rtl8188ee_bt_var_init()
2492 rtlpriv->btcoexist.reg_bt_iso; rtl8188ee_bt_var_init()
2494 rtlpriv->btcoexist.bt_radio_shared_type = rtl8188ee_bt_var_init()
2495 rtlpriv->btcoexist.eeprom_bt_radio_shared; rtl8188ee_bt_var_init()
2497 if (rtlpriv->btcoexist.bt_coexistence) { rtl8188ee_bt_var_init()
2498 if (rtlpriv->btcoexist.reg_bt_sco == 1) rtl8188ee_bt_var_init()
2499 rtlpriv->btcoexist.bt_service = BT_OTHER_ACTION; rtl8188ee_bt_var_init()
2500 else if (rtlpriv->btcoexist.reg_bt_sco == 2) rtl8188ee_bt_var_init()
2501 rtlpriv->btcoexist.bt_service = BT_SCO; rtl8188ee_bt_var_init()
2502 else if (rtlpriv->btcoexist.reg_bt_sco == 4) rtl8188ee_bt_var_init()
2503 rtlpriv->btcoexist.bt_service = BT_BUSY; rtl8188ee_bt_var_init()
2504 else if (rtlpriv->btcoexist.reg_bt_sco == 5) rtl8188ee_bt_var_init()
2505 rtlpriv->btcoexist.bt_service = BT_OTHERBUSY; rtl8188ee_bt_var_init()
2507 rtlpriv->btcoexist.bt_service = BT_IDLE; rtl8188ee_bt_var_init()
2509 rtlpriv->btcoexist.bt_edca_ul = 0; rtl8188ee_bt_var_init()
2510 rtlpriv->btcoexist.bt_edca_dl = 0; rtl8188ee_bt_var_init()
2511 rtlpriv->btcoexist.bt_rssi_state = 0xff; rtl8188ee_bt_var_init()
2522 rtlpriv->btcoexist.eeprom_bt_coexist = rtl8188ee_read_bt_coexist_info_from_hwpg()
2525 rtlpriv->btcoexist.eeprom_bt_coexist = 0; rtl8188ee_read_bt_coexist_info_from_hwpg()
2527 rtlpriv->btcoexist.eeprom_bt_type = ((value & 0xe) >> 1); rtl8188ee_read_bt_coexist_info_from_hwpg()
2528 rtlpriv->btcoexist.eeprom_bt_ant_num = (value & 0x1); rtl8188ee_read_bt_coexist_info_from_hwpg()
2529 rtlpriv->btcoexist.eeprom_bt_ant_isol = ((value & 0x10) >> 4); rtl8188ee_read_bt_coexist_info_from_hwpg()
2530 rtlpriv->btcoexist.eeprom_bt_radio_shared = rtl8188ee_read_bt_coexist_info_from_hwpg()
2533 rtlpriv->btcoexist.eeprom_bt_coexist = 0; rtl8188ee_read_bt_coexist_info_from_hwpg()
2534 rtlpriv->btcoexist.eeprom_bt_type = BT_2WIRE; rtl8188ee_read_bt_coexist_info_from_hwpg()
2535 rtlpriv->btcoexist.eeprom_bt_ant_num = ANT_X2; rtl8188ee_read_bt_coexist_info_from_hwpg()
2536 rtlpriv->btcoexist.eeprom_bt_ant_isol = 0; rtl8188ee_read_bt_coexist_info_from_hwpg()
2537 rtlpriv->btcoexist.eeprom_bt_radio_shared = BT_RADIO_SHARED; rtl8188ee_read_bt_coexist_info_from_hwpg()
2548 rtlpriv->btcoexist.reg_bt_iso = 2; rtl8188ee_bt_reg_init()
2550 rtlpriv->btcoexist.reg_bt_sco = 3; rtl8188ee_bt_reg_init()
2552 rtlpriv->btcoexist.reg_bt_sco = 0; rtl8188ee_bt_reg_init()
2561 if (rtlpriv->btcoexist.bt_coexistence && rtl8188ee_bt_hw_init()
2562 ((rtlpriv->btcoexist.bt_coexist_type == BT_CSR_BC4) || rtl8188ee_bt_hw_init()
2563 rtlpriv->btcoexist.bt_coexist_type == BT_CSR_BC8)) { rtl8188ee_bt_hw_init()
2564 if (rtlpriv->btcoexist.bt_ant_isolation) rtl8188ee_bt_hw_init()
2570 ((rtlpriv->btcoexist.bt_ant_isolation == 1) ? rtl8188ee_bt_hw_init()
2572 ((rtlpriv->btcoexist.bt_service == BT_SCO) ? rtl8188ee_bt_hw_init()
H A Ddm.c817 if ((last_bt_edca_ul != rtlpriv->btcoexist.bt_edca_ul) || rtl88e_dm_check_edca_turbo()
818 (last_bt_edca_dl != rtlpriv->btcoexist.bt_edca_dl)) { rtl88e_dm_check_edca_turbo()
820 last_bt_edca_ul = rtlpriv->btcoexist.bt_edca_ul; rtl88e_dm_check_edca_turbo()
821 last_bt_edca_dl = rtlpriv->btcoexist.bt_edca_dl; rtl88e_dm_check_edca_turbo()
824 if (rtlpriv->btcoexist.bt_edca_ul != 0) { rtl88e_dm_check_edca_turbo()
825 edca_be_ul = rtlpriv->btcoexist.bt_edca_ul; rtl88e_dm_check_edca_turbo()
829 if (rtlpriv->btcoexist.bt_edca_dl != 0) { rtl88e_dm_check_edca_turbo()
830 edca_be_ul = rtlpriv->btcoexist.bt_edca_dl; rtl88e_dm_check_edca_turbo()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
H A Dhw.c45 #include "../btcoexist/rtl_btc.h"
1441 if (rtlpriv->btcoexist.btc_info.ant_num == ANT_X2 || rtl8723be_hw_init()
2694 rtlpriv->btcoexist.btc_info.btcoexist = 1; rtl8723be_read_bt_coexist_info_from_hwpg()
2696 rtlpriv->btcoexist.btc_info.btcoexist = 0; rtl8723be_read_bt_coexist_info_from_hwpg()
2698 rtlpriv->btcoexist.btc_info.bt_type = BT_RTL8723B; rtl8723be_read_bt_coexist_info_from_hwpg()
2699 rtlpriv->btcoexist.btc_info.ant_num = (value & 0x1); rtl8723be_read_bt_coexist_info_from_hwpg()
2701 rtlpriv->btcoexist.btc_info.btcoexist = 0; rtl8723be_read_bt_coexist_info_from_hwpg()
2702 rtlpriv->btcoexist.btc_info.bt_type = BT_RTL8723B; rtl8723be_read_bt_coexist_info_from_hwpg()
2703 rtlpriv->btcoexist.btc_info.ant_num = ANT_X2; rtl8723be_read_bt_coexist_info_from_hwpg()
2708 rtlpriv->btcoexist.btc_info.ant_num = rtl8723be_read_bt_coexist_info_from_hwpg()
2717 rtlpriv->btcoexist.reg_bt_iso = 2; rtl8723be_bt_reg_init()
2719 rtlpriv->btcoexist.reg_bt_sco = 3; rtl8723be_bt_reg_init()
2721 rtlpriv->btcoexist.reg_bt_sco = 0; rtl8723be_bt_reg_init()
2729 rtlpriv->btcoexist.btc_ops->btc_init_hw_config(rtlpriv); rtl8723be_bt_hw_init()
H A Dsw.c42 #include "../btcoexist/rtl_btc.h"
96 rtlpriv->btcoexist.btc_ops = rtl_btc_get_ops_pointer(); rtl8723be_init_sw_vars()
H A Ddm.c37 #include "../btcoexist/rtl_btc.h"
1151 if (!rtlpriv->btcoexist.btc_ops->btc_is_bt_disabled(rtlpriv)) { rtl8723be_dm_dynamic_atc_switch()
H A Dfw.c607 rtlpriv->btcoexist.btc_ops->btc_btinfo_notify(rtlpriv, tmp_buf, _rtl8723be_c2h_content_parsing()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
H A Dhw.c1315 if (rtlpriv->btcoexist.btc_info.btcoexist == 1) { rtl92ee_hw_init()
2607 rtlpriv->btcoexist.btc_info.btcoexist = 1; rtl92ee_read_bt_coexist_info_from_hwpg()
2609 rtlpriv->btcoexist.btc_info.btcoexist = 0; rtl92ee_read_bt_coexist_info_from_hwpg()
2611 rtlpriv->btcoexist.btc_info.bt_type = BT_RTL8192E; rtl92ee_read_bt_coexist_info_from_hwpg()
2612 rtlpriv->btcoexist.btc_info.ant_num = ANT_TOTAL_X2; rtl92ee_read_bt_coexist_info_from_hwpg()
2614 rtlpriv->btcoexist.btc_info.btcoexist = 1; rtl92ee_read_bt_coexist_info_from_hwpg()
2615 rtlpriv->btcoexist.btc_info.bt_type = BT_RTL8192E; rtl92ee_read_bt_coexist_info_from_hwpg()
2616 rtlpriv->btcoexist.btc_info.ant_num = ANT_TOTAL_X1; rtl92ee_read_bt_coexist_info_from_hwpg()
2625 rtlpriv->btcoexist.reg_bt_iso = 2; rtl92ee_bt_reg_init()
2627 rtlpriv->btcoexist.reg_bt_sco = 3; rtl92ee_bt_reg_init()
2629 rtlpriv->btcoexist.reg_bt_sco = 0; rtl92ee_bt_reg_init()
2637 rtlpriv->btcoexist.btc_ops->btc_init_hw_config(rtlpriv); rtl92ee_bt_hw_init()
H A Dsw.c40 #include "../btcoexist/rtl_btc.h"
97 rtlpriv->btcoexist.btc_ops = rtl_btc_get_ops_pointer(); rtl92ee_init_sw_vars()
H A Ddm.c828 if (!rtlpriv->btcoexist.btc_ops-> rtl92ee_dm_dynamic_atc_switch()
H A Dfw.c866 rtlpriv->btcoexist.btc_ops->btc_btinfo_notify(rtlpriv, tmp_buf, _rtl92ee_c2h_content_parsing()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
H A Dhw.c42 #include "../btcoexist/rtl_btc.h"
3076 rtlpriv->btcoexist.btc_info.btcoexist = 1; _rtl8812ae_read_bt_coexist_info_from_hwpg()
3078 rtlpriv->btcoexist.btc_info.btcoexist = 0; _rtl8812ae_read_bt_coexist_info_from_hwpg()
3079 rtlpriv->btcoexist.btc_info.bt_type = BT_RTL8812A; _rtl8812ae_read_bt_coexist_info_from_hwpg()
3082 rtlpriv->btcoexist.btc_info.ant_num = (value & 0x1); _rtl8812ae_read_bt_coexist_info_from_hwpg()
3084 rtlpriv->btcoexist.btc_info.btcoexist = 0; _rtl8812ae_read_bt_coexist_info_from_hwpg()
3085 rtlpriv->btcoexist.btc_info.bt_type = BT_RTL8812A; _rtl8812ae_read_bt_coexist_info_from_hwpg()
3086 rtlpriv->btcoexist.btc_info.ant_num = ANT_X2; _rtl8812ae_read_bt_coexist_info_from_hwpg()
3101 rtlpriv->btcoexist.btc_info.btcoexist = 1; _rtl8821ae_read_bt_coexist_info_from_hwpg()
3103 rtlpriv->btcoexist.btc_info.btcoexist = 0; _rtl8821ae_read_bt_coexist_info_from_hwpg()
3104 rtlpriv->btcoexist.btc_info.bt_type = BT_RTL8821A; _rtl8821ae_read_bt_coexist_info_from_hwpg()
3107 rtlpriv->btcoexist.btc_info.ant_num = (value & 0x1); _rtl8821ae_read_bt_coexist_info_from_hwpg()
3109 rtlpriv->btcoexist.btc_info.btcoexist = 0; _rtl8821ae_read_bt_coexist_info_from_hwpg()
3110 rtlpriv->btcoexist.btc_info.bt_type = BT_RTL8821A; _rtl8821ae_read_bt_coexist_info_from_hwpg()
3111 rtlpriv->btcoexist.btc_info.ant_num = ANT_X2; _rtl8821ae_read_bt_coexist_info_from_hwpg()
3221 if (rtlpriv->btcoexist.btc_info.btcoexist == 1) _rtl8821ae_read_adapter_info()
3257 if (rtlpriv->btcoexist.btc_info.btcoexist == 1 && _rtl8821ae_read_adapter_info()
3258 rtlpriv->btcoexist.btc_info.ant_num == ANT_X1) _rtl8821ae_read_adapter_info()
3421 if ((rtlpriv->btcoexist.bt_coexistence) && rtl8821ae_update_hal_rate_table()
3422 (rtlpriv->btcoexist.bt_coexist_type == BT_CSR_BC4) && rtl8821ae_update_hal_rate_table()
3423 (rtlpriv->btcoexist.bt_cur_state) && rtl8821ae_update_hal_rate_table()
3424 (rtlpriv->btcoexist.bt_ant_isolation) && rtl8821ae_update_hal_rate_table()
3425 ((rtlpriv->btcoexist.bt_service == BT_SCO) || rtl8821ae_update_hal_rate_table()
3426 (rtlpriv->btcoexist.bt_service == BT_BUSY))) rtl8821ae_update_hal_rate_table()
4086 rtlpriv->btcoexist.reg_bt_iso = 2; rtl8821ae_bt_reg_init()
4088 rtlpriv->btcoexist.reg_bt_sco = 3; rtl8821ae_bt_reg_init()
4090 rtlpriv->btcoexist.reg_bt_sco = 0; rtl8821ae_bt_reg_init()
4098 rtlpriv->btcoexist.btc_ops->btc_init_hw_config(rtlpriv); rtl8821ae_bt_hw_init()
H A Dsw.c39 #include "../btcoexist/rtl_btc.h"
98 rtlpriv->btcoexist.btc_ops = rtl_btc_get_ops_pointer(); rtl8821ae_init_sw_vars()
H A Dpwrseq.h30 #include "../btcoexist/halbt_precomp.h"
H A Ddm.c36 #include "../btcoexist/rtl_btc.h"
H A Dfw.c1829 rtlpriv->btcoexist.btc_ops->btc_btinfo_notify(rtlpriv, _rtl8821ae_c2h_content_parsing()
H A Dphy.c36 #include "../btcoexist/halbt_precomp.h"

Completed in 1063 milliseconds