| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8822cs/hal/btc/ |
| H A D | halbtccommon.c | 51 struct btc_coex_sta *coex_sta = &btc->coex_sta; in rtw_btc_limited_tx() local 60 if (!force_exec && tx_limit_en == coex_sta->wl_tx_limit_en && in rtw_btc_limited_tx() 61 ampdu_limit_en == coex_sta->wl_ampdu_limit_en) in rtw_btc_limited_tx() 65 if (!coex_sta->wl_tx_limit_en) { in rtw_btc_limited_tx() 66 coex_sta->wl_arfb1 = btc->btc_read_4byte(btc, REG_DARFRC); in rtw_btc_limited_tx() 67 coex_sta->wl_arfb2 = btc->btc_read_4byte(btc, REG_DARFRCH); in rtw_btc_limited_tx() 69 coex_sta->wl_txlimit = btc->btc_read_2byte(btc, in rtw_btc_limited_tx() 73 if (!coex_sta->wl_ampdu_limit_en) in rtw_btc_limited_tx() 74 coex_sta->wl_ampdulen = in rtw_btc_limited_tx() 77 coex_sta->wl_tx_limit_en = tx_limit_en; in rtw_btc_limited_tx() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8821cs/hal/btc/ |
| H A D | halbtc8821c1ant.c | 38 struct coex_sta_8821c_1ant *coex_sta = &btc->coex_sta_8821c_1ant; 40 u8 bt_rssi_state = coex_sta->pre_bt_rssi_state; 42 bt_rssi = coex_sta->bt_rssi; 45 if (coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW || 46 coex_sta->pre_bt_rssi_state == 64 return coex_sta->pre_bt_rssi_state; 67 if (coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW || 68 coex_sta->pre_bt_rssi_state == 75 } else if (coex_sta->pre_bt_rssi_state == 77 coex_sta->pre_bt_rssi_state == [all …]
|
| H A D | halbtc8821c2ant.c | 39 struct coex_sta_8821c_2ant *coex_sta = &btc->coex_sta_8821c_2ant; in halbtc8821c2ant_bt_rssi_state() local 43 bt_rssi = coex_sta->bt_rssi; in halbtc8821c2ant_bt_rssi_state() 162 struct coex_sta_8821c_2ant *coex_sta = &btc->coex_sta_8821c_2ant; in halbtc8821c2ant_limited_tx() local 168 if (!coex_sta->wl_tx_limit_en) { in halbtc8821c2ant_limited_tx() 169 coex_sta->wl_0x430_backup = btc->btc_read_4byte(btc, 0x430); in halbtc8821c2ant_limited_tx() 170 coex_sta->wl_0x434_backup = btc->btc_read_4byte(btc, 0x434); in halbtc8821c2ant_limited_tx() 171 coex_sta->wl_0x42a_backup = btc->btc_read_2byte(btc, 0x42a); in halbtc8821c2ant_limited_tx() 174 if (!coex_sta->wl_ampdu_limit_en) in halbtc8821c2ant_limited_tx() 175 coex_sta->wl_0x455_backup = btc->btc_read_1byte(btc, 0x455); in halbtc8821c2ant_limited_tx() 177 if (!force_exec && tx_limit_en == coex_sta->wl_tx_limit_en && in halbtc8821c2ant_limited_tx() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8821cs/hal/btc/ |
| H A D | halbtc8821c1ant.c | 39 struct coex_sta_8821c_1ant *coex_sta = &btc->coex_sta_8821c_1ant; 41 u8 bt_rssi_state = coex_sta->pre_bt_rssi_state; 43 bt_rssi = coex_sta->bt_rssi; 46 if (coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW || 47 coex_sta->pre_bt_rssi_state == 65 return coex_sta->pre_bt_rssi_state; 68 if (coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW || 69 coex_sta->pre_bt_rssi_state == 76 } else if (coex_sta->pre_bt_rssi_state == 78 coex_sta->pre_bt_rssi_state == [all …]
|
| H A D | halbtc8821c2ant.c | 40 struct coex_sta_8821c_2ant *coex_sta = &btc->coex_sta_8821c_2ant; in halbtc8821c2ant_bt_rssi_state() local 44 bt_rssi = coex_sta->bt_rssi; in halbtc8821c2ant_bt_rssi_state() 163 struct coex_sta_8821c_2ant *coex_sta = &btc->coex_sta_8821c_2ant; in halbtc8821c2ant_limited_tx() local 169 if (!coex_sta->wl_tx_limit_en) { in halbtc8821c2ant_limited_tx() 170 coex_sta->wl_0x430_backup = btc->btc_read_4byte(btc, 0x430); in halbtc8821c2ant_limited_tx() 171 coex_sta->wl_0x434_backup = btc->btc_read_4byte(btc, 0x434); in halbtc8821c2ant_limited_tx() 172 coex_sta->wl_0x42a_backup = btc->btc_read_2byte(btc, 0x42a); in halbtc8821c2ant_limited_tx() 175 if (!coex_sta->wl_ampdu_limit_en) in halbtc8821c2ant_limited_tx() 176 coex_sta->wl_0x455_backup = btc->btc_read_1byte(btc, 0x455); in halbtc8821c2ant_limited_tx() 178 if (!force_exec && tx_limit_en == coex_sta->wl_tx_limit_en && in halbtc8821c2ant_limited_tx() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8822bs/hal/btc/ |
| H A D | halbtc8822b2ant.c | 39 struct coex_sta_8822b_2ant *coex_sta = &btc->coex_sta_8822b_2ant; in halbtc8822b2ant_bt_rssi_state() local 44 bt_rssi = coex_sta->bt_rssi; in halbtc8822b2ant_bt_rssi_state() 163 struct coex_sta_8822b_2ant *coex_sta = &btc->coex_sta_8822b_2ant; in halbtc8822b2ant_limited_tx() local 169 if (!coex_sta->wl_tx_limit_en) { in halbtc8822b2ant_limited_tx() 170 coex_sta->wl_0x430_backup = btc->btc_read_4byte(btc, 0x430); in halbtc8822b2ant_limited_tx() 171 coex_sta->wl_0x434_backup = btc->btc_read_4byte(btc, 0x434); in halbtc8822b2ant_limited_tx() 172 coex_sta->wl_0x42a_backup = btc->btc_read_2byte(btc, 0x42a); in halbtc8822b2ant_limited_tx() 175 if (!coex_sta->wl_ampdu_limit_en) in halbtc8822b2ant_limited_tx() 176 coex_sta->wl_0x455_backup = btc->btc_read_1byte(btc, 0x455); in halbtc8822b2ant_limited_tx() 178 if (!force_exec && tx_limit_en == coex_sta->wl_tx_limit_en && in halbtc8822b2ant_limited_tx() [all …]
|
| H A D | halbtc8822b1ant.c | 41 struct coex_sta_8822b_1ant *coex_sta = &btc->coex_sta_8822b_1ant; 45 bt_rssi = coex_sta->bt_rssi; 164 struct coex_sta_8822b_1ant *coex_sta = &btc->coex_sta_8822b_1ant; in halbtc8822b1ant_limited_tx() local 170 if (!coex_sta->wl_tx_limit_en) { in halbtc8822b1ant_limited_tx() 171 coex_sta->wl_0x430_backup = btc->btc_read_4byte(btc, 0x430); in halbtc8822b1ant_limited_tx() 172 coex_sta->wl_0x434_backup = btc->btc_read_4byte(btc, 0x434); in halbtc8822b1ant_limited_tx() 173 coex_sta->wl_0x42a_backup = btc->btc_read_2byte(btc, 0x42a); in halbtc8822b1ant_limited_tx() 176 if (!coex_sta->wl_ampdu_limit_en) in halbtc8822b1ant_limited_tx() 177 coex_sta->wl_0x455_backup = btc->btc_read_1byte(btc, 0x455); in halbtc8822b1ant_limited_tx() 179 if (!force_exec && tx_limit_en == coex_sta->wl_tx_limit_en && in halbtc8822b1ant_limited_tx() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723ds/hal/btc/ |
| H A D | halbtc8723d1ant.c | 42 static struct coex_sta_8723d_1ant *coex_sta = &glcoex_sta_8723d_1ant; variable 175 if (!coex_sta->wl_tx_limit_en) { in halbtc8723d1ant_limited_tx() 176 coex_sta->wl_0x430_backup = in halbtc8723d1ant_limited_tx() 178 coex_sta->wl_0x434_backup = in halbtc8723d1ant_limited_tx() 180 coex_sta->wl_0x42a_backup = in halbtc8723d1ant_limited_tx() 184 if (!coex_sta->wl_ampdu_limit_en) in halbtc8723d1ant_limited_tx() 185 coex_sta->wl_0x456_backup = btcoexist->btc_read_1byte(btcoexist, in halbtc8723d1ant_limited_tx() 188 if (!force_exec && tx_limit_en == coex_sta->wl_tx_limit_en && in halbtc8723d1ant_limited_tx() 189 ampdu_limit_en == coex_sta->wl_ampdu_limit_en) in halbtc8723d1ant_limited_tx() 192 coex_sta->wl_tx_limit_en = tx_limit_en; in halbtc8723d1ant_limited_tx() [all …]
|
| H A D | halbtc8723d2ant.c | 42 static struct coex_sta_8723d_2ant *coex_sta = &glcoex_sta_8723d_2ant; variable 64 bt_rssi = coex_sta->bt_rssi; in halbtc8723d2ant_bt_rssi_state() 192 coex_sta->wifi_coex_thres = BT_8723D_2ANT_WIFI_RSSI_COEXSWITCH_THRES1; in halbtc8723d2ant_coex_switch_threshold() 193 coex_sta->wifi_coex_thres2 = BT_8723D_2ANT_WIFI_RSSI_COEXSWITCH_THRES2; in halbtc8723d2ant_coex_switch_threshold() 195 coex_sta->bt_coex_thres = BT_8723D_2ANT_BT_RSSI_COEXSWITCH_THRES1; in halbtc8723d2ant_coex_switch_threshold() 196 coex_sta->bt_coex_thres2 = BT_8723D_2ANT_BT_RSSI_COEXSWITCH_THRES2; in halbtc8723d2ant_coex_switch_threshold() 212 if (!coex_sta->wl_tx_limit_en) { in halbtc8723d2ant_limited_tx() 213 coex_sta->wl_0x430_backup = in halbtc8723d2ant_limited_tx() 215 coex_sta->wl_0x434_backup = in halbtc8723d2ant_limited_tx() 217 coex_sta->wl_0x42a_backup = in halbtc8723d2ant_limited_tx() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8723ds/hal/btc/ |
| H A D | halbtc8723d1ant.c | 41 static struct coex_sta_8723d_1ant *coex_sta = &glcoex_sta_8723d_1ant; variable 175 if (!coex_sta->wl_tx_limit_en) { in halbtc8723d1ant_limited_tx() 176 coex_sta->wl_0x430_backup = in halbtc8723d1ant_limited_tx() 178 coex_sta->wl_0x434_backup = in halbtc8723d1ant_limited_tx() 180 coex_sta->wl_0x42a_backup = in halbtc8723d1ant_limited_tx() 184 if (!coex_sta->wl_ampdu_limit_en) in halbtc8723d1ant_limited_tx() 185 coex_sta->wl_0x456_backup = btcoexist->btc_read_1byte(btcoexist, in halbtc8723d1ant_limited_tx() 188 if (!force_exec && tx_limit_en == coex_sta->wl_tx_limit_en && in halbtc8723d1ant_limited_tx() 189 ampdu_limit_en == coex_sta->wl_ampdu_limit_en) in halbtc8723d1ant_limited_tx() 192 coex_sta->wl_tx_limit_en = tx_limit_en; in halbtc8723d1ant_limited_tx() [all …]
|
| H A D | halbtc8723d2ant.c | 41 static struct coex_sta_8723d_2ant *coex_sta = &glcoex_sta_8723d_2ant; variable 64 bt_rssi = coex_sta->bt_rssi; in halbtc8723d2ant_bt_rssi_state() 192 coex_sta->wifi_coex_thres = BT_8723D_2ANT_WIFI_RSSI_COEXSWITCH_THRES1; in halbtc8723d2ant_coex_switch_threshold() 193 coex_sta->wifi_coex_thres2 = BT_8723D_2ANT_WIFI_RSSI_COEXSWITCH_THRES2; in halbtc8723d2ant_coex_switch_threshold() 195 coex_sta->bt_coex_thres = BT_8723D_2ANT_BT_RSSI_COEXSWITCH_THRES1; in halbtc8723d2ant_coex_switch_threshold() 196 coex_sta->bt_coex_thres2 = BT_8723D_2ANT_BT_RSSI_COEXSWITCH_THRES2; in halbtc8723d2ant_coex_switch_threshold() 212 if (!coex_sta->wl_tx_limit_en) { in halbtc8723d2ant_limited_tx() 213 coex_sta->wl_0x430_backup = in halbtc8723d2ant_limited_tx() 215 coex_sta->wl_0x434_backup = in halbtc8723d2ant_limited_tx() 217 coex_sta->wl_0x42a_backup = in halbtc8723d2ant_limited_tx() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/btc/ |
| H A D | halbtc8703b1ant.c | 42 static struct coex_sta_8703b_1ant *coex_sta = &glcoex_sta_8703b_1ant; variable 77 u8 bt_rssi_state = coex_sta->pre_bt_rssi_state; in halbtc8703b1ant_bt_rssi_state() 79 bt_rssi = coex_sta->bt_rssi; in halbtc8703b1ant_bt_rssi_state() 82 if ((coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW) || in halbtc8703b1ant_bt_rssi_state() 83 (coex_sta->pre_bt_rssi_state == in halbtc8703b1ant_bt_rssi_state() 101 return coex_sta->pre_bt_rssi_state; in halbtc8703b1ant_bt_rssi_state() 104 if ((coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW) || in halbtc8703b1ant_bt_rssi_state() 105 (coex_sta->pre_bt_rssi_state == in halbtc8703b1ant_bt_rssi_state() 112 } else if ((coex_sta->pre_bt_rssi_state == in halbtc8703b1ant_bt_rssi_state() 114 (coex_sta->pre_bt_rssi_state == in halbtc8703b1ant_bt_rssi_state() [all …]
|
| H A D | halbtc8821c2ant.c | 43 static struct coex_sta_8821c_2ant *coex_sta = &glcoex_sta_8821c_2ant; variable 73 bt_rssi = coex_sta->bt_rssi; in halbtc8821c2ant_bt_rssi_state() 199 coex_sta->wifi_coex_thres = BT_8821C_2ANT_WIFI_RSSI_COEXSWITCH_THRES1; in halbtc8821c2ant_coex_switch_threshold() 200 coex_sta->wifi_coex_thres2 = BT_8821C_2ANT_WIFI_RSSI_COEXSWITCH_THRES2; in halbtc8821c2ant_coex_switch_threshold() 202 coex_sta->bt_coex_thres = BT_8821C_2ANT_BT_RSSI_COEXSWITCH_THRES1; in halbtc8821c2ant_coex_switch_threshold() 203 coex_sta->bt_coex_thres2 = BT_8821C_2ANT_BT_RSSI_COEXSWITCH_THRES2; in halbtc8821c2ant_coex_switch_threshold() 263 if (coex_sta->bt_disabled) { in halbtc8821c2ant_query_bt_info() 295 coex_sta->high_priority_tx = reg_hp_tx; in halbtc8821c2ant_monitor_bt_ctr() 296 coex_sta->high_priority_rx = reg_hp_rx; in halbtc8821c2ant_monitor_bt_ctr() 297 coex_sta->low_priority_tx = reg_lp_tx; in halbtc8821c2ant_monitor_bt_ctr() [all …]
|
| H A D | halbtc8822b2ant.c | 43 static struct coex_sta_8822b_2ant *coex_sta = &glcoex_sta_8822b_2ant; variable 74 bt_rssi = coex_sta->bt_rssi; in halbtc8822b2ant_bt_rssi_state() 203 if (coex_sta->isolation_btween_wb > 20) { in halbtc8822b2ant_coex_switch_threshold() 205 coex_sta->wifi_coex_thres = BT_8822B_2ANT_WIFI_RSSI_COEXSWITCH_THRES1; in halbtc8822b2ant_coex_switch_threshold() 206 coex_sta->wifi_coex_thres2 = BT_8822B_2ANT_WIFI_RSSI_COEXSWITCH_THRES2; in halbtc8822b2ant_coex_switch_threshold() 208 coex_sta->bt_coex_thres = BT_8822B_2ANT_BT_RSSI_COEXSWITCH_THRES1; in halbtc8822b2ant_coex_switch_threshold() 209 coex_sta->bt_coex_thres2 = BT_8822B_2ANT_BT_RSSI_COEXSWITCH_THRES2; in halbtc8822b2ant_coex_switch_threshold() 212 coex_sta->wifi_coex_thres = 90; in halbtc8822b2ant_coex_switch_threshold() 213 coex_sta->wifi_coex_thres2 = 90; in halbtc8822b2ant_coex_switch_threshold() 215 coex_sta->bt_coex_thres = 90; in halbtc8822b2ant_coex_switch_threshold() [all …]
|
| H A D | halbtc8821c1ant.c | 42 static struct coex_sta_8821c_1ant *coex_sta = &glcoex_sta_8821c_1ant; variable 69 u8 bt_rssi_state = coex_sta->pre_bt_rssi_state; in halbtc8821c1ant_bt_rssi_state() 71 bt_rssi = coex_sta->bt_rssi; in halbtc8821c1ant_bt_rssi_state() 74 if ((coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW) || in halbtc8821c1ant_bt_rssi_state() 75 (coex_sta->pre_bt_rssi_state == in halbtc8821c1ant_bt_rssi_state() 93 return coex_sta->pre_bt_rssi_state; in halbtc8821c1ant_bt_rssi_state() 96 if ((coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW) || in halbtc8821c1ant_bt_rssi_state() 97 (coex_sta->pre_bt_rssi_state == in halbtc8821c1ant_bt_rssi_state() 104 } else if ((coex_sta->pre_bt_rssi_state == in halbtc8821c1ant_bt_rssi_state() 106 (coex_sta->pre_bt_rssi_state == in halbtc8821c1ant_bt_rssi_state() [all …]
|
| H A D | halbtc8723d2ant.c | 42 static struct coex_sta_8723d_2ant *coex_sta = &glcoex_sta_8723d_2ant; variable 80 bt_rssi = coex_sta->bt_rssi; in halbtc8723d2ant_bt_rssi_state() 206 coex_sta->wifi_coex_thres = BT_8723D_2ANT_WIFI_RSSI_COEXSWITCH_THRES1; in halbtc8723d2ant_coex_switch_threshold() 207 coex_sta->wifi_coex_thres2 = BT_8723D_2ANT_WIFI_RSSI_COEXSWITCH_THRES2; in halbtc8723d2ant_coex_switch_threshold() 209 coex_sta->bt_coex_thres = BT_8723D_2ANT_BT_RSSI_COEXSWITCH_THRES1; in halbtc8723d2ant_coex_switch_threshold() 210 coex_sta->bt_coex_thres2 = BT_8723D_2ANT_BT_RSSI_COEXSWITCH_THRES2; in halbtc8723d2ant_coex_switch_threshold() 296 coex_sta->high_priority_tx = reg_hp_tx; in halbtc8723d2ant_monitor_bt_ctr() 297 coex_sta->high_priority_rx = reg_hp_rx; in halbtc8723d2ant_monitor_bt_ctr() 298 coex_sta->low_priority_tx = reg_lp_tx; in halbtc8723d2ant_monitor_bt_ctr() 299 coex_sta->low_priority_rx = reg_lp_rx; in halbtc8723d2ant_monitor_bt_ctr() [all …]
|
| H A D | halbtc8723d1ant.c | 42 static struct coex_sta_8723d_1ant *coex_sta = &glcoex_sta_8723d_1ant; variable 77 u8 bt_rssi_state = coex_sta->pre_bt_rssi_state; in halbtc8723d1ant_bt_rssi_state() 79 bt_rssi = coex_sta->bt_rssi; in halbtc8723d1ant_bt_rssi_state() 82 if ((coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW) || in halbtc8723d1ant_bt_rssi_state() 83 (coex_sta->pre_bt_rssi_state == in halbtc8723d1ant_bt_rssi_state() 101 return coex_sta->pre_bt_rssi_state; in halbtc8723d1ant_bt_rssi_state() 104 if ((coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW) || in halbtc8723d1ant_bt_rssi_state() 105 (coex_sta->pre_bt_rssi_state == in halbtc8723d1ant_bt_rssi_state() 112 } else if ((coex_sta->pre_bt_rssi_state == in halbtc8723d1ant_bt_rssi_state() 114 (coex_sta->pre_bt_rssi_state == in halbtc8723d1ant_bt_rssi_state() [all …]
|
| H A D | halbtc8822b1ant.c | 46 static struct coex_sta_8822b_1ant *coex_sta = &glcoex_sta_8822b_1ant; variable 79 bt_rssi = coex_sta->bt_rssi; in halbtc8822b1ant_bt_rssi_state() 361 if (coex_sta->bt_disabled) { in halbtc8822b1ant_query_bt_info() 400 coex_sta->high_priority_tx = reg_hp_tx; in halbtc8822b1ant_monitor_bt_ctr() 401 coex_sta->high_priority_rx = reg_hp_rx; in halbtc8822b1ant_monitor_bt_ctr() 402 coex_sta->low_priority_tx = reg_lp_tx; in halbtc8822b1ant_monitor_bt_ctr() 403 coex_sta->low_priority_rx = reg_lp_rx; in halbtc8822b1ant_monitor_bt_ctr() 413 if ((coex_sta->low_priority_tx > 1150) && in halbtc8822b1ant_monitor_bt_ctr() 414 (!coex_sta->c2h_bt_inquiry_page)) in halbtc8822b1ant_monitor_bt_ctr() 415 coex_sta->pop_event_cnt++; in halbtc8822b1ant_monitor_bt_ctr() [all …]
|
| H A D | halbtc8192e1ant.c | 41 static struct coex_sta_8192e_1ant *coex_sta = &glcoex_sta_8192e_1ant; variable 61 u8 bt_rssi_state = coex_sta->pre_bt_rssi_state; in halbtc8192e1ant_bt_rssi_state() 63 bt_rssi = coex_sta->bt_rssi; in halbtc8192e1ant_bt_rssi_state() 66 if ((coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW) || in halbtc8192e1ant_bt_rssi_state() 67 (coex_sta->pre_bt_rssi_state == in halbtc8192e1ant_bt_rssi_state() 85 return coex_sta->pre_bt_rssi_state; in halbtc8192e1ant_bt_rssi_state() 88 if ((coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW) || in halbtc8192e1ant_bt_rssi_state() 89 (coex_sta->pre_bt_rssi_state == in halbtc8192e1ant_bt_rssi_state() 96 } else if ((coex_sta->pre_bt_rssi_state == in halbtc8192e1ant_bt_rssi_state() 98 (coex_sta->pre_bt_rssi_state == in halbtc8192e1ant_bt_rssi_state() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723cs/hal/btc/ |
| H A D | halbtc8703b1ant.c | 41 static struct coex_sta_8703b_1ant *coex_sta = &glcoex_sta_8703b_1ant; variable 76 u8 bt_rssi_state = coex_sta->pre_bt_rssi_state; in halbtc8703b1ant_bt_rssi_state() 78 bt_rssi = coex_sta->bt_rssi; in halbtc8703b1ant_bt_rssi_state() 81 if ((coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW) || in halbtc8703b1ant_bt_rssi_state() 82 (coex_sta->pre_bt_rssi_state == in halbtc8703b1ant_bt_rssi_state() 100 return coex_sta->pre_bt_rssi_state; in halbtc8703b1ant_bt_rssi_state() 103 if ((coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW) || in halbtc8703b1ant_bt_rssi_state() 104 (coex_sta->pre_bt_rssi_state == in halbtc8703b1ant_bt_rssi_state() 111 } else if ((coex_sta->pre_bt_rssi_state == in halbtc8703b1ant_bt_rssi_state() 113 (coex_sta->pre_bt_rssi_state == in halbtc8703b1ant_bt_rssi_state() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8822be/hal/btc/ |
| H A D | halbtc8822b2ant.c | 27 static struct coex_sta_8822b_2ant *coex_sta = &glcoex_sta_8822b_2ant; variable 55 bt_rssi = coex_sta->bt_rssi; in halbtc8822b2ant_bt_rssi_state() 181 coex_sta->wifi_coex_thres = BT_8822B_2ANT_WIFI_RSSI_COEXSWITCH_THRES1; in halbtc8822b2ant_coex_switch_threshold() 182 coex_sta->wifi_coex_thres2 = BT_8822B_2ANT_WIFI_RSSI_COEXSWITCH_THRES2; in halbtc8822b2ant_coex_switch_threshold() 184 coex_sta->bt_coex_thres = BT_8822B_2ANT_BT_RSSI_COEXSWITCH_THRES1; in halbtc8822b2ant_coex_switch_threshold() 185 coex_sta->bt_coex_thres2 = BT_8822B_2ANT_BT_RSSI_COEXSWITCH_THRES2; in halbtc8822b2ant_coex_switch_threshold() 249 coex_sta->c2h_bt_info_req_sent = true; in halbtc8822b2ant_query_bt_info() 275 coex_sta->high_priority_tx = reg_hp_tx; in halbtc8822b2ant_monitor_bt_ctr() 276 coex_sta->high_priority_rx = reg_hp_rx; in halbtc8822b2ant_monitor_bt_ctr() 277 coex_sta->low_priority_tx = reg_lp_tx; in halbtc8822b2ant_monitor_bt_ctr() [all …]
|
| H A D | halbtc8703b1ant.c | 27 static struct coex_sta_8703b_1ant *coex_sta = &glcoex_sta_8703b_1ant; variable 50 u8 bt_rssi_state = coex_sta->pre_bt_rssi_state; in halbtc8703b1ant_bt_rssi_state() 52 bt_rssi = coex_sta->bt_rssi; in halbtc8703b1ant_bt_rssi_state() 55 if ((coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW) || in halbtc8703b1ant_bt_rssi_state() 56 (coex_sta->pre_bt_rssi_state == in halbtc8703b1ant_bt_rssi_state() 74 return coex_sta->pre_bt_rssi_state; in halbtc8703b1ant_bt_rssi_state() 77 if ((coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW) || in halbtc8703b1ant_bt_rssi_state() 78 (coex_sta->pre_bt_rssi_state == in halbtc8703b1ant_bt_rssi_state() 85 } else if ((coex_sta->pre_bt_rssi_state == in halbtc8703b1ant_bt_rssi_state() 87 (coex_sta->pre_bt_rssi_state == in halbtc8703b1ant_bt_rssi_state() [all …]
|
| H A D | halbtc8822b1ant.c | 28 static struct coex_sta_8822b_1ant *coex_sta = &glcoex_sta_8822b_1ant; variable 56 u8 bt_rssi_state = coex_sta->pre_bt_rssi_state; in halbtc8822b1ant_bt_rssi_state() 58 bt_rssi = coex_sta->bt_rssi; in halbtc8822b1ant_bt_rssi_state() 61 if ((coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW) || in halbtc8822b1ant_bt_rssi_state() 62 (coex_sta->pre_bt_rssi_state == in halbtc8822b1ant_bt_rssi_state() 80 return coex_sta->pre_bt_rssi_state; in halbtc8822b1ant_bt_rssi_state() 83 if ((coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW) || in halbtc8822b1ant_bt_rssi_state() 84 (coex_sta->pre_bt_rssi_state == in halbtc8822b1ant_bt_rssi_state() 91 } else if ((coex_sta->pre_bt_rssi_state == in halbtc8822b1ant_bt_rssi_state() 93 (coex_sta->pre_bt_rssi_state == in halbtc8822b1ant_bt_rssi_state() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/realtek/rtlwifi/btcoexist/ |
| H A D | halbtc8723b1ant.c | 24 static struct coex_sta_8723b_1ant *coex_sta = &glcoex_sta_8723b_1ant; variable 195 coex_sta->c2h_bt_info_req_sent = true; in halbtc8723b1ant_query_bt_info() 221 coex_sta->high_priority_tx = reg_hp_tx; in halbtc8723b1ant_monitor_bt_ctr() 222 coex_sta->high_priority_rx = reg_hp_rx; in halbtc8723b1ant_monitor_bt_ctr() 223 coex_sta->low_priority_tx = reg_lp_tx; in halbtc8723b1ant_monitor_bt_ctr() 224 coex_sta->low_priority_rx = reg_lp_rx; in halbtc8723b1ant_monitor_bt_ctr() 226 if ((coex_sta->low_priority_tx > 1050) && in halbtc8723b1ant_monitor_bt_ctr() 227 (!coex_sta->c2h_bt_inquiry_page)) in halbtc8723b1ant_monitor_bt_ctr() 228 coex_sta->pop_event_cnt++; in halbtc8723b1ant_monitor_bt_ctr() 266 if (coex_sta->under_ips) { in halbtc8723b1ant_monitor_wifi_ctr() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723bu/hal/btc/ |
| H A D | HalBtc8723b1Ant.c | 27 static struct coex_sta_8723b_1ant *coex_sta = &glcoex_sta_8723b_1ant; variable 202 coex_sta->c2h_bt_info_req_sent = true; in halbtc8723b1ant_query_bt_info() 230 coex_sta->high_priority_tx = reg_hp_tx; in halbtc8723b1ant_monitor_bt_ctr() 231 coex_sta->high_priority_rx = reg_hp_rx; in halbtc8723b1ant_monitor_bt_ctr() 232 coex_sta->low_priority_tx = reg_lp_tx; in halbtc8723b1ant_monitor_bt_ctr() 233 coex_sta->low_priority_rx = reg_lp_rx; in halbtc8723b1ant_monitor_bt_ctr() 235 if ((coex_sta->high_priority_tx + coex_sta->high_priority_rx < 50) && in halbtc8723b1ant_monitor_bt_ctr() 239 if ((coex_sta->low_priority_tx > 1050) && in halbtc8723b1ant_monitor_bt_ctr() 240 (!coex_sta->c2h_bt_inquiry_page)) in halbtc8723b1ant_monitor_bt_ctr() 241 coex_sta->pop_event_cnt++; in halbtc8723b1ant_monitor_bt_ctr() [all …]
|