Home
last modified time | relevance | path

Searched refs:btcoex (Results 1 – 20 of 20) sorted by relevance

/linux/drivers/net/wireless/ath/ath9k/
H A Dgpio.c144 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->bt_priority_cnt >= ATH_BT_CNT_THRESHOLD) { in ath_detect_bt_priority()
163 set_bit(BT_OP_PRIORITY_DETECTED, &btcoex->op_flags); in ath_detect_bt_priority()
[all …]
H A Dhtc_drv_gpio.c32 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
83 ATH_BTCOEX_STOMP_ALL : btcoex->bt_stomp_type); in ath_btcoex_period_work()
87 btcoex->btscan_no_stomp : btcoex->btcoex_no_stomp; in ath_btcoex_period_work()
[all …]
H A Dmci.c102 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->bt_stomp_type = ATH_BTCOEX_STOMP_LOW; in ath_mci_update_scheme()
137 btcoex->bt_stomp_type = mci->num_mgmt ? ATH_BTCOEX_STOMP_ALL : in ath_mci_update_scheme()
[all …]
H A Dar9002_phy.c418 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 DMakefile50 ath9k_hw-$(CONFIG_ATH9K_BTCOEX_SUPPORT) += btcoex.o \
H A Dhtc.h531 struct ath_btcoex btcoex; member
H A Dath9k.h1051 struct ath_btcoex btcoex; member
/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dbtcoex.c381 cfg->btcoex = btci; in brcmf_btcoex_attach()
393 if (!cfg->btcoex) in brcmf_btcoex_detach()
396 timer_shutdown_sync(&cfg->btcoex->timer); in brcmf_btcoex_detach()
397 cfg->btcoex->timer_on = false; in brcmf_btcoex_detach()
399 cancel_work_sync(&cfg->btcoex->work); in brcmf_btcoex_detach()
401 brcmf_btcoex_boost_wifi(cfg->btcoex, false); in brcmf_btcoex_detach()
402 brcmf_btcoex_restore_part1(cfg->btcoex); in brcmf_btcoex_detach()
404 kfree(cfg->btcoex); in brcmf_btcoex_detach()
405 cfg->btcoex = NULL; in brcmf_btcoex_detach()
454 struct brcmf_btcoex_info *btci = cfg->btcoex; in brcmf_btcoex_set_mode()
H A DMakefile25 btcoex.o \
H A Dcfg80211.h369 struct brcmf_btcoex_info *btcoex; member
/linux/drivers/net/wireless/realtek/rtw88/
H A Drtw88xxa.c244 efuse->btcoex = rtw_read32_mask(rtwdev, REG_WL_BT_PWR_CTRL, in rtw88xxa_read_efuse()
247 efuse->btcoex = (map->rf_board_option & 0xe0) == 0x20; in rtw88xxa_read_efuse()
562 if (rtwdev->efuse.btcoex) in rtw88xxa_init_beacon_parameters()
716 if (!rtwdev->efuse.btcoex) in rtw88xxa_power_off()
728 if (rtwdev->efuse.btcoex) in rtw88xxa_power_off()
832 if (rtwdev->efuse.btcoex) { in rtw8812a_phy_set_rfe_reg_24g()
884 if (rtwdev->efuse.btcoex) { in rtw8812a_phy_set_rfe_reg_5g()
935 if (chip->id == RTW_CHIP_TYPE_8821A && !rtwdev->efuse.btcoex && in rtw88xxa_switch_band()
1019 efuse->btcoex = rtw_read32_mask(rtwdev, REG_WL_BT_PWR_CTRL, in rtw88xxa_power_on()
1228 if (efuse->btcoex) { in rtw88xxa_power_on()
H A Drtw8821a.c768 if (!rtwdev->efuse.btcoex) in rtw8821a_coex_cfg_ant_switch()
H A Dmain.c1431 wifi_only = !rtwdev->efuse.btcoex; in rtw_power_on()
2027 efuse->btcoex = (efuse->rf_board_option & 0xe0) == 0x20; in rtw_chip_efuse_info_setup()
H A Dmain.h1821 bool btcoex; member
H A Dphy.c1115 cond.rfe |= efuse->btcoex << 4; in rtw_phy_setup_phy_cond()
/linux/drivers/net/wireless/realtek/rtlwifi/btcoexist/
H A Dhalbtc8821a1ant.c1309 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()
H A Dhalbtc8821a2ant.c961 static void btc8821a2ant_set_fw_ignore_wlan_act(struct btc_coexist *btcoex, in btc8821a2ant_set_fw_ignore_wlan_act() argument
964 struct rtl_priv *rtlpriv = btcoex->adapter; in btc8821a2ant_set_fw_ignore_wlan_act()
974 btcoex->btc_fill_h2c(btcoex, 0x63, 1, h2c_parameter); in btc8821a2ant_set_fw_ignore_wlan_act()
H A Dhalbtc8723b2ant.c805 static void btc8723b2ant_set_sw_fulltime_dac_swing(struct btc_coexist *btcoex, in btc8723b2ant_set_sw_fulltime_dac_swing() argument
810 btc8723b2ant_set_dac_swing_reg(btcoex, sw_dac_swing_lvl); in btc8723b2ant_set_sw_fulltime_dac_swing()
812 btc8723b2ant_set_dac_swing_reg(btcoex, 0x18); in btc8723b2ant_set_sw_fulltime_dac_swing()
/linux/drivers/net/wireless/realtek/rtlwifi/
H A Ddebug.c487 RTL_DEBUGFS_ADD(btcoex); in rtl_debug_add_one()
/linux/drivers/net/wireless/broadcom/b43/
H A Dmain.c101 module_param_named(btcoex, modparam_btcoex, int, 0444);
102 MODULE_PARM_DESC(btcoex, "Enable Bluetooth coexistence (default on)");