Lines Matching refs:btcoexist

25 static void btc8821a1ant_act_bt_sco_hid_only_busy(struct btc_coexist *btcoexist,
42 static u8 btc8821a1ant_bt_rssi_state(struct btc_coexist *btcoexist, in btc8821a1ant_bt_rssi_state() argument
46 struct rtl_priv *rtlpriv = btcoexist->adapter; in btc8821a1ant_bt_rssi_state()
130 static u8 btc8821a1ant_wifi_rssi_state(struct btc_coexist *btcoexist, in btc8821a1ant_wifi_rssi_state() argument
134 struct rtl_priv *rtlpriv = btcoexist->adapter; in btc8821a1ant_wifi_rssi_state()
138 btcoexist->btc_get(btcoexist, BTC_GET_S4_WIFI_RSSI, &wifi_rssi); in btc8821a1ant_wifi_rssi_state()
222 static void btc8821a1ant_update_ra_mask(struct btc_coexist *btcoexist, in btc8821a1ant_update_ra_mask() argument
229 btcoexist->btc_set(btcoexist, BTC_SET_ACT_UPDATE_RAMASK, in btc8821a1ant_update_ra_mask()
235 static void btc8821a1ant_auto_rate_fb_retry(struct btc_coexist *btcoexist, in btc8821a1ant_auto_rate_fb_retry() argument
246 btcoexist->btc_write_4byte(btcoexist, 0x430, in btc8821a1ant_auto_rate_fb_retry()
248 btcoexist->btc_write_4byte(btcoexist, 0x434, in btc8821a1ant_auto_rate_fb_retry()
252 btcoexist->btc_get(btcoexist, in btc8821a1ant_auto_rate_fb_retry()
256 btcoexist->btc_write_4byte(btcoexist, 0x430, in btc8821a1ant_auto_rate_fb_retry()
258 btcoexist->btc_write_4byte(btcoexist, 0x434, in btc8821a1ant_auto_rate_fb_retry()
261 btcoexist->btc_write_4byte(btcoexist, 0x430, in btc8821a1ant_auto_rate_fb_retry()
263 btcoexist->btc_write_4byte(btcoexist, 0x434, in btc8821a1ant_auto_rate_fb_retry()
275 static void btc8821a1ant_retry_limit(struct btc_coexist *btcoexist, in btc8821a1ant_retry_limit() argument
284 btcoexist->btc_write_2byte(btcoexist, 0x42a, in btc8821a1ant_retry_limit()
288 btcoexist->btc_write_2byte(btcoexist, 0x42a, 0x0808); in btc8821a1ant_retry_limit()
297 static void btc8821a1ant_ampdu_max_time(struct btc_coexist *btcoexist, in btc8821a1ant_ampdu_max_time() argument
306 btcoexist->btc_write_1byte(btcoexist, 0x456, in btc8821a1ant_ampdu_max_time()
310 btcoexist->btc_write_1byte(btcoexist, 0x456, 0x38); in btc8821a1ant_ampdu_max_time()
320 static void btc8821a1ant_limited_tx(struct btc_coexist *btcoexist, in btc8821a1ant_limited_tx() argument
327 btc8821a1ant_update_ra_mask(btcoexist, force_exec, 0x0); in btc8821a1ant_limited_tx()
330 btc8821a1ant_update_ra_mask(btcoexist, force_exec, in btc8821a1ant_limited_tx()
334 btc8821a1ant_update_ra_mask(btcoexist, force_exec, in btc8821a1ant_limited_tx()
341 btc8821a1ant_auto_rate_fb_retry(btcoexist, force_exec, arfr_type); in btc8821a1ant_limited_tx()
342 btc8821a1ant_retry_limit(btcoexist, force_exec, retry_limit_type); in btc8821a1ant_limited_tx()
343 btc8821a1ant_ampdu_max_time(btcoexist, force_exec, ampdu_time_type); in btc8821a1ant_limited_tx()
346 static void btc8821a1ant_limited_rx(struct btc_coexist *btcoexist, in btc8821a1ant_limited_rx() argument
355 btcoexist->btc_set(btcoexist, in btc8821a1ant_limited_rx()
358 btcoexist->btc_set(btcoexist, BTC_SET_BL_BT_CTRL_AGG_SIZE, in btc8821a1ant_limited_rx()
361 btcoexist->btc_set(btcoexist, BTC_SET_U1_AGG_BUF_SIZE, &rx_agg_size); in btc8821a1ant_limited_rx()
363 btcoexist->btc_set(btcoexist, BTC_SET_ACT_AGGREGATE_CTRL, NULL); in btc8821a1ant_limited_rx()
366 static void btc8821a1ant_monitor_bt_ctr(struct btc_coexist *btcoexist) in btc8821a1ant_monitor_bt_ctr() argument
374 u4_tmp = btcoexist->btc_read_4byte(btcoexist, reg_hp_tx_rx); in btc8821a1ant_monitor_bt_ctr()
378 u4_tmp = btcoexist->btc_read_4byte(btcoexist, reg_lp_tx_rx); in btc8821a1ant_monitor_bt_ctr()
388 btcoexist->btc_write_1byte(btcoexist, 0x76e, 0xc); in btc8821a1ant_monitor_bt_ctr()
391 static void btc8821a1ant_query_bt_info(struct btc_coexist *btcoexist) in btc8821a1ant_query_bt_info() argument
393 struct rtl_priv *rtlpriv = btcoexist->adapter; in btc8821a1ant_query_bt_info()
404 btcoexist->btc_fill_h2c(btcoexist, 0x61, 1, h2c_parameter); in btc8821a1ant_query_bt_info()
407 static void btc8821a1ant_update_bt_link_info(struct btc_coexist *btcoexist) in btc8821a1ant_update_bt_link_info() argument
409 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; in btc8821a1ant_update_bt_link_info()
412 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); in btc8821a1ant_update_bt_link_info()
463 static u8 btc8821a1ant_action_algorithm(struct btc_coexist *btcoexist) in btc8821a1ant_action_algorithm() argument
465 struct rtl_priv *rtlpriv = btcoexist->adapter; in btc8821a1ant_action_algorithm()
466 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; in btc8821a1ant_action_algorithm()
471 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); in btc8821a1ant_action_algorithm()
646 static void btc8821a1ant_set_sw_penalty_tx_rate(struct btc_coexist *btcoexist, in btc8821a1ant_set_sw_penalty_tx_rate() argument
649 struct rtl_priv *rtlpriv = btcoexist->adapter; in btc8821a1ant_set_sw_penalty_tx_rate()
667 btcoexist->btc_fill_h2c(btcoexist, 0x69, 6, h2c_parameter); in btc8821a1ant_set_sw_penalty_tx_rate()
670 static void btc8821a1ant_low_penalty_ra(struct btc_coexist *btcoexist, in btc8821a1ant_low_penalty_ra() argument
679 btc8821a1ant_set_sw_penalty_tx_rate(btcoexist, in btc8821a1ant_low_penalty_ra()
685 static void btc8821a1ant_set_coex_table(struct btc_coexist *btcoexist, in btc8821a1ant_set_coex_table() argument
689 struct rtl_priv *rtlpriv = btcoexist->adapter; in btc8821a1ant_set_coex_table()
693 btcoexist->btc_write_4byte(btcoexist, 0x6c0, val0x6c0); in btc8821a1ant_set_coex_table()
697 btcoexist->btc_write_4byte(btcoexist, 0x6c4, val0x6c4); in btc8821a1ant_set_coex_table()
701 btcoexist->btc_write_4byte(btcoexist, 0x6c8, val0x6c8); in btc8821a1ant_set_coex_table()
705 btcoexist->btc_write_1byte(btcoexist, 0x6cc, val0x6cc); in btc8821a1ant_set_coex_table()
708 static void btc8821a1ant_coex_table(struct btc_coexist *btcoexist, in btc8821a1ant_coex_table() argument
712 struct rtl_priv *rtlpriv = btcoexist->adapter; in btc8821a1ant_coex_table()
730 btc8821a1ant_set_coex_table(btcoexist, val0x6c0, val0x6c4, in btc8821a1ant_coex_table()
739 static void btc8821a1ant_coex_table_with_type(struct btc_coexist *btcoexist, in btc8821a1ant_coex_table_with_type() argument
744 btc8821a1ant_coex_table(btcoexist, force_exec, 0x55555555, in btc8821a1ant_coex_table_with_type()
748 btc8821a1ant_coex_table(btcoexist, force_exec, 0x55555555, in btc8821a1ant_coex_table_with_type()
752 btc8821a1ant_coex_table(btcoexist, force_exec, 0x5a5a5a5a, in btc8821a1ant_coex_table_with_type()
756 btc8821a1ant_coex_table(btcoexist, force_exec, 0x5a5a5a5a, in btc8821a1ant_coex_table_with_type()
760 btc8821a1ant_coex_table(btcoexist, force_exec, 0x55555555, in btc8821a1ant_coex_table_with_type()
764 btc8821a1ant_coex_table(btcoexist, force_exec, 0x5a5a5a5a, in btc8821a1ant_coex_table_with_type()
768 btc8821a1ant_coex_table(btcoexist, force_exec, 0x55555555, in btc8821a1ant_coex_table_with_type()
772 btc8821a1ant_coex_table(btcoexist, force_exec, 0xaaaaaaaa, in btc8821a1ant_coex_table_with_type()
780 static void btc8821a1ant_set_fw_ignore_wlan_act(struct btc_coexist *btcoexist, in btc8821a1ant_set_fw_ignore_wlan_act() argument
783 struct rtl_priv *rtlpriv = btcoexist->adapter; in btc8821a1ant_set_fw_ignore_wlan_act()
793 btcoexist->btc_fill_h2c(btcoexist, 0x63, 1, h2c_parameter); in btc8821a1ant_set_fw_ignore_wlan_act()
796 static void btc8821a1ant_ignore_wlan_act(struct btc_coexist *btcoexist, in btc8821a1ant_ignore_wlan_act() argument
799 struct rtl_priv *rtlpriv = btcoexist->adapter; in btc8821a1ant_ignore_wlan_act()
816 btc8821a1ant_set_fw_ignore_wlan_act(btcoexist, enable); in btc8821a1ant_ignore_wlan_act()
821 static void btc8821a1ant_set_fw_ps_tdma(struct btc_coexist *btcoexist, u8 byte1, in btc8821a1ant_set_fw_ps_tdma() argument
824 struct rtl_priv *rtlpriv = btcoexist->adapter; in btc8821a1ant_set_fw_ps_tdma()
829 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_AP_MODE_ENABLE, in btc8821a1ant_set_fw_ps_tdma()
863 btcoexist->btc_fill_h2c(btcoexist, 0x60, 5, h2c_parameter); in btc8821a1ant_set_fw_ps_tdma()
866 static void btc8821a1ant_set_lps_rpwm(struct btc_coexist *btcoexist, in btc8821a1ant_set_lps_rpwm() argument
872 btcoexist->btc_set(btcoexist, BTC_SET_U1_LPS_VAL, &lps); in btc8821a1ant_set_lps_rpwm()
873 btcoexist->btc_set(btcoexist, BTC_SET_U1_RPWM_VAL, &rpwm); in btc8821a1ant_set_lps_rpwm()
876 static void btc8821a1ant_lps_rpwm(struct btc_coexist *btcoexist, in btc8821a1ant_lps_rpwm() argument
879 struct rtl_priv *rtlpriv = btcoexist->adapter; in btc8821a1ant_lps_rpwm()
901 btc8821a1ant_set_lps_rpwm(btcoexist, lps_val, rpwm_val); in btc8821a1ant_lps_rpwm()
907 static void btc8821a1ant_sw_mechanism(struct btc_coexist *btcoexist, in btc8821a1ant_sw_mechanism() argument
910 struct rtl_priv *rtlpriv = btcoexist->adapter; in btc8821a1ant_sw_mechanism()
915 btc8821a1ant_low_penalty_ra(btcoexist, NORMAL_EXEC, low_penalty_ra); in btc8821a1ant_sw_mechanism()
918 static void btc8821a1ant_set_ant_path(struct btc_coexist *btcoexist, in btc8821a1ant_set_ant_path() argument
922 struct btc_board_info *board_info = &btcoexist->board_info; in btc8821a1ant_set_ant_path()
928 u4_tmp = btcoexist->btc_read_4byte(btcoexist, 0x4c); in btc8821a1ant_set_ant_path()
931 btcoexist->btc_write_4byte(btcoexist, 0x4c, u4_tmp); in btc8821a1ant_set_ant_path()
933 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x975, 0x3, 0x3); in btc8821a1ant_set_ant_path()
934 btcoexist->btc_write_1byte(btcoexist, 0xcb4, 0x77); in btc8821a1ant_set_ant_path()
942 btcoexist->btc_fill_h2c(btcoexist, 0x65, 2, in btc8821a1ant_set_ant_path()
950 btcoexist->btc_fill_h2c(btcoexist, 0x65, 2, in btc8821a1ant_set_ant_path()
957 u4_tmp = btcoexist->btc_read_4byte(btcoexist, 0x4c); in btc8821a1ant_set_ant_path()
960 btcoexist->btc_write_4byte(btcoexist, 0x4c, u4_tmp); in btc8821a1ant_set_ant_path()
963 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x765, 0x18, 0x3); in btc8821a1ant_set_ant_path()
966 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x765, 0x18, 0x0); in btc8821a1ant_set_ant_path()
972 btcoexist->btc_write_1byte(btcoexist, 0xcb4, 0x77); in btc8821a1ant_set_ant_path()
974 btcoexist->btc_write_1byte_bitmask(btcoexist, 0xcb7, in btc8821a1ant_set_ant_path()
977 btcoexist->btc_write_1byte_bitmask(btcoexist, 0xcb7, in btc8821a1ant_set_ant_path()
981 btcoexist->btc_write_1byte(btcoexist, 0xcb4, 0x77); in btc8821a1ant_set_ant_path()
983 btcoexist->btc_write_1byte_bitmask(btcoexist, 0xcb7, in btc8821a1ant_set_ant_path()
986 btcoexist->btc_write_1byte_bitmask(btcoexist, 0xcb7, in btc8821a1ant_set_ant_path()
991 btcoexist->btc_write_1byte(btcoexist, 0xcb4, 0x66); in btc8821a1ant_set_ant_path()
993 btcoexist->btc_write_1byte_bitmask(btcoexist, 0xcb7, in btc8821a1ant_set_ant_path()
996 btcoexist->btc_write_1byte_bitmask(btcoexist, 0xcb7, in btc8821a1ant_set_ant_path()
1002 static void btc8821a1ant_ps_tdma(struct btc_coexist *btcoexist, in btc8821a1ant_ps_tdma() argument
1005 struct rtl_priv *rtlpriv = btcoexist->adapter; in btc8821a1ant_ps_tdma()
1028 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x1a, in btc8821a1ant_ps_tdma()
1032 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x3a, in btc8821a1ant_ps_tdma()
1037 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x2b, in btc8821a1ant_ps_tdma()
1042 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x1d, in btc8821a1ant_ps_tdma()
1046 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x93, 0x15, in btc8821a1ant_ps_tdma()
1051 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x61, 0x15, in btc8821a1ant_ps_tdma()
1055 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x61, 0x20, in btc8821a1ant_ps_tdma()
1059 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x13, 0xc, in btc8821a1ant_ps_tdma()
1063 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x93, 0x25, in btc8821a1ant_ps_tdma()
1067 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x21, in btc8821a1ant_ps_tdma()
1072 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x13, 0xa, in btc8821a1ant_ps_tdma()
1076 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x15, in btc8821a1ant_ps_tdma()
1081 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x0a, in btc8821a1ant_ps_tdma()
1085 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x12, in btc8821a1ant_ps_tdma()
1089 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x1e, in btc8821a1ant_ps_tdma()
1093 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x13, 0xa, in btc8821a1ant_ps_tdma()
1097 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x93, 0x15, in btc8821a1ant_ps_tdma()
1102 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x93, 0x25, in btc8821a1ant_ps_tdma()
1107 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x61, 0x35, in btc8821a1ant_ps_tdma()
1111 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x61, 0x25, in btc8821a1ant_ps_tdma()
1115 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x61, 0x25, in btc8821a1ant_ps_tdma()
1119 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x25, in btc8821a1ant_ps_tdma()
1124 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x15, in btc8821a1ant_ps_tdma()
1129 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0xe3, 0xa, in btc8821a1ant_ps_tdma()
1134 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0xe3, 0xa, in btc8821a1ant_ps_tdma()
1139 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x25, in btc8821a1ant_ps_tdma()
1144 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x69, 0x25, in btc8821a1ant_ps_tdma()
1148 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0xab, 0x1a, in btc8821a1ant_ps_tdma()
1152 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x30, in btc8821a1ant_ps_tdma()
1156 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0xd3, 0x1a, in btc8821a1ant_ps_tdma()
1160 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x61, 0x35, in btc8821a1ant_ps_tdma()
1164 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0xa3, 0x25, in btc8821a1ant_ps_tdma()
1168 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x53, 0x1a, in btc8821a1ant_ps_tdma()
1172 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x63, 0x1a, in btc8821a1ant_ps_tdma()
1176 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0xd3, 0x12, in btc8821a1ant_ps_tdma()
1186 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x23, 0x18, in btc8821a1ant_ps_tdma()
1190 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x15, in btc8821a1ant_ps_tdma()
1194 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x20, in btc8821a1ant_ps_tdma()
1198 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x30, in btc8821a1ant_ps_tdma()
1207 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x8, 0x0, 0x0, in btc8821a1ant_ps_tdma()
1209 btc8821a1ant_set_ant_path(btcoexist, BTC_ANT_PATH_PTA, in btc8821a1ant_ps_tdma()
1215 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x0, 0x0, 0x0, in btc8821a1ant_ps_tdma()
1217 btc8821a1ant_set_ant_path(btcoexist, BTC_ANT_PATH_BT, in btc8821a1ant_ps_tdma()
1222 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x0, 0x0, 0x0, in btc8821a1ant_ps_tdma()
1224 btc8821a1ant_set_ant_path(btcoexist, BTC_ANT_PATH_WIFI, in btc8821a1ant_ps_tdma()
1229 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x0, 0x0, 0x0, in btc8821a1ant_ps_tdma()
1231 btc8821a1ant_set_ant_path(btcoexist, BTC_ANT_PATH_BT, in btc8821a1ant_ps_tdma()
1237 btcoexist->btc_set(btcoexist, in btc8821a1ant_ps_tdma()
1245 static bool btc8821a1ant_is_common_action(struct btc_coexist *btcoexist) in btc8821a1ant_is_common_action() argument
1247 struct rtl_priv *rtlpriv = btcoexist->adapter; in btc8821a1ant_is_common_action()
1250 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_CONNECTED, in btc8821a1ant_is_common_action()
1252 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_BUSY, &wifi_busy); in btc8821a1ant_is_common_action()
1259 btc8821a1ant_sw_mechanism(btcoexist, false); in btc8821a1ant_is_common_action()
1267 btc8821a1ant_sw_mechanism(btcoexist, false); in btc8821a1ant_is_common_action()
1275 btc8821a1ant_sw_mechanism(btcoexist, false); in btc8821a1ant_is_common_action()
1283 btc8821a1ant_sw_mechanism(btcoexist, false); in btc8821a1ant_is_common_action()
1291 btc8821a1ant_sw_mechanism(btcoexist, false); in btc8821a1ant_is_common_action()
1335 static void btc8821a1ant_power_save_state(struct btc_coexist *btcoexist, in btc8821a1ant_power_save_state() argument
1344 btcoexist->btc_set(btcoexist, BTC_SET_ACT_DISABLE_LOW_POWER, in btc8821a1ant_power_save_state()
1346 btcoexist->btc_set(btcoexist, BTC_SET_ACT_NORMAL_LPS, NULL); in btc8821a1ant_power_save_state()
1349 btc8821a1ant_ps_tdma_check_for_pwr_save(btcoexist, in btc8821a1ant_power_save_state()
1351 btc8821a1ant_lps_rpwm(btcoexist, NORMAL_EXEC, lps_val, in btc8821a1ant_power_save_state()
1355 btcoexist->btc_set(btcoexist, BTC_SET_ACT_DISABLE_LOW_POWER, in btc8821a1ant_power_save_state()
1358 btcoexist->btc_set(btcoexist, BTC_SET_ACT_ENTER_LPS, NULL); in btc8821a1ant_power_save_state()
1361 btc8821a1ant_ps_tdma_check_for_pwr_save(btcoexist, false); in btc8821a1ant_power_save_state()
1362 btcoexist->btc_set(btcoexist, BTC_SET_ACT_LEAVE_LPS, NULL); in btc8821a1ant_power_save_state()
1369 static void btc8821a1ant_coex_under_5g(struct btc_coexist *btcoexist) in btc8821a1ant_coex_under_5g() argument
1371 btc8821a1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, in btc8821a1ant_coex_under_5g()
1373 btc8821a1ant_ignore_wlan_act(btcoexist, NORMAL_EXEC, true); in btc8821a1ant_coex_under_5g()
1375 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 10); in btc8821a1ant_coex_under_5g()
1377 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 0); in btc8821a1ant_coex_under_5g()
1379 btc8821a1ant_limited_tx(btcoexist, NORMAL_EXEC, 0, 0, 0, 0); in btc8821a1ant_coex_under_5g()
1381 btc8821a1ant_limited_rx(btcoexist, NORMAL_EXEC, false, false, 5); in btc8821a1ant_coex_under_5g()
1391 static void btc8821a1ant_action_sco(struct btc_coexist *btcoexist) in btc8821a1ant_action_sco() argument
1393 btc8821a1ant_sw_mechanism(btcoexist, true); in btc8821a1ant_action_sco()
1396 static void btc8821a1ant_action_hid(struct btc_coexist *btcoexist) in btc8821a1ant_action_hid() argument
1398 btc8821a1ant_sw_mechanism(btcoexist, true); in btc8821a1ant_action_hid()
1402 static void btc8821a1ant_action_a2dp(struct btc_coexist *btcoexist) in btc8821a1ant_action_a2dp() argument
1404 btc8821a1ant_sw_mechanism(btcoexist, false); in btc8821a1ant_action_a2dp()
1407 static void btc8821a1ant_action_a2dp_pan_hs(struct btc_coexist *btcoexist) in btc8821a1ant_action_a2dp_pan_hs() argument
1409 btc8821a1ant_sw_mechanism(btcoexist, false); in btc8821a1ant_action_a2dp_pan_hs()
1412 static void btc8821a1ant_action_pan_edr(struct btc_coexist *btcoexist) in btc8821a1ant_action_pan_edr() argument
1414 btc8821a1ant_sw_mechanism(btcoexist, false); in btc8821a1ant_action_pan_edr()
1418 static void btc8821a1ant_action_pan_hs(struct btc_coexist *btcoexist) in btc8821a1ant_action_pan_hs() argument
1420 btc8821a1ant_sw_mechanism(btcoexist, false); in btc8821a1ant_action_pan_hs()
1424 static void btc8821a1ant_action_pan_edr_a2dp(struct btc_coexist *btcoexist) in btc8821a1ant_action_pan_edr_a2dp() argument
1426 btc8821a1ant_sw_mechanism(btcoexist, false); in btc8821a1ant_action_pan_edr_a2dp()
1429 static void btc8821a1ant_action_pan_edr_hid(struct btc_coexist *btcoexist) in btc8821a1ant_action_pan_edr_hid() argument
1431 btc8821a1ant_sw_mechanism(btcoexist, true); in btc8821a1ant_action_pan_edr_hid()
1435 static void btc8821a1ant_action_hid_a2dp_pan_edr(struct btc_coexist *btcoexist) in btc8821a1ant_action_hid_a2dp_pan_edr() argument
1437 btc8821a1ant_sw_mechanism(btcoexist, true); in btc8821a1ant_action_hid_a2dp_pan_edr()
1440 static void btc8821a1ant_action_hid_a2dp(struct btc_coexist *btcoexist) in btc8821a1ant_action_hid_a2dp() argument
1442 btc8821a1ant_sw_mechanism(btcoexist, true); in btc8821a1ant_action_hid_a2dp()
1451 void btc8821a1ant_action_wifi_multi_port(struct btc_coexist *btcoexist) in btc8821a1ant_action_wifi_multi_port() argument
1453 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; in btc8821a1ant_action_wifi_multi_port()
1455 btc8821a1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0); in btc8821a1ant_action_wifi_multi_port()
1459 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 14); in btc8821a1ant_action_wifi_multi_port()
1460 btc8821a1ant_coex_table_with_type(btcoexist, in btc8821a1ant_action_wifi_multi_port()
1464 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 8); in btc8821a1ant_action_wifi_multi_port()
1465 btc8821a1ant_coex_table_with_type(btcoexist, in btc8821a1ant_action_wifi_multi_port()
1468 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 20); in btc8821a1ant_action_wifi_multi_port()
1469 btc8821a1ant_coex_table_with_type(btcoexist, in btc8821a1ant_action_wifi_multi_port()
1475 btc8821a1ant_act_bt_sco_hid_only_busy(btcoexist, in btc8821a1ant_action_wifi_multi_port()
1478 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 8); in btc8821a1ant_action_wifi_multi_port()
1479 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 2); in btc8821a1ant_action_wifi_multi_port()
1485 struct btc_coexist *btcoexist) in btc8821a1ant_action_wifi_not_connected_asso_auth() argument
1487 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; in btc8821a1ant_action_wifi_not_connected_asso_auth()
1489 btc8821a1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, 0x0, in btc8821a1ant_action_wifi_not_connected_asso_auth()
1494 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 14); in btc8821a1ant_action_wifi_not_connected_asso_auth()
1495 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); in btc8821a1ant_action_wifi_not_connected_asso_auth()
1497 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 20); in btc8821a1ant_action_wifi_not_connected_asso_auth()
1498 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 4); in btc8821a1ant_action_wifi_not_connected_asso_auth()
1500 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 8); in btc8821a1ant_action_wifi_not_connected_asso_auth()
1501 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 2); in btc8821a1ant_action_wifi_not_connected_asso_auth()
1506 static void btc8821a1ant_action_hs(struct btc_coexist *btcoexist) in btc8821a1ant_action_hs() argument
1508 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 5); in btc8821a1ant_action_hs()
1509 btc8821a1ant_coex_table_with_type(btcoexist, FORCE_EXEC, 2); in btc8821a1ant_action_hs()
1512 static void btc8821a1ant_action_bt_inquiry(struct btc_coexist *btcoexist) in btc8821a1ant_action_bt_inquiry() argument
1514 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; in btc8821a1ant_action_bt_inquiry()
1519 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_CONNECTED, in btc8821a1ant_action_bt_inquiry()
1521 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_AP_MODE_ENABLE, in btc8821a1ant_action_bt_inquiry()
1523 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_BUSY, &wifi_busy); in btc8821a1ant_action_bt_inquiry()
1524 btcoexist->btc_set(btcoexist, BTC_SET_BL_BT_TRAFFIC_BUSY, &bt_busy); in btc8821a1ant_action_bt_inquiry()
1527 btc8821a1ant_power_save_state(btcoexist, in btc8821a1ant_action_bt_inquiry()
1529 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 8); in btc8821a1ant_action_bt_inquiry()
1530 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 0); in btc8821a1ant_action_bt_inquiry()
1534 btc8821a1ant_power_save_state(btcoexist, in btc8821a1ant_action_bt_inquiry()
1536 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 32); in btc8821a1ant_action_bt_inquiry()
1537 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 4); in btc8821a1ant_action_bt_inquiry()
1540 btc8821a1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, in btc8821a1ant_action_bt_inquiry()
1542 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 14); in btc8821a1ant_action_bt_inquiry()
1544 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); in btc8821a1ant_action_bt_inquiry()
1546 btc8821a1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, in btc8821a1ant_action_bt_inquiry()
1548 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 20); in btc8821a1ant_action_bt_inquiry()
1550 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 4); in btc8821a1ant_action_bt_inquiry()
1552 btc8821a1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, in btc8821a1ant_action_bt_inquiry()
1554 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 8); in btc8821a1ant_action_bt_inquiry()
1555 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 7); in btc8821a1ant_action_bt_inquiry()
1559 static void btc8821a1ant_act_bt_sco_hid_only_busy(struct btc_coexist *btcoexist, in btc8821a1ant_act_bt_sco_hid_only_busy() argument
1563 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 5); in btc8821a1ant_act_bt_sco_hid_only_busy()
1565 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); in btc8821a1ant_act_bt_sco_hid_only_busy()
1568 static void btc8821a1ant_act_wifi_con_bt_acl_busy(struct btc_coexist *btcoexist, in btc8821a1ant_act_wifi_con_bt_acl_busy() argument
1573 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; in btc8821a1ant_act_wifi_con_bt_acl_busy()
1575 bt_rssi_state = btc8821a1ant_bt_rssi_state(btcoexist, 2, 28, 0); in btc8821a1ant_act_wifi_con_bt_acl_busy()
1579 btc8821a1ant_act_bt_sco_hid_only_busy(btcoexist, in btc8821a1ant_act_wifi_con_bt_acl_busy()
1586 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 32); in btc8821a1ant_act_wifi_con_bt_acl_busy()
1587 btc8821a1ant_coex_table_with_type(btcoexist, in btc8821a1ant_act_wifi_con_bt_acl_busy()
1592 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 14); in btc8821a1ant_act_wifi_con_bt_acl_busy()
1593 btc8821a1ant_coex_table_with_type(btcoexist, in btc8821a1ant_act_wifi_con_bt_acl_busy()
1597 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 14); in btc8821a1ant_act_wifi_con_bt_acl_busy()
1598 btc8821a1ant_coex_table_with_type(btcoexist, in btc8821a1ant_act_wifi_con_bt_acl_busy()
1604 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8821a1ant_act_wifi_con_bt_acl_busy()
1608 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); in btc8821a1ant_act_wifi_con_bt_acl_busy()
1612 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 3); in btc8821a1ant_act_wifi_con_bt_acl_busy()
1613 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 6); in btc8821a1ant_act_wifi_con_bt_acl_busy()
1619 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 43); in btc8821a1ant_act_wifi_con_bt_acl_busy()
1620 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); in btc8821a1ant_act_wifi_con_bt_acl_busy()
1623 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 11); in btc8821a1ant_act_wifi_con_bt_acl_busy()
1624 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); in btc8821a1ant_act_wifi_con_bt_acl_busy()
1630 void btc8821a1ant_action_wifi_not_connected(struct btc_coexist *btcoexist) in btc8821a1ant_action_wifi_not_connected() argument
1633 btc8821a1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0); in btc8821a1ant_action_wifi_not_connected()
1636 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 8); in btc8821a1ant_action_wifi_not_connected()
1637 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 0); in btc8821a1ant_action_wifi_not_connected()
1640 static void btc8821a1ant_act_wifi_not_conn_scan(struct btc_coexist *btcoexist) in btc8821a1ant_act_wifi_not_conn_scan() argument
1642 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; in btc8821a1ant_act_wifi_not_conn_scan()
1644 btc8821a1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0); in btc8821a1ant_act_wifi_not_conn_scan()
1649 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 14); in btc8821a1ant_act_wifi_not_conn_scan()
1650 btc8821a1ant_coex_table_with_type(btcoexist, in btc8821a1ant_act_wifi_not_conn_scan()
1654 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 22); in btc8821a1ant_act_wifi_not_conn_scan()
1655 btc8821a1ant_coex_table_with_type(btcoexist, in btc8821a1ant_act_wifi_not_conn_scan()
1658 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 20); in btc8821a1ant_act_wifi_not_conn_scan()
1659 btc8821a1ant_coex_table_with_type(btcoexist, in btc8821a1ant_act_wifi_not_conn_scan()
1665 btc8821a1ant_act_bt_sco_hid_only_busy(btcoexist, in btc8821a1ant_act_wifi_not_conn_scan()
1668 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 8); in btc8821a1ant_act_wifi_not_conn_scan()
1669 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 2); in btc8821a1ant_act_wifi_not_conn_scan()
1674 void btc8821a1ant_action_wifi_connected_scan(struct btc_coexist *btcoexist) in btc8821a1ant_action_wifi_connected_scan() argument
1676 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; in btc8821a1ant_action_wifi_connected_scan()
1679 btc8821a1ant_power_save_state(btcoexist, in btc8821a1ant_action_wifi_connected_scan()
1685 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 14); in btc8821a1ant_action_wifi_connected_scan()
1686 btc8821a1ant_coex_table_with_type(btcoexist, in btc8821a1ant_action_wifi_connected_scan()
1689 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 20); in btc8821a1ant_action_wifi_connected_scan()
1690 btc8821a1ant_coex_table_with_type(btcoexist, in btc8821a1ant_action_wifi_connected_scan()
1696 btc8821a1ant_act_bt_sco_hid_only_busy(btcoexist, in btc8821a1ant_action_wifi_connected_scan()
1699 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 8); in btc8821a1ant_action_wifi_connected_scan()
1700 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 2); in btc8821a1ant_action_wifi_connected_scan()
1704 static void btc8821a1ant_act_wifi_conn_sp_pkt(struct btc_coexist *btcoexist) in btc8821a1ant_act_wifi_conn_sp_pkt() argument
1706 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; in btc8821a1ant_act_wifi_conn_sp_pkt()
1708 btc8821a1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, in btc8821a1ant_act_wifi_conn_sp_pkt()
1714 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 32); in btc8821a1ant_act_wifi_conn_sp_pkt()
1715 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 4); in btc8821a1ant_act_wifi_conn_sp_pkt()
1719 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 14); in btc8821a1ant_act_wifi_conn_sp_pkt()
1720 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); in btc8821a1ant_act_wifi_conn_sp_pkt()
1722 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 20); in btc8821a1ant_act_wifi_conn_sp_pkt()
1723 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 4); in btc8821a1ant_act_wifi_conn_sp_pkt()
1725 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 8); in btc8821a1ant_act_wifi_conn_sp_pkt()
1726 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 2); in btc8821a1ant_act_wifi_conn_sp_pkt()
1730 static void btc8821a1ant_action_wifi_connected(struct btc_coexist *btcoexist) in btc8821a1ant_action_wifi_connected() argument
1732 struct rtl_priv *rtlpriv = btcoexist->adapter; in btc8821a1ant_action_wifi_connected()
1741 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_4_WAY_PROGRESS, in btc8821a1ant_action_wifi_connected()
1744 btc8821a1ant_act_wifi_conn_sp_pkt(btcoexist); in btc8821a1ant_action_wifi_connected()
1750 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_SCAN, &scan); in btc8821a1ant_action_wifi_connected()
1751 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link); in btc8821a1ant_action_wifi_connected()
1752 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_ROAM, &roam); in btc8821a1ant_action_wifi_connected()
1755 btc8821a1ant_action_wifi_connected_scan(btcoexist); in btc8821a1ant_action_wifi_connected()
1757 btc8821a1ant_act_wifi_conn_sp_pkt(btcoexist); in btc8821a1ant_action_wifi_connected()
1765 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_AP_MODE_ENABLE, in btc8821a1ant_action_wifi_connected()
1767 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_BUSY, &wifi_busy); in btc8821a1ant_action_wifi_connected()
1770 !btcoexist->bt_link_info.hid_only) { in btc8821a1ant_action_wifi_connected()
1771 if (!wifi_busy && btcoexist->bt_link_info.a2dp_only) in btc8821a1ant_action_wifi_connected()
1773 btc8821a1ant_power_save_state(btcoexist, in btc8821a1ant_action_wifi_connected()
1776 btc8821a1ant_power_save_state(btcoexist, BTC_PS_LPS_ON, in btc8821a1ant_action_wifi_connected()
1779 btc8821a1ant_power_save_state(btcoexist, in btc8821a1ant_action_wifi_connected()
1787 btc8821a1ant_act_wifi_con_bt_acl_busy(btcoexist, in btc8821a1ant_action_wifi_connected()
1793 btc8821a1ant_act_bt_sco_hid_only_busy(btcoexist, in btc8821a1ant_action_wifi_connected()
1796 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 8); in btc8821a1ant_action_wifi_connected()
1797 btc8821a1ant_coex_table_with_type(btcoexist, in btc8821a1ant_action_wifi_connected()
1802 btc8821a1ant_act_wifi_con_bt_acl_busy(btcoexist, in btc8821a1ant_action_wifi_connected()
1808 btc8821a1ant_act_bt_sco_hid_only_busy(btcoexist, in btc8821a1ant_action_wifi_connected()
1811 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 8); in btc8821a1ant_action_wifi_connected()
1812 btc8821a1ant_coex_table_with_type(btcoexist, in btc8821a1ant_action_wifi_connected()
1818 static void btc8821a1ant_run_sw_coex_mech(struct btc_coexist *btcoexist) in btc8821a1ant_run_sw_coex_mech() argument
1820 struct rtl_priv *rtlpriv = btcoexist->adapter; in btc8821a1ant_run_sw_coex_mech()
1823 algorithm = btc8821a1ant_action_algorithm(btcoexist); in btc8821a1ant_run_sw_coex_mech()
1826 if (!btc8821a1ant_is_common_action(btcoexist)) { in btc8821a1ant_run_sw_coex_mech()
1831 btc8821a1ant_action_sco(btcoexist); in btc8821a1ant_run_sw_coex_mech()
1836 btc8821a1ant_action_hid(btcoexist); in btc8821a1ant_run_sw_coex_mech()
1841 btc8821a1ant_action_a2dp(btcoexist); in btc8821a1ant_run_sw_coex_mech()
1846 btc8821a1ant_action_a2dp_pan_hs(btcoexist); in btc8821a1ant_run_sw_coex_mech()
1851 btc8821a1ant_action_pan_edr(btcoexist); in btc8821a1ant_run_sw_coex_mech()
1856 btc8821a1ant_action_pan_hs(btcoexist); in btc8821a1ant_run_sw_coex_mech()
1861 btc8821a1ant_action_pan_edr_a2dp(btcoexist); in btc8821a1ant_run_sw_coex_mech()
1866 btc8821a1ant_action_pan_edr_hid(btcoexist); in btc8821a1ant_run_sw_coex_mech()
1871 btc8821a1ant_action_hid_a2dp_pan_edr(btcoexist); in btc8821a1ant_run_sw_coex_mech()
1876 btc8821a1ant_action_hid_a2dp(btcoexist); in btc8821a1ant_run_sw_coex_mech()
1888 static void btc8821a1ant_run_coexist_mechanism(struct btc_coexist *btcoexist) in btc8821a1ant_run_coexist_mechanism() argument
1890 struct rtl_priv *rtlpriv = btcoexist->adapter; in btc8821a1ant_run_coexist_mechanism()
1891 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; in btc8821a1ant_run_coexist_mechanism()
1903 if (btcoexist->manual_control) { in btc8821a1ant_run_coexist_mechanism()
1909 if (btcoexist->stop_coex_dm) { in btc8821a1ant_run_coexist_mechanism()
1921 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_UNDER_5G, &wifi_under_5g); in btc8821a1ant_run_coexist_mechanism()
1925 btc8821a1ant_coex_under_5g(btcoexist); in btc8821a1ant_run_coexist_mechanism()
1934 btcoexist->btc_set(btcoexist, BTC_SET_BL_INC_SCAN_DEV_NUM, in btc8821a1ant_run_coexist_mechanism()
1937 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_CONNECTED, in btc8821a1ant_run_coexist_mechanism()
1940 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_LINK_STATUS, in btc8821a1ant_run_coexist_mechanism()
1945 btc8821a1ant_limited_tx(btcoexist, NORMAL_EXEC, 0, 0, 0, 0); in btc8821a1ant_run_coexist_mechanism()
1946 btc8821a1ant_limited_rx(btcoexist, NORMAL_EXEC, false, in btc8821a1ant_run_coexist_mechanism()
1948 btc8821a1ant_action_wifi_multi_port(btcoexist); in btc8821a1ant_run_coexist_mechanism()
1953 btc8821a1ant_limited_tx(btcoexist, NORMAL_EXEC, 0, 0, 0, 0); in btc8821a1ant_run_coexist_mechanism()
1956 btc8821a1ant_wifi_rssi_state(btcoexist, 1, 2, in btc8821a1ant_run_coexist_mechanism()
1958 btc8821a1ant_limited_tx(btcoexist, in btc8821a1ant_run_coexist_mechanism()
1962 btc8821a1ant_limited_tx(btcoexist, NORMAL_EXEC, in btc8821a1ant_run_coexist_mechanism()
1977 btc8821a1ant_limited_rx(btcoexist, NORMAL_EXEC, false, in btc8821a1ant_run_coexist_mechanism()
1980 btc8821a1ant_run_sw_coex_mech(btcoexist); in btc8821a1ant_run_coexist_mechanism()
1982 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); in btc8821a1ant_run_coexist_mechanism()
1984 btc8821a1ant_action_bt_inquiry(btcoexist); in btc8821a1ant_run_coexist_mechanism()
1987 btc8821a1ant_action_hs(btcoexist); in btc8821a1ant_run_coexist_mechanism()
1997 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_SCAN, &scan); in btc8821a1ant_run_coexist_mechanism()
1998 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link); in btc8821a1ant_run_coexist_mechanism()
1999 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_ROAM, &roam); in btc8821a1ant_run_coexist_mechanism()
2003 btc8821a1ant_act_wifi_not_conn_scan(btcoexist); in btc8821a1ant_run_coexist_mechanism()
2006 btcoexist); in btc8821a1ant_run_coexist_mechanism()
2008 btc8821a1ant_action_wifi_not_connected(btcoexist); in btc8821a1ant_run_coexist_mechanism()
2012 btc8821a1ant_action_wifi_connected(btcoexist); in btc8821a1ant_run_coexist_mechanism()
2016 static void btc8821a1ant_init_coex_dm(struct btc_coexist *btcoexist) in btc8821a1ant_init_coex_dm() argument
2021 btc8821a1ant_sw_mechanism(btcoexist, false); in btc8821a1ant_init_coex_dm()
2023 btc8821a1ant_coex_table_with_type(btcoexist, FORCE_EXEC, 0); in btc8821a1ant_init_coex_dm()
2026 static void btc8821a1ant_init_hw_config(struct btc_coexist *btcoexist, in btc8821a1ant_init_hw_config() argument
2029 struct rtl_priv *rtlpriv = btcoexist->adapter; in btc8821a1ant_init_hw_config()
2040 coex_dm->backup_arfr_cnt1 = btcoexist->btc_read_4byte(btcoexist, in btc8821a1ant_init_hw_config()
2042 coex_dm->backup_arfr_cnt2 = btcoexist->btc_read_4byte(btcoexist, in btc8821a1ant_init_hw_config()
2045 btcoexist->btc_read_2byte(btcoexist, 0x42a); in btc8821a1ant_init_hw_config()
2047 btcoexist->btc_read_1byte(btcoexist, 0x456); in btc8821a1ant_init_hw_config()
2051 u1_tmp = btcoexist->btc_read_1byte(btcoexist, 0x790); in btc8821a1ant_init_hw_config()
2054 btcoexist->btc_write_1byte(btcoexist, 0x790, u1_tmp); in btc8821a1ant_init_hw_config()
2056 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_UNDER_5G, &wifi_under_5g); in btc8821a1ant_init_hw_config()
2060 btc8821a1ant_set_ant_path(btcoexist, BTC_ANT_PATH_BT, in btc8821a1ant_init_hw_config()
2063 btc8821a1ant_set_ant_path(btcoexist, BTC_ANT_PATH_PTA, in btc8821a1ant_init_hw_config()
2066 btc8821a1ant_coex_table_with_type(btcoexist, FORCE_EXEC, 0); in btc8821a1ant_init_hw_config()
2071 btcoexist->btc_write_1byte(btcoexist, 0x76e, 0xc); in btc8821a1ant_init_hw_config()
2072 btcoexist->btc_write_1byte(btcoexist, 0x778, 0x3); in btc8821a1ant_init_hw_config()
2073 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x40, 0x20, 0x1); in btc8821a1ant_init_hw_config()
2079 void ex_btc8821a1ant_init_hwconfig(struct btc_coexist *btcoexist, bool wifionly) in ex_btc8821a1ant_init_hwconfig() argument
2081 btc8821a1ant_init_hw_config(btcoexist, true, wifionly); in ex_btc8821a1ant_init_hwconfig()
2082 btcoexist->auto_report_1ant = true; in ex_btc8821a1ant_init_hwconfig()
2085 void ex_btc8821a1ant_init_coex_dm(struct btc_coexist *btcoexist) in ex_btc8821a1ant_init_coex_dm() argument
2087 struct rtl_priv *rtlpriv = btcoexist->adapter; in ex_btc8821a1ant_init_coex_dm()
2092 btcoexist->stop_coex_dm = false; in ex_btc8821a1ant_init_coex_dm()
2094 btc8821a1ant_init_coex_dm(btcoexist); in ex_btc8821a1ant_init_coex_dm()
2096 btc8821a1ant_query_bt_info(btcoexist); in ex_btc8821a1ant_init_coex_dm()
2099 void ex_btc8821a1ant_display_coex_info(struct btc_coexist *btcoexist, in ex_btc8821a1ant_display_coex_info() argument
2102 struct btc_board_info *board_info = &btcoexist->board_info; in ex_btc8821a1ant_display_coex_info()
2103 struct btc_stack_info *stack_info = &btcoexist->stack_info; in ex_btc8821a1ant_display_coex_info()
2104 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; in ex_btc8821a1ant_display_coex_info()
2117 if (btcoexist->manual_control) { in ex_btc8821a1ant_display_coex_info()
2121 if (btcoexist->stop_coex_dm) { in ex_btc8821a1ant_display_coex_info()
2136 btcoexist->btc_get(btcoexist, BTC_GET_U4_BT_PATCH_VER, in ex_btc8821a1ant_display_coex_info()
2138 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_FW_VER, &fw_ver); in ex_btc8821a1ant_display_coex_info()
2146 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, in ex_btc8821a1ant_display_coex_info()
2148 btcoexist->btc_get(btcoexist, BTC_GET_U1_WIFI_DOT11_CHNL, in ex_btc8821a1ant_display_coex_info()
2150 btcoexist->btc_get(btcoexist, BTC_GET_U1_WIFI_HS_CHNL, in ex_btc8821a1ant_display_coex_info()
2160 btcoexist->btc_get(btcoexist, BTC_GET_S4_WIFI_RSSI, &wifi_rssi); in ex_btc8821a1ant_display_coex_info()
2161 btcoexist->btc_get(btcoexist, BTC_GET_S4_HS_RSSI, &bt_hs_rssi); in ex_btc8821a1ant_display_coex_info()
2165 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_SCAN, &scan); in ex_btc8821a1ant_display_coex_info()
2166 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link); in ex_btc8821a1ant_display_coex_info()
2167 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_ROAM, &roam); in ex_btc8821a1ant_display_coex_info()
2171 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_UNDER_5G, in ex_btc8821a1ant_display_coex_info()
2173 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, in ex_btc8821a1ant_display_coex_info()
2175 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_BUSY, in ex_btc8821a1ant_display_coex_info()
2177 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_TRAFFIC_DIRECTION, in ex_btc8821a1ant_display_coex_info()
2203 btcoexist->btc_disp_dbg_msg(btcoexist, BTC_DBG_DISP_BT_LINK_INFO, m); in ex_btc8821a1ant_display_coex_info()
2223 btcoexist->bt_info.lps_val, in ex_btc8821a1ant_display_coex_info()
2224 btcoexist->bt_info.rpwm_val); in ex_btc8821a1ant_display_coex_info()
2225 btcoexist->btc_disp_dbg_msg(btcoexist, BTC_DBG_DISP_FW_PWR_MODE_CMD, m); in ex_btc8821a1ant_display_coex_info()
2227 if (!btcoexist->manual_control) { in ex_btc8821a1ant_display_coex_info()
2237 (btcoexist->bt_info.reject_agg_pkt ? "Yes" : "No"), in ex_btc8821a1ant_display_coex_info()
2238 (btcoexist->bt_info.bt_ctrl_buf_size ? "Yes" : "No"), in ex_btc8821a1ant_display_coex_info()
2239 btcoexist->bt_info.agg_buf_size); in ex_btc8821a1ant_display_coex_info()
2241 btcoexist->bt_info.ra_mask); in ex_btc8821a1ant_display_coex_info()
2272 u4_tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x430); in ex_btc8821a1ant_display_coex_info()
2273 u4_tmp[1] = btcoexist->btc_read_4byte(btcoexist, 0x434); in ex_btc8821a1ant_display_coex_info()
2274 u2_tmp[0] = btcoexist->btc_read_2byte(btcoexist, 0x42a); in ex_btc8821a1ant_display_coex_info()
2275 u1_tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x456); in ex_btc8821a1ant_display_coex_info()
2280 u1_tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x778); in ex_btc8821a1ant_display_coex_info()
2281 u4_tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0xc58); in ex_btc8821a1ant_display_coex_info()
2285 u1_tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x8db); in ex_btc8821a1ant_display_coex_info()
2289 u1_tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x975); in ex_btc8821a1ant_display_coex_info()
2290 u4_tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0xcb4); in ex_btc8821a1ant_display_coex_info()
2297 u1_tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x40); in ex_btc8821a1ant_display_coex_info()
2298 u4_tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x4c); in ex_btc8821a1ant_display_coex_info()
2299 u1_tmp[1] = btcoexist->btc_read_1byte(btcoexist, 0x64); in ex_btc8821a1ant_display_coex_info()
2305 u4_tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x550); in ex_btc8821a1ant_display_coex_info()
2306 u1_tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x522); in ex_btc8821a1ant_display_coex_info()
2310 u4_tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0xc50); in ex_btc8821a1ant_display_coex_info()
2314 u4_tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0xf48); in ex_btc8821a1ant_display_coex_info()
2315 u1_tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0xa5d); in ex_btc8821a1ant_display_coex_info()
2316 u1_tmp[1] = btcoexist->btc_read_1byte(btcoexist, 0xa5c); in ex_btc8821a1ant_display_coex_info()
2320 u4_tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x6c0); in ex_btc8821a1ant_display_coex_info()
2321 u4_tmp[1] = btcoexist->btc_read_4byte(btcoexist, 0x6c4); in ex_btc8821a1ant_display_coex_info()
2322 u4_tmp[2] = btcoexist->btc_read_4byte(btcoexist, 0x6c8); in ex_btc8821a1ant_display_coex_info()
2323 u1_tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x6cc); in ex_btc8821a1ant_display_coex_info()
2332 if (btcoexist->auto_report_1ant) in ex_btc8821a1ant_display_coex_info()
2333 btc8821a1ant_monitor_bt_ctr(btcoexist); in ex_btc8821a1ant_display_coex_info()
2334 btcoexist->btc_disp_dbg_msg(btcoexist, BTC_DBG_DISP_COEX_STATISTICS, m); in ex_btc8821a1ant_display_coex_info()
2337 void ex_btc8821a1ant_ips_notify(struct btc_coexist *btcoexist, u8 type) in ex_btc8821a1ant_ips_notify() argument
2339 struct rtl_priv *rtlpriv = btcoexist->adapter; in ex_btc8821a1ant_ips_notify()
2342 if (btcoexist->manual_control || btcoexist->stop_coex_dm) in ex_btc8821a1ant_ips_notify()
2344 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_UNDER_5G, &wifi_under_5g); in ex_btc8821a1ant_ips_notify()
2348 btc8821a1ant_coex_under_5g(btcoexist); in ex_btc8821a1ant_ips_notify()
2356 btc8821a1ant_set_ant_path(btcoexist, in ex_btc8821a1ant_ips_notify()
2359 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 0); in ex_btc8821a1ant_ips_notify()
2360 btc8821a1ant_coex_table_with_type(btcoexist, in ex_btc8821a1ant_ips_notify()
2367 btc8821a1ant_init_hw_config(btcoexist, false, false); in ex_btc8821a1ant_ips_notify()
2368 btc8821a1ant_init_coex_dm(btcoexist); in ex_btc8821a1ant_ips_notify()
2369 btc8821a1ant_query_bt_info(btcoexist); in ex_btc8821a1ant_ips_notify()
2373 void ex_btc8821a1ant_lps_notify(struct btc_coexist *btcoexist, u8 type) in ex_btc8821a1ant_lps_notify() argument
2375 struct rtl_priv *rtlpriv = btcoexist->adapter; in ex_btc8821a1ant_lps_notify()
2377 if (btcoexist->manual_control || btcoexist->stop_coex_dm) in ex_btc8821a1ant_lps_notify()
2391 void ex_btc8821a1ant_scan_notify(struct btc_coexist *btcoexist, u8 type) in ex_btc8821a1ant_scan_notify() argument
2393 struct rtl_priv *rtlpriv = btcoexist->adapter; in ex_btc8821a1ant_scan_notify()
2401 if (btcoexist->manual_control || btcoexist->stop_coex_dm) in ex_btc8821a1ant_scan_notify()
2403 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_UNDER_5G, &wifi_under_5g); in ex_btc8821a1ant_scan_notify()
2407 btc8821a1ant_coex_under_5g(btcoexist); in ex_btc8821a1ant_scan_notify()
2417 btc8821a1ant_ps_tdma(btcoexist, FORCE_EXEC, false, 8); in ex_btc8821a1ant_scan_notify()
2427 btcoexist->btc_get(btcoexist, in ex_btc8821a1ant_scan_notify()
2429 btcoexist->btc_get(btcoexist, in ex_btc8821a1ant_scan_notify()
2432 btc8821a1ant_query_bt_info(btcoexist); in ex_btc8821a1ant_scan_notify()
2434 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_LINK_STATUS, in ex_btc8821a1ant_scan_notify()
2438 btc8821a1ant_limited_tx(btcoexist, NORMAL_EXEC, 0, 0, 0, 0); in ex_btc8821a1ant_scan_notify()
2439 btc8821a1ant_limited_rx(btcoexist, NORMAL_EXEC, false, in ex_btc8821a1ant_scan_notify()
2441 btc8821a1ant_action_wifi_multi_port(btcoexist); in ex_btc8821a1ant_scan_notify()
2446 btc8821a1ant_action_bt_inquiry(btcoexist); in ex_btc8821a1ant_scan_notify()
2449 btc8821a1ant_action_hs(btcoexist); in ex_btc8821a1ant_scan_notify()
2458 btc8821a1ant_act_wifi_not_conn_scan(btcoexist); in ex_btc8821a1ant_scan_notify()
2461 btc8821a1ant_action_wifi_connected_scan(btcoexist); in ex_btc8821a1ant_scan_notify()
2468 btc8821a1ant_action_wifi_not_connected(btcoexist); in ex_btc8821a1ant_scan_notify()
2470 btc8821a1ant_action_wifi_connected(btcoexist); in ex_btc8821a1ant_scan_notify()
2475 void ex_btc8821a1ant_connect_notify(struct btc_coexist *btcoexist, u8 type) in ex_btc8821a1ant_connect_notify() argument
2477 struct rtl_priv *rtlpriv = btcoexist->adapter; in ex_btc8821a1ant_connect_notify()
2485 if (btcoexist->manual_control || btcoexist->stop_coex_dm || in ex_btc8821a1ant_connect_notify()
2488 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_UNDER_5G, &wifi_under_5g); in ex_btc8821a1ant_connect_notify()
2492 btc8821a1ant_coex_under_5g(btcoexist); in ex_btc8821a1ant_connect_notify()
2508 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_LINK_STATUS, in ex_btc8821a1ant_connect_notify()
2512 btc8821a1ant_limited_tx(btcoexist, NORMAL_EXEC, 0, 0, 0, 0); in ex_btc8821a1ant_connect_notify()
2513 btc8821a1ant_limited_rx(btcoexist, NORMAL_EXEC, false, in ex_btc8821a1ant_connect_notify()
2515 btc8821a1ant_action_wifi_multi_port(btcoexist); in ex_btc8821a1ant_connect_notify()
2519 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); in ex_btc8821a1ant_connect_notify()
2521 btc8821a1ant_action_bt_inquiry(btcoexist); in ex_btc8821a1ant_connect_notify()
2524 btc8821a1ant_action_hs(btcoexist); in ex_btc8821a1ant_connect_notify()
2531 btc8821a1ant_act_wifi_not_conn_scan(btcoexist); in ex_btc8821a1ant_connect_notify()
2536 btcoexist->btc_get(btcoexist, in ex_btc8821a1ant_connect_notify()
2540 btc8821a1ant_action_wifi_not_connected(btcoexist); in ex_btc8821a1ant_connect_notify()
2542 btc8821a1ant_action_wifi_connected(btcoexist); in ex_btc8821a1ant_connect_notify()
2547 void ex_btc8821a1ant_media_status_notify(struct btc_coexist *btcoexist, in ex_btc8821a1ant_media_status_notify() argument
2550 struct rtl_priv *rtlpriv = btcoexist->adapter; in ex_btc8821a1ant_media_status_notify()
2556 if (btcoexist->manual_control || btcoexist->stop_coex_dm || in ex_btc8821a1ant_media_status_notify()
2559 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_UNDER_5G, &wifi_under_5g); in ex_btc8821a1ant_media_status_notify()
2563 btc8821a1ant_coex_under_5g(btcoexist); in ex_btc8821a1ant_media_status_notify()
2577 btcoexist->btc_get(btcoexist, in ex_btc8821a1ant_media_status_notify()
2584 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); in ex_btc8821a1ant_media_status_notify()
2601 btcoexist->btc_fill_h2c(btcoexist, 0x66, 3, h2c_parameter); in ex_btc8821a1ant_media_status_notify()
2604 void ex_btc8821a1ant_special_packet_notify(struct btc_coexist *btcoexist, in ex_btc8821a1ant_special_packet_notify() argument
2607 struct rtl_priv *rtlpriv = btcoexist->adapter; in ex_btc8821a1ant_special_packet_notify()
2615 if (btcoexist->manual_control || btcoexist->stop_coex_dm || in ex_btc8821a1ant_special_packet_notify()
2619 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_UNDER_5G, &wifi_under_5g); in ex_btc8821a1ant_special_packet_notify()
2623 btc8821a1ant_coex_under_5g(btcoexist); in ex_btc8821a1ant_special_packet_notify()
2647 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_LINK_STATUS, in ex_btc8821a1ant_special_packet_notify()
2651 btc8821a1ant_limited_tx(btcoexist, NORMAL_EXEC, 0, 0, 0, 0); in ex_btc8821a1ant_special_packet_notify()
2652 btc8821a1ant_limited_rx(btcoexist, NORMAL_EXEC, false, in ex_btc8821a1ant_special_packet_notify()
2654 btc8821a1ant_action_wifi_multi_port(btcoexist); in ex_btc8821a1ant_special_packet_notify()
2658 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); in ex_btc8821a1ant_special_packet_notify()
2660 btc8821a1ant_action_bt_inquiry(btcoexist); in ex_btc8821a1ant_special_packet_notify()
2663 btc8821a1ant_action_hs(btcoexist); in ex_btc8821a1ant_special_packet_notify()
2683 btc8821a1ant_act_wifi_conn_sp_pkt(btcoexist); in ex_btc8821a1ant_special_packet_notify()
2687 void ex_btc8821a1ant_bt_info_notify(struct btc_coexist *btcoexist, in ex_btc8821a1ant_bt_info_notify() argument
2690 struct rtl_priv *rtlpriv = btcoexist->adapter; in ex_btc8821a1ant_bt_info_notify()
2700 btcoexist->btc_get(btcoexist, in ex_btc8821a1ant_bt_info_notify()
2736 btcoexist->btc_set(btcoexist, BTC_SET_BL_BT_TX_RX_MASK, in ex_btc8821a1ant_bt_info_notify()
2744 btcoexist->btc_set_bt_reg(btcoexist, BTC_BT_REG_RF, in ex_btc8821a1ant_bt_info_notify()
2754 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_CONNECTED, in ex_btc8821a1ant_bt_info_notify()
2757 ex_btc8821a1ant_media_status_notify(btcoexist, in ex_btc8821a1ant_bt_info_notify()
2760 ex_btc8821a1ant_media_status_notify(btcoexist, in ex_btc8821a1ant_bt_info_notify()
2766 if (!btcoexist->manual_control && in ex_btc8821a1ant_bt_info_notify()
2767 !btcoexist->stop_coex_dm) { in ex_btc8821a1ant_bt_info_notify()
2770 btc8821a1ant_ignore_wlan_act(btcoexist, in ex_btc8821a1ant_bt_info_notify()
2811 btc8821a1ant_update_bt_link_info(btcoexist); in ex_btc8821a1ant_bt_info_notify()
2850 btcoexist->btc_set(btcoexist, in ex_btc8821a1ant_bt_info_notify()
2853 btc8821a1ant_run_coexist_mechanism(btcoexist); in ex_btc8821a1ant_bt_info_notify()
2856 void ex_btc8821a1ant_halt_notify(struct btc_coexist *btcoexist) in ex_btc8821a1ant_halt_notify() argument
2858 struct rtl_priv *rtlpriv = btcoexist->adapter; in ex_btc8821a1ant_halt_notify()
2863 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_UNDER_5G, &wifi_under_5g); in ex_btc8821a1ant_halt_notify()
2867 btc8821a1ant_coex_under_5g(btcoexist); in ex_btc8821a1ant_halt_notify()
2872 btcoexist->stop_coex_dm = true; in ex_btc8821a1ant_halt_notify()
2874 btc8821a1ant_set_ant_path(btcoexist, BTC_ANT_PATH_BT, false, true); in ex_btc8821a1ant_halt_notify()
2875 btc8821a1ant_ignore_wlan_act(btcoexist, FORCE_EXEC, true); in ex_btc8821a1ant_halt_notify()
2877 btc8821a1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0); in ex_btc8821a1ant_halt_notify()
2878 btc8821a1ant_ps_tdma(btcoexist, FORCE_EXEC, false, 0); in ex_btc8821a1ant_halt_notify()
2880 ex_btc8821a1ant_media_status_notify(btcoexist, BTC_MEDIA_DISCONNECT); in ex_btc8821a1ant_halt_notify()
2883 void ex_btc8821a1ant_pnp_notify(struct btc_coexist *btcoexist, u8 pnp_state) in ex_btc8821a1ant_pnp_notify() argument
2885 struct rtl_priv *rtlpriv = btcoexist->adapter; in ex_btc8821a1ant_pnp_notify()
2888 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_UNDER_5G, &wifi_under_5g); in ex_btc8821a1ant_pnp_notify()
2892 btc8821a1ant_coex_under_5g(btcoexist); in ex_btc8821a1ant_pnp_notify()
2907 btcoexist->stop_coex_dm = true; in ex_btc8821a1ant_pnp_notify()
2908 btc8821a1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, in ex_btc8821a1ant_pnp_notify()
2910 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 0); in ex_btc8821a1ant_pnp_notify()
2911 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 2); in ex_btc8821a1ant_pnp_notify()
2912 btc8821a1ant_set_ant_path(btcoexist, BTC_ANT_PATH_BT, false, in ex_btc8821a1ant_pnp_notify()
2917 btcoexist->stop_coex_dm = false; in ex_btc8821a1ant_pnp_notify()
2918 btc8821a1ant_init_hw_config(btcoexist, false, false); in ex_btc8821a1ant_pnp_notify()
2919 btc8821a1ant_init_coex_dm(btcoexist); in ex_btc8821a1ant_pnp_notify()
2920 btc8821a1ant_query_bt_info(btcoexist); in ex_btc8821a1ant_pnp_notify()
2924 void ex_btc8821a1ant_periodical(struct btc_coexist *btcoexist) in ex_btc8821a1ant_periodical() argument
2926 struct rtl_priv *rtlpriv = btcoexist->adapter; in ex_btc8821a1ant_periodical()
2929 struct btc_board_info *board_info = &btcoexist->board_info; in ex_btc8821a1ant_periodical()
2930 struct btc_stack_info *stack_info = &btcoexist->stack_info; in ex_btc8821a1ant_periodical()
2948 btcoexist->btc_get(btcoexist, BTC_GET_U4_BT_PATCH_VER, in ex_btc8821a1ant_periodical()
2950 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_FW_VER, &fw_ver); in ex_btc8821a1ant_periodical()
2961 if (!btcoexist->auto_report_1ant) { in ex_btc8821a1ant_periodical()
2962 btc8821a1ant_query_bt_info(btcoexist); in ex_btc8821a1ant_periodical()
2963 btc8821a1ant_monitor_bt_ctr(btcoexist); in ex_btc8821a1ant_periodical()