Lines Matching full:coex

6 #include "coex.h"
40 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_limited_tx() local
41 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_limited_tx()
99 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_limited_wl() local
100 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_limited_wl()
104 if (!coex->under_5g && coex_dm->bt_status != COEX_BTSTATUS_NCON_IDLE) { in rtw_coex_limited_wl()
114 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_freerun_check() local
115 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_freerun_check()
116 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_freerun_check()
150 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_wl_slot_extend() local
151 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_wl_slot_extend()
168 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_wl_ccklock_action() local
169 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_wl_ccklock_action()
171 if (coex->manual_control || coex->stop_dm) in rtw_coex_wl_ccklock_action()
208 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_wl_ccklock_detect() local
209 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_wl_ccklock_detect()
210 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_wl_ccklock_detect()
252 ieee80211_queue_delayed_work(rtwdev->hw, &coex->wl_ccklock_work, in rtw_coex_wl_ccklock_detect()
260 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_wl_noisy_detect() local
261 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_wl_noisy_detect()
310 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_tdma_timer_base() local
311 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_tdma_timer_base()
369 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_write_scbd() local
370 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_write_scbd()
414 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_check_rfk() local
415 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_check_rfk()
416 struct rtw_coex_rfe *coex_rfe = &coex->rfe; in rtw_coex_check_rfk()
451 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_query_bt_info() local
452 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_query_bt_info()
469 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_monitor_bt_ctr() local
470 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_monitor_bt_ctr()
493 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_monitor_bt_enable() local
494 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_monitor_bt_enable()
495 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_monitor_bt_enable()
516 &coex->bt_reenable_work, in rtw_coex_monitor_bt_enable()
528 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_update_wl_link_info() local
529 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_update_wl_link_info()
530 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_update_wl_link_info()
549 &coex->wl_remain_work, in rtw_coex_update_wl_link_info()
602 coex->under_5g = is_5G; in rtw_coex_update_wl_link_info()
618 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_info_response() local
626 skb_queue_tail(&coex->queue, skb); in rtw_coex_info_response()
627 wake_up(&coex->wait); in rtw_coex_info_response()
633 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_info_request() local
640 if (!wait_event_timeout(coex->wait, !skb_queue_empty(&coex->queue), in rtw_coex_info_request()
642 rtw_err(rtwdev, "coex request time out\n"); in rtw_coex_info_request()
646 skb_resp = skb_dequeue(&coex->queue); in rtw_coex_info_request()
648 rtw_err(rtwdev, "failed to get coex info response\n"); in rtw_coex_info_request()
709 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_update_bt_link_info() local
710 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_update_bt_link_info()
711 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_update_bt_link_info()
810 struct rtw_coex_dm *coex_dm = &rtwdev->coex.dm; in rtw_coex_update_wl_ch_info()
811 struct rtw_coex_stat *coex_stat = &rtwdev->coex.stat; in rtw_coex_update_wl_ch_info()
858 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_set_bt_tx_power() local
859 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_set_bt_tx_power()
871 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_set_bt_rx_gain() local
872 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_set_bt_rx_gain()
893 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_set_rf_para() local
894 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_set_rf_para()
897 if (coex->freerun && coex_stat->cnt_wl[COEX_CNT_WL_SCANAP] <= 5) in rtw_coex_set_rf_para()
965 struct rtw_coex_stat *coex_stat = &rtwdev->coex.stat; in rtw_coex_mimo_ps()
1018 struct rtw_coex *coex = &rtwdev->coex; in rtw_btc_wltoggle_table_b() local
1019 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_btc_wltoggle_table_b()
1047 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_set_table() local
1048 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_set_table()
1068 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_table() local
1069 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_table()
1071 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_table()
1095 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_ignore_wlan_act() local
1097 if (coex->manual_control || coex->stop_dm) in rtw_coex_ignore_wlan_act()
1106 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_power_save_state() local
1107 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_power_save_state()
1138 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_set_tdma() local
1139 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_set_tdma()
1140 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_set_tdma()
1196 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_tdma() local
1197 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_tdma()
1198 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_tdma()
1255 rtw_dbg(rtwdev, RTW_DBG_COEX, "[BTCoex], coex tdma type(%s, %d)\n", in rtw_coex_tdma()
1261 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_set_ant_path() local
1262 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_set_ant_path()
1263 struct rtw_coex_rfe *coex_rfe = &coex->rfe; in rtw_coex_set_ant_path()
1264 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_set_ant_path()
1461 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_algorithm() local
1462 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_algorithm()
1552 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_action_freerun() local
1553 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_action_freerun()
1554 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_action_freerun()
1564 coex->freerun = true; in rtw_coex_action_freerun()
1647 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_action_bt_relink() local
1648 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_action_bt_relink()
1687 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_action_bt_idle() local
1688 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_action_bt_idle()
1689 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_action_bt_idle()
1691 struct rtw_coex_rfe *coex_rfe = &coex->rfe; in rtw_coex_action_bt_idle()
1756 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_action_bt_inquiry() local
1757 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_action_bt_inquiry()
1856 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_action_bt_game_hid() local
1857 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_action_bt_game_hid()
1859 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_action_bt_game_hid()
1904 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_action_bt_hfp() local
1905 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_action_bt_hfp()
1935 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_action_bt_hid() local
1936 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_action_bt_hid()
2018 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_action_bt_a2dp() local
2019 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_action_bt_a2dp()
2020 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_action_bt_a2dp()
2060 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_action_bt_a2dpsink() local
2061 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_action_bt_a2dpsink()
2099 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_action_bt_pan() local
2100 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_action_bt_pan()
2136 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_action_bt_a2dp_hid() local
2137 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_action_bt_a2dp_hid()
2138 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_action_bt_a2dp_hid()
2193 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_action_bt_a2dp_pan() local
2194 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_action_bt_a2dp_pan()
2250 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_action_bt_pan_hid() local
2251 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_action_bt_pan_hid()
2285 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_action_bt_a2dp_pan_hid() local
2286 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_action_bt_a2dp_pan_hid()
2319 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_action_wl_under5g() local
2321 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_action_wl_under5g()
2375 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_action_wl_native_lps() local
2377 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_action_wl_native_lps()
2380 if (coex->under_5g) in rtw_coex_action_wl_native_lps()
2414 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_action_wl_linkscan() local
2415 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_action_wl_linkscan()
2477 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_action_wl_connected() local
2478 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_action_wl_connected()
2531 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_run_coex() local
2532 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_run_coex()
2533 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_run_coex()
2551 if (coex->manual_control) { in rtw_coex_run_coex()
2557 if (coex->stop_dm) { in rtw_coex_run_coex()
2559 "[BTCoex], return for Stop Coex DM!!\n"); in rtw_coex_run_coex()
2569 if (coex->freeze && coex_dm->reason == COEX_RSN_BTINFO && in rtw_coex_run_coex()
2577 coex->freerun = false; in rtw_coex_run_coex()
2579 /* Pure-5G Coex Process */ in rtw_coex_run_coex()
2580 if (coex->under_5g) { in rtw_coex_run_coex()
2631 if (coex_stat->wl_linkscan_proc && !coex->freerun) { in rtw_coex_run_coex()
2663 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_init_coex_var() local
2664 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_init_coex_var()
2665 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_init_coex_var()
2690 struct rtw_coex *coex = &rtwdev->coex; in __rtw_coex_init_hw_config() local
2691 struct rtw_coex_stat *coex_stat = &coex->stat; in __rtw_coex_init_hw_config()
2717 if (coex->wl_rf_off) { in __rtw_coex_init_hw_config()
2720 coex->stop_dm = true; in __rtw_coex_init_hw_config()
2728 coex->stop_dm = true; in __rtw_coex_init_hw_config()
2733 coex->stop_dm = false; in __rtw_coex_init_hw_config()
2734 coex->freeze = true; in __rtw_coex_init_hw_config()
2745 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_power_on_setting() local
2750 coex->stop_dm = true; in rtw_coex_power_on_setting()
2751 coex->wl_rf_off = false; in rtw_coex_power_on_setting()
2781 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_ips_notify() local
2782 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_ips_notify()
2784 if (coex->manual_control || coex->stop_dm) in rtw_coex_ips_notify()
2810 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_lps_notify() local
2811 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_lps_notify()
2813 if (coex->manual_control || coex->stop_dm) in rtw_coex_lps_notify()
2848 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_scan_notify() local
2849 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_scan_notify()
2851 if (coex->manual_control || coex->stop_dm) in rtw_coex_scan_notify()
2854 coex->freeze = false; in rtw_coex_scan_notify()
2886 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_switchband_notify() local
2888 if (coex->manual_control || coex->stop_dm) in rtw_coex_switchband_notify()
2912 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_connect_notify() local
2913 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_connect_notify()
2915 if (coex->manual_control || coex->stop_dm) in rtw_coex_connect_notify()
2938 &coex->wl_connecting_work, 2 * HZ); in rtw_coex_connect_notify()
2950 coex->freeze = true; in rtw_coex_connect_notify()
2951 ieee80211_queue_delayed_work(rtwdev->hw, &coex->defreeze_work, in rtw_coex_connect_notify()
2955 coex->freeze = false; in rtw_coex_connect_notify()
2966 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_media_status_notify() local
2967 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_media_status_notify()
2969 if (coex->manual_control || coex->stop_dm) in rtw_coex_media_status_notify()
3005 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_bt_info_notify() local
3006 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_bt_info_notify()
3007 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_bt_info_notify()
3068 &coex->bt_reenable_work, in rtw_coex_bt_info_notify()
3114 cancel_delayed_work_sync(&coex->bt_remain_work); in rtw_coex_bt_info_notify()
3121 &coex->bt_remain_work, in rtw_coex_bt_info_notify()
3172 /* unit: % (value-100 to translate to unit: dBm in coex info) */ in rtw_coex_bt_info_notify()
3196 &coex->bt_relink_work, in rtw_coex_bt_info_notify()
3217 &coex->bt_multi_link_remain_work, in rtw_coex_bt_info_notify()
3273 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_bt_hid_info_notify() local
3274 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_bt_hid_info_notify()
3363 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_query_bt_hid_list() local
3364 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_query_bt_hid_list()
3397 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_wl_fwdbginfo_notify() local
3398 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_wl_fwdbginfo_notify()
3433 struct rtw_coex_stat *coex_stat = &rtwdev->coex.stat; in rtw_coex_wl_status_check()
3445 coex.bt_relink_work.work); in rtw_coex_bt_relink_work()
3446 struct rtw_coex_stat *coex_stat = &rtwdev->coex.stat; in rtw_coex_bt_relink_work()
3457 coex.bt_reenable_work.work); in rtw_coex_bt_reenable_work()
3458 struct rtw_coex_stat *coex_stat = &rtwdev->coex.stat; in rtw_coex_bt_reenable_work()
3468 coex.defreeze_work.work); in rtw_coex_defreeze_work()
3469 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_defreeze_work() local
3470 struct rtw_coex_stat *coex_stat = &rtwdev->coex.stat; in rtw_coex_defreeze_work()
3473 coex->freeze = false; in rtw_coex_defreeze_work()
3482 coex.wl_remain_work.work); in rtw_coex_wl_remain_work()
3483 struct rtw_coex_stat *coex_stat = &rtwdev->coex.stat; in rtw_coex_wl_remain_work()
3494 coex.bt_remain_work.work); in rtw_coex_bt_remain_work()
3495 struct rtw_coex_stat *coex_stat = &rtwdev->coex.stat; in rtw_coex_bt_remain_work()
3506 coex.wl_connecting_work.work); in rtw_coex_wl_connecting_work()
3507 struct rtw_coex_stat *coex_stat = &rtwdev->coex.stat; in rtw_coex_wl_connecting_work()
3519 coex.bt_multi_link_remain_work.work); in rtw_coex_bt_multi_link_remain_work()
3520 struct rtw_coex_stat *coex_stat = &rtwdev->coex.stat; in rtw_coex_bt_multi_link_remain_work()
3530 coex.wl_ccklock_work.work); in rtw_coex_wl_ccklock_work()
3531 struct rtw_coex_stat *coex_stat = &rtwdev->coex.stat; in rtw_coex_wl_ccklock_work()
3914 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_display_coex_info() local
3915 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_display_coex_info()
3916 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_display_coex_info()
3958 if (coex->manual_control) { in rtw_coex_display_coex_info()
3962 } else if (coex->stop_dm) { in rtw_coex_display_coex_info()
3963 seq_puts(m, "============[Coex is STOPPED]============\n"); in rtw_coex_display_coex_info()
3966 } else if (coex->freeze) { in rtw_coex_display_coex_info()
3976 "Coex Ver/ BT Dez/ BT Rpt", in rtw_coex_display_coex_info()
4067 if (coex->manual_control) { in rtw_coex_display_coex_info()
4085 "Coex Mode/Free Run/Timer base", in rtw_coex_display_coex_info()
4087 coex->freerun ? "Yes" : "No", in rtw_coex_display_coex_info()
4128 "LTE Coex/ Path Owner", in rtw_coex_display_coex_info()