Lines Matching refs:coex
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
636 mutex_lock(&coex->mutex); in rtw_coex_info_request()
640 if (!wait_event_timeout(coex->wait, !skb_queue_empty(&coex->queue), in rtw_coex_info_request()
646 skb_resp = skb_dequeue(&coex->queue); in rtw_coex_info_request()
653 mutex_unlock(&coex->mutex); in rtw_coex_info_request()
710 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_update_bt_link_info() local
711 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_update_bt_link_info()
712 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_update_bt_link_info()
811 struct rtw_coex_dm *coex_dm = &rtwdev->coex.dm; in rtw_coex_update_wl_ch_info()
812 struct rtw_coex_stat *coex_stat = &rtwdev->coex.stat; in rtw_coex_update_wl_ch_info()
859 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_set_bt_tx_power() local
860 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_set_bt_tx_power()
872 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_set_bt_rx_gain() local
873 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_set_bt_rx_gain()
894 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_set_rf_para() local
895 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_set_rf_para()
898 if (coex->freerun && coex_stat->cnt_wl[COEX_CNT_WL_SCANAP] <= 5) in rtw_coex_set_rf_para()
966 struct rtw_coex_stat *coex_stat = &rtwdev->coex.stat; in rtw_coex_mimo_ps()
1019 struct rtw_coex *coex = &rtwdev->coex; in rtw_btc_wltoggle_table_b() local
1020 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_btc_wltoggle_table_b()
1048 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_set_table() local
1049 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_set_table()
1069 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_table() local
1070 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_table()
1072 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_table()
1096 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_ignore_wlan_act() local
1098 if (coex->manual_control || coex->stop_dm) in rtw_coex_ignore_wlan_act()
1107 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_power_save_state() local
1108 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_power_save_state()
1139 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_set_tdma() local
1140 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_set_tdma()
1141 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_set_tdma()
1197 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_tdma() local
1198 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_tdma()
1199 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_tdma()
1262 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_set_ant_path() local
1263 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_set_ant_path()
1264 struct rtw_coex_rfe *coex_rfe = &coex->rfe; in rtw_coex_set_ant_path()
1265 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_set_ant_path()
1462 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_algorithm() local
1463 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_algorithm()
1553 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_action_freerun() local
1554 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_action_freerun()
1555 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_action_freerun()
1565 coex->freerun = true; in rtw_coex_action_freerun()
1648 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_action_bt_relink() local
1649 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_action_bt_relink()
1688 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_action_bt_idle() local
1689 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_action_bt_idle()
1690 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_action_bt_idle()
1692 struct rtw_coex_rfe *coex_rfe = &coex->rfe; in rtw_coex_action_bt_idle()
1757 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_action_bt_inquiry() local
1758 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_action_bt_inquiry()
1857 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_action_bt_game_hid() local
1858 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_action_bt_game_hid()
1860 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_action_bt_game_hid()
1905 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_action_bt_hfp() local
1906 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_action_bt_hfp()
1936 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_action_bt_hid() local
1937 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_action_bt_hid()
2019 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_action_bt_a2dp() local
2020 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_action_bt_a2dp()
2021 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_action_bt_a2dp()
2061 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_action_bt_a2dpsink() local
2062 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_action_bt_a2dpsink()
2100 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_action_bt_pan() local
2101 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_action_bt_pan()
2137 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_action_bt_a2dp_hid() local
2138 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_action_bt_a2dp_hid()
2139 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_action_bt_a2dp_hid()
2194 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_action_bt_a2dp_pan() local
2195 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_action_bt_a2dp_pan()
2251 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_action_bt_pan_hid() local
2252 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_action_bt_pan_hid()
2286 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_action_bt_a2dp_pan_hid() local
2287 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_action_bt_a2dp_pan_hid()
2320 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_action_wl_under5g() local
2322 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_action_wl_under5g()
2376 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_action_wl_native_lps() local
2378 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_action_wl_native_lps()
2381 if (coex->under_5g) in rtw_coex_action_wl_native_lps()
2415 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_action_wl_linkscan() local
2416 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_action_wl_linkscan()
2478 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_action_wl_connected() local
2479 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_action_wl_connected()
2532 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_run_coex() local
2533 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_run_coex()
2534 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_run_coex()
2552 if (coex->manual_control) { in rtw_coex_run_coex()
2558 if (coex->stop_dm) { in rtw_coex_run_coex()
2570 if (coex->freeze && coex_dm->reason == COEX_RSN_BTINFO && in rtw_coex_run_coex()
2578 coex->freerun = false; in rtw_coex_run_coex()
2581 if (coex->under_5g) { in rtw_coex_run_coex()
2632 if (coex_stat->wl_linkscan_proc && !coex->freerun) { in rtw_coex_run_coex()
2664 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_init_coex_var() local
2665 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_init_coex_var()
2666 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_init_coex_var()
2691 struct rtw_coex *coex = &rtwdev->coex; in __rtw_coex_init_hw_config() local
2692 struct rtw_coex_stat *coex_stat = &coex->stat; in __rtw_coex_init_hw_config()
2718 if (coex->wl_rf_off) { in __rtw_coex_init_hw_config()
2721 coex->stop_dm = true; in __rtw_coex_init_hw_config()
2729 coex->stop_dm = true; in __rtw_coex_init_hw_config()
2734 coex->stop_dm = false; in __rtw_coex_init_hw_config()
2735 coex->freeze = true; in __rtw_coex_init_hw_config()
2746 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_power_on_setting() local
2751 coex->stop_dm = true; in rtw_coex_power_on_setting()
2752 coex->wl_rf_off = false; in rtw_coex_power_on_setting()
2782 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_ips_notify() local
2783 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_ips_notify()
2785 if (coex->manual_control || coex->stop_dm) in rtw_coex_ips_notify()
2811 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_lps_notify() local
2812 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_lps_notify()
2814 if (coex->manual_control || coex->stop_dm) in rtw_coex_lps_notify()
2849 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_scan_notify() local
2850 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_scan_notify()
2852 if (coex->manual_control || coex->stop_dm) in rtw_coex_scan_notify()
2855 coex->freeze = false; in rtw_coex_scan_notify()
2887 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_switchband_notify() local
2889 if (coex->manual_control || coex->stop_dm) in rtw_coex_switchband_notify()
2913 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_connect_notify() local
2914 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_connect_notify()
2916 if (coex->manual_control || coex->stop_dm) in rtw_coex_connect_notify()
2939 &coex->wl_connecting_work, 2 * HZ); in rtw_coex_connect_notify()
2951 coex->freeze = true; in rtw_coex_connect_notify()
2952 ieee80211_queue_delayed_work(rtwdev->hw, &coex->defreeze_work, in rtw_coex_connect_notify()
2956 coex->freeze = false; in rtw_coex_connect_notify()
2967 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_media_status_notify() local
2968 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_media_status_notify()
2970 if (coex->manual_control || coex->stop_dm) in rtw_coex_media_status_notify()
3006 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_bt_info_notify() local
3007 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_bt_info_notify()
3008 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_bt_info_notify()
3069 &coex->bt_reenable_work, in rtw_coex_bt_info_notify()
3115 cancel_delayed_work_sync(&coex->bt_remain_work); in rtw_coex_bt_info_notify()
3122 &coex->bt_remain_work, in rtw_coex_bt_info_notify()
3197 &coex->bt_relink_work, in rtw_coex_bt_info_notify()
3218 &coex->bt_multi_link_remain_work, in rtw_coex_bt_info_notify()
3274 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_bt_hid_info_notify() local
3275 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_bt_hid_info_notify()
3364 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_query_bt_hid_list() local
3365 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_query_bt_hid_list()
3398 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_wl_fwdbginfo_notify() local
3399 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_wl_fwdbginfo_notify()
3434 struct rtw_coex_stat *coex_stat = &rtwdev->coex.stat; in rtw_coex_wl_status_check()
3446 coex.bt_relink_work.work); in rtw_coex_bt_relink_work()
3447 struct rtw_coex_stat *coex_stat = &rtwdev->coex.stat; in rtw_coex_bt_relink_work()
3458 coex.bt_reenable_work.work); in rtw_coex_bt_reenable_work()
3459 struct rtw_coex_stat *coex_stat = &rtwdev->coex.stat; in rtw_coex_bt_reenable_work()
3469 coex.defreeze_work.work); in rtw_coex_defreeze_work()
3470 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_defreeze_work() local
3471 struct rtw_coex_stat *coex_stat = &rtwdev->coex.stat; in rtw_coex_defreeze_work()
3474 coex->freeze = false; in rtw_coex_defreeze_work()
3483 coex.wl_remain_work.work); in rtw_coex_wl_remain_work()
3484 struct rtw_coex_stat *coex_stat = &rtwdev->coex.stat; in rtw_coex_wl_remain_work()
3495 coex.bt_remain_work.work); in rtw_coex_bt_remain_work()
3496 struct rtw_coex_stat *coex_stat = &rtwdev->coex.stat; in rtw_coex_bt_remain_work()
3507 coex.wl_connecting_work.work); in rtw_coex_wl_connecting_work()
3508 struct rtw_coex_stat *coex_stat = &rtwdev->coex.stat; in rtw_coex_wl_connecting_work()
3520 coex.bt_multi_link_remain_work.work); in rtw_coex_bt_multi_link_remain_work()
3521 struct rtw_coex_stat *coex_stat = &rtwdev->coex.stat; in rtw_coex_bt_multi_link_remain_work()
3531 coex.wl_ccklock_work.work); in rtw_coex_wl_ccklock_work()
3532 struct rtw_coex_stat *coex_stat = &rtwdev->coex.stat; in rtw_coex_wl_ccklock_work()
3915 struct rtw_coex *coex = &rtwdev->coex; in rtw_coex_display_coex_info() local
3916 struct rtw_coex_stat *coex_stat = &coex->stat; in rtw_coex_display_coex_info()
3917 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_display_coex_info()
3959 if (coex->manual_control) { in rtw_coex_display_coex_info()
3963 } else if (coex->stop_dm) { in rtw_coex_display_coex_info()
3967 } else if (coex->freeze) { in rtw_coex_display_coex_info()
4068 if (coex->manual_control) { in rtw_coex_display_coex_info()
4088 coex->freerun ? "Yes" : "No", in rtw_coex_display_coex_info()