Lines Matching full:coex

6 #include "coex.h"
40 struct rtw_coex *coex = &rtwdev->coex;
41 struct rtw_coex_stat *coex_stat = &coex->stat;
99 struct rtw_coex *coex = &rtwdev->coex;
100 struct rtw_coex_dm *coex_dm = &coex->dm;
104 if (!coex->under_5g && coex_dm->bt_status != COEX_BTSTATUS_NCON_IDLE) {
114 struct rtw_coex *coex = &rtwdev->coex;
115 struct rtw_coex_dm *coex_dm = &coex->dm;
116 struct rtw_coex_stat *coex_stat = &coex->stat;
150 struct rtw_coex *coex = &rtwdev->coex;
151 struct rtw_coex_stat *coex_stat = &coex->stat;
168 struct rtw_coex *coex = &rtwdev->coex;
169 struct rtw_coex_stat *coex_stat = &coex->stat;
171 if (coex->manual_control || coex->stop_dm)
208 struct rtw_coex *coex = &rtwdev->coex;
209 struct rtw_coex_stat *coex_stat = &coex->stat;
210 struct rtw_coex_dm *coex_dm = &coex->dm;
252 ieee80211_queue_delayed_work(rtwdev->hw, &coex->wl_ccklock_work,
260 struct rtw_coex *coex = &rtwdev->coex;
261 struct rtw_coex_stat *coex_stat = &coex->stat;
310 struct rtw_coex *coex = &rtwdev->coex;
311 struct rtw_coex_stat *coex_stat = &coex->stat;
369 struct rtw_coex *coex = &rtwdev->coex;
370 struct rtw_coex_stat *coex_stat = &coex->stat;
414 struct rtw_coex *coex = &rtwdev->coex;
415 struct rtw_coex_stat *coex_stat = &coex->stat;
416 struct rtw_coex_rfe *coex_rfe = &coex->rfe;
451 struct rtw_coex *coex = &rtwdev->coex;
452 struct rtw_coex_stat *coex_stat = &coex->stat;
469 struct rtw_coex *coex = &rtwdev->coex;
470 struct rtw_coex_stat *coex_stat = &coex->stat;
493 struct rtw_coex *coex = &rtwdev->coex;
494 struct rtw_coex_stat *coex_stat = &coex->stat;
495 struct rtw_coex_dm *coex_dm = &coex->dm;
516 &coex->bt_reenable_work,
528 struct rtw_coex *coex = &rtwdev->coex;
529 struct rtw_coex_stat *coex_stat = &coex->stat;
530 struct rtw_coex_dm *coex_dm = &coex->dm;
549 &coex->wl_remain_work,
602 coex->under_5g = is_5G;
618 struct rtw_coex *coex = &rtwdev->coex;
626 skb_queue_tail(&coex->queue, skb);
627 wake_up(&coex->wait);
633 struct rtw_coex *coex = &rtwdev->coex;
640 if (!wait_event_timeout(coex->wait, !skb_queue_empty(&coex->queue),
642 rtw_err(rtwdev, "coex request time out\n");
646 skb_resp = skb_dequeue(&coex->queue);
648 rtw_err(rtwdev, "failed to get coex info response\n");
709 struct rtw_coex *coex = &rtwdev->coex;
710 struct rtw_coex_stat *coex_stat = &coex->stat;
711 struct rtw_coex_dm *coex_dm = &coex->dm;
810 struct rtw_coex_dm *coex_dm = &rtwdev->coex.dm;
811 struct rtw_coex_stat *coex_stat = &rtwdev->coex.stat;
858 struct rtw_coex *coex = &rtwdev->coex;
859 struct rtw_coex_dm *coex_dm = &coex->dm;
871 struct rtw_coex *coex = &rtwdev->coex;
872 struct rtw_coex_dm *coex_dm = &coex->dm;
893 struct rtw_coex *coex = &rtwdev->coex;
894 struct rtw_coex_stat *coex_stat = &coex->stat;
897 if (coex->freerun && coex_stat->cnt_wl[COEX_CNT_WL_SCANAP] <= 5)
965 struct rtw_coex_stat *coex_stat = &rtwdev->coex.stat;
1018 struct rtw_coex *coex = &rtwdev->coex;
1019 struct rtw_coex_stat *coex_stat = &coex->stat;
1047 struct rtw_coex *coex = &rtwdev->coex;
1048 struct rtw_coex_dm *coex_dm = &coex->dm;
1068 struct rtw_coex *coex = &rtwdev->coex;
1069 struct rtw_coex_dm *coex_dm = &coex->dm;
1071 struct rtw_coex_stat *coex_stat = &coex->stat;
1095 struct rtw_coex *coex = &rtwdev->coex;
1097 if (coex->manual_control || coex->stop_dm)
1106 struct rtw_coex *coex = &rtwdev->coex;
1107 struct rtw_coex_stat *coex_stat = &coex->stat;
1138 struct rtw_coex *coex = &rtwdev->coex;
1139 struct rtw_coex_dm *coex_dm = &coex->dm;
1140 struct rtw_coex_stat *coex_stat = &coex->stat;
1196 struct rtw_coex *coex = &rtwdev->coex;
1197 struct rtw_coex_dm *coex_dm = &coex->dm;
1198 struct rtw_coex_stat *coex_stat = &coex->stat;
1255 rtw_dbg(rtwdev, RTW_DBG_COEX, "[BTCoex], coex tdma type(%s, %d)\n",
1261 struct rtw_coex *coex = &rtwdev->coex;
1262 struct rtw_coex_stat *coex_stat = &coex->stat;
1263 struct rtw_coex_rfe *coex_rfe = &coex->rfe;
1264 struct rtw_coex_dm *coex_dm = &coex->dm;
1461 struct rtw_coex *coex = &rtwdev->coex;
1462 struct rtw_coex_stat *coex_stat = &coex->stat;
1552 struct rtw_coex *coex = &rtwdev->coex;
1553 struct rtw_coex_stat *coex_stat = &coex->stat;
1554 struct rtw_coex_dm *coex_dm = &coex->dm;
1564 coex->freerun = true;
1647 struct rtw_coex *coex = &rtwdev->coex;
1648 struct rtw_coex_stat *coex_stat = &coex->stat;
1687 struct rtw_coex *coex = &rtwdev->coex;
1688 struct rtw_coex_stat *coex_stat = &coex->stat;
1689 struct rtw_coex_dm *coex_dm = &coex->dm;
1691 struct rtw_coex_rfe *coex_rfe = &coex->rfe;
1756 struct rtw_coex *coex = &rtwdev->coex;
1757 struct rtw_coex_stat *coex_stat = &coex->stat;
1856 struct rtw_coex *coex = &rtwdev->coex;
1857 struct rtw_coex_stat *coex_stat = &coex->stat;
1859 struct rtw_coex_dm *coex_dm = &coex->dm;
1904 struct rtw_coex *coex = &rtwdev->coex;
1905 struct rtw_coex_stat *coex_stat = &coex->stat;
1935 struct rtw_coex *coex = &rtwdev->coex;
1936 struct rtw_coex_stat *coex_stat = &coex->stat;
2018 struct rtw_coex *coex = &rtwdev->coex;
2019 struct rtw_coex_stat *coex_stat = &coex->stat;
2020 struct rtw_coex_dm *coex_dm = &coex->dm;
2060 struct rtw_coex *coex = &rtwdev->coex;
2061 struct rtw_coex_stat *coex_stat = &coex->stat;
2099 struct rtw_coex *coex = &rtwdev->coex;
2100 struct rtw_coex_stat *coex_stat = &coex->stat;
2136 struct rtw_coex *coex = &rtwdev->coex;
2137 struct rtw_coex_stat *coex_stat = &coex->stat;
2138 struct rtw_coex_dm *coex_dm = &coex->dm;
2193 struct rtw_coex *coex = &rtwdev->coex;
2194 struct rtw_coex_stat *coex_stat = &coex->stat;
2250 struct rtw_coex *coex = &rtwdev->coex;
2251 struct rtw_coex_stat *coex_stat = &coex->stat;
2285 struct rtw_coex *coex = &rtwdev->coex;
2286 struct rtw_coex_stat *coex_stat = &coex->stat;
2319 struct rtw_coex *coex = &rtwdev->coex;
2321 struct rtw_coex_stat *coex_stat = &coex->stat;
2375 struct rtw_coex *coex = &rtwdev->coex;
2377 struct rtw_coex_stat *coex_stat = &coex->stat;
2380 if (coex->under_5g)
2414 struct rtw_coex *coex = &rtwdev->coex;
2415 struct rtw_coex_stat *coex_stat = &coex->stat;
2477 struct rtw_coex *coex = &rtwdev->coex;
2478 struct rtw_coex_stat *coex_stat = &coex->stat;
2531 struct rtw_coex *coex = &rtwdev->coex;
2532 struct rtw_coex_dm *coex_dm = &coex->dm;
2533 struct rtw_coex_stat *coex_stat = &coex->stat;
2551 if (coex->manual_control) {
2557 if (coex->stop_dm) {
2559 "[BTCoex], return for Stop Coex DM!!\n");
2569 if (coex->freeze && coex_dm->reason == COEX_RSN_BTINFO &&
2577 coex->freerun = false;
2579 /* Pure-5G Coex Process */
2580 if (coex->under_5g) {
2631 if (coex_stat->wl_linkscan_proc && !coex->freerun) {
2663 struct rtw_coex *coex = &rtwdev->coex;
2664 struct rtw_coex_stat *coex_stat = &coex->stat;
2665 struct rtw_coex_dm *coex_dm = &coex->dm;
2690 struct rtw_coex *coex = &rtwdev->coex;
2691 struct rtw_coex_stat *coex_stat = &coex->stat;
2717 if (coex->wl_rf_off) {
2720 coex->stop_dm = true;
2728 coex->stop_dm = true;
2733 coex->stop_dm = false;
2734 coex->freeze = true;
2745 struct rtw_coex *coex = &rtwdev->coex;
2750 coex->stop_dm = true;
2751 coex->wl_rf_off = false;
2781 struct rtw_coex *coex = &rtwdev->coex;
2782 struct rtw_coex_stat *coex_stat = &coex->stat;
2784 if (coex->manual_control || coex->stop_dm)
2810 struct rtw_coex *coex = &rtwdev->coex;
2811 struct rtw_coex_stat *coex_stat = &coex->stat;
2813 if (coex->manual_control || coex->stop_dm)
2848 struct rtw_coex *coex = &rtwdev->coex;
2849 struct rtw_coex_stat *coex_stat = &coex->stat;
2851 if (coex->manual_control || coex->stop_dm)
2854 coex->freeze = false;
2886 struct rtw_coex *coex = &rtwdev->coex;
2888 if (coex->manual_control || coex->stop_dm)
2912 struct rtw_coex *coex = &rtwdev->coex;
2913 struct rtw_coex_stat *coex_stat = &coex->stat;
2915 if (coex->manual_control || coex->stop_dm)
2938 &coex->wl_connecting_work, 2 * HZ);
2950 coex->freeze = true;
2951 ieee80211_queue_delayed_work(rtwdev->hw, &coex->defreeze_work,
2955 coex->freeze = false;
2966 struct rtw_coex *coex = &rtwdev->coex;
2967 struct rtw_coex_stat *coex_stat = &coex->stat;
2969 if (coex->manual_control || coex->stop_dm)
3005 struct rtw_coex *coex = &rtwdev->coex;
3006 struct rtw_coex_stat *coex_stat = &coex->stat;
3007 struct rtw_coex_dm *coex_dm = &coex->dm;
3068 &coex->bt_reenable_work,
3114 cancel_delayed_work_sync(&coex->bt_remain_work);
3121 &coex->bt_remain_work,
3172 /* unit: % (value-100 to translate to unit: dBm in coex info) */
3196 &coex->bt_relink_work,
3217 &coex->bt_multi_link_remain_work,
3273 struct rtw_coex *coex = &rtwdev->coex;
3274 struct rtw_coex_stat *coex_stat = &coex->stat;
3363 struct rtw_coex *coex = &rtwdev->coex;
3364 struct rtw_coex_stat *coex_stat = &coex->stat;
3397 struct rtw_coex *coex = &rtwdev->coex;
3398 struct rtw_coex_stat *coex_stat = &coex->stat;
3433 struct rtw_coex_stat *coex_stat = &rtwdev->coex.stat;
3445 coex.bt_relink_work.work);
3446 struct rtw_coex_stat *coex_stat = &rtwdev->coex.stat;
3457 coex.bt_reenable_work.work);
3458 struct rtw_coex_stat *coex_stat = &rtwdev->coex.stat;
3468 coex.defreeze_work.work);
3469 struct rtw_coex *coex = &rtwdev->coex;
3470 struct rtw_coex_stat *coex_stat = &rtwdev->coex.stat;
3473 coex->freeze = false;
3482 coex.wl_remain_work.work);
3483 struct rtw_coex_stat *coex_stat = &rtwdev->coex.stat;
3494 coex.bt_remain_work.work);
3495 struct rtw_coex_stat *coex_stat = &rtwdev->coex.stat;
3506 coex.wl_connecting_work.work);
3507 struct rtw_coex_stat *coex_stat = &rtwdev->coex.stat;
3519 coex.bt_multi_link_remain_work.work);
3520 struct rtw_coex_stat *coex_stat = &rtwdev->coex.stat;
3530 coex.wl_ccklock_work.work);
3531 struct rtw_coex_stat *coex_stat = &rtwdev->coex.stat;
3914 struct rtw_coex *coex = &rtwdev->coex;
3915 struct rtw_coex_stat *coex_stat = &coex->stat;
3916 struct rtw_coex_dm *coex_dm = &coex->dm;
3960 if (coex->manual_control) {
3964 } else if (coex->stop_dm) {
3965 seq_puts(m, "============[Coex is STOPPED]============\n");
3968 } else if (coex->freeze) {
3978 "Coex Ver/ BT Dez/ BT Rpt",
4069 if (coex->manual_control) {
4087 "Coex Mode/Free Run/Timer base",
4089 coex->freerun ? "Yes" : "No",
4130 "LTE Coex/ Path Owner",