Lines Matching refs:btcoexist
47 static void btc8821a1ant_act_bt_sco_hid_only_busy(struct btc_coexist *btcoexist,
64 static u8 btc8821a1ant_bt_rssi_state(struct btc_coexist *btcoexist, in btc8821a1ant_bt_rssi_state() argument
68 struct rtl_priv *rtlpriv = btcoexist->adapter; in btc8821a1ant_bt_rssi_state()
152 static u8 btc8821a1ant_wifi_rssi_state(struct btc_coexist *btcoexist, in btc8821a1ant_wifi_rssi_state() argument
156 struct rtl_priv *rtlpriv = btcoexist->adapter; in btc8821a1ant_wifi_rssi_state()
160 btcoexist->btc_get(btcoexist, BTC_GET_S4_WIFI_RSSI, &wifi_rssi); in btc8821a1ant_wifi_rssi_state()
244 static void btc8821a1ant_update_ra_mask(struct btc_coexist *btcoexist, in btc8821a1ant_update_ra_mask() argument
251 btcoexist->btc_set(btcoexist, BTC_SET_ACT_UPDATE_RAMASK, in btc8821a1ant_update_ra_mask()
257 static void btc8821a1ant_auto_rate_fb_retry(struct btc_coexist *btcoexist, in btc8821a1ant_auto_rate_fb_retry() argument
268 btcoexist->btc_write_4byte(btcoexist, 0x430, in btc8821a1ant_auto_rate_fb_retry()
270 btcoexist->btc_write_4byte(btcoexist, 0x434, in btc8821a1ant_auto_rate_fb_retry()
274 btcoexist->btc_get(btcoexist, in btc8821a1ant_auto_rate_fb_retry()
278 btcoexist->btc_write_4byte(btcoexist, 0x430, in btc8821a1ant_auto_rate_fb_retry()
280 btcoexist->btc_write_4byte(btcoexist, 0x434, in btc8821a1ant_auto_rate_fb_retry()
283 btcoexist->btc_write_4byte(btcoexist, 0x430, in btc8821a1ant_auto_rate_fb_retry()
285 btcoexist->btc_write_4byte(btcoexist, 0x434, in btc8821a1ant_auto_rate_fb_retry()
297 static void btc8821a1ant_retry_limit(struct btc_coexist *btcoexist, in btc8821a1ant_retry_limit() argument
306 btcoexist->btc_write_2byte(btcoexist, 0x42a, in btc8821a1ant_retry_limit()
310 btcoexist->btc_write_2byte(btcoexist, 0x42a, 0x0808); in btc8821a1ant_retry_limit()
319 static void btc8821a1ant_ampdu_max_time(struct btc_coexist *btcoexist, in btc8821a1ant_ampdu_max_time() argument
328 btcoexist->btc_write_1byte(btcoexist, 0x456, in btc8821a1ant_ampdu_max_time()
332 btcoexist->btc_write_1byte(btcoexist, 0x456, 0x38); in btc8821a1ant_ampdu_max_time()
342 static void btc8821a1ant_limited_tx(struct btc_coexist *btcoexist, in btc8821a1ant_limited_tx() argument
349 btc8821a1ant_update_ra_mask(btcoexist, force_exec, 0x0); in btc8821a1ant_limited_tx()
352 btc8821a1ant_update_ra_mask(btcoexist, force_exec, in btc8821a1ant_limited_tx()
356 btc8821a1ant_update_ra_mask(btcoexist, force_exec, in btc8821a1ant_limited_tx()
363 btc8821a1ant_auto_rate_fb_retry(btcoexist, force_exec, arfr_type); in btc8821a1ant_limited_tx()
364 btc8821a1ant_retry_limit(btcoexist, force_exec, retry_limit_type); in btc8821a1ant_limited_tx()
365 btc8821a1ant_ampdu_max_time(btcoexist, force_exec, ampdu_time_type); in btc8821a1ant_limited_tx()
368 static void btc8821a1ant_limited_rx(struct btc_coexist *btcoexist, in btc8821a1ant_limited_rx() argument
377 btcoexist->btc_set(btcoexist, in btc8821a1ant_limited_rx()
380 btcoexist->btc_set(btcoexist, BTC_SET_BL_BT_CTRL_AGG_SIZE, in btc8821a1ant_limited_rx()
383 btcoexist->btc_set(btcoexist, BTC_SET_U1_AGG_BUF_SIZE, &rx_agg_size); in btc8821a1ant_limited_rx()
385 btcoexist->btc_set(btcoexist, BTC_SET_ACT_AGGREGATE_CTRL, NULL); in btc8821a1ant_limited_rx()
388 static void btc8821a1ant_monitor_bt_ctr(struct btc_coexist *btcoexist) in btc8821a1ant_monitor_bt_ctr() argument
396 u4_tmp = btcoexist->btc_read_4byte(btcoexist, reg_hp_tx_rx); in btc8821a1ant_monitor_bt_ctr()
400 u4_tmp = btcoexist->btc_read_4byte(btcoexist, reg_lp_tx_rx); in btc8821a1ant_monitor_bt_ctr()
410 btcoexist->btc_write_1byte(btcoexist, 0x76e, 0xc); in btc8821a1ant_monitor_bt_ctr()
413 static void btc8821a1ant_query_bt_info(struct btc_coexist *btcoexist) in btc8821a1ant_query_bt_info() argument
415 struct rtl_priv *rtlpriv = btcoexist->adapter; in btc8821a1ant_query_bt_info()
426 btcoexist->btc_fill_h2c(btcoexist, 0x61, 1, h2c_parameter); in btc8821a1ant_query_bt_info()
429 static void btc8821a1ant_update_bt_link_info(struct btc_coexist *btcoexist) in btc8821a1ant_update_bt_link_info() argument
431 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; in btc8821a1ant_update_bt_link_info()
434 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); in btc8821a1ant_update_bt_link_info()
485 static u8 btc8821a1ant_action_algorithm(struct btc_coexist *btcoexist) in btc8821a1ant_action_algorithm() argument
487 struct rtl_priv *rtlpriv = btcoexist->adapter; in btc8821a1ant_action_algorithm()
488 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; in btc8821a1ant_action_algorithm()
493 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); in btc8821a1ant_action_algorithm()
668 static void btc8821a1ant_set_sw_penalty_tx_rate(struct btc_coexist *btcoexist, in btc8821a1ant_set_sw_penalty_tx_rate() argument
671 struct rtl_priv *rtlpriv = btcoexist->adapter; in btc8821a1ant_set_sw_penalty_tx_rate()
689 btcoexist->btc_fill_h2c(btcoexist, 0x69, 6, h2c_parameter); in btc8821a1ant_set_sw_penalty_tx_rate()
692 static void btc8821a1ant_low_penalty_ra(struct btc_coexist *btcoexist, in btc8821a1ant_low_penalty_ra() argument
701 btc8821a1ant_set_sw_penalty_tx_rate(btcoexist, in btc8821a1ant_low_penalty_ra()
707 static void btc8821a1ant_set_coex_table(struct btc_coexist *btcoexist, in btc8821a1ant_set_coex_table() argument
711 struct rtl_priv *rtlpriv = btcoexist->adapter; in btc8821a1ant_set_coex_table()
715 btcoexist->btc_write_4byte(btcoexist, 0x6c0, val0x6c0); in btc8821a1ant_set_coex_table()
719 btcoexist->btc_write_4byte(btcoexist, 0x6c4, val0x6c4); in btc8821a1ant_set_coex_table()
723 btcoexist->btc_write_4byte(btcoexist, 0x6c8, val0x6c8); in btc8821a1ant_set_coex_table()
727 btcoexist->btc_write_1byte(btcoexist, 0x6cc, val0x6cc); in btc8821a1ant_set_coex_table()
730 static void btc8821a1ant_coex_table(struct btc_coexist *btcoexist, in btc8821a1ant_coex_table() argument
734 struct rtl_priv *rtlpriv = btcoexist->adapter; in btc8821a1ant_coex_table()
752 btc8821a1ant_set_coex_table(btcoexist, val0x6c0, val0x6c4, in btc8821a1ant_coex_table()
761 static void btc8821a1ant_coex_table_with_type(struct btc_coexist *btcoexist, in btc8821a1ant_coex_table_with_type() argument
766 btc8821a1ant_coex_table(btcoexist, force_exec, 0x55555555, in btc8821a1ant_coex_table_with_type()
770 btc8821a1ant_coex_table(btcoexist, force_exec, 0x55555555, in btc8821a1ant_coex_table_with_type()
774 btc8821a1ant_coex_table(btcoexist, force_exec, 0x5a5a5a5a, in btc8821a1ant_coex_table_with_type()
778 btc8821a1ant_coex_table(btcoexist, force_exec, 0x5a5a5a5a, in btc8821a1ant_coex_table_with_type()
782 btc8821a1ant_coex_table(btcoexist, force_exec, 0x55555555, in btc8821a1ant_coex_table_with_type()
786 btc8821a1ant_coex_table(btcoexist, force_exec, 0x5a5a5a5a, in btc8821a1ant_coex_table_with_type()
790 btc8821a1ant_coex_table(btcoexist, force_exec, 0x55555555, in btc8821a1ant_coex_table_with_type()
794 btc8821a1ant_coex_table(btcoexist, force_exec, 0xaaaaaaaa, in btc8821a1ant_coex_table_with_type()
802 static void btc8821a1ant_set_fw_ignore_wlan_act(struct btc_coexist *btcoexist, in btc8821a1ant_set_fw_ignore_wlan_act() argument
805 struct rtl_priv *rtlpriv = btcoexist->adapter; in btc8821a1ant_set_fw_ignore_wlan_act()
815 btcoexist->btc_fill_h2c(btcoexist, 0x63, 1, h2c_parameter); in btc8821a1ant_set_fw_ignore_wlan_act()
818 static void btc8821a1ant_ignore_wlan_act(struct btc_coexist *btcoexist, in btc8821a1ant_ignore_wlan_act() argument
821 struct rtl_priv *rtlpriv = btcoexist->adapter; in btc8821a1ant_ignore_wlan_act()
838 btc8821a1ant_set_fw_ignore_wlan_act(btcoexist, enable); in btc8821a1ant_ignore_wlan_act()
843 static void btc8821a1ant_set_fw_ps_tdma(struct btc_coexist *btcoexist, u8 byte1, in btc8821a1ant_set_fw_ps_tdma() argument
846 struct rtl_priv *rtlpriv = btcoexist->adapter; in btc8821a1ant_set_fw_ps_tdma()
851 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_AP_MODE_ENABLE, in btc8821a1ant_set_fw_ps_tdma()
885 btcoexist->btc_fill_h2c(btcoexist, 0x60, 5, h2c_parameter); in btc8821a1ant_set_fw_ps_tdma()
888 static void btc8821a1ant_set_lps_rpwm(struct btc_coexist *btcoexist, in btc8821a1ant_set_lps_rpwm() argument
894 btcoexist->btc_set(btcoexist, BTC_SET_U1_LPS_VAL, &lps); in btc8821a1ant_set_lps_rpwm()
895 btcoexist->btc_set(btcoexist, BTC_SET_U1_RPWM_VAL, &rpwm); in btc8821a1ant_set_lps_rpwm()
898 static void btc8821a1ant_lps_rpwm(struct btc_coexist *btcoexist, in btc8821a1ant_lps_rpwm() argument
901 struct rtl_priv *rtlpriv = btcoexist->adapter; in btc8821a1ant_lps_rpwm()
923 btc8821a1ant_set_lps_rpwm(btcoexist, lps_val, rpwm_val); in btc8821a1ant_lps_rpwm()
929 static void btc8821a1ant_sw_mechanism(struct btc_coexist *btcoexist, in btc8821a1ant_sw_mechanism() argument
932 struct rtl_priv *rtlpriv = btcoexist->adapter; in btc8821a1ant_sw_mechanism()
937 btc8821a1ant_low_penalty_ra(btcoexist, NORMAL_EXEC, low_penalty_ra); in btc8821a1ant_sw_mechanism()
940 static void btc8821a1ant_set_ant_path(struct btc_coexist *btcoexist, in btc8821a1ant_set_ant_path() argument
944 struct btc_board_info *board_info = &btcoexist->board_info; in btc8821a1ant_set_ant_path()
950 u4_tmp = btcoexist->btc_read_4byte(btcoexist, 0x4c); in btc8821a1ant_set_ant_path()
953 btcoexist->btc_write_4byte(btcoexist, 0x4c, u4_tmp); in btc8821a1ant_set_ant_path()
955 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x975, 0x3, 0x3); in btc8821a1ant_set_ant_path()
956 btcoexist->btc_write_1byte(btcoexist, 0xcb4, 0x77); in btc8821a1ant_set_ant_path()
964 btcoexist->btc_fill_h2c(btcoexist, 0x65, 2, in btc8821a1ant_set_ant_path()
972 btcoexist->btc_fill_h2c(btcoexist, 0x65, 2, in btc8821a1ant_set_ant_path()
979 u4_tmp = btcoexist->btc_read_4byte(btcoexist, 0x4c); in btc8821a1ant_set_ant_path()
982 btcoexist->btc_write_4byte(btcoexist, 0x4c, u4_tmp); in btc8821a1ant_set_ant_path()
985 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x765, 0x18, 0x3); in btc8821a1ant_set_ant_path()
988 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x765, 0x18, 0x0); in btc8821a1ant_set_ant_path()
994 btcoexist->btc_write_1byte(btcoexist, 0xcb4, 0x77); in btc8821a1ant_set_ant_path()
996 btcoexist->btc_write_1byte_bitmask(btcoexist, 0xcb7, in btc8821a1ant_set_ant_path()
999 btcoexist->btc_write_1byte_bitmask(btcoexist, 0xcb7, in btc8821a1ant_set_ant_path()
1003 btcoexist->btc_write_1byte(btcoexist, 0xcb4, 0x77); in btc8821a1ant_set_ant_path()
1005 btcoexist->btc_write_1byte_bitmask(btcoexist, 0xcb7, in btc8821a1ant_set_ant_path()
1008 btcoexist->btc_write_1byte_bitmask(btcoexist, 0xcb7, in btc8821a1ant_set_ant_path()
1013 btcoexist->btc_write_1byte(btcoexist, 0xcb4, 0x66); in btc8821a1ant_set_ant_path()
1015 btcoexist->btc_write_1byte_bitmask(btcoexist, 0xcb7, in btc8821a1ant_set_ant_path()
1018 btcoexist->btc_write_1byte_bitmask(btcoexist, 0xcb7, in btc8821a1ant_set_ant_path()
1024 static void btc8821a1ant_ps_tdma(struct btc_coexist *btcoexist, in btc8821a1ant_ps_tdma() argument
1027 struct rtl_priv *rtlpriv = btcoexist->adapter; in btc8821a1ant_ps_tdma()
1050 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x1a, in btc8821a1ant_ps_tdma()
1054 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x3a, in btc8821a1ant_ps_tdma()
1059 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x2b, in btc8821a1ant_ps_tdma()
1064 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x1d, in btc8821a1ant_ps_tdma()
1068 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x93, 0x15, in btc8821a1ant_ps_tdma()
1073 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x61, 0x15, in btc8821a1ant_ps_tdma()
1077 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x61, 0x20, in btc8821a1ant_ps_tdma()
1081 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x13, 0xc, in btc8821a1ant_ps_tdma()
1085 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x93, 0x25, in btc8821a1ant_ps_tdma()
1089 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x21, in btc8821a1ant_ps_tdma()
1094 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x13, 0xa, in btc8821a1ant_ps_tdma()
1098 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x15, in btc8821a1ant_ps_tdma()
1103 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x0a, in btc8821a1ant_ps_tdma()
1107 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x12, in btc8821a1ant_ps_tdma()
1111 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x1e, in btc8821a1ant_ps_tdma()
1115 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x13, 0xa, in btc8821a1ant_ps_tdma()
1119 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x93, 0x15, in btc8821a1ant_ps_tdma()
1124 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x93, 0x25, in btc8821a1ant_ps_tdma()
1129 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x61, 0x35, in btc8821a1ant_ps_tdma()
1133 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x61, 0x25, in btc8821a1ant_ps_tdma()
1137 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x61, 0x25, in btc8821a1ant_ps_tdma()
1141 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x25, in btc8821a1ant_ps_tdma()
1146 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x15, in btc8821a1ant_ps_tdma()
1151 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0xe3, 0xa, in btc8821a1ant_ps_tdma()
1156 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0xe3, 0xa, in btc8821a1ant_ps_tdma()
1161 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x25, in btc8821a1ant_ps_tdma()
1166 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x69, 0x25, in btc8821a1ant_ps_tdma()
1170 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0xab, 0x1a, in btc8821a1ant_ps_tdma()
1174 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x30, in btc8821a1ant_ps_tdma()
1178 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0xd3, 0x1a, in btc8821a1ant_ps_tdma()
1182 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x61, 0x35, in btc8821a1ant_ps_tdma()
1186 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0xa3, 0x25, in btc8821a1ant_ps_tdma()
1190 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x53, 0x1a, in btc8821a1ant_ps_tdma()
1194 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x63, 0x1a, in btc8821a1ant_ps_tdma()
1198 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0xd3, 0x12, in btc8821a1ant_ps_tdma()
1208 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x23, 0x18, in btc8821a1ant_ps_tdma()
1212 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x15, in btc8821a1ant_ps_tdma()
1216 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x20, in btc8821a1ant_ps_tdma()
1220 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x30, in btc8821a1ant_ps_tdma()
1229 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x8, 0x0, 0x0, in btc8821a1ant_ps_tdma()
1231 btc8821a1ant_set_ant_path(btcoexist, BTC_ANT_PATH_PTA, in btc8821a1ant_ps_tdma()
1237 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x0, 0x0, 0x0, in btc8821a1ant_ps_tdma()
1239 btc8821a1ant_set_ant_path(btcoexist, BTC_ANT_PATH_BT, in btc8821a1ant_ps_tdma()
1244 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x0, 0x0, 0x0, in btc8821a1ant_ps_tdma()
1246 btc8821a1ant_set_ant_path(btcoexist, BTC_ANT_PATH_WIFI, in btc8821a1ant_ps_tdma()
1251 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x0, 0x0, 0x0, in btc8821a1ant_ps_tdma()
1253 btc8821a1ant_set_ant_path(btcoexist, BTC_ANT_PATH_BT, in btc8821a1ant_ps_tdma()
1259 btcoexist->btc_set(btcoexist, in btc8821a1ant_ps_tdma()
1267 static bool btc8821a1ant_is_common_action(struct btc_coexist *btcoexist) in btc8821a1ant_is_common_action() argument
1269 struct rtl_priv *rtlpriv = btcoexist->adapter; in btc8821a1ant_is_common_action()
1272 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_CONNECTED, in btc8821a1ant_is_common_action()
1274 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_BUSY, &wifi_busy); in btc8821a1ant_is_common_action()
1281 btc8821a1ant_sw_mechanism(btcoexist, false); in btc8821a1ant_is_common_action()
1289 btc8821a1ant_sw_mechanism(btcoexist, false); in btc8821a1ant_is_common_action()
1297 btc8821a1ant_sw_mechanism(btcoexist, false); in btc8821a1ant_is_common_action()
1305 btc8821a1ant_sw_mechanism(btcoexist, false); in btc8821a1ant_is_common_action()
1313 btc8821a1ant_sw_mechanism(btcoexist, false); in btc8821a1ant_is_common_action()
1357 static void btc8821a1ant_power_save_state(struct btc_coexist *btcoexist, in btc8821a1ant_power_save_state() argument
1366 btcoexist->btc_set(btcoexist, BTC_SET_ACT_DISABLE_LOW_POWER, in btc8821a1ant_power_save_state()
1368 btcoexist->btc_set(btcoexist, BTC_SET_ACT_NORMAL_LPS, NULL); in btc8821a1ant_power_save_state()
1371 btc8821a1ant_ps_tdma_check_for_pwr_save(btcoexist, in btc8821a1ant_power_save_state()
1373 btc8821a1ant_lps_rpwm(btcoexist, NORMAL_EXEC, lps_val, in btc8821a1ant_power_save_state()
1377 btcoexist->btc_set(btcoexist, BTC_SET_ACT_DISABLE_LOW_POWER, in btc8821a1ant_power_save_state()
1380 btcoexist->btc_set(btcoexist, BTC_SET_ACT_ENTER_LPS, NULL); in btc8821a1ant_power_save_state()
1383 btc8821a1ant_ps_tdma_check_for_pwr_save(btcoexist, false); in btc8821a1ant_power_save_state()
1384 btcoexist->btc_set(btcoexist, BTC_SET_ACT_LEAVE_LPS, NULL); in btc8821a1ant_power_save_state()
1391 static void btc8821a1ant_coex_under_5g(struct btc_coexist *btcoexist) in btc8821a1ant_coex_under_5g() argument
1393 btc8821a1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, in btc8821a1ant_coex_under_5g()
1395 btc8821a1ant_ignore_wlan_act(btcoexist, NORMAL_EXEC, true); in btc8821a1ant_coex_under_5g()
1397 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 10); in btc8821a1ant_coex_under_5g()
1399 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 0); in btc8821a1ant_coex_under_5g()
1401 btc8821a1ant_limited_tx(btcoexist, NORMAL_EXEC, 0, 0, 0, 0); in btc8821a1ant_coex_under_5g()
1403 btc8821a1ant_limited_rx(btcoexist, NORMAL_EXEC, false, false, 5); in btc8821a1ant_coex_under_5g()
1413 static void btc8821a1ant_action_sco(struct btc_coexist *btcoexist) in btc8821a1ant_action_sco() argument
1415 btc8821a1ant_sw_mechanism(btcoexist, true); in btc8821a1ant_action_sco()
1418 static void btc8821a1ant_action_hid(struct btc_coexist *btcoexist) in btc8821a1ant_action_hid() argument
1420 btc8821a1ant_sw_mechanism(btcoexist, true); in btc8821a1ant_action_hid()
1424 static void btc8821a1ant_action_a2dp(struct btc_coexist *btcoexist) in btc8821a1ant_action_a2dp() argument
1426 btc8821a1ant_sw_mechanism(btcoexist, false); in btc8821a1ant_action_a2dp()
1429 static void btc8821a1ant_action_a2dp_pan_hs(struct btc_coexist *btcoexist) in btc8821a1ant_action_a2dp_pan_hs() argument
1431 btc8821a1ant_sw_mechanism(btcoexist, false); in btc8821a1ant_action_a2dp_pan_hs()
1434 static void btc8821a1ant_action_pan_edr(struct btc_coexist *btcoexist) in btc8821a1ant_action_pan_edr() argument
1436 btc8821a1ant_sw_mechanism(btcoexist, false); in btc8821a1ant_action_pan_edr()
1440 static void btc8821a1ant_action_pan_hs(struct btc_coexist *btcoexist) in btc8821a1ant_action_pan_hs() argument
1442 btc8821a1ant_sw_mechanism(btcoexist, false); in btc8821a1ant_action_pan_hs()
1446 static void btc8821a1ant_action_pan_edr_a2dp(struct btc_coexist *btcoexist) in btc8821a1ant_action_pan_edr_a2dp() argument
1448 btc8821a1ant_sw_mechanism(btcoexist, false); in btc8821a1ant_action_pan_edr_a2dp()
1451 static void btc8821a1ant_action_pan_edr_hid(struct btc_coexist *btcoexist) in btc8821a1ant_action_pan_edr_hid() argument
1453 btc8821a1ant_sw_mechanism(btcoexist, true); in btc8821a1ant_action_pan_edr_hid()
1457 static void btc8821a1ant_action_hid_a2dp_pan_edr(struct btc_coexist *btcoexist) in btc8821a1ant_action_hid_a2dp_pan_edr() argument
1459 btc8821a1ant_sw_mechanism(btcoexist, true); in btc8821a1ant_action_hid_a2dp_pan_edr()
1462 static void btc8821a1ant_action_hid_a2dp(struct btc_coexist *btcoexist) in btc8821a1ant_action_hid_a2dp() argument
1464 btc8821a1ant_sw_mechanism(btcoexist, true); in btc8821a1ant_action_hid_a2dp()
1473 void btc8821a1ant_action_wifi_multi_port(struct btc_coexist *btcoexist) in btc8821a1ant_action_wifi_multi_port() argument
1475 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; in btc8821a1ant_action_wifi_multi_port()
1477 btc8821a1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0); in btc8821a1ant_action_wifi_multi_port()
1481 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 14); in btc8821a1ant_action_wifi_multi_port()
1482 btc8821a1ant_coex_table_with_type(btcoexist, in btc8821a1ant_action_wifi_multi_port()
1486 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 8); in btc8821a1ant_action_wifi_multi_port()
1487 btc8821a1ant_coex_table_with_type(btcoexist, in btc8821a1ant_action_wifi_multi_port()
1490 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 20); in btc8821a1ant_action_wifi_multi_port()
1491 btc8821a1ant_coex_table_with_type(btcoexist, in btc8821a1ant_action_wifi_multi_port()
1497 btc8821a1ant_act_bt_sco_hid_only_busy(btcoexist, in btc8821a1ant_action_wifi_multi_port()
1500 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 8); in btc8821a1ant_action_wifi_multi_port()
1501 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 2); in btc8821a1ant_action_wifi_multi_port()
1507 struct btc_coexist *btcoexist) in btc8821a1ant_action_wifi_not_connected_asso_auth() argument
1509 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; in btc8821a1ant_action_wifi_not_connected_asso_auth()
1511 btc8821a1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, 0x0, in btc8821a1ant_action_wifi_not_connected_asso_auth()
1516 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 14); in btc8821a1ant_action_wifi_not_connected_asso_auth()
1517 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); in btc8821a1ant_action_wifi_not_connected_asso_auth()
1519 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 20); in btc8821a1ant_action_wifi_not_connected_asso_auth()
1520 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 4); in btc8821a1ant_action_wifi_not_connected_asso_auth()
1522 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 8); in btc8821a1ant_action_wifi_not_connected_asso_auth()
1523 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 2); in btc8821a1ant_action_wifi_not_connected_asso_auth()
1528 static void btc8821a1ant_action_hs(struct btc_coexist *btcoexist) in btc8821a1ant_action_hs() argument
1530 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 5); in btc8821a1ant_action_hs()
1531 btc8821a1ant_coex_table_with_type(btcoexist, FORCE_EXEC, 2); in btc8821a1ant_action_hs()
1534 static void btc8821a1ant_action_bt_inquiry(struct btc_coexist *btcoexist) in btc8821a1ant_action_bt_inquiry() argument
1536 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; in btc8821a1ant_action_bt_inquiry()
1541 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_CONNECTED, in btc8821a1ant_action_bt_inquiry()
1543 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_AP_MODE_ENABLE, in btc8821a1ant_action_bt_inquiry()
1545 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_BUSY, &wifi_busy); in btc8821a1ant_action_bt_inquiry()
1546 btcoexist->btc_set(btcoexist, BTC_SET_BL_BT_TRAFFIC_BUSY, &bt_busy); in btc8821a1ant_action_bt_inquiry()
1549 btc8821a1ant_power_save_state(btcoexist, in btc8821a1ant_action_bt_inquiry()
1551 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 8); in btc8821a1ant_action_bt_inquiry()
1552 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 0); in btc8821a1ant_action_bt_inquiry()
1556 btc8821a1ant_power_save_state(btcoexist, in btc8821a1ant_action_bt_inquiry()
1558 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 32); in btc8821a1ant_action_bt_inquiry()
1559 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 4); in btc8821a1ant_action_bt_inquiry()
1562 btc8821a1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, in btc8821a1ant_action_bt_inquiry()
1564 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 14); in btc8821a1ant_action_bt_inquiry()
1566 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); in btc8821a1ant_action_bt_inquiry()
1568 btc8821a1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, in btc8821a1ant_action_bt_inquiry()
1570 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 20); in btc8821a1ant_action_bt_inquiry()
1572 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 4); in btc8821a1ant_action_bt_inquiry()
1574 btc8821a1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, in btc8821a1ant_action_bt_inquiry()
1576 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 8); in btc8821a1ant_action_bt_inquiry()
1577 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 7); in btc8821a1ant_action_bt_inquiry()
1581 static void btc8821a1ant_act_bt_sco_hid_only_busy(struct btc_coexist *btcoexist, in btc8821a1ant_act_bt_sco_hid_only_busy() argument
1585 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 5); in btc8821a1ant_act_bt_sco_hid_only_busy()
1587 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); in btc8821a1ant_act_bt_sco_hid_only_busy()
1590 static void btc8821a1ant_act_wifi_con_bt_acl_busy(struct btc_coexist *btcoexist, in btc8821a1ant_act_wifi_con_bt_acl_busy() argument
1595 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; in btc8821a1ant_act_wifi_con_bt_acl_busy()
1597 bt_rssi_state = btc8821a1ant_bt_rssi_state(btcoexist, 2, 28, 0); in btc8821a1ant_act_wifi_con_bt_acl_busy()
1601 btc8821a1ant_act_bt_sco_hid_only_busy(btcoexist, in btc8821a1ant_act_wifi_con_bt_acl_busy()
1608 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 32); in btc8821a1ant_act_wifi_con_bt_acl_busy()
1609 btc8821a1ant_coex_table_with_type(btcoexist, in btc8821a1ant_act_wifi_con_bt_acl_busy()
1614 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 14); in btc8821a1ant_act_wifi_con_bt_acl_busy()
1615 btc8821a1ant_coex_table_with_type(btcoexist, in btc8821a1ant_act_wifi_con_bt_acl_busy()
1619 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 14); in btc8821a1ant_act_wifi_con_bt_acl_busy()
1620 btc8821a1ant_coex_table_with_type(btcoexist, in btc8821a1ant_act_wifi_con_bt_acl_busy()
1628 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a1ant_act_wifi_con_bt_acl_busy()
1633 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a1ant_act_wifi_con_bt_acl_busy()
1638 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); in btc8821a1ant_act_wifi_con_bt_acl_busy()
1642 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 3); in btc8821a1ant_act_wifi_con_bt_acl_busy()
1643 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 6); in btc8821a1ant_act_wifi_con_bt_acl_busy()
1649 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 43); in btc8821a1ant_act_wifi_con_bt_acl_busy()
1650 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); in btc8821a1ant_act_wifi_con_bt_acl_busy()
1653 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 11); in btc8821a1ant_act_wifi_con_bt_acl_busy()
1654 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); in btc8821a1ant_act_wifi_con_bt_acl_busy()
1660 void btc8821a1ant_action_wifi_not_connected(struct btc_coexist *btcoexist) in btc8821a1ant_action_wifi_not_connected() argument
1663 btc8821a1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0); in btc8821a1ant_action_wifi_not_connected()
1666 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 8); in btc8821a1ant_action_wifi_not_connected()
1667 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 0); in btc8821a1ant_action_wifi_not_connected()
1670 static void btc8821a1ant_act_wifi_not_conn_scan(struct btc_coexist *btcoexist) in btc8821a1ant_act_wifi_not_conn_scan() argument
1672 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; in btc8821a1ant_act_wifi_not_conn_scan()
1674 btc8821a1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0); in btc8821a1ant_act_wifi_not_conn_scan()
1679 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 14); in btc8821a1ant_act_wifi_not_conn_scan()
1680 btc8821a1ant_coex_table_with_type(btcoexist, in btc8821a1ant_act_wifi_not_conn_scan()
1684 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 22); in btc8821a1ant_act_wifi_not_conn_scan()
1685 btc8821a1ant_coex_table_with_type(btcoexist, in btc8821a1ant_act_wifi_not_conn_scan()
1688 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 20); in btc8821a1ant_act_wifi_not_conn_scan()
1689 btc8821a1ant_coex_table_with_type(btcoexist, in btc8821a1ant_act_wifi_not_conn_scan()
1695 btc8821a1ant_act_bt_sco_hid_only_busy(btcoexist, in btc8821a1ant_act_wifi_not_conn_scan()
1698 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 8); in btc8821a1ant_act_wifi_not_conn_scan()
1699 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 2); in btc8821a1ant_act_wifi_not_conn_scan()
1704 void btc8821a1ant_action_wifi_connected_scan(struct btc_coexist *btcoexist) in btc8821a1ant_action_wifi_connected_scan() argument
1706 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; in btc8821a1ant_action_wifi_connected_scan()
1709 btc8821a1ant_power_save_state(btcoexist, in btc8821a1ant_action_wifi_connected_scan()
1715 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 14); in btc8821a1ant_action_wifi_connected_scan()
1716 btc8821a1ant_coex_table_with_type(btcoexist, in btc8821a1ant_action_wifi_connected_scan()
1719 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 20); in btc8821a1ant_action_wifi_connected_scan()
1720 btc8821a1ant_coex_table_with_type(btcoexist, in btc8821a1ant_action_wifi_connected_scan()
1726 btc8821a1ant_act_bt_sco_hid_only_busy(btcoexist, in btc8821a1ant_action_wifi_connected_scan()
1729 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 8); in btc8821a1ant_action_wifi_connected_scan()
1730 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 2); in btc8821a1ant_action_wifi_connected_scan()
1734 static void btc8821a1ant_act_wifi_conn_sp_pkt(struct btc_coexist *btcoexist) in btc8821a1ant_act_wifi_conn_sp_pkt() argument
1736 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; in btc8821a1ant_act_wifi_conn_sp_pkt()
1738 btc8821a1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, in btc8821a1ant_act_wifi_conn_sp_pkt()
1744 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 32); in btc8821a1ant_act_wifi_conn_sp_pkt()
1745 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 4); in btc8821a1ant_act_wifi_conn_sp_pkt()
1749 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 14); in btc8821a1ant_act_wifi_conn_sp_pkt()
1750 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); in btc8821a1ant_act_wifi_conn_sp_pkt()
1752 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 20); in btc8821a1ant_act_wifi_conn_sp_pkt()
1753 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 4); in btc8821a1ant_act_wifi_conn_sp_pkt()
1755 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 8); in btc8821a1ant_act_wifi_conn_sp_pkt()
1756 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 2); in btc8821a1ant_act_wifi_conn_sp_pkt()
1760 static void btc8821a1ant_action_wifi_connected(struct btc_coexist *btcoexist) in btc8821a1ant_action_wifi_connected() argument
1762 struct rtl_priv *rtlpriv = btcoexist->adapter; in btc8821a1ant_action_wifi_connected()
1771 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_4_WAY_PROGRESS, in btc8821a1ant_action_wifi_connected()
1774 btc8821a1ant_act_wifi_conn_sp_pkt(btcoexist); in btc8821a1ant_action_wifi_connected()
1780 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_SCAN, &scan); in btc8821a1ant_action_wifi_connected()
1781 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link); in btc8821a1ant_action_wifi_connected()
1782 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_ROAM, &roam); in btc8821a1ant_action_wifi_connected()
1785 btc8821a1ant_action_wifi_connected_scan(btcoexist); in btc8821a1ant_action_wifi_connected()
1787 btc8821a1ant_act_wifi_conn_sp_pkt(btcoexist); in btc8821a1ant_action_wifi_connected()
1795 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_AP_MODE_ENABLE, in btc8821a1ant_action_wifi_connected()
1797 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_BUSY, &wifi_busy); in btc8821a1ant_action_wifi_connected()
1800 !btcoexist->bt_link_info.hid_only) { in btc8821a1ant_action_wifi_connected()
1801 if (!wifi_busy && btcoexist->bt_link_info.a2dp_only) in btc8821a1ant_action_wifi_connected()
1803 btc8821a1ant_power_save_state(btcoexist, in btc8821a1ant_action_wifi_connected()
1806 btc8821a1ant_power_save_state(btcoexist, BTC_PS_LPS_ON, in btc8821a1ant_action_wifi_connected()
1809 btc8821a1ant_power_save_state(btcoexist, in btc8821a1ant_action_wifi_connected()
1817 btc8821a1ant_act_wifi_con_bt_acl_busy(btcoexist, in btc8821a1ant_action_wifi_connected()
1823 btc8821a1ant_act_bt_sco_hid_only_busy(btcoexist, in btc8821a1ant_action_wifi_connected()
1826 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 8); in btc8821a1ant_action_wifi_connected()
1827 btc8821a1ant_coex_table_with_type(btcoexist, in btc8821a1ant_action_wifi_connected()
1832 btc8821a1ant_act_wifi_con_bt_acl_busy(btcoexist, in btc8821a1ant_action_wifi_connected()
1838 btc8821a1ant_act_bt_sco_hid_only_busy(btcoexist, in btc8821a1ant_action_wifi_connected()
1841 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 8); in btc8821a1ant_action_wifi_connected()
1842 btc8821a1ant_coex_table_with_type(btcoexist, in btc8821a1ant_action_wifi_connected()
1848 static void btc8821a1ant_run_sw_coex_mech(struct btc_coexist *btcoexist) in btc8821a1ant_run_sw_coex_mech() argument
1850 struct rtl_priv *rtlpriv = btcoexist->adapter; in btc8821a1ant_run_sw_coex_mech()
1853 algorithm = btc8821a1ant_action_algorithm(btcoexist); in btc8821a1ant_run_sw_coex_mech()
1856 if (!btc8821a1ant_is_common_action(btcoexist)) { in btc8821a1ant_run_sw_coex_mech()
1861 btc8821a1ant_action_sco(btcoexist); in btc8821a1ant_run_sw_coex_mech()
1866 btc8821a1ant_action_hid(btcoexist); in btc8821a1ant_run_sw_coex_mech()
1871 btc8821a1ant_action_a2dp(btcoexist); in btc8821a1ant_run_sw_coex_mech()
1876 btc8821a1ant_action_a2dp_pan_hs(btcoexist); in btc8821a1ant_run_sw_coex_mech()
1881 btc8821a1ant_action_pan_edr(btcoexist); in btc8821a1ant_run_sw_coex_mech()
1886 btc8821a1ant_action_pan_hs(btcoexist); in btc8821a1ant_run_sw_coex_mech()
1891 btc8821a1ant_action_pan_edr_a2dp(btcoexist); in btc8821a1ant_run_sw_coex_mech()
1896 btc8821a1ant_action_pan_edr_hid(btcoexist); in btc8821a1ant_run_sw_coex_mech()
1901 btc8821a1ant_action_hid_a2dp_pan_edr(btcoexist); in btc8821a1ant_run_sw_coex_mech()
1906 btc8821a1ant_action_hid_a2dp(btcoexist); in btc8821a1ant_run_sw_coex_mech()
1918 static void btc8821a1ant_run_coexist_mechanism(struct btc_coexist *btcoexist) in btc8821a1ant_run_coexist_mechanism() argument
1920 struct rtl_priv *rtlpriv = btcoexist->adapter; in btc8821a1ant_run_coexist_mechanism()
1921 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; in btc8821a1ant_run_coexist_mechanism()
1934 if (btcoexist->manual_control) { in btc8821a1ant_run_coexist_mechanism()
1940 if (btcoexist->stop_coex_dm) { in btc8821a1ant_run_coexist_mechanism()
1952 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_UNDER_5G, &wifi_under_5g); in btc8821a1ant_run_coexist_mechanism()
1956 btc8821a1ant_coex_under_5g(btcoexist); in btc8821a1ant_run_coexist_mechanism()
1965 btcoexist->btc_set(btcoexist, BTC_SET_BL_INC_SCAN_DEV_NUM, in btc8821a1ant_run_coexist_mechanism()
1968 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_CONNECTED, in btc8821a1ant_run_coexist_mechanism()
1971 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_LINK_STATUS, in btc8821a1ant_run_coexist_mechanism()
1976 btc8821a1ant_limited_tx(btcoexist, NORMAL_EXEC, 0, 0, 0, 0); in btc8821a1ant_run_coexist_mechanism()
1977 btc8821a1ant_limited_rx(btcoexist, NORMAL_EXEC, false, in btc8821a1ant_run_coexist_mechanism()
1979 btc8821a1ant_action_wifi_multi_port(btcoexist); in btc8821a1ant_run_coexist_mechanism()
1984 btc8821a1ant_limited_tx(btcoexist, NORMAL_EXEC, 0, 0, 0, 0); in btc8821a1ant_run_coexist_mechanism()
1988 btc8821a1ant_wifi_rssi_state(btcoexist, 1, 2, in btc8821a1ant_run_coexist_mechanism()
1990 btc8821a1ant_limited_tx(btcoexist, in btc8821a1ant_run_coexist_mechanism()
1994 btc8821a1ant_limited_tx(btcoexist, NORMAL_EXEC, in btc8821a1ant_run_coexist_mechanism()
2009 btc8821a1ant_limited_rx(btcoexist, NORMAL_EXEC, false, in btc8821a1ant_run_coexist_mechanism()
2012 btc8821a1ant_run_sw_coex_mech(btcoexist); in btc8821a1ant_run_coexist_mechanism()
2014 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); in btc8821a1ant_run_coexist_mechanism()
2016 btc8821a1ant_action_bt_inquiry(btcoexist); in btc8821a1ant_run_coexist_mechanism()
2019 btc8821a1ant_action_hs(btcoexist); in btc8821a1ant_run_coexist_mechanism()
2029 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_SCAN, &scan); in btc8821a1ant_run_coexist_mechanism()
2030 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link); in btc8821a1ant_run_coexist_mechanism()
2031 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_ROAM, &roam); in btc8821a1ant_run_coexist_mechanism()
2035 btc8821a1ant_act_wifi_not_conn_scan(btcoexist); in btc8821a1ant_run_coexist_mechanism()
2038 btcoexist); in btc8821a1ant_run_coexist_mechanism()
2040 btc8821a1ant_action_wifi_not_connected(btcoexist); in btc8821a1ant_run_coexist_mechanism()
2044 btc8821a1ant_action_wifi_connected(btcoexist); in btc8821a1ant_run_coexist_mechanism()
2048 static void btc8821a1ant_init_coex_dm(struct btc_coexist *btcoexist) in btc8821a1ant_init_coex_dm() argument
2053 btc8821a1ant_sw_mechanism(btcoexist, false); in btc8821a1ant_init_coex_dm()
2055 btc8821a1ant_coex_table_with_type(btcoexist, FORCE_EXEC, 0); in btc8821a1ant_init_coex_dm()
2058 static void btc8821a1ant_init_hw_config(struct btc_coexist *btcoexist, in btc8821a1ant_init_hw_config() argument
2061 struct rtl_priv *rtlpriv = btcoexist->adapter; in btc8821a1ant_init_hw_config()
2072 coex_dm->backup_arfr_cnt1 = btcoexist->btc_read_4byte(btcoexist, in btc8821a1ant_init_hw_config()
2074 coex_dm->backup_arfr_cnt2 = btcoexist->btc_read_4byte(btcoexist, in btc8821a1ant_init_hw_config()
2077 btcoexist->btc_read_2byte(btcoexist, 0x42a); in btc8821a1ant_init_hw_config()
2079 btcoexist->btc_read_1byte(btcoexist, 0x456); in btc8821a1ant_init_hw_config()
2083 u1_tmp = btcoexist->btc_read_1byte(btcoexist, 0x790); in btc8821a1ant_init_hw_config()
2086 btcoexist->btc_write_1byte(btcoexist, 0x790, u1_tmp); in btc8821a1ant_init_hw_config()
2088 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_UNDER_5G, &wifi_under_5g); in btc8821a1ant_init_hw_config()
2092 btc8821a1ant_set_ant_path(btcoexist, BTC_ANT_PATH_BT, in btc8821a1ant_init_hw_config()
2095 btc8821a1ant_set_ant_path(btcoexist, BTC_ANT_PATH_PTA, in btc8821a1ant_init_hw_config()
2098 btc8821a1ant_coex_table_with_type(btcoexist, FORCE_EXEC, 0); in btc8821a1ant_init_hw_config()
2103 btcoexist->btc_write_1byte(btcoexist, 0x76e, 0xc); in btc8821a1ant_init_hw_config()
2104 btcoexist->btc_write_1byte(btcoexist, 0x778, 0x3); in btc8821a1ant_init_hw_config()
2105 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x40, 0x20, 0x1); in btc8821a1ant_init_hw_config()
2111 void ex_btc8821a1ant_init_hwconfig(struct btc_coexist *btcoexist, bool wifionly) in ex_btc8821a1ant_init_hwconfig() argument
2113 btc8821a1ant_init_hw_config(btcoexist, true, wifionly); in ex_btc8821a1ant_init_hwconfig()
2114 btcoexist->auto_report_1ant = true; in ex_btc8821a1ant_init_hwconfig()
2117 void ex_btc8821a1ant_init_coex_dm(struct btc_coexist *btcoexist) in ex_btc8821a1ant_init_coex_dm() argument
2119 struct rtl_priv *rtlpriv = btcoexist->adapter; in ex_btc8821a1ant_init_coex_dm()
2124 btcoexist->stop_coex_dm = false; in ex_btc8821a1ant_init_coex_dm()
2126 btc8821a1ant_init_coex_dm(btcoexist); in ex_btc8821a1ant_init_coex_dm()
2128 btc8821a1ant_query_bt_info(btcoexist); in ex_btc8821a1ant_init_coex_dm()
2131 void ex_btc8821a1ant_display_coex_info(struct btc_coexist *btcoexist, in ex_btc8821a1ant_display_coex_info() argument
2134 struct btc_board_info *board_info = &btcoexist->board_info; in ex_btc8821a1ant_display_coex_info()
2135 struct btc_stack_info *stack_info = &btcoexist->stack_info; in ex_btc8821a1ant_display_coex_info()
2136 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; in ex_btc8821a1ant_display_coex_info()
2149 if (btcoexist->manual_control) { in ex_btc8821a1ant_display_coex_info()
2153 if (btcoexist->stop_coex_dm) { in ex_btc8821a1ant_display_coex_info()
2168 btcoexist->btc_get(btcoexist, BTC_GET_U4_BT_PATCH_VER, in ex_btc8821a1ant_display_coex_info()
2170 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_FW_VER, &fw_ver); in ex_btc8821a1ant_display_coex_info()
2178 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, in ex_btc8821a1ant_display_coex_info()
2180 btcoexist->btc_get(btcoexist, BTC_GET_U1_WIFI_DOT11_CHNL, in ex_btc8821a1ant_display_coex_info()
2182 btcoexist->btc_get(btcoexist, BTC_GET_U1_WIFI_HS_CHNL, in ex_btc8821a1ant_display_coex_info()
2192 btcoexist->btc_get(btcoexist, BTC_GET_S4_WIFI_RSSI, &wifi_rssi); in ex_btc8821a1ant_display_coex_info()
2193 btcoexist->btc_get(btcoexist, BTC_GET_S4_HS_RSSI, &bt_hs_rssi); in ex_btc8821a1ant_display_coex_info()
2197 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_SCAN, &scan); in ex_btc8821a1ant_display_coex_info()
2198 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link); in ex_btc8821a1ant_display_coex_info()
2199 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_ROAM, &roam); in ex_btc8821a1ant_display_coex_info()
2203 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_UNDER_5G, in ex_btc8821a1ant_display_coex_info()
2205 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, in ex_btc8821a1ant_display_coex_info()
2207 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_BUSY, in ex_btc8821a1ant_display_coex_info()
2209 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_TRAFFIC_DIRECTION, in ex_btc8821a1ant_display_coex_info()
2235 btcoexist->btc_disp_dbg_msg(btcoexist, BTC_DBG_DISP_BT_LINK_INFO, m); in ex_btc8821a1ant_display_coex_info()
2255 btcoexist->bt_info.lps_val, in ex_btc8821a1ant_display_coex_info()
2256 btcoexist->bt_info.rpwm_val); in ex_btc8821a1ant_display_coex_info()
2257 btcoexist->btc_disp_dbg_msg(btcoexist, BTC_DBG_DISP_FW_PWR_MODE_CMD, m); in ex_btc8821a1ant_display_coex_info()
2259 if (!btcoexist->manual_control) { in ex_btc8821a1ant_display_coex_info()
2269 (btcoexist->bt_info.reject_agg_pkt ? "Yes" : "No"), in ex_btc8821a1ant_display_coex_info()
2270 (btcoexist->bt_info.bt_ctrl_buf_size ? "Yes" : "No"), in ex_btc8821a1ant_display_coex_info()
2271 btcoexist->bt_info.agg_buf_size); in ex_btc8821a1ant_display_coex_info()
2273 btcoexist->bt_info.ra_mask); in ex_btc8821a1ant_display_coex_info()
2304 u4_tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x430); in ex_btc8821a1ant_display_coex_info()
2305 u4_tmp[1] = btcoexist->btc_read_4byte(btcoexist, 0x434); in ex_btc8821a1ant_display_coex_info()
2306 u2_tmp[0] = btcoexist->btc_read_2byte(btcoexist, 0x42a); in ex_btc8821a1ant_display_coex_info()
2307 u1_tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x456); in ex_btc8821a1ant_display_coex_info()
2312 u1_tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x778); in ex_btc8821a1ant_display_coex_info()
2313 u4_tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0xc58); in ex_btc8821a1ant_display_coex_info()
2317 u1_tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x8db); in ex_btc8821a1ant_display_coex_info()
2321 u1_tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x975); in ex_btc8821a1ant_display_coex_info()
2322 u4_tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0xcb4); in ex_btc8821a1ant_display_coex_info()
2329 u1_tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x40); in ex_btc8821a1ant_display_coex_info()
2330 u4_tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x4c); in ex_btc8821a1ant_display_coex_info()
2331 u1_tmp[1] = btcoexist->btc_read_1byte(btcoexist, 0x64); in ex_btc8821a1ant_display_coex_info()
2337 u4_tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x550); in ex_btc8821a1ant_display_coex_info()
2338 u1_tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x522); in ex_btc8821a1ant_display_coex_info()
2342 u4_tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0xc50); in ex_btc8821a1ant_display_coex_info()
2346 u4_tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0xf48); in ex_btc8821a1ant_display_coex_info()
2347 u1_tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0xa5d); in ex_btc8821a1ant_display_coex_info()
2348 u1_tmp[1] = btcoexist->btc_read_1byte(btcoexist, 0xa5c); in ex_btc8821a1ant_display_coex_info()
2352 u4_tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x6c0); in ex_btc8821a1ant_display_coex_info()
2353 u4_tmp[1] = btcoexist->btc_read_4byte(btcoexist, 0x6c4); in ex_btc8821a1ant_display_coex_info()
2354 u4_tmp[2] = btcoexist->btc_read_4byte(btcoexist, 0x6c8); in ex_btc8821a1ant_display_coex_info()
2355 u1_tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x6cc); in ex_btc8821a1ant_display_coex_info()
2364 if (btcoexist->auto_report_1ant) in ex_btc8821a1ant_display_coex_info()
2365 btc8821a1ant_monitor_bt_ctr(btcoexist); in ex_btc8821a1ant_display_coex_info()
2366 btcoexist->btc_disp_dbg_msg(btcoexist, BTC_DBG_DISP_COEX_STATISTICS, m); in ex_btc8821a1ant_display_coex_info()
2369 void ex_btc8821a1ant_ips_notify(struct btc_coexist *btcoexist, u8 type) in ex_btc8821a1ant_ips_notify() argument
2371 struct rtl_priv *rtlpriv = btcoexist->adapter; in ex_btc8821a1ant_ips_notify()
2374 if (btcoexist->manual_control || btcoexist->stop_coex_dm) in ex_btc8821a1ant_ips_notify()
2376 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_UNDER_5G, &wifi_under_5g); in ex_btc8821a1ant_ips_notify()
2380 btc8821a1ant_coex_under_5g(btcoexist); in ex_btc8821a1ant_ips_notify()
2388 btc8821a1ant_set_ant_path(btcoexist, in ex_btc8821a1ant_ips_notify()
2391 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 0); in ex_btc8821a1ant_ips_notify()
2392 btc8821a1ant_coex_table_with_type(btcoexist, in ex_btc8821a1ant_ips_notify()
2399 btc8821a1ant_init_hw_config(btcoexist, false, false); in ex_btc8821a1ant_ips_notify()
2400 btc8821a1ant_init_coex_dm(btcoexist); in ex_btc8821a1ant_ips_notify()
2401 btc8821a1ant_query_bt_info(btcoexist); in ex_btc8821a1ant_ips_notify()
2405 void ex_btc8821a1ant_lps_notify(struct btc_coexist *btcoexist, u8 type) in ex_btc8821a1ant_lps_notify() argument
2407 struct rtl_priv *rtlpriv = btcoexist->adapter; in ex_btc8821a1ant_lps_notify()
2409 if (btcoexist->manual_control || btcoexist->stop_coex_dm) in ex_btc8821a1ant_lps_notify()
2423 void ex_btc8821a1ant_scan_notify(struct btc_coexist *btcoexist, u8 type) in ex_btc8821a1ant_scan_notify() argument
2425 struct rtl_priv *rtlpriv = btcoexist->adapter; in ex_btc8821a1ant_scan_notify()
2433 if (btcoexist->manual_control || btcoexist->stop_coex_dm) in ex_btc8821a1ant_scan_notify()
2435 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_UNDER_5G, &wifi_under_5g); in ex_btc8821a1ant_scan_notify()
2439 btc8821a1ant_coex_under_5g(btcoexist); in ex_btc8821a1ant_scan_notify()
2449 btc8821a1ant_ps_tdma(btcoexist, FORCE_EXEC, false, 8); in ex_btc8821a1ant_scan_notify()
2459 btcoexist->btc_get(btcoexist, in ex_btc8821a1ant_scan_notify()
2461 btcoexist->btc_get(btcoexist, in ex_btc8821a1ant_scan_notify()
2464 btc8821a1ant_query_bt_info(btcoexist); in ex_btc8821a1ant_scan_notify()
2466 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_LINK_STATUS, in ex_btc8821a1ant_scan_notify()
2470 btc8821a1ant_limited_tx(btcoexist, NORMAL_EXEC, 0, 0, 0, 0); in ex_btc8821a1ant_scan_notify()
2471 btc8821a1ant_limited_rx(btcoexist, NORMAL_EXEC, false, in ex_btc8821a1ant_scan_notify()
2473 btc8821a1ant_action_wifi_multi_port(btcoexist); in ex_btc8821a1ant_scan_notify()
2478 btc8821a1ant_action_bt_inquiry(btcoexist); in ex_btc8821a1ant_scan_notify()
2481 btc8821a1ant_action_hs(btcoexist); in ex_btc8821a1ant_scan_notify()
2490 btc8821a1ant_act_wifi_not_conn_scan(btcoexist); in ex_btc8821a1ant_scan_notify()
2493 btc8821a1ant_action_wifi_connected_scan(btcoexist); in ex_btc8821a1ant_scan_notify()
2500 btc8821a1ant_action_wifi_not_connected(btcoexist); in ex_btc8821a1ant_scan_notify()
2502 btc8821a1ant_action_wifi_connected(btcoexist); in ex_btc8821a1ant_scan_notify()
2507 void ex_btc8821a1ant_connect_notify(struct btc_coexist *btcoexist, u8 type) in ex_btc8821a1ant_connect_notify() argument
2509 struct rtl_priv *rtlpriv = btcoexist->adapter; in ex_btc8821a1ant_connect_notify()
2517 if (btcoexist->manual_control || btcoexist->stop_coex_dm || in ex_btc8821a1ant_connect_notify()
2520 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_UNDER_5G, &wifi_under_5g); in ex_btc8821a1ant_connect_notify()
2524 btc8821a1ant_coex_under_5g(btcoexist); in ex_btc8821a1ant_connect_notify()
2540 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_LINK_STATUS, in ex_btc8821a1ant_connect_notify()
2544 btc8821a1ant_limited_tx(btcoexist, NORMAL_EXEC, 0, 0, 0, 0); in ex_btc8821a1ant_connect_notify()
2545 btc8821a1ant_limited_rx(btcoexist, NORMAL_EXEC, false, in ex_btc8821a1ant_connect_notify()
2547 btc8821a1ant_action_wifi_multi_port(btcoexist); in ex_btc8821a1ant_connect_notify()
2551 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); in ex_btc8821a1ant_connect_notify()
2553 btc8821a1ant_action_bt_inquiry(btcoexist); in ex_btc8821a1ant_connect_notify()
2556 btc8821a1ant_action_hs(btcoexist); in ex_btc8821a1ant_connect_notify()
2563 btc8821a1ant_act_wifi_not_conn_scan(btcoexist); in ex_btc8821a1ant_connect_notify()
2568 btcoexist->btc_get(btcoexist, in ex_btc8821a1ant_connect_notify()
2572 btc8821a1ant_action_wifi_not_connected(btcoexist); in ex_btc8821a1ant_connect_notify()
2574 btc8821a1ant_action_wifi_connected(btcoexist); in ex_btc8821a1ant_connect_notify()
2579 void ex_btc8821a1ant_media_status_notify(struct btc_coexist *btcoexist, in ex_btc8821a1ant_media_status_notify() argument
2582 struct rtl_priv *rtlpriv = btcoexist->adapter; in ex_btc8821a1ant_media_status_notify()
2588 if (btcoexist->manual_control || btcoexist->stop_coex_dm || in ex_btc8821a1ant_media_status_notify()
2591 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_UNDER_5G, &wifi_under_5g); in ex_btc8821a1ant_media_status_notify()
2595 btc8821a1ant_coex_under_5g(btcoexist); in ex_btc8821a1ant_media_status_notify()
2609 btcoexist->btc_get(btcoexist, in ex_btc8821a1ant_media_status_notify()
2616 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); in ex_btc8821a1ant_media_status_notify()
2633 btcoexist->btc_fill_h2c(btcoexist, 0x66, 3, h2c_parameter); in ex_btc8821a1ant_media_status_notify()
2636 void ex_btc8821a1ant_special_packet_notify(struct btc_coexist *btcoexist, in ex_btc8821a1ant_special_packet_notify() argument
2639 struct rtl_priv *rtlpriv = btcoexist->adapter; in ex_btc8821a1ant_special_packet_notify()
2647 if (btcoexist->manual_control || btcoexist->stop_coex_dm || in ex_btc8821a1ant_special_packet_notify()
2651 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_UNDER_5G, &wifi_under_5g); in ex_btc8821a1ant_special_packet_notify()
2655 btc8821a1ant_coex_under_5g(btcoexist); in ex_btc8821a1ant_special_packet_notify()
2679 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_LINK_STATUS, in ex_btc8821a1ant_special_packet_notify()
2683 btc8821a1ant_limited_tx(btcoexist, NORMAL_EXEC, 0, 0, 0, 0); in ex_btc8821a1ant_special_packet_notify()
2684 btc8821a1ant_limited_rx(btcoexist, NORMAL_EXEC, false, in ex_btc8821a1ant_special_packet_notify()
2686 btc8821a1ant_action_wifi_multi_port(btcoexist); in ex_btc8821a1ant_special_packet_notify()
2690 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); in ex_btc8821a1ant_special_packet_notify()
2692 btc8821a1ant_action_bt_inquiry(btcoexist); in ex_btc8821a1ant_special_packet_notify()
2695 btc8821a1ant_action_hs(btcoexist); in ex_btc8821a1ant_special_packet_notify()
2715 btc8821a1ant_act_wifi_conn_sp_pkt(btcoexist); in ex_btc8821a1ant_special_packet_notify()
2719 void ex_btc8821a1ant_bt_info_notify(struct btc_coexist *btcoexist, in ex_btc8821a1ant_bt_info_notify() argument
2722 struct rtl_priv *rtlpriv = btcoexist->adapter; in ex_btc8821a1ant_bt_info_notify()
2732 btcoexist->btc_get(btcoexist, in ex_btc8821a1ant_bt_info_notify()
2768 btcoexist->btc_set(btcoexist, BTC_SET_BL_BT_TX_RX_MASK, in ex_btc8821a1ant_bt_info_notify()
2776 btcoexist->btc_set_bt_reg(btcoexist, BTC_BT_REG_RF, in ex_btc8821a1ant_bt_info_notify()
2786 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_CONNECTED, in ex_btc8821a1ant_bt_info_notify()
2789 ex_btc8821a1ant_media_status_notify(btcoexist, in ex_btc8821a1ant_bt_info_notify()
2792 ex_btc8821a1ant_media_status_notify(btcoexist, in ex_btc8821a1ant_bt_info_notify()
2798 if (!btcoexist->manual_control && in ex_btc8821a1ant_bt_info_notify()
2799 !btcoexist->stop_coex_dm) { in ex_btc8821a1ant_bt_info_notify()
2802 btc8821a1ant_ignore_wlan_act(btcoexist, in ex_btc8821a1ant_bt_info_notify()
2843 btc8821a1ant_update_bt_link_info(btcoexist); in ex_btc8821a1ant_bt_info_notify()
2882 btcoexist->btc_set(btcoexist, in ex_btc8821a1ant_bt_info_notify()
2885 btc8821a1ant_run_coexist_mechanism(btcoexist); in ex_btc8821a1ant_bt_info_notify()
2888 void ex_btc8821a1ant_halt_notify(struct btc_coexist *btcoexist) in ex_btc8821a1ant_halt_notify() argument
2890 struct rtl_priv *rtlpriv = btcoexist->adapter; in ex_btc8821a1ant_halt_notify()
2895 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_UNDER_5G, &wifi_under_5g); in ex_btc8821a1ant_halt_notify()
2899 btc8821a1ant_coex_under_5g(btcoexist); in ex_btc8821a1ant_halt_notify()
2904 btcoexist->stop_coex_dm = true; in ex_btc8821a1ant_halt_notify()
2906 btc8821a1ant_set_ant_path(btcoexist, BTC_ANT_PATH_BT, false, true); in ex_btc8821a1ant_halt_notify()
2907 btc8821a1ant_ignore_wlan_act(btcoexist, FORCE_EXEC, true); in ex_btc8821a1ant_halt_notify()
2909 btc8821a1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0); in ex_btc8821a1ant_halt_notify()
2910 btc8821a1ant_ps_tdma(btcoexist, FORCE_EXEC, false, 0); in ex_btc8821a1ant_halt_notify()
2912 ex_btc8821a1ant_media_status_notify(btcoexist, BTC_MEDIA_DISCONNECT); in ex_btc8821a1ant_halt_notify()
2915 void ex_btc8821a1ant_pnp_notify(struct btc_coexist *btcoexist, u8 pnp_state) in ex_btc8821a1ant_pnp_notify() argument
2917 struct rtl_priv *rtlpriv = btcoexist->adapter; in ex_btc8821a1ant_pnp_notify()
2920 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_UNDER_5G, &wifi_under_5g); in ex_btc8821a1ant_pnp_notify()
2924 btc8821a1ant_coex_under_5g(btcoexist); in ex_btc8821a1ant_pnp_notify()
2939 btcoexist->stop_coex_dm = true; in ex_btc8821a1ant_pnp_notify()
2940 btc8821a1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, in ex_btc8821a1ant_pnp_notify()
2942 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 0); in ex_btc8821a1ant_pnp_notify()
2943 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 2); in ex_btc8821a1ant_pnp_notify()
2944 btc8821a1ant_set_ant_path(btcoexist, BTC_ANT_PATH_BT, false, in ex_btc8821a1ant_pnp_notify()
2949 btcoexist->stop_coex_dm = false; in ex_btc8821a1ant_pnp_notify()
2950 btc8821a1ant_init_hw_config(btcoexist, false, false); in ex_btc8821a1ant_pnp_notify()
2951 btc8821a1ant_init_coex_dm(btcoexist); in ex_btc8821a1ant_pnp_notify()
2952 btc8821a1ant_query_bt_info(btcoexist); in ex_btc8821a1ant_pnp_notify()
2956 void ex_btc8821a1ant_periodical(struct btc_coexist *btcoexist) in ex_btc8821a1ant_periodical() argument
2958 struct rtl_priv *rtlpriv = btcoexist->adapter; in ex_btc8821a1ant_periodical()
2961 struct btc_board_info *board_info = &btcoexist->board_info; in ex_btc8821a1ant_periodical()
2962 struct btc_stack_info *stack_info = &btcoexist->stack_info; in ex_btc8821a1ant_periodical()
2980 btcoexist->btc_get(btcoexist, BTC_GET_U4_BT_PATCH_VER, in ex_btc8821a1ant_periodical()
2982 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_FW_VER, &fw_ver); in ex_btc8821a1ant_periodical()
2993 if (!btcoexist->auto_report_1ant) { in ex_btc8821a1ant_periodical()
2994 btc8821a1ant_query_bt_info(btcoexist); in ex_btc8821a1ant_periodical()
2995 btc8821a1ant_monitor_bt_ctr(btcoexist); in ex_btc8821a1ant_periodical()