Lines Matching refs:btcoexist
150 static u8 halbtc8723b1ant_wifi_rssi_state(struct btc_coexist *btcoexist, in halbtc8723b1ant_wifi_rssi_state() argument
157 btcoexist->btc_get(btcoexist, in halbtc8723b1ant_wifi_rssi_state()
254 static void halbtc8723b1ant_updatera_mask(struct btc_coexist *btcoexist, in halbtc8723b1ant_updatera_mask() argument
260 btcoexist->btc_set(btcoexist, BTC_SET_ACT_UPDATE_ra_mask, in halbtc8723b1ant_updatera_mask()
266 static void btc8723b1ant_auto_rate_fb_retry(struct btc_coexist *btcoexist, in btc8723b1ant_auto_rate_fb_retry() argument
276 btcoexist->btc_write_4byte(btcoexist, 0x430, in btc8723b1ant_auto_rate_fb_retry()
278 btcoexist->btc_write_4byte(btcoexist, 0x434, in btc8723b1ant_auto_rate_fb_retry()
282 btcoexist->btc_get(btcoexist, in btc8723b1ant_auto_rate_fb_retry()
286 btcoexist->btc_write_4byte(btcoexist, in btc8723b1ant_auto_rate_fb_retry()
288 btcoexist->btc_write_4byte(btcoexist, in btc8723b1ant_auto_rate_fb_retry()
291 btcoexist->btc_write_4byte(btcoexist, in btc8723b1ant_auto_rate_fb_retry()
293 btcoexist->btc_write_4byte(btcoexist, in btc8723b1ant_auto_rate_fb_retry()
305 static void halbtc8723b1ant_retry_limit(struct btc_coexist *btcoexist, in halbtc8723b1ant_retry_limit() argument
314 btcoexist->btc_write_2byte(btcoexist, 0x42a, in halbtc8723b1ant_retry_limit()
318 btcoexist->btc_write_2byte(btcoexist, 0x42a, 0x0808); in halbtc8723b1ant_retry_limit()
328 static void halbtc8723b1ant_ampdu_maxtime(struct btc_coexist *btcoexist, in halbtc8723b1ant_ampdu_maxtime() argument
337 btcoexist->btc_write_1byte(btcoexist, 0x456, in halbtc8723b1ant_ampdu_maxtime()
341 btcoexist->btc_write_1byte(btcoexist, in halbtc8723b1ant_ampdu_maxtime()
352 static void halbtc8723b1ant_limited_tx(struct btc_coexist *btcoexist, in halbtc8723b1ant_limited_tx() argument
359 halbtc8723b1ant_updatera_mask(btcoexist, force_exec, 0x0); in halbtc8723b1ant_limited_tx()
362 halbtc8723b1ant_updatera_mask(btcoexist, force_exec, in halbtc8723b1ant_limited_tx()
367 halbtc8723b1ant_updatera_mask(btcoexist, force_exec, in halbtc8723b1ant_limited_tx()
374 btc8723b1ant_auto_rate_fb_retry(btcoexist, force_exec, arfr_type); in halbtc8723b1ant_limited_tx()
375 halbtc8723b1ant_retry_limit(btcoexist, force_exec, retry_limit_type); in halbtc8723b1ant_limited_tx()
376 halbtc8723b1ant_ampdu_maxtime(btcoexist, force_exec, ampdu_time_type); in halbtc8723b1ant_limited_tx()
379 static void halbtc8723b1ant_limited_rx(struct btc_coexist *btcoexist, in halbtc8723b1ant_limited_rx() argument
391 btcoexist->btc_set(btcoexist, BTC_SET_BL_TO_REJ_AP_AGG_PKT, in halbtc8723b1ant_limited_rx()
394 btcoexist->btc_set(btcoexist, BTC_SET_BL_BT_CTRL_AGG_SIZE, in halbtc8723b1ant_limited_rx()
399 btcoexist->btc_set(btcoexist, BTC_SET_U1_AGG_BUF_SIZE, &rxaggsize); in halbtc8723b1ant_limited_rx()
401 btcoexist->btc_set(btcoexist, BTC_SET_ACT_AGGREGATE_CTRL, NULL); in halbtc8723b1ant_limited_rx()
404 static void halbtc8723b1ant_monitor_bt_ctr(struct btc_coexist *btcoexist) in halbtc8723b1ant_monitor_bt_ctr() argument
413 u32tmp = btcoexist->btc_read_4byte(btcoexist, reg_hp_txrx); in halbtc8723b1ant_monitor_bt_ctr()
417 u32tmp = btcoexist->btc_read_4byte(btcoexist, reg_lp_txrx); in halbtc8723b1ant_monitor_bt_ctr()
427 btcoexist->btc_write_1byte(btcoexist, 0x76e, 0xc); in halbtc8723b1ant_monitor_bt_ctr()
430 static void halbtc8723b1ant_query_bt_info(struct btc_coexist *btcoexist) in halbtc8723b1ant_query_bt_info() argument
442 btcoexist->btc_fill_h2c(btcoexist, 0x61, 1, h2c_parameter); in halbtc8723b1ant_query_bt_info()
445 static bool btc8723b1ant_is_wifi_status_changed(struct btc_coexist *btcoexist) in btc8723b1ant_is_wifi_status_changed() argument
452 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_CONNECTED, in btc8723b1ant_is_wifi_status_changed()
454 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_BUSY, &wifi_busy); in btc8723b1ant_is_wifi_status_changed()
455 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); in btc8723b1ant_is_wifi_status_changed()
456 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_4_WAY_PROGRESS, in btc8723b1ant_is_wifi_status_changed()
477 static void halbtc8723b1ant_update_bt_link_info(struct btc_coexist *btcoexist) in halbtc8723b1ant_update_bt_link_info() argument
479 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; in halbtc8723b1ant_update_bt_link_info()
482 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); in halbtc8723b1ant_update_bt_link_info()
525 static u8 halbtc8723b1ant_action_algorithm(struct btc_coexist *btcoexist) in halbtc8723b1ant_action_algorithm() argument
527 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; in halbtc8723b1ant_action_algorithm()
532 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); in halbtc8723b1ant_action_algorithm()
704 static void btc8723b1ant_set_sw_pen_tx_rate_adapt(struct btc_coexist *btcoexist, in btc8723b1ant_set_sw_pen_tx_rate_adapt() argument
724 btcoexist->btc_fill_h2c(btcoexist, 0x69, 6, h2c_parameter); in btc8723b1ant_set_sw_pen_tx_rate_adapt()
727 static void halbtc8723b1ant_low_penalty_ra(struct btc_coexist *btcoexist, in halbtc8723b1ant_low_penalty_ra() argument
736 btc8723b1ant_set_sw_pen_tx_rate_adapt(btcoexist, in halbtc8723b1ant_low_penalty_ra()
742 static void halbtc8723b1ant_set_coex_table(struct btc_coexist *btcoexist, in halbtc8723b1ant_set_coex_table() argument
748 btcoexist->btc_write_4byte(btcoexist, 0x6c0, val0x6c0); in halbtc8723b1ant_set_coex_table()
752 btcoexist->btc_write_4byte(btcoexist, 0x6c4, val0x6c4); in halbtc8723b1ant_set_coex_table()
756 btcoexist->btc_write_4byte(btcoexist, 0x6c8, val0x6c8); in halbtc8723b1ant_set_coex_table()
760 btcoexist->btc_write_1byte(btcoexist, 0x6cc, val0x6cc); in halbtc8723b1ant_set_coex_table()
763 static void halbtc8723b1ant_coex_table(struct btc_coexist *btcoexist, in halbtc8723b1ant_coex_table() argument
784 halbtc8723b1ant_set_coex_table(btcoexist, val0x6c0, val0x6c4, in halbtc8723b1ant_coex_table()
793 static void halbtc8723b1ant_coex_table_with_type(struct btc_coexist *btcoexist, in halbtc8723b1ant_coex_table_with_type() argument
798 halbtc8723b1ant_coex_table(btcoexist, force_exec, 0x55555555, in halbtc8723b1ant_coex_table_with_type()
802 halbtc8723b1ant_coex_table(btcoexist, force_exec, 0x55555555, in halbtc8723b1ant_coex_table_with_type()
806 halbtc8723b1ant_coex_table(btcoexist, force_exec, 0x5a5a5a5a, in halbtc8723b1ant_coex_table_with_type()
810 halbtc8723b1ant_coex_table(btcoexist, force_exec, 0x55555555, in halbtc8723b1ant_coex_table_with_type()
814 halbtc8723b1ant_coex_table(btcoexist, force_exec, 0x55555555, in halbtc8723b1ant_coex_table_with_type()
818 halbtc8723b1ant_coex_table(btcoexist, force_exec, 0x5a5a5a5a, in halbtc8723b1ant_coex_table_with_type()
822 halbtc8723b1ant_coex_table(btcoexist, force_exec, 0x55555555, in halbtc8723b1ant_coex_table_with_type()
826 halbtc8723b1ant_coex_table(btcoexist, force_exec, 0xaaaaaaaa, in halbtc8723b1ant_coex_table_with_type()
834 static void halbtc8723b1ant_SetFwIgnoreWlanAct(struct btc_coexist *btcoexist, in halbtc8723b1ant_SetFwIgnoreWlanAct() argument
846 btcoexist->btc_fill_h2c(btcoexist, 0x63, 1, h2c_parameter); in halbtc8723b1ant_SetFwIgnoreWlanAct()
849 static void halbtc8723b1ant_ignore_wlan_act(struct btc_coexist *btcoexist, in halbtc8723b1ant_ignore_wlan_act() argument
867 halbtc8723b1ant_SetFwIgnoreWlanAct(btcoexist, enable); in halbtc8723b1ant_ignore_wlan_act()
872 static void halbtc8723b1ant_set_fw_ps_tdma(struct btc_coexist *btcoexist, in halbtc8723b1ant_set_fw_ps_tdma() argument
880 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_AP_MODE_ENABLE, in halbtc8723b1ant_set_fw_ps_tdma()
915 btcoexist->btc_fill_h2c(btcoexist, 0x60, 5, h2c_parameter); in halbtc8723b1ant_set_fw_ps_tdma()
918 static void halbtc8723b1ant_set_lps_rpwm(struct btc_coexist *btcoexist, in halbtc8723b1ant_set_lps_rpwm() argument
924 btcoexist->btc_set(btcoexist, BTC_SET_U1_LPS_VAL, &lps); in halbtc8723b1ant_set_lps_rpwm()
925 btcoexist->btc_set(btcoexist, BTC_SET_U1_RPWM_VAL, &rpwm); in halbtc8723b1ant_set_lps_rpwm()
928 static void halbtc8723b1ant_LpsRpwm(struct btc_coexist *btcoexist, in halbtc8723b1ant_LpsRpwm() argument
952 halbtc8723b1ant_set_lps_rpwm(btcoexist, lps_val, rpwm_val); in halbtc8723b1ant_LpsRpwm()
958 static void halbtc8723b1ant_sw_mechanism(struct btc_coexist *btcoexist, in halbtc8723b1ant_sw_mechanism() argument
964 halbtc8723b1ant_low_penalty_ra(btcoexist, NORMAL_EXEC, low_penalty_ra); in halbtc8723b1ant_sw_mechanism()
967 static void halbtc8723b1ant_SetAntPath(struct btc_coexist *btcoexist, in halbtc8723b1ant_SetAntPath() argument
971 struct btc_board_info *board_info = &btcoexist->board_info; in halbtc8723b1ant_SetAntPath()
977 btcoexist->btc_get(btcoexist, BTC_GET_BL_EXT_SWITCH, &pg_ext_switch); in halbtc8723b1ant_SetAntPath()
979 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_FW_VER, &fw_ver); in halbtc8723b1ant_SetAntPath()
986 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x67, 0x20, 0x1); in halbtc8723b1ant_SetAntPath()
989 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x765, 0x18, 0x0); in halbtc8723b1ant_SetAntPath()
992 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x765, 0x18, 0x3); in halbtc8723b1ant_SetAntPath()
994 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x67, 0x20, 0x0); in halbtc8723b1ant_SetAntPath()
999 u32tmp = btcoexist->btc_read_4byte(btcoexist, 0x4c); in halbtc8723b1ant_SetAntPath()
1002 btcoexist->btc_write_4byte(btcoexist, 0x4c, u32tmp); in halbtc8723b1ant_SetAntPath()
1010 u32tmp = btcoexist->btc_read_4byte(btcoexist, 0x4c); in halbtc8723b1ant_SetAntPath()
1013 btcoexist->btc_write_4byte(btcoexist, 0x4c, u32tmp); in halbtc8723b1ant_SetAntPath()
1018 btcoexist->btc_write_1byte_bitmask(btcoexist, in halbtc8723b1ant_SetAntPath()
1025 btcoexist->btc_fill_h2c(btcoexist, 0x65, 2, in halbtc8723b1ant_SetAntPath()
1029 btcoexist->btc_write_1byte_bitmask(btcoexist, in halbtc8723b1ant_SetAntPath()
1036 btcoexist->btc_fill_h2c(btcoexist, 0x65, 2, in halbtc8723b1ant_SetAntPath()
1044 btcoexist->btc_write_2byte(btcoexist, 0x948, 0x0); in halbtc8723b1ant_SetAntPath()
1046 btcoexist->btc_write_2byte(btcoexist, 0x948, 0x280); in halbtc8723b1ant_SetAntPath()
1053 btcoexist->btc_write_1byte_bitmask(btcoexist, in halbtc8723b1ant_SetAntPath()
1057 btcoexist->btc_write_1byte_bitmask(btcoexist, in halbtc8723b1ant_SetAntPath()
1064 btcoexist->btc_write_1byte_bitmask(btcoexist, in halbtc8723b1ant_SetAntPath()
1068 btcoexist->btc_write_1byte_bitmask(btcoexist, in halbtc8723b1ant_SetAntPath()
1076 btcoexist->btc_write_1byte_bitmask(btcoexist, in halbtc8723b1ant_SetAntPath()
1080 btcoexist->btc_write_1byte_bitmask(btcoexist, in halbtc8723b1ant_SetAntPath()
1089 u32tmp = btcoexist->btc_read_4byte(btcoexist, 0x4c); in halbtc8723b1ant_SetAntPath()
1092 btcoexist->btc_write_4byte(btcoexist, 0x4c, u32tmp); in halbtc8723b1ant_SetAntPath()
1097 btcoexist->btc_write_1byte_bitmask(btcoexist, in halbtc8723b1ant_SetAntPath()
1104 btcoexist->btc_fill_h2c(btcoexist, 0x65, 2, in halbtc8723b1ant_SetAntPath()
1108 btcoexist->btc_write_1byte_bitmask(btcoexist, in halbtc8723b1ant_SetAntPath()
1115 btcoexist->btc_fill_h2c(btcoexist, 0x65, 2, in halbtc8723b1ant_SetAntPath()
1124 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x92c, in halbtc8723b1ant_SetAntPath()
1127 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x92c, in halbtc8723b1ant_SetAntPath()
1135 btcoexist->btc_write_2byte(btcoexist, 0x948, in halbtc8723b1ant_SetAntPath()
1138 btcoexist->btc_write_2byte(btcoexist, 0x948, in halbtc8723b1ant_SetAntPath()
1144 btcoexist->btc_write_2byte(btcoexist, 0x948, in halbtc8723b1ant_SetAntPath()
1147 btcoexist->btc_write_2byte(btcoexist, 0x948, in halbtc8723b1ant_SetAntPath()
1154 btcoexist->btc_write_2byte(btcoexist, 0x948, in halbtc8723b1ant_SetAntPath()
1157 btcoexist->btc_write_2byte(btcoexist, 0x948, in halbtc8723b1ant_SetAntPath()
1164 static void halbtc8723b1ant_ps_tdma(struct btc_coexist *btcoexist, in halbtc8723b1ant_ps_tdma() argument
1173 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_BUSY, &wifi_busy); in halbtc8723b1ant_ps_tdma()
1192 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x1a, in halbtc8723b1ant_ps_tdma()
1196 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x3a, in halbtc8723b1ant_ps_tdma()
1202 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x2b, in halbtc8723b1ant_ps_tdma()
1207 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x1d, in halbtc8723b1ant_ps_tdma()
1211 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x93, 0x15, in halbtc8723b1ant_ps_tdma()
1216 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x61, 0x15, in halbtc8723b1ant_ps_tdma()
1220 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x61, 0x20, in halbtc8723b1ant_ps_tdma()
1224 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x13, 0xc, in halbtc8723b1ant_ps_tdma()
1228 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x93, 0x25, in halbtc8723b1ant_ps_tdma()
1232 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x21, in halbtc8723b1ant_ps_tdma()
1237 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x13, 0xa, in halbtc8723b1ant_ps_tdma()
1241 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x15, in halbtc8723b1ant_ps_tdma()
1246 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x0a, in halbtc8723b1ant_ps_tdma()
1250 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x15, in halbtc8723b1ant_ps_tdma()
1254 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x21, in halbtc8723b1ant_ps_tdma()
1258 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x13, 0xa, in halbtc8723b1ant_ps_tdma()
1262 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x93, 0x15, in halbtc8723b1ant_ps_tdma()
1267 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x93, 0x25, in halbtc8723b1ant_ps_tdma()
1272 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x61, 0x35, in halbtc8723b1ant_ps_tdma()
1276 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x61, 0x25, in halbtc8723b1ant_ps_tdma()
1280 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x61, 0x25, in halbtc8723b1ant_ps_tdma()
1284 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x25, in halbtc8723b1ant_ps_tdma()
1289 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x15, in halbtc8723b1ant_ps_tdma()
1294 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0xe3, 0xa, in halbtc8723b1ant_ps_tdma()
1299 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0xe3, 0xa, in halbtc8723b1ant_ps_tdma()
1304 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x25, in halbtc8723b1ant_ps_tdma()
1309 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x69, 0x25, in halbtc8723b1ant_ps_tdma()
1313 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0xab, 0x1a, in halbtc8723b1ant_ps_tdma()
1317 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x14, in halbtc8723b1ant_ps_tdma()
1321 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0xd3, 0x1a, in halbtc8723b1ant_ps_tdma()
1325 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x61, 0xa, in halbtc8723b1ant_ps_tdma()
1329 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0xa3, 0x25, in halbtc8723b1ant_ps_tdma()
1333 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x53, 0x1a, in halbtc8723b1ant_ps_tdma()
1337 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x63, 0x1a, in halbtc8723b1ant_ps_tdma()
1341 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0xd3, 0x12, in halbtc8723b1ant_ps_tdma()
1349 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x23, 0x18, in halbtc8723b1ant_ps_tdma()
1356 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x8, 0x0, in halbtc8723b1ant_ps_tdma()
1358 halbtc8723b1ant_SetAntPath(btcoexist, BTC_ANT_PATH_PTA, in halbtc8723b1ant_ps_tdma()
1363 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x0, 0x0, in halbtc8723b1ant_ps_tdma()
1365 halbtc8723b1ant_SetAntPath(btcoexist, BTC_ANT_PATH_BT, in halbtc8723b1ant_ps_tdma()
1369 halbtc8723b1ant_set_fw_ps_tdma(btcoexist, 0x0, 0x0, in halbtc8723b1ant_ps_tdma()
1371 halbtc8723b1ant_SetAntPath(btcoexist, BTC_ANT_PATH_WIFI, in halbtc8723b1ant_ps_tdma()
1377 btcoexist->btc_set(btcoexist, in halbtc8723b1ant_ps_tdma()
1386 static bool halbtc8723b1ant_is_common_action(struct btc_coexist *btcoexist) in halbtc8723b1ant_is_common_action() argument
1391 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_CONNECTED, in halbtc8723b1ant_is_common_action()
1393 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_BUSY, &wifi_busy); in halbtc8723b1ant_is_common_action()
1399 halbtc8723b1ant_sw_mechanism(btcoexist, false); in halbtc8723b1ant_is_common_action()
1406 halbtc8723b1ant_sw_mechanism(btcoexist, false); in halbtc8723b1ant_is_common_action()
1413 halbtc8723b1ant_sw_mechanism(btcoexist, false); in halbtc8723b1ant_is_common_action()
1420 halbtc8723b1ant_sw_mechanism(btcoexist, false); in halbtc8723b1ant_is_common_action()
1427 halbtc8723b1ant_sw_mechanism(btcoexist, false); in halbtc8723b1ant_is_common_action()
1443 static void btc8723b1ant_tdma_dur_adj_for_acl(struct btc_coexist *btcoexist, in btc8723b1ant_tdma_dur_adj_for_acl() argument
1468 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8723b1ant_tdma_dur_adj_for_acl()
1487 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 2); in btc8723b1ant_tdma_dur_adj_for_acl()
1567 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8723b1ant_tdma_dur_adj_for_acl()
1571 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8723b1ant_tdma_dur_adj_for_acl()
1575 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8723b1ant_tdma_dur_adj_for_acl()
1579 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8723b1ant_tdma_dur_adj_for_acl()
1587 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8723b1ant_tdma_dur_adj_for_acl()
1591 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8723b1ant_tdma_dur_adj_for_acl()
1595 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8723b1ant_tdma_dur_adj_for_acl()
1599 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8723b1ant_tdma_dur_adj_for_acl()
1613 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, in btc8723b1ant_tdma_dur_adj_for_acl()
1619 static void btc8723b1ant_pstdmachkpwrsave(struct btc_coexist *btcoexist, in btc8723b1ant_pstdmachkpwrsave() argument
1624 btcoexist->btc_get(btcoexist, BTC_GET_U1_LPS_MODE, &lps_mode); in btc8723b1ant_pstdmachkpwrsave()
1631 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8723b1ant_pstdmachkpwrsave()
1637 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8723b1ant_pstdmachkpwrsave()
1645 static void halbtc8723b1ant_power_save_state(struct btc_coexist *btcoexist, in halbtc8723b1ant_power_save_state() argument
1655 btcoexist->btc_set(btcoexist, BTC_SET_ACT_DISABLE_LOW_POWER, in halbtc8723b1ant_power_save_state()
1657 btcoexist->btc_set(btcoexist, BTC_SET_ACT_NORMAL_LPS, NULL); in halbtc8723b1ant_power_save_state()
1660 btc8723b1ant_pstdmachkpwrsave(btcoexist, true); in halbtc8723b1ant_power_save_state()
1661 halbtc8723b1ant_LpsRpwm(btcoexist, NORMAL_EXEC, lps_val, in halbtc8723b1ant_power_save_state()
1665 btcoexist->btc_set(btcoexist, BTC_SET_ACT_DISABLE_LOW_POWER, in halbtc8723b1ant_power_save_state()
1668 btcoexist->btc_set(btcoexist, BTC_SET_ACT_ENTER_LPS, NULL); in halbtc8723b1ant_power_save_state()
1671 btc8723b1ant_pstdmachkpwrsave(btcoexist, false); in halbtc8723b1ant_power_save_state()
1672 btcoexist->btc_set(btcoexist, BTC_SET_ACT_LEAVE_LPS, NULL); in halbtc8723b1ant_power_save_state()
1685 static void halbtc8723b1ant_action_sco(struct btc_coexist *btcoexist) in halbtc8723b1ant_action_sco() argument
1687 halbtc8723b1ant_sw_mechanism(btcoexist, true); in halbtc8723b1ant_action_sco()
1690 static void halbtc8723b1ant_action_hid(struct btc_coexist *btcoexist) in halbtc8723b1ant_action_hid() argument
1692 halbtc8723b1ant_sw_mechanism(btcoexist, true); in halbtc8723b1ant_action_hid()
1696 static void halbtc8723b1ant_action_a2dp(struct btc_coexist *btcoexist) in halbtc8723b1ant_action_a2dp() argument
1698 halbtc8723b1ant_sw_mechanism(btcoexist, false); in halbtc8723b1ant_action_a2dp()
1701 static void halbtc8723b1ant_action_a2dp_pan_hs(struct btc_coexist *btcoexist) in halbtc8723b1ant_action_a2dp_pan_hs() argument
1703 halbtc8723b1ant_sw_mechanism(btcoexist, false); in halbtc8723b1ant_action_a2dp_pan_hs()
1706 static void halbtc8723b1ant_action_pan_edr(struct btc_coexist *btcoexist) in halbtc8723b1ant_action_pan_edr() argument
1708 halbtc8723b1ant_sw_mechanism(btcoexist, false); in halbtc8723b1ant_action_pan_edr()
1712 static void halbtc8723b1ant_action_pan_hs(struct btc_coexist *btcoexist) in halbtc8723b1ant_action_pan_hs() argument
1714 halbtc8723b1ant_sw_mechanism(btcoexist, false); in halbtc8723b1ant_action_pan_hs()
1718 static void halbtc8723b1ant_action_pan_edr_a2dp(struct btc_coexist *btcoexist) in halbtc8723b1ant_action_pan_edr_a2dp() argument
1720 halbtc8723b1ant_sw_mechanism(btcoexist, false); in halbtc8723b1ant_action_pan_edr_a2dp()
1723 static void halbtc8723b1ant_action_pan_edr_hid(struct btc_coexist *btcoexist) in halbtc8723b1ant_action_pan_edr_hid() argument
1725 halbtc8723b1ant_sw_mechanism(btcoexist, true); in halbtc8723b1ant_action_pan_edr_hid()
1729 static void btc8723b1ant_action_hid_a2dp_pan_edr(struct btc_coexist *btcoexist) in btc8723b1ant_action_hid_a2dp_pan_edr() argument
1731 halbtc8723b1ant_sw_mechanism(btcoexist, true); in btc8723b1ant_action_hid_a2dp_pan_edr()
1734 static void halbtc8723b1ant_action_hid_a2dp(struct btc_coexist *btcoexist) in halbtc8723b1ant_action_hid_a2dp() argument
1736 halbtc8723b1ant_sw_mechanism(btcoexist, true); in halbtc8723b1ant_action_hid_a2dp()
1744 static void halbtc8723b1ant_action_wifi_multiport(struct btc_coexist *btcoexist) in halbtc8723b1ant_action_wifi_multiport() argument
1746 halbtc8723b1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, in halbtc8723b1ant_action_wifi_multiport()
1749 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 8); in halbtc8723b1ant_action_wifi_multiport()
1750 halbtc8723b1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 2); in halbtc8723b1ant_action_wifi_multiport()
1753 static void halbtc8723b1ant_action_hs(struct btc_coexist *btcoexist) in halbtc8723b1ant_action_hs() argument
1755 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 5); in halbtc8723b1ant_action_hs()
1756 halbtc8723b1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 2); in halbtc8723b1ant_action_hs()
1759 static void halbtc8723b1ant_action_bt_inquiry(struct btc_coexist *btcoexist) in halbtc8723b1ant_action_bt_inquiry() argument
1761 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; in halbtc8723b1ant_action_bt_inquiry()
1764 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_AP_MODE_ENABLE, in halbtc8723b1ant_action_bt_inquiry()
1766 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_CONNECTED, in halbtc8723b1ant_action_bt_inquiry()
1770 halbtc8723b1ant_power_save_state(btcoexist, in halbtc8723b1ant_action_bt_inquiry()
1772 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 8); in halbtc8723b1ant_action_bt_inquiry()
1773 halbtc8723b1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 2); in halbtc8723b1ant_action_bt_inquiry()
1776 halbtc8723b1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, in halbtc8723b1ant_action_bt_inquiry()
1778 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 32); in halbtc8723b1ant_action_bt_inquiry()
1779 halbtc8723b1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); in halbtc8723b1ant_action_bt_inquiry()
1782 halbtc8723b1ant_power_save_state(btcoexist, in halbtc8723b1ant_action_bt_inquiry()
1786 halbtc8723b1ant_power_save_state(btcoexist, in halbtc8723b1ant_action_bt_inquiry()
1790 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 30); in halbtc8723b1ant_action_bt_inquiry()
1791 halbtc8723b1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); in halbtc8723b1ant_action_bt_inquiry()
1795 static void btc8723b1ant_act_bt_sco_hid_only_busy(struct btc_coexist *btcoexist, in btc8723b1ant_act_bt_sco_hid_only_busy() argument
1798 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; in btc8723b1ant_act_bt_sco_hid_only_busy()
1801 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_CONNECTED, in btc8723b1ant_act_bt_sco_hid_only_busy()
1807 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 5); in btc8723b1ant_act_bt_sco_hid_only_busy()
1808 halbtc8723b1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 2); in btc8723b1ant_act_bt_sco_hid_only_busy()
1810 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 6); in btc8723b1ant_act_bt_sco_hid_only_busy()
1811 halbtc8723b1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 5); in btc8723b1ant_act_bt_sco_hid_only_busy()
1816 struct btc_coexist *btcoexist, in halbtc8723b1ant_action_wifi_connected_bt_acl_busy() argument
1821 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; in halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1826 btc8723b1ant_act_bt_sco_hid_only_busy(btcoexist, wifi_status); in halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1831 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, in halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1833 halbtc8723b1ant_coex_table_with_type(btcoexist, in halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1838 btc8723b1ant_tdma_dur_adj_for_acl(btcoexist, in halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1840 halbtc8723b1ant_coex_table_with_type(btcoexist, in halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1843 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, in halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1845 halbtc8723b1ant_coex_table_with_type(btcoexist, in halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1853 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, in halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1857 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, in halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1862 halbtc8723b1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 6); in halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1866 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 3); in halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1867 halbtc8723b1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 6); in halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1873 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 13); in halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1874 halbtc8723b1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); in halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1877 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 11); in halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1878 halbtc8723b1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); in halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1883 static void btc8723b1ant_action_wifi_not_conn(struct btc_coexist *btcoexist) in btc8723b1ant_action_wifi_not_conn() argument
1886 halbtc8723b1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, in btc8723b1ant_action_wifi_not_conn()
1890 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 8); in btc8723b1ant_action_wifi_not_conn()
1891 halbtc8723b1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 0); in btc8723b1ant_action_wifi_not_conn()
1948 static void btc8723b1ant_action_wifi_conn_scan(struct btc_coexist *btcoexist) in btc8723b1ant_action_wifi_conn_scan() argument
1950 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; in btc8723b1ant_action_wifi_conn_scan()
1952 halbtc8723b1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, in btc8723b1ant_action_wifi_conn_scan()
1958 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8723b1ant_action_wifi_conn_scan()
1960 halbtc8723b1ant_coex_table_with_type(btcoexist, in btc8723b1ant_action_wifi_conn_scan()
1963 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8723b1ant_action_wifi_conn_scan()
1965 halbtc8723b1ant_coex_table_with_type(btcoexist, in btc8723b1ant_action_wifi_conn_scan()
1968 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, in btc8723b1ant_action_wifi_conn_scan()
1970 halbtc8723b1ant_coex_table_with_type(btcoexist, in btc8723b1ant_action_wifi_conn_scan()
1976 btc8723b1ant_act_bt_sco_hid_only_busy(btcoexist, in btc8723b1ant_action_wifi_conn_scan()
1979 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 8); in btc8723b1ant_action_wifi_conn_scan()
1980 halbtc8723b1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 2); in btc8723b1ant_action_wifi_conn_scan()
1985 struct btc_coexist *btcoexist) in halbtc8723b1ant_action_wifi_connected_special_packet() argument
1988 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; in halbtc8723b1ant_action_wifi_connected_special_packet()
1990 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_CONNECTING, &hs_connecting); in halbtc8723b1ant_action_wifi_connected_special_packet()
1992 halbtc8723b1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, in halbtc8723b1ant_action_wifi_connected_special_packet()
1999 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 8); in halbtc8723b1ant_action_wifi_connected_special_packet()
2000 halbtc8723b1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 7); in halbtc8723b1ant_action_wifi_connected_special_packet()
2002 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, true, 20); in halbtc8723b1ant_action_wifi_connected_special_packet()
2003 halbtc8723b1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 1); in halbtc8723b1ant_action_wifi_connected_special_packet()
2007 static void halbtc8723b1ant_action_wifi_connected(struct btc_coexist *btcoexist) in halbtc8723b1ant_action_wifi_connected() argument
2016 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_4_WAY_PROGRESS, in halbtc8723b1ant_action_wifi_connected()
2019 halbtc8723b1ant_action_wifi_connected_special_packet(btcoexist); in halbtc8723b1ant_action_wifi_connected()
2025 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_SCAN, &scan); in halbtc8723b1ant_action_wifi_connected()
2026 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link); in halbtc8723b1ant_action_wifi_connected()
2027 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_ROAM, &roam); in halbtc8723b1ant_action_wifi_connected()
2031 btc8723b1ant_action_wifi_conn_scan(btcoexist); in halbtc8723b1ant_action_wifi_connected()
2034 btcoexist); in halbtc8723b1ant_action_wifi_connected()
2040 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_AP_MODE_ENABLE, in halbtc8723b1ant_action_wifi_connected()
2042 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_BUSY, &wifi_busy); in halbtc8723b1ant_action_wifi_connected()
2046 !btcoexist->bt_link_info.hid_only) { in halbtc8723b1ant_action_wifi_connected()
2047 if (!wifi_busy && btcoexist->bt_link_info.a2dp_only) in halbtc8723b1ant_action_wifi_connected()
2048 halbtc8723b1ant_power_save_state(btcoexist, in halbtc8723b1ant_action_wifi_connected()
2052 halbtc8723b1ant_power_save_state(btcoexist, in halbtc8723b1ant_action_wifi_connected()
2056 halbtc8723b1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, in halbtc8723b1ant_action_wifi_connected()
2062 halbtc8723b1ant_action_wifi_connected_bt_acl_busy(btcoexist, in halbtc8723b1ant_action_wifi_connected()
2068 btc8723b1ant_act_bt_sco_hid_only_busy(btcoexist, in halbtc8723b1ant_action_wifi_connected()
2071 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, in halbtc8723b1ant_action_wifi_connected()
2073 halbtc8723b1ant_coex_table_with_type(btcoexist, in halbtc8723b1ant_action_wifi_connected()
2078 halbtc8723b1ant_action_wifi_connected_bt_acl_busy(btcoexist, in halbtc8723b1ant_action_wifi_connected()
2084 btc8723b1ant_act_bt_sco_hid_only_busy(btcoexist, in halbtc8723b1ant_action_wifi_connected()
2087 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, in halbtc8723b1ant_action_wifi_connected()
2089 halbtc8723b1ant_coex_table_with_type(btcoexist, in halbtc8723b1ant_action_wifi_connected()
2095 static void btc8723b1ant_run_sw_coex_mech(struct btc_coexist *btcoexist) in btc8723b1ant_run_sw_coex_mech() argument
2099 algorithm = halbtc8723b1ant_action_algorithm(btcoexist); in btc8723b1ant_run_sw_coex_mech()
2102 if (!halbtc8723b1ant_is_common_action(btcoexist)) { in btc8723b1ant_run_sw_coex_mech()
2107 halbtc8723b1ant_action_sco(btcoexist); in btc8723b1ant_run_sw_coex_mech()
2112 halbtc8723b1ant_action_hid(btcoexist); in btc8723b1ant_run_sw_coex_mech()
2117 halbtc8723b1ant_action_a2dp(btcoexist); in btc8723b1ant_run_sw_coex_mech()
2122 halbtc8723b1ant_action_a2dp_pan_hs(btcoexist); in btc8723b1ant_run_sw_coex_mech()
2127 halbtc8723b1ant_action_pan_edr(btcoexist); in btc8723b1ant_run_sw_coex_mech()
2132 halbtc8723b1ant_action_pan_hs(btcoexist); in btc8723b1ant_run_sw_coex_mech()
2137 halbtc8723b1ant_action_pan_edr_a2dp(btcoexist); in btc8723b1ant_run_sw_coex_mech()
2142 halbtc8723b1ant_action_pan_edr_hid(btcoexist); in btc8723b1ant_run_sw_coex_mech()
2147 btc8723b1ant_action_hid_a2dp_pan_edr(btcoexist); in btc8723b1ant_run_sw_coex_mech()
2152 halbtc8723b1ant_action_hid_a2dp(btcoexist); in btc8723b1ant_run_sw_coex_mech()
2163 static void halbtc8723b1ant_run_coexist_mechanism(struct btc_coexist *btcoexist) in halbtc8723b1ant_run_coexist_mechanism() argument
2165 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; in halbtc8723b1ant_run_coexist_mechanism()
2177 if (btcoexist->manual_control) { in halbtc8723b1ant_run_coexist_mechanism()
2183 if (btcoexist->stop_coex_dm) { in halbtc8723b1ant_run_coexist_mechanism()
2201 btcoexist->btc_set(btcoexist, BTC_SET_BL_INC_SCAN_DEV_NUM, in halbtc8723b1ant_run_coexist_mechanism()
2204 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_CONNECTED, in halbtc8723b1ant_run_coexist_mechanism()
2207 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_LINK_STATUS, in halbtc8723b1ant_run_coexist_mechanism()
2211 halbtc8723b1ant_limited_tx(btcoexist, NORMAL_EXEC, 0, 0, 0, 0); in halbtc8723b1ant_run_coexist_mechanism()
2212 halbtc8723b1ant_limited_rx(btcoexist, NORMAL_EXEC, false, in halbtc8723b1ant_run_coexist_mechanism()
2215 halbtc8723b1ant_action_wifi_multiport(btcoexist); in halbtc8723b1ant_run_coexist_mechanism()
2220 halbtc8723b1ant_limited_tx(btcoexist, NORMAL_EXEC, 0, 0, 0, 0); in halbtc8723b1ant_run_coexist_mechanism()
2224 halbtc8723b1ant_wifi_rssi_state(btcoexist, in halbtc8723b1ant_run_coexist_mechanism()
2228 halbtc8723b1ant_limited_tx(btcoexist, in halbtc8723b1ant_run_coexist_mechanism()
2232 halbtc8723b1ant_limited_tx(btcoexist, in halbtc8723b1ant_run_coexist_mechanism()
2237 halbtc8723b1ant_limited_tx(btcoexist, NORMAL_EXEC, in halbtc8723b1ant_run_coexist_mechanism()
2252 halbtc8723b1ant_limited_rx(btcoexist, NORMAL_EXEC, false, in halbtc8723b1ant_run_coexist_mechanism()
2255 btc8723b1ant_run_sw_coex_mech(btcoexist); in halbtc8723b1ant_run_coexist_mechanism()
2257 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); in halbtc8723b1ant_run_coexist_mechanism()
2260 halbtc8723b1ant_action_bt_inquiry(btcoexist); in halbtc8723b1ant_run_coexist_mechanism()
2263 halbtc8723b1ant_action_hs(btcoexist); in halbtc8723b1ant_run_coexist_mechanism()
2273 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_SCAN, &scan); in halbtc8723b1ant_run_coexist_mechanism()
2274 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link); in halbtc8723b1ant_run_coexist_mechanism()
2275 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_ROAM, &roam); in halbtc8723b1ant_run_coexist_mechanism()
2280 btcoexist); in halbtc8723b1ant_run_coexist_mechanism()
2283 btcoexist); in halbtc8723b1ant_run_coexist_mechanism()
2285 btc8723b1ant_action_wifi_not_conn(btcoexist); in halbtc8723b1ant_run_coexist_mechanism()
2288 halbtc8723b1ant_action_wifi_connected(btcoexist); in halbtc8723b1ant_run_coexist_mechanism()
2292 static void halbtc8723b1ant_init_coex_dm(struct btc_coexist *btcoexist) in halbtc8723b1ant_init_coex_dm() argument
2295 halbtc8723b1ant_sw_mechanism(btcoexist, false); in halbtc8723b1ant_init_coex_dm()
2297 halbtc8723b1ant_ps_tdma(btcoexist, FORCE_EXEC, false, 8); in halbtc8723b1ant_init_coex_dm()
2298 halbtc8723b1ant_coex_table_with_type(btcoexist, FORCE_EXEC, 0); in halbtc8723b1ant_init_coex_dm()
2301 static void halbtc8723b1ant_init_hw_config(struct btc_coexist *btcoexist, in halbtc8723b1ant_init_hw_config() argument
2313 btcoexist->btc_read_4byte(btcoexist, 0x430); in halbtc8723b1ant_init_hw_config()
2315 btcoexist->btc_read_4byte(btcoexist, 0x434); in halbtc8723b1ant_init_hw_config()
2317 btcoexist->btc_read_2byte(btcoexist, 0x42a); in halbtc8723b1ant_init_hw_config()
2319 btcoexist->btc_read_1byte(btcoexist, 0x456); in halbtc8723b1ant_init_hw_config()
2323 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x1, 0xfffff, 0x780); in halbtc8723b1ant_init_hw_config()
2325 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x2, 0xfffff, 0x500); in halbtc8723b1ant_init_hw_config()
2327 btcoexist->btc_write_1byte(btcoexist, 0x974, 0xff); in halbtc8723b1ant_init_hw_config()
2328 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x944, 0x3, 0x3); in halbtc8723b1ant_init_hw_config()
2329 btcoexist->btc_write_1byte(btcoexist, 0x930, 0x77); in halbtc8723b1ant_init_hw_config()
2333 u32tmp = btcoexist->btc_read_4byte(btcoexist, 0x49d); in halbtc8723b1ant_init_hw_config()
2349 u8tmp = btcoexist->btc_read_1byte(btcoexist, 0x790); in halbtc8723b1ant_init_hw_config()
2352 btcoexist->btc_write_1byte(btcoexist, 0x790, u8tmp); in halbtc8723b1ant_init_hw_config()
2356 btcoexist->btc_write_1byte(btcoexist, 0x76e, 0xc); in halbtc8723b1ant_init_hw_config()
2357 btcoexist->btc_write_1byte(btcoexist, 0x778, 0x1); in halbtc8723b1ant_init_hw_config()
2358 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x40, 0x20, 0x1); in halbtc8723b1ant_init_hw_config()
2361 halbtc8723b1ant_SetAntPath(btcoexist, BTC_ANT_PATH_PTA, true, false); in halbtc8723b1ant_init_hw_config()
2363 halbtc8723b1ant_coex_table_with_type(btcoexist, FORCE_EXEC, 0); in halbtc8723b1ant_init_hw_config()
2366 static void halbtc8723b1ant_wifi_off_hw_cfg(struct btc_coexist *btcoexist) in halbtc8723b1ant_wifi_off_hw_cfg() argument
2369 btcoexist->btc_write_1byte(btcoexist, 0x76e, 0x4); in halbtc8723b1ant_wifi_off_hw_cfg()
2379 void ex_halbtc8723b1ant_init_hwconfig(struct btc_coexist *btcoexist) in ex_halbtc8723b1ant_init_hwconfig() argument
2381 halbtc8723b1ant_init_hw_config(btcoexist, true); in ex_halbtc8723b1ant_init_hwconfig()
2384 void ex_halbtc8723b1ant_init_coex_dm(struct btc_coexist *btcoexist) in ex_halbtc8723b1ant_init_coex_dm() argument
2389 btcoexist->stop_coex_dm = false; in ex_halbtc8723b1ant_init_coex_dm()
2391 halbtc8723b1ant_init_coex_dm(btcoexist); in ex_halbtc8723b1ant_init_coex_dm()
2393 halbtc8723b1ant_query_bt_info(btcoexist); in ex_halbtc8723b1ant_init_coex_dm()
2396 void ex_halbtc8723b1ant_display_coex_info(struct btc_coexist *btcoexist) in ex_halbtc8723b1ant_display_coex_info() argument
2398 struct btc_board_info *board_info = &btcoexist->board_info; in ex_halbtc8723b1ant_display_coex_info()
2399 struct btc_stack_info *stack_info = &btcoexist->stack_info; in ex_halbtc8723b1ant_display_coex_info()
2400 struct btc_bt_link_info *bt_link_info = &btcoexist->bt_link_info; in ex_halbtc8723b1ant_display_coex_info()
2401 struct rtl_priv *rtlpriv = btcoexist->adapter; in ex_halbtc8723b1ant_display_coex_info()
2416 if (btcoexist->manual_control) { in ex_halbtc8723b1ant_display_coex_info()
2422 if (btcoexist->stop_coex_dm) { in ex_halbtc8723b1ant_display_coex_info()
2444 btcoexist->btc_get(btcoexist, BTC_GET_U4_BT_PATCH_VER, &bt_patch_ver); in ex_halbtc8723b1ant_display_coex_info()
2445 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_FW_VER, &fw_ver); in ex_halbtc8723b1ant_display_coex_info()
2452 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); in ex_halbtc8723b1ant_display_coex_info()
2453 btcoexist->btc_get(btcoexist, BTC_GET_U1_WIFI_DOT11_CHNL, in ex_halbtc8723b1ant_display_coex_info()
2455 btcoexist->btc_get(btcoexist, BTC_GET_U1_WIFI_HS_CHNL, &wifi_hs_chnl); in ex_halbtc8723b1ant_display_coex_info()
2465 btcoexist->btc_get(btcoexist, BTC_GET_S4_WIFI_RSSI, &wifi_rssi); in ex_halbtc8723b1ant_display_coex_info()
2466 btcoexist->btc_get(btcoexist, BTC_GET_S4_HS_RSSI, &bt_hs_rssi); in ex_halbtc8723b1ant_display_coex_info()
2470 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_SCAN, &scan); in ex_halbtc8723b1ant_display_coex_info()
2471 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_LINK, &link); in ex_halbtc8723b1ant_display_coex_info()
2472 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_ROAM, &roam); in ex_halbtc8723b1ant_display_coex_info()
2476 btcoexist->btc_get(btcoexist , BTC_GET_BL_WIFI_UNDER_5G, in ex_halbtc8723b1ant_display_coex_info()
2478 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); in ex_halbtc8723b1ant_display_coex_info()
2479 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_BUSY, &wifi_busy); in ex_halbtc8723b1ant_display_coex_info()
2480 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_TRAFFIC_DIRECTION, in ex_halbtc8723b1ant_display_coex_info()
2491 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_LINK_STATUS, in ex_halbtc8723b1ant_display_coex_info()
2503 ((btcoexist->bt_info.bt_disabled) ? ("disabled") : in ex_halbtc8723b1ant_display_coex_info()
2518 btcoexist->btc_disp_dbg_msg(btcoexist, BTC_DBG_DISP_BT_LINK_INFO); in ex_halbtc8723b1ant_display_coex_info()
2545 btcoexist->bt_info.lps_val, in ex_halbtc8723b1ant_display_coex_info()
2546 btcoexist->bt_info.rpwm_val); in ex_halbtc8723b1ant_display_coex_info()
2547 btcoexist->btc_disp_dbg_msg(btcoexist, BTC_DBG_DISP_FW_PWR_MODE_CMD); in ex_halbtc8723b1ant_display_coex_info()
2549 if (!btcoexist->manual_control) { in ex_halbtc8723b1ant_display_coex_info()
2559 (btcoexist->bt_info.reject_agg_pkt ? "Yes" : "No"), in ex_halbtc8723b1ant_display_coex_info()
2560 (btcoexist->bt_info.bt_ctrl_buf_size ? "Yes" : "No"), in ex_halbtc8723b1ant_display_coex_info()
2561 btcoexist->bt_info.agg_buf_size); in ex_halbtc8723b1ant_display_coex_info()
2564 "Rate Mask", btcoexist->bt_info.ra_mask); in ex_halbtc8723b1ant_display_coex_info()
2595 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x430); in ex_halbtc8723b1ant_display_coex_info()
2596 u32tmp[1] = btcoexist->btc_read_4byte(btcoexist, 0x434); in ex_halbtc8723b1ant_display_coex_info()
2597 u16tmp[0] = btcoexist->btc_read_2byte(btcoexist, 0x42a); in ex_halbtc8723b1ant_display_coex_info()
2598 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x456); in ex_halbtc8723b1ant_display_coex_info()
2603 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x778); in ex_halbtc8723b1ant_display_coex_info()
2604 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x6cc); in ex_halbtc8723b1ant_display_coex_info()
2605 u32tmp[1] = btcoexist->btc_read_4byte(btcoexist, 0x880); in ex_halbtc8723b1ant_display_coex_info()
2610 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x948); in ex_halbtc8723b1ant_display_coex_info()
2611 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x67); in ex_halbtc8723b1ant_display_coex_info()
2612 u8tmp[1] = btcoexist->btc_read_1byte(btcoexist, 0x765); in ex_halbtc8723b1ant_display_coex_info()
2617 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x92c); in ex_halbtc8723b1ant_display_coex_info()
2618 u32tmp[1] = btcoexist->btc_read_4byte(btcoexist, 0x930); in ex_halbtc8723b1ant_display_coex_info()
2619 u32tmp[2] = btcoexist->btc_read_4byte(btcoexist, 0x944); in ex_halbtc8723b1ant_display_coex_info()
2624 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x39); in ex_halbtc8723b1ant_display_coex_info()
2625 u8tmp[1] = btcoexist->btc_read_1byte(btcoexist, 0x40); in ex_halbtc8723b1ant_display_coex_info()
2626 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x4c); in ex_halbtc8723b1ant_display_coex_info()
2627 u8tmp[2] = btcoexist->btc_read_1byte(btcoexist, 0x64); in ex_halbtc8723b1ant_display_coex_info()
2634 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x550); in ex_halbtc8723b1ant_display_coex_info()
2635 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x522); in ex_halbtc8723b1ant_display_coex_info()
2639 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0xc50); in ex_halbtc8723b1ant_display_coex_info()
2640 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x49c); in ex_halbtc8723b1ant_display_coex_info()
2644 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0xda0); in ex_halbtc8723b1ant_display_coex_info()
2645 u32tmp[1] = btcoexist->btc_read_4byte(btcoexist, 0xda4); in ex_halbtc8723b1ant_display_coex_info()
2646 u32tmp[2] = btcoexist->btc_read_4byte(btcoexist, 0xda8); in ex_halbtc8723b1ant_display_coex_info()
2647 u32tmp[3] = btcoexist->btc_read_4byte(btcoexist, 0xcf0); in ex_halbtc8723b1ant_display_coex_info()
2649 u8tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0xa5b); in ex_halbtc8723b1ant_display_coex_info()
2650 u8tmp[1] = btcoexist->btc_read_1byte(btcoexist, 0xa5c); in ex_halbtc8723b1ant_display_coex_info()
2664 u32tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x6c0); in ex_halbtc8723b1ant_display_coex_info()
2665 u32tmp[1] = btcoexist->btc_read_4byte(btcoexist, 0x6c4); in ex_halbtc8723b1ant_display_coex_info()
2666 u32tmp[2] = btcoexist->btc_read_4byte(btcoexist, 0x6c8); in ex_halbtc8723b1ant_display_coex_info()
2678 halbtc8723b1ant_monitor_bt_ctr(btcoexist); in ex_halbtc8723b1ant_display_coex_info()
2680 btcoexist->btc_disp_dbg_msg(btcoexist, BTC_DBG_DISP_COEX_STATISTICS); in ex_halbtc8723b1ant_display_coex_info()
2683 void ex_halbtc8723b1ant_ips_notify(struct btc_coexist *btcoexist, u8 type) in ex_halbtc8723b1ant_ips_notify() argument
2685 if (btcoexist->manual_control || btcoexist->stop_coex_dm) in ex_halbtc8723b1ant_ips_notify()
2693 halbtc8723b1ant_SetAntPath(btcoexist, BTC_ANT_PATH_BT, in ex_halbtc8723b1ant_ips_notify()
2696 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 0); in ex_halbtc8723b1ant_ips_notify()
2697 halbtc8723b1ant_coex_table_with_type(btcoexist, in ex_halbtc8723b1ant_ips_notify()
2699 halbtc8723b1ant_wifi_off_hw_cfg(btcoexist); in ex_halbtc8723b1ant_ips_notify()
2705 halbtc8723b1ant_init_hw_config(btcoexist, false); in ex_halbtc8723b1ant_ips_notify()
2706 halbtc8723b1ant_init_coex_dm(btcoexist); in ex_halbtc8723b1ant_ips_notify()
2707 halbtc8723b1ant_query_bt_info(btcoexist); in ex_halbtc8723b1ant_ips_notify()
2711 void ex_halbtc8723b1ant_lps_notify(struct btc_coexist *btcoexist, u8 type) in ex_halbtc8723b1ant_lps_notify() argument
2713 if (btcoexist->manual_control || btcoexist->stop_coex_dm) in ex_halbtc8723b1ant_lps_notify()
2727 void ex_halbtc8723b1ant_scan_notify(struct btc_coexist *btcoexist, u8 type) in ex_halbtc8723b1ant_scan_notify() argument
2735 if (btcoexist->manual_control || btcoexist->stop_coex_dm || in ex_halbtc8723b1ant_scan_notify()
2736 btcoexist->bt_info.bt_disabled) in ex_halbtc8723b1ant_scan_notify()
2739 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); in ex_halbtc8723b1ant_scan_notify()
2740 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_CONNECTED, in ex_halbtc8723b1ant_scan_notify()
2743 halbtc8723b1ant_query_bt_info(btcoexist); in ex_halbtc8723b1ant_scan_notify()
2745 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_LINK_STATUS, in ex_halbtc8723b1ant_scan_notify()
2749 halbtc8723b1ant_limited_tx(btcoexist, NORMAL_EXEC, 0, 0, 0, 0); in ex_halbtc8723b1ant_scan_notify()
2750 halbtc8723b1ant_limited_rx(btcoexist, NORMAL_EXEC, false, in ex_halbtc8723b1ant_scan_notify()
2752 halbtc8723b1ant_action_wifi_multiport(btcoexist); in ex_halbtc8723b1ant_scan_notify()
2757 halbtc8723b1ant_action_bt_inquiry(btcoexist); in ex_halbtc8723b1ant_scan_notify()
2760 halbtc8723b1ant_action_hs(btcoexist); in ex_halbtc8723b1ant_scan_notify()
2768 btc8723b1ant_action_wifi_not_conn_scan(btcoexist); in ex_halbtc8723b1ant_scan_notify()
2770 btc8723b1ant_action_wifi_conn_scan(btcoexist); in ex_halbtc8723b1ant_scan_notify()
2775 btc8723b1ant_action_wifi_not_conn(btcoexist); in ex_halbtc8723b1ant_scan_notify()
2777 halbtc8723b1ant_action_wifi_connected(btcoexist); in ex_halbtc8723b1ant_scan_notify()
2781 void ex_halbtc8723b1ant_connect_notify(struct btc_coexist *btcoexist, u8 type) in ex_halbtc8723b1ant_connect_notify() argument
2789 if (btcoexist->manual_control || btcoexist->stop_coex_dm || in ex_halbtc8723b1ant_connect_notify()
2790 btcoexist->bt_info.bt_disabled) in ex_halbtc8723b1ant_connect_notify()
2793 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_LINK_STATUS, in ex_halbtc8723b1ant_connect_notify()
2797 halbtc8723b1ant_limited_tx(btcoexist, NORMAL_EXEC, 0, 0, 0, 0); in ex_halbtc8723b1ant_connect_notify()
2798 halbtc8723b1ant_limited_rx(btcoexist, NORMAL_EXEC, false, in ex_halbtc8723b1ant_connect_notify()
2800 halbtc8723b1ant_action_wifi_multiport(btcoexist); in ex_halbtc8723b1ant_connect_notify()
2804 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); in ex_halbtc8723b1ant_connect_notify()
2806 halbtc8723b1ant_action_bt_inquiry(btcoexist); in ex_halbtc8723b1ant_connect_notify()
2809 halbtc8723b1ant_action_hs(btcoexist); in ex_halbtc8723b1ant_connect_notify()
2816 btc8723b1ant_act_wifi_not_conn_asso_auth(btcoexist); in ex_halbtc8723b1ant_connect_notify()
2821 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_CONNECTED, in ex_halbtc8723b1ant_connect_notify()
2824 btc8723b1ant_action_wifi_not_conn(btcoexist); in ex_halbtc8723b1ant_connect_notify()
2826 halbtc8723b1ant_action_wifi_connected(btcoexist); in ex_halbtc8723b1ant_connect_notify()
2830 void ex_halbtc8723b1ant_media_status_notify(struct btc_coexist *btcoexist, in ex_halbtc8723b1ant_media_status_notify() argument
2837 if (btcoexist->manual_control || btcoexist->stop_coex_dm || in ex_halbtc8723b1ant_media_status_notify()
2838 btcoexist->bt_info.bt_disabled) in ex_halbtc8723b1ant_media_status_notify()
2849 btcoexist->btc_get(btcoexist, BTC_GET_U1_WIFI_CENTRAL_CHNL, in ex_halbtc8723b1ant_media_status_notify()
2856 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_BW, &wifi_bw); in ex_halbtc8723b1ant_media_status_notify()
2872 btcoexist->btc_fill_h2c(btcoexist, 0x66, 3, h2c_parameter); in ex_halbtc8723b1ant_media_status_notify()
2875 void ex_halbtc8723b1ant_special_packet_notify(struct btc_coexist *btcoexist, in ex_halbtc8723b1ant_special_packet_notify() argument
2884 if (btcoexist->manual_control || btcoexist->stop_coex_dm || in ex_halbtc8723b1ant_special_packet_notify()
2885 btcoexist->bt_info.bt_disabled) in ex_halbtc8723b1ant_special_packet_notify()
2888 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_LINK_STATUS, in ex_halbtc8723b1ant_special_packet_notify()
2892 halbtc8723b1ant_limited_tx(btcoexist, NORMAL_EXEC, 0, 0, 0, 0); in ex_halbtc8723b1ant_special_packet_notify()
2893 halbtc8723b1ant_limited_rx(btcoexist, NORMAL_EXEC, false, in ex_halbtc8723b1ant_special_packet_notify()
2895 halbtc8723b1ant_action_wifi_multiport(btcoexist); in ex_halbtc8723b1ant_special_packet_notify()
2901 btcoexist->btc_get(btcoexist, BTC_GET_BL_HS_OPERATION, &bt_hs_on); in ex_halbtc8723b1ant_special_packet_notify()
2903 halbtc8723b1ant_action_bt_inquiry(btcoexist); in ex_halbtc8723b1ant_special_packet_notify()
2906 halbtc8723b1ant_action_hs(btcoexist); in ex_halbtc8723b1ant_special_packet_notify()
2914 halbtc8723b1ant_action_wifi_connected_special_packet(btcoexist); in ex_halbtc8723b1ant_special_packet_notify()
2918 void ex_halbtc8723b1ant_bt_info_notify(struct btc_coexist *btcoexist, in ex_halbtc8723b1ant_bt_info_notify() argument
2964 btcoexist->btc_get(btcoexist, BTC_GET_BL_WIFI_CONNECTED, in ex_halbtc8723b1ant_bt_info_notify()
2967 ex_halbtc8723b1ant_media_status_notify(btcoexist, in ex_halbtc8723b1ant_bt_info_notify()
2970 ex_halbtc8723b1ant_media_status_notify(btcoexist, in ex_halbtc8723b1ant_bt_info_notify()
2975 if (!btcoexist->manual_control && in ex_halbtc8723b1ant_bt_info_notify()
2976 !btcoexist->stop_coex_dm) { in ex_halbtc8723b1ant_bt_info_notify()
2979 halbtc8723b1ant_ignore_wlan_act(btcoexist, in ex_halbtc8723b1ant_bt_info_notify()
2990 halbtc8723b1ant_bt_auto_report(btcoexist, FORCE_EXEC, in ex_halbtc8723b1ant_bt_info_notify()
3029 halbtc8723b1ant_update_bt_link_info(btcoexist); in ex_halbtc8723b1ant_bt_info_notify()
3065 btcoexist->btc_set(btcoexist, BTC_SET_BL_BT_TRAFFIC_BUSY, &bt_busy); in ex_halbtc8723b1ant_bt_info_notify()
3067 halbtc8723b1ant_run_coexist_mechanism(btcoexist); in ex_halbtc8723b1ant_bt_info_notify()
3070 void ex_halbtc8723b1ant_halt_notify(struct btc_coexist *btcoexist) in ex_halbtc8723b1ant_halt_notify() argument
3074 btcoexist->stop_coex_dm = true; in ex_halbtc8723b1ant_halt_notify()
3076 halbtc8723b1ant_SetAntPath(btcoexist, BTC_ANT_PATH_BT, false, true); in ex_halbtc8723b1ant_halt_notify()
3078 halbtc8723b1ant_wifi_off_hw_cfg(btcoexist); in ex_halbtc8723b1ant_halt_notify()
3079 halbtc8723b1ant_ignore_wlan_act(btcoexist, FORCE_EXEC, true); in ex_halbtc8723b1ant_halt_notify()
3081 halbtc8723b1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, in ex_halbtc8723b1ant_halt_notify()
3083 halbtc8723b1ant_ps_tdma(btcoexist, FORCE_EXEC, false, 0); in ex_halbtc8723b1ant_halt_notify()
3085 ex_halbtc8723b1ant_media_status_notify(btcoexist, BTC_MEDIA_DISCONNECT); in ex_halbtc8723b1ant_halt_notify()
3088 void ex_halbtc8723b1ant_pnp_notify(struct btc_coexist *btcoexist, u8 pnp_state) in ex_halbtc8723b1ant_pnp_notify() argument
3095 btcoexist->stop_coex_dm = true; in ex_halbtc8723b1ant_pnp_notify()
3096 halbtc8723b1ant_SetAntPath(btcoexist, BTC_ANT_PATH_BT, false, in ex_halbtc8723b1ant_pnp_notify()
3098 halbtc8723b1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, in ex_halbtc8723b1ant_pnp_notify()
3100 halbtc8723b1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 0); in ex_halbtc8723b1ant_pnp_notify()
3101 halbtc8723b1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 2); in ex_halbtc8723b1ant_pnp_notify()
3102 halbtc8723b1ant_wifi_off_hw_cfg(btcoexist); in ex_halbtc8723b1ant_pnp_notify()
3106 btcoexist->stop_coex_dm = false; in ex_halbtc8723b1ant_pnp_notify()
3107 halbtc8723b1ant_init_hw_config(btcoexist, false); in ex_halbtc8723b1ant_pnp_notify()
3108 halbtc8723b1ant_init_coex_dm(btcoexist); in ex_halbtc8723b1ant_pnp_notify()
3109 halbtc8723b1ant_query_bt_info(btcoexist); in ex_halbtc8723b1ant_pnp_notify()
3113 void ex_halbtc8723b1ant_coex_dm_reset(struct btc_coexist *btcoexist) in ex_halbtc8723b1ant_coex_dm_reset() argument
3118 halbtc8723b1ant_init_hw_config(btcoexist, false); in ex_halbtc8723b1ant_coex_dm_reset()
3119 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x1, 0xfffff, 0x0); in ex_halbtc8723b1ant_coex_dm_reset()
3120 btcoexist->btc_set_rf_reg(btcoexist, BTC_RF_A, 0x2, 0xfffff, 0x0); in ex_halbtc8723b1ant_coex_dm_reset()
3121 halbtc8723b1ant_init_coex_dm(btcoexist); in ex_halbtc8723b1ant_coex_dm_reset()
3124 void ex_halbtc8723b1ant_periodical(struct btc_coexist *btcoexist) in ex_halbtc8723b1ant_periodical() argument
3126 struct btc_board_info *board_info = &btcoexist->board_info; in ex_halbtc8723b1ant_periodical()
3127 struct btc_stack_info *stack_info = &btcoexist->stack_info; in ex_halbtc8723b1ant_periodical()
3146 btcoexist->btc_get(btcoexist, BTC_GET_U4_BT_PATCH_VER, in ex_halbtc8723b1ant_periodical()
3148 btcoexist->btc_get(btcoexist, BTC_GET_U4_WIFI_FW_VER, &fw_ver); in ex_halbtc8723b1ant_periodical()
3159 halbtc8723b1ant_query_bt_info(btcoexist); in ex_halbtc8723b1ant_periodical()
3160 halbtc8723b1ant_monitor_bt_ctr(btcoexist); in ex_halbtc8723b1ant_periodical()
3161 halbtc8723b1ant_monitor_bt_enable_disable(btcoexist); in ex_halbtc8723b1ant_periodical()
3163 if (btc8723b1ant_is_wifi_status_changed(btcoexist) || in ex_halbtc8723b1ant_periodical()
3165 halbtc8723b1ant_run_coexist_mechanism(btcoexist); in ex_halbtc8723b1ant_periodical()