/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/ |
H A D | gpio.c | 144 struct ath_btcoex *btcoex = &sc->btcoex; in ath_detect_bt_priority() local 148 btcoex->bt_priority_cnt++; in ath_detect_bt_priority() 150 if (time_after(jiffies, btcoex->bt_priority_time + in ath_detect_bt_priority() 152 clear_bit(BT_OP_PRIORITY_DETECTED, &btcoex->op_flags); in ath_detect_bt_priority() 153 clear_bit(BT_OP_SCAN, &btcoex->op_flags); in ath_detect_bt_priority() 155 if (btcoex->bt_priority_cnt >= ATH_BT_CNT_SCAN_THRESHOLD) { in ath_detect_bt_priority() 158 set_bit(BT_OP_PRIORITY_DETECTED, &btcoex->op_flags); in ath_detect_bt_priority() 159 set_bit(BT_OP_SCAN, &btcoex->op_flags); in ath_detect_bt_priority() 160 } else if (btcoex in ath_detect_bt_priority() 173 struct ath_btcoex *btcoex = &sc->btcoex; ath_mci_ftp_adjust() local 198 struct ath_btcoex *btcoex = &sc->btcoex; ath_btcoex_period_timer() local 259 struct ath_btcoex *btcoex = &sc->btcoex; ath_btcoex_no_stomp_timer() local 278 struct ath_btcoex *btcoex = &sc->btcoex; ath_init_btcoex_timer() local 298 struct ath_btcoex *btcoex = &sc->btcoex; ath9k_btcoex_timer_resume() local 323 struct ath_btcoex *btcoex = &sc->btcoex; ath9k_btcoex_timer_pause() local 338 struct ath_btcoex *btcoex = &sc->btcoex; ath9k_btcoex_stop_gen_timer() local 345 struct ath_btcoex *btcoex = &sc->btcoex; ath9k_btcoex_aggr_limit() local 454 struct ath_btcoex *btcoex = &sc->btcoex; ath9k_dump_mci_btcoex() local 500 struct ath_btcoex *btcoex = &sc->btcoex; ath9k_dump_legacy_btcoex() local [all...] |
H A D | htc_drv_gpio.c | 32 struct ath_btcoex *btcoex = &priv->btcoex; in ath_detect_bt_priority() local 36 btcoex->bt_priority_cnt++; in ath_detect_bt_priority() 38 if (time_after(jiffies, btcoex->bt_priority_time + in ath_detect_bt_priority() 43 if (btcoex->bt_priority_cnt >= ATH_BT_CNT_SCAN_THRESHOLD) { in ath_detect_bt_priority() 48 } else if (btcoex->bt_priority_cnt >= ATH_BT_CNT_THRESHOLD) { in ath_detect_bt_priority() 54 btcoex->bt_priority_cnt = 0; in ath_detect_bt_priority() 55 btcoex->bt_priority_time = jiffies; in ath_detect_bt_priority() 68 struct ath_btcoex *btcoex = &priv->btcoex; in ath_btcoex_period_work() local 103 struct ath_btcoex *btcoex = &priv->btcoex; ath_btcoex_duty_cycle_work() local 119 struct ath_btcoex *btcoex = &priv->btcoex; ath_htc_init_btcoex_work() local 136 struct ath_btcoex *btcoex = &priv->btcoex; ath_htc_resume_btcoex_work() local [all...] |
H A D | mci.c | 102 static void ath_mci_adjust_aggr_limit(struct ath_btcoex *btcoex) in ath_mci_adjust_aggr_limit() argument 104 struct ath_mci_profile *mci = &btcoex->mci; in ath_mci_adjust_aggr_limit() 105 u32 wlan_airtime = btcoex->btcoex_period * in ath_mci_adjust_aggr_limit() 106 (100 - btcoex->duty_cycle) / 100; in ath_mci_adjust_aggr_limit() 122 struct ath_btcoex *btcoex = &sc->btcoex; in ath_mci_update_scheme() local 123 struct ath_mci_profile *mci = &btcoex->mci; in ath_mci_update_scheme() 132 btcoex->duty_cycle = ath_mci_duty_cycle[num_profile]; in ath_mci_update_scheme() 133 btcoex->btcoex_period = ATH_MCI_DEF_BT_PERIOD; in ath_mci_update_scheme() 135 btcoex in ath_mci_update_scheme() 258 struct ath_btcoex *btcoex = &sc->btcoex; ath_mci_set_concur_txprio() local 299 struct ath_btcoex *btcoex = &sc->btcoex; ath_mci_process_profile() local 333 struct ath_btcoex *btcoex = &sc->btcoex; ath_mci_process_status() local 728 struct ath_btcoex *btcoex = &sc->btcoex; ath9k_mci_stomp_audio() local 744 struct ath_btcoex *btcoex = &sc->btcoex; ath9k_mci_update_rssi() local [all...] |
H A D | btcoex.c | 199 /* btcoex 3-wire */ in ath9k_hw_btcoex_init_3wire() 322 struct ath_btcoex_hw *btcoex = &ah->btcoex_hw; in ath9k_hw_btcoex_enable_3wire() local 333 REG_WRITE(ah, AR_BT_COEX_MODE, btcoex->bt_coex_mode); in ath9k_hw_btcoex_enable_3wire() 334 REG_WRITE(ah, AR_BT_COEX_MODE2, btcoex->bt_coex_mode2); in ath9k_hw_btcoex_enable_3wire() 337 REG_WRITE(ah, AR_BT_COEX_MODE3, btcoex->bt_coex_mode3); in ath9k_hw_btcoex_enable_3wire() 340 REG_WRITE(ah, AR_BT_COEX_WL_WEIGHTS0, btcoex->wlan_weight[0]); in ath9k_hw_btcoex_enable_3wire() 341 REG_WRITE(ah, AR_BT_COEX_WL_WEIGHTS1, btcoex->wlan_weight[1]); in ath9k_hw_btcoex_enable_3wire() 344 btcoex->bt_weight[i]); in ath9k_hw_btcoex_enable_3wire() 346 REG_WRITE(ah, AR_BT_COEX_WEIGHT, btcoex->bt_coex_weights); in ath9k_hw_btcoex_enable_3wire() 357 ath9k_hw_gpio_request_out(ah, btcoex in ath9k_hw_btcoex_enable_3wire() 364 struct ath_btcoex_hw *btcoex = &ah->btcoex_hw; ath9k_hw_btcoex_enable_mci() local 483 struct ath_btcoex_hw *btcoex = &ah->btcoex_hw; ath9k_hw_btcoex_set_concur_txprio() local [all...] |
H A D | ar9002_phy.c | 418 struct ath_btcoex_hw *btcoex = &ah->btcoex_hw; in ar9002_hw_set_bt_ant_diversity() local 429 btcoex->bt_coex_mode2 &= (~(AR_BT_DISABLE_BT_ANT)); in ar9002_hw_set_bt_ant_diversity() 430 REG_WRITE(ah, AR_BT_COEX_MODE2, btcoex->bt_coex_mode2); in ar9002_hw_set_bt_ant_diversity() 444 btcoex->bt_coex_mode2 |= AR_BT_DISABLE_BT_ANT; in ar9002_hw_set_bt_ant_diversity() 445 REG_WRITE(ah, AR_BT_COEX_MODE2, btcoex->bt_coex_mode2); in ar9002_hw_set_bt_ant_diversity()
|
H A D | Makefile | 50 ath9k_hw-$(CONFIG_ATH9K_BTCOEX_SUPPORT) += btcoex.o \
|
H A D | htc.h | 531 struct ath_btcoex btcoex; member
|
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath9k/ |
H A D | gpio.c | 144 struct ath_btcoex *btcoex = &sc->btcoex; in ath_detect_bt_priority() local 148 btcoex->bt_priority_cnt++; in ath_detect_bt_priority() 150 if (time_after(jiffies, btcoex->bt_priority_time + in ath_detect_bt_priority() 152 clear_bit(BT_OP_PRIORITY_DETECTED, &btcoex->op_flags); in ath_detect_bt_priority() 153 clear_bit(BT_OP_SCAN, &btcoex->op_flags); in ath_detect_bt_priority() 155 if (btcoex->bt_priority_cnt >= ATH_BT_CNT_SCAN_THRESHOLD) { in ath_detect_bt_priority() 158 set_bit(BT_OP_PRIORITY_DETECTED, &btcoex->op_flags); in ath_detect_bt_priority() 159 set_bit(BT_OP_SCAN, &btcoex->op_flags); in ath_detect_bt_priority() 160 } else if (btcoex in ath_detect_bt_priority() 173 struct ath_btcoex *btcoex = &sc->btcoex; ath_mci_ftp_adjust() local 198 struct ath_btcoex *btcoex = &sc->btcoex; ath_btcoex_period_timer() local 259 struct ath_btcoex *btcoex = &sc->btcoex; ath_btcoex_no_stomp_timer() local 278 struct ath_btcoex *btcoex = &sc->btcoex; ath_init_btcoex_timer() local 298 struct ath_btcoex *btcoex = &sc->btcoex; ath9k_btcoex_timer_resume() local 323 struct ath_btcoex *btcoex = &sc->btcoex; ath9k_btcoex_timer_pause() local 338 struct ath_btcoex *btcoex = &sc->btcoex; ath9k_btcoex_stop_gen_timer() local 345 struct ath_btcoex *btcoex = &sc->btcoex; ath9k_btcoex_aggr_limit() local 454 struct ath_btcoex *btcoex = &sc->btcoex; ath9k_dump_mci_btcoex() local 500 struct ath_btcoex *btcoex = &sc->btcoex; ath9k_dump_legacy_btcoex() local [all...] |
H A D | htc_drv_gpio.c | 32 struct ath_btcoex *btcoex = &priv->btcoex; in ath_detect_bt_priority() local 36 btcoex->bt_priority_cnt++; in ath_detect_bt_priority() 38 if (time_after(jiffies, btcoex->bt_priority_time + in ath_detect_bt_priority() 43 if (btcoex->bt_priority_cnt >= ATH_BT_CNT_SCAN_THRESHOLD) { in ath_detect_bt_priority() 48 } else if (btcoex->bt_priority_cnt >= ATH_BT_CNT_THRESHOLD) { in ath_detect_bt_priority() 54 btcoex->bt_priority_cnt = 0; in ath_detect_bt_priority() 55 btcoex->bt_priority_time = jiffies; in ath_detect_bt_priority() 68 struct ath_btcoex *btcoex = &priv->btcoex; in ath_btcoex_period_work() local 103 struct ath_btcoex *btcoex = &priv->btcoex; ath_btcoex_duty_cycle_work() local 119 struct ath_btcoex *btcoex = &priv->btcoex; ath_htc_init_btcoex_work() local 136 struct ath_btcoex *btcoex = &priv->btcoex; ath_htc_resume_btcoex_work() local [all...] |
H A D | mci.c | 102 static void ath_mci_adjust_aggr_limit(struct ath_btcoex *btcoex) in ath_mci_adjust_aggr_limit() argument 104 struct ath_mci_profile *mci = &btcoex->mci; in ath_mci_adjust_aggr_limit() 105 u32 wlan_airtime = btcoex->btcoex_period * in ath_mci_adjust_aggr_limit() 106 (100 - btcoex->duty_cycle) / 100; in ath_mci_adjust_aggr_limit() 122 struct ath_btcoex *btcoex = &sc->btcoex; in ath_mci_update_scheme() local 123 struct ath_mci_profile *mci = &btcoex->mci; in ath_mci_update_scheme() 132 btcoex->duty_cycle = ath_mci_duty_cycle[num_profile]; in ath_mci_update_scheme() 133 btcoex->btcoex_period = ATH_MCI_DEF_BT_PERIOD; in ath_mci_update_scheme() 135 btcoex in ath_mci_update_scheme() 258 struct ath_btcoex *btcoex = &sc->btcoex; ath_mci_set_concur_txprio() local 301 struct ath_btcoex *btcoex = &sc->btcoex; ath_mci_process_profile() local 335 struct ath_btcoex *btcoex = &sc->btcoex; ath_mci_process_status() local 730 struct ath_btcoex *btcoex = &sc->btcoex; ath9k_mci_stomp_audio() local 746 struct ath_btcoex *btcoex = &sc->btcoex; ath9k_mci_update_rssi() local [all...] |
H A D | btcoex.c | 199 /* btcoex 3-wire */ in ath9k_hw_btcoex_init_3wire() 322 struct ath_btcoex_hw *btcoex = &ah->btcoex_hw; in ath9k_hw_btcoex_enable_3wire() local 333 REG_WRITE(ah, AR_BT_COEX_MODE, btcoex->bt_coex_mode); in ath9k_hw_btcoex_enable_3wire() 334 REG_WRITE(ah, AR_BT_COEX_MODE2, btcoex->bt_coex_mode2); in ath9k_hw_btcoex_enable_3wire() 337 REG_WRITE(ah, AR_BT_COEX_MODE3, btcoex->bt_coex_mode3); in ath9k_hw_btcoex_enable_3wire() 340 REG_WRITE(ah, AR_BT_COEX_WL_WEIGHTS0, btcoex->wlan_weight[0]); in ath9k_hw_btcoex_enable_3wire() 341 REG_WRITE(ah, AR_BT_COEX_WL_WEIGHTS1, btcoex->wlan_weight[1]); in ath9k_hw_btcoex_enable_3wire() 344 btcoex->bt_weight[i]); in ath9k_hw_btcoex_enable_3wire() 346 REG_WRITE(ah, AR_BT_COEX_WEIGHT, btcoex->bt_coex_weights); in ath9k_hw_btcoex_enable_3wire() 357 ath9k_hw_gpio_request_out(ah, btcoex in ath9k_hw_btcoex_enable_3wire() 364 struct ath_btcoex_hw *btcoex = &ah->btcoex_hw; ath9k_hw_btcoex_enable_mci() local 483 struct ath_btcoex_hw *btcoex = &ah->btcoex_hw; ath9k_hw_btcoex_set_concur_txprio() local [all...] |
H A D | ar9002_phy.c | 418 struct ath_btcoex_hw *btcoex = &ah->btcoex_hw; in ar9002_hw_set_bt_ant_diversity() local 429 btcoex->bt_coex_mode2 &= (~(AR_BT_DISABLE_BT_ANT)); in ar9002_hw_set_bt_ant_diversity() 430 REG_WRITE(ah, AR_BT_COEX_MODE2, btcoex->bt_coex_mode2); in ar9002_hw_set_bt_ant_diversity() 444 btcoex->bt_coex_mode2 |= AR_BT_DISABLE_BT_ANT; in ar9002_hw_set_bt_ant_diversity() 445 REG_WRITE(ah, AR_BT_COEX_MODE2, btcoex->bt_coex_mode2); in ar9002_hw_set_bt_ant_diversity()
|
H A D | Makefile | 50 ath9k_hw-$(CONFIG_ATH9K_BTCOEX_SUPPORT) += btcoex.o \
|
H A D | htc.h | 531 struct ath_btcoex btcoex; member
|
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
H A D | btcoex.c | 16 #include "btcoex.h" 380 cfg->btcoex = btci; in brcmf_btcoex_attach() 392 if (!cfg->btcoex) in brcmf_btcoex_detach() 395 if (cfg->btcoex->timer_on) { in brcmf_btcoex_detach() 396 cfg->btcoex->timer_on = false; in brcmf_btcoex_detach() 397 del_timer_sync(&cfg->btcoex->timer); in brcmf_btcoex_detach() 400 cancel_work_sync(&cfg->btcoex->work); in brcmf_btcoex_detach() 402 brcmf_btcoex_boost_wifi(cfg->btcoex, false); in brcmf_btcoex_detach() 403 brcmf_btcoex_restore_part1(cfg->btcoex); in brcmf_btcoex_detach() 405 kfree(cfg->btcoex); in brcmf_btcoex_detach() [all...] |
H A D | cfg80211.h | 308 * @btcoex: Bluetooth coexistence information. 340 struct brcmf_btcoex_info *btcoex; member
|
/kernel/linux/linux-6.6/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
H A D | btcoex.c | 16 #include "btcoex.h" 380 cfg->btcoex = btci; in brcmf_btcoex_attach() 392 if (!cfg->btcoex) in brcmf_btcoex_detach() 395 if (cfg->btcoex->timer_on) { in brcmf_btcoex_detach() 396 cfg->btcoex->timer_on = false; in brcmf_btcoex_detach() 397 timer_shutdown_sync(&cfg->btcoex->timer); in brcmf_btcoex_detach() 400 cancel_work_sync(&cfg->btcoex->work); in brcmf_btcoex_detach() 402 brcmf_btcoex_boost_wifi(cfg->btcoex, false); in brcmf_btcoex_detach() 403 brcmf_btcoex_restore_part1(cfg->btcoex); in brcmf_btcoex_detach() 405 kfree(cfg->btcoex); in brcmf_btcoex_detach() [all...] |
H A D | cfg80211.h | 314 * @btcoex: Bluetooth coexistence information. 346 struct brcmf_btcoex_info *btcoex; member
|
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtl8xxxu/ |
H A D | rtl8xxxu_core.c | 5303 struct rtl8xxxu_btcoex *btcoex = &priv->bt_coex; in rtl8723bu_update_bt_link_info() local 5306 btcoex->c2h_bt_inquiry = true; in rtl8723bu_update_bt_link_info() 5308 btcoex->c2h_bt_inquiry = false; in rtl8723bu_update_bt_link_info() 5311 btcoex->bt_status = BT_8723B_1ANT_STATUS_NON_CONNECTED_IDLE; in rtl8723bu_update_bt_link_info() 5312 btcoex->has_sco = false; in rtl8723bu_update_bt_link_info() 5313 btcoex->has_hid = false; in rtl8723bu_update_bt_link_info() 5314 btcoex->has_pan = false; in rtl8723bu_update_bt_link_info() 5315 btcoex->has_a2dp = false; in rtl8723bu_update_bt_link_info() 5318 btcoex->bt_status = BT_8723B_1ANT_STATUS_CONNECTED_IDLE; in rtl8723bu_update_bt_link_info() 5321 btcoex in rtl8723bu_update_bt_link_info() 5371 struct rtl8xxxu_btcoex *btcoex; rtl8723bu_handle_bt_inquiry() local 5397 struct rtl8xxxu_btcoex *btcoex; rtl8723bu_handle_bt_info() local 5485 struct rtl8xxxu_btcoex *btcoex; rtl8xxxu_c2hcmd_callback() local [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/realtek/rtl8xxxu/ |
H A D | rtl8xxxu_core.c | 5968 struct rtl8xxxu_btcoex *btcoex = &priv->bt_coex; in rtl8723bu_update_bt_link_info() local 5971 btcoex->c2h_bt_inquiry = true; in rtl8723bu_update_bt_link_info() 5973 btcoex->c2h_bt_inquiry = false; in rtl8723bu_update_bt_link_info() 5976 btcoex->bt_status = BT_8723B_1ANT_STATUS_NON_CONNECTED_IDLE; in rtl8723bu_update_bt_link_info() 5977 btcoex->has_sco = false; in rtl8723bu_update_bt_link_info() 5978 btcoex->has_hid = false; in rtl8723bu_update_bt_link_info() 5979 btcoex->has_pan = false; in rtl8723bu_update_bt_link_info() 5980 btcoex->has_a2dp = false; in rtl8723bu_update_bt_link_info() 5983 btcoex->bt_status = BT_8723B_1ANT_STATUS_CONNECTED_IDLE; in rtl8723bu_update_bt_link_info() 5986 btcoex in rtl8723bu_update_bt_link_info() 6036 struct rtl8xxxu_btcoex *btcoex; rtl8723bu_handle_bt_inquiry() local 6062 struct rtl8xxxu_btcoex *btcoex; rtl8723bu_handle_bt_info() local 6120 struct rtl8xxxu_btcoex *btcoex; rtl8xxxu_c2hcmd_callback() local [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/btcoexist/ |
H A D | halbtc8821a1ant.c | 1309 static void btc8821a1ant_ps_tdma_check_for_pwr_save(struct btc_coexist *btcoex, in btc8821a1ant_ps_tdma_check_for_pwr_save() argument 1314 btcoex->btc_get(btcoex, BTC_GET_U1_LPS_MODE, &lps_mode); in btc8821a1ant_ps_tdma_check_for_pwr_save() 1322 btc8821a1ant_ps_tdma(btcoex, NORMAL_EXEC, false, 0); in btc8821a1ant_ps_tdma_check_for_pwr_save() 1328 btc8821a1ant_ps_tdma(btcoex, NORMAL_EXEC, false, 0); in btc8821a1ant_ps_tdma_check_for_pwr_save()
|
/kernel/linux/linux-6.6/drivers/net/wireless/realtek/rtlwifi/btcoexist/ |
H A D | halbtc8821a1ant.c | 1309 static void btc8821a1ant_ps_tdma_check_for_pwr_save(struct btc_coexist *btcoex, in btc8821a1ant_ps_tdma_check_for_pwr_save() argument 1314 btcoex->btc_get(btcoex, BTC_GET_U1_LPS_MODE, &lps_mode); in btc8821a1ant_ps_tdma_check_for_pwr_save() 1322 btc8821a1ant_ps_tdma(btcoex, NORMAL_EXEC, false, 0); in btc8821a1ant_ps_tdma_check_for_pwr_save() 1328 btc8821a1ant_ps_tdma(btcoex, NORMAL_EXEC, false, 0); in btc8821a1ant_ps_tdma_check_for_pwr_save()
|
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/ |
H A D | debug.c | 487 RTL_DEBUGFS_ADD(btcoex); in rtl_debug_add_one()
|
/kernel/linux/linux-6.6/drivers/net/wireless/realtek/rtlwifi/ |
H A D | debug.c | 487 RTL_DEBUGFS_ADD(btcoex); in rtl_debug_add_one()
|
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/include/ |
H A D | drv_types.h | 160 u8 btcoex; member
|