Searched refs:btcoex_hw (Results 1 - 8 of 8) sorted by relevance
/linux-4.4.14/drivers/net/wireless/ath/ath9k/ |
H A D | btcoex.c | 57 struct ath_btcoex_hw *btcoex_hw = &ah->btcoex_hw; ath9k_hw_init_btcoex_hw() local 74 btcoex_hw->bt_coex_mode = ath9k_hw_init_btcoex_hw() 75 (btcoex_hw->bt_coex_mode & AR_BT_QCU_THRESH) | ath9k_hw_init_btcoex_hw() 86 btcoex_hw->bt_coex_mode2 = ath9k_hw_init_btcoex_hw() 96 struct ath_btcoex_hw *btcoex_hw = &ah->btcoex_hw; ath9k_hw_btcoex_init_scheme() local 102 btcoex_hw->scheme = ATH_BTCOEX_CFG_NONE; ath9k_hw_btcoex_init_scheme() 107 btcoex_hw->scheme = ATH_BTCOEX_CFG_MCI; ath9k_hw_btcoex_init_scheme() 109 btcoex_hw->scheme = ATH_BTCOEX_CFG_3WIRE; ath9k_hw_btcoex_init_scheme() 110 btcoex_hw->btactive_gpio = ATH_BTACTIVE_GPIO_9300; ath9k_hw_btcoex_init_scheme() 111 btcoex_hw->wlanactive_gpio = ATH_WLANACTIVE_GPIO_9300; ath9k_hw_btcoex_init_scheme() 112 btcoex_hw->btpriority_gpio = ATH_BTPRIORITY_GPIO_9300; ath9k_hw_btcoex_init_scheme() 114 btcoex_hw->btactive_gpio = ATH_BTACTIVE_GPIO_9280; ath9k_hw_btcoex_init_scheme() 115 btcoex_hw->wlanactive_gpio = ATH_WLANACTIVE_GPIO_9280; ath9k_hw_btcoex_init_scheme() 118 btcoex_hw->scheme = ATH_BTCOEX_CFG_3WIRE; ath9k_hw_btcoex_init_scheme() 119 btcoex_hw->btpriority_gpio = ATH_BTPRIORITY_GPIO_9285; ath9k_hw_btcoex_init_scheme() 121 btcoex_hw->scheme = ATH_BTCOEX_CFG_2WIRE; ath9k_hw_btcoex_init_scheme() 129 struct ath_btcoex_hw *btcoex_hw = &ah->btcoex_hw; ath9k_hw_btcoex_init_2wire() local 142 btcoex_hw->btactive_gpio); ath9k_hw_btcoex_init_2wire() 145 ath9k_hw_cfg_gpio_input(ah, btcoex_hw->btactive_gpio); ath9k_hw_btcoex_init_2wire() 151 struct ath_btcoex_hw *btcoex_hw = &ah->btcoex_hw; ath9k_hw_btcoex_init_3wire() local 162 btcoex_hw->btactive_gpio); ath9k_hw_btcoex_init_3wire() 166 btcoex_hw->btpriority_gpio); ath9k_hw_btcoex_init_3wire() 170 ath9k_hw_cfg_gpio_input(ah, btcoex_hw->btactive_gpio); ath9k_hw_btcoex_init_3wire() 171 ath9k_hw_cfg_gpio_input(ah, btcoex_hw->btpriority_gpio); ath9k_hw_btcoex_init_3wire() 177 ah->btcoex_hw.mci.ready = false; ath9k_hw_btcoex_init_mci() 178 ah->btcoex_hw.mci.bt_state = 0; ath9k_hw_btcoex_init_mci() 179 ah->btcoex_hw.mci.bt_ver_major = 3; ath9k_hw_btcoex_init_mci() 180 ah->btcoex_hw.mci.bt_ver_minor = 0; ath9k_hw_btcoex_init_mci() 181 ah->btcoex_hw.mci.bt_version_known = false; ath9k_hw_btcoex_init_mci() 182 ah->btcoex_hw.mci.update_2g5g = true; ath9k_hw_btcoex_init_mci() 183 ah->btcoex_hw.mci.is_2g = true; ath9k_hw_btcoex_init_mci() 184 ah->btcoex_hw.mci.wlan_channels_update = false; ath9k_hw_btcoex_init_mci() 185 ah->btcoex_hw.mci.wlan_channels[0] = 0x00000000; ath9k_hw_btcoex_init_mci() 186 ah->btcoex_hw.mci.wlan_channels[1] = 0xffffffff; ath9k_hw_btcoex_init_mci() 187 ah->btcoex_hw.mci.wlan_channels[2] = 0xffffffff; ath9k_hw_btcoex_init_mci() 188 ah->btcoex_hw.mci.wlan_channels[3] = 0x7fffffff; ath9k_hw_btcoex_init_mci() 189 ah->btcoex_hw.mci.query_bt = true; ath9k_hw_btcoex_init_mci() 190 ah->btcoex_hw.mci.unhalt_bt_gpm = true; ath9k_hw_btcoex_init_mci() 191 ah->btcoex_hw.mci.halted_bt_gpm = false; ath9k_hw_btcoex_init_mci() 192 ah->btcoex_hw.mci.need_flush_btinfo = false; ath9k_hw_btcoex_init_mci() 193 ah->btcoex_hw.mci.wlan_cal_seq = 0; ath9k_hw_btcoex_init_mci() 194 ah->btcoex_hw.mci.wlan_cal_done = 0; ath9k_hw_btcoex_init_mci() 195 ah->btcoex_hw.mci.config = (AR_SREV_9462(ah)) ? 0x2201 : 0xa4c1; ath9k_hw_btcoex_init_mci() 201 struct ath_btcoex_hw *btcoex_hw = &ah->btcoex_hw; ath9k_hw_btcoex_enable_2wire() local 204 ath9k_hw_cfg_output(ah, btcoex_hw->wlanactive_gpio, ath9k_hw_btcoex_enable_2wire() 217 struct ath_btcoex_hw *btcoex_hw = &ah->btcoex_hw; ath9k_hw_btcoex_set_weight() local 218 struct ath9k_hw_mci *mci_hw = &ah->btcoex_hw.mci; ath9k_hw_btcoex_set_weight() 220 bool concur_tx = (mci_hw->concur_tx && btcoex_hw->tx_prio[stomp_type]); ath9k_hw_btcoex_set_weight() 225 btcoex_hw->bt_coex_weights = ath9k_hw_btcoex_set_weight() 234 btcoex_hw->mci.stomp_ftp) ? ath9k_hw_btcoex_set_weight() 240 btcoex_hw->bt_weight[i] = AR9300_BT_WGHT; ath9k_hw_btcoex_set_weight() 241 btcoex_hw->wlan_weight[i] = weight[i]; ath9k_hw_btcoex_set_weight() 243 btcoex_hw->wlan_weight[i] &= ath9k_hw_btcoex_set_weight() 245 btcoex_hw->wlan_weight[i] |= ath9k_hw_btcoex_set_weight() 246 (btcoex_hw->tx_prio[stomp_type] << ath9k_hw_btcoex_set_weight() 252 btcoex_hw->wlan_weight[i-1] &= ~(0xff << txprio_shift[i-1]); ath9k_hw_btcoex_set_weight() 253 btcoex_hw->wlan_weight[i-1] |= (btcoex_hw->tx_prio[stomp_type] ath9k_hw_btcoex_set_weight() 263 struct ath_btcoex_hw *btcoex = &ah->btcoex_hw; ath9k_hw_btcoex_enable_3wire() 301 struct ath_btcoex_hw *btcoex = &ah->btcoex_hw; ath9k_hw_btcoex_enable_mci() 314 struct ath_btcoex_hw *btcoex_hw = &ah->btcoex_hw; ath9k_hw_btcoex_disable_mci() local 321 btcoex_hw->wlan_weight[i]); ath9k_hw_btcoex_disable_mci() 326 struct ath_btcoex_hw *btcoex_hw = &ah->btcoex_hw; ath9k_hw_btcoex_enable() local 344 (0x2 << (btcoex_hw->btactive_gpio * 2)), ath9k_hw_btcoex_enable() 345 (0x3 << (btcoex_hw->btactive_gpio * 2))); ath9k_hw_btcoex_enable() 348 ah->btcoex_hw.enabled = true; ath9k_hw_btcoex_enable() 354 struct ath_btcoex_hw *btcoex_hw = &ah->btcoex_hw; ath9k_hw_btcoex_disable() local 357 btcoex_hw->enabled = false; ath9k_hw_btcoex_disable() 365 ath9k_hw_set_gpio(ah, btcoex_hw->wlanactive_gpio, 0); ath9k_hw_btcoex_disable() 367 ath9k_hw_cfg_output(ah, btcoex_hw->wlanactive_gpio, ath9k_hw_btcoex_disable() 370 if (btcoex_hw->scheme == ATH_BTCOEX_CFG_3WIRE) { ath9k_hw_btcoex_disable() 419 struct ath_btcoex_hw *btcoex = &ah->btcoex_hw; ath9k_hw_btcoex_set_concur_txprio()
|
H A D | ar9003_mci.c | 127 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci; ar9003_mci_send_coex_version_query() 142 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci; ar9003_mci_send_coex_version_response() 157 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci; ar9003_mci_send_coex_wlan_channels() 173 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci; ar9003_mci_send_coex_bt_status_query() 204 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci; ar9003_mci_send_coex_halt_bt_gpm() 227 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci; ar9003_mci_prep_interface() 323 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci; ar9003_mci_set_full_sleep() 358 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci; ar9003_mci_get_interrupt() 372 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci; ar9003_mci_get_isr() 396 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci; ar9003_mci_2g5g_changed() 407 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci; ar9003_mci_is_gpm_valid() 427 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci; ar9003_mci_observation_set_up() 485 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci; ar9003_mci_sync_bt_state() 505 struct ath9k_hw_mci *mci_hw = &ah->btcoex_hw.mci; ar9003_mci_check_bt() 527 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci; ar9003_mci_process_gpm_extra() 574 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci; ar9003_mci_wait_for_gpm() 682 struct ath9k_hw_mci *mci_hw = &ah->btcoex_hw.mci; ar9003_mci_start_reset() 722 struct ath9k_hw_mci *mci_hw = &ah->btcoex_hw.mci; ar9003_mci_end_reset() 775 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci; ar9003_mci_mute_bt() 803 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci; ar9003_mci_osla_setup() 834 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci; ar9003_mci_stat_setup() 910 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci; ar9003_mci_reset() 1028 struct ath9k_hw_mci *mci_hw = &ah->btcoex_hw.mci; ar9003_mci_stop_bt() 1044 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci; ar9003_mci_send_2g5g_status() 1073 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci; ar9003_mci_queue_unsent_gpm() 1121 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci; ar9003_mci_2g5g_switch() 1160 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci; ar9003_mci_send_message() 1223 struct ath9k_hw_mci *mci_hw = &ah->btcoex_hw.mci; ar9003_mci_init_cal_req() 1245 struct ath9k_hw_mci *mci_hw = &ah->btcoex_hw.mci; ar9003_mci_init_cal_done() 1260 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci; ar9003_mci_setup() 1281 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci; ar9003_mci_state() 1396 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci; ar9003_mci_bt_gain_ctrl() 1449 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci; ar9003_mci_check_gpm_offset() 1467 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci; ar9003_mci_get_next_gpm_offset() 1542 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci; ar9003_mci_set_bt_version() 1554 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci; ar9003_mci_send_wlan_channels() 1563 if (!ah->btcoex_hw.mci.concur_tx) ar9003_mci_get_max_txpower()
|
H A D | htc_drv_gpio.c | 35 if (ath9k_hw_gpio_get(ah, ah->btcoex_hw.btpriority_gpio)) ath_detect_bt_priority() 174 if (ah->btcoex_hw.enabled && ath9k_htc_stop_btcoex() 176 if (ah->btcoex_hw.scheme == ATH_BTCOEX_CFG_3WIRE) ath9k_htc_stop_btcoex() 192 ah->btcoex_hw.scheme = ATH_BTCOEX_CFG_NONE; ath9k_htc_init_btcoex() 197 ah->btcoex_hw.scheme = ATH_BTCOEX_CFG_3WIRE; ath9k_htc_init_btcoex() 204 priv->ah->btcoex_hw.btactive_gpio = 7; ath9k_htc_init_btcoex() 205 priv->ah->btcoex_hw.btpriority_gpio = 6; ath9k_htc_init_btcoex() 206 priv->ah->btcoex_hw.wlanactive_gpio = 8; ath9k_htc_init_btcoex()
|
H A D | gpio.c | 147 if (ath9k_hw_gpio_get(sc->sc_ah, ah->btcoex_hw.btpriority_gpio)) ath_detect_bt_priority() 180 ah->btcoex_hw.mci.stomp_ftp = ath_mci_ftp_adjust() 183 ah->btcoex_hw.mci.stomp_ftp = false; ath_mci_ftp_adjust() 370 if (ah->btcoex_hw.enabled || ath9k_start_btcoex() 388 if (!ah->btcoex_hw.enabled || ath9k_stop_btcoex() 452 struct ath_btcoex_hw *btcoex_hw = &ah->btcoex_hw; ath9k_dump_mci_btcoex() local 469 ATH_DUMP_BTCOEX("Concurrent Tx", btcoex_hw->mci.concur_tx); ath9k_dump_mci_btcoex() 475 btcoex_hw->bt_weight[i]); ath9k_dump_mci_btcoex() 480 btcoex_hw->wlan_weight[i]); ath9k_dump_mci_btcoex() 485 btcoex_hw->tx_prio[i]); ath9k_dump_mci_btcoex()
|
H A D | ar9003_aic.c | 42 struct ath9k_hw_mci *mci_hw = &ah->btcoex_hw.mci; ar9003_hw_is_aic_enabled() 167 struct ath9k_hw_aic *aic = &ah->btcoex_hw.aic; ar9003_aic_cal_start() 266 struct ath9k_hw_aic *aic = &ah->btcoex_hw.aic; ar9003_aic_cal_post_process() 438 struct ath9k_hw_aic *aic = &ah->btcoex_hw.aic; ar9003_aic_cal_done() 454 struct ath9k_hw_mci *mci_hw = &ah->btcoex_hw.mci; ar9003_aic_cal_continue() 455 struct ath9k_hw_aic *aic = &ah->btcoex_hw.aic; ar9003_aic_cal_continue() 520 struct ath9k_hw_aic *aic = &ah->btcoex_hw.aic; ar9003_aic_calibration() 542 struct ath9k_hw_aic *aic = &ah->btcoex_hw.aic; ar9003_aic_start_normal() 574 struct ath9k_hw_aic *aic = &ah->btcoex_hw.aic; ar9003_aic_cal_reset() 582 struct ath9k_hw_mci *mci_hw = &ah->btcoex_hw.mci; ar9003_aic_calibration_single()
|
H A D | mci.c | 124 struct ath9k_hw_mci *mci_hw = &sc->sc_ah->btcoex_hw.mci; ath_mci_update_scheme() 214 struct ath9k_hw_mci *mci_hw = &ah->btcoex_hw.mci; ath_mci_cal_msg() 488 struct ath9k_hw_mci *mci_hw = &ah->btcoex_hw.mci; ath_mci_intr() 645 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci; ath9k_mci_update_wlan_channels() 696 struct ath9k_hw_mci *mci_hw = &sc->sc_ah->btcoex_hw.mci; ath9k_mci_set_txpower() 745 struct ath9k_hw_mci *mci_hw = &sc->sc_ah->btcoex_hw.mci; ath9k_mci_update_rssi()
|
H A D | hw.h | 889 struct ath_btcoex_hw btcoex_hw; member in struct:ath_hw 1151 return ah->btcoex_hw.enabled; ath9k_hw_btcoex_is_enabled() 1163 return ah->btcoex_hw.scheme; ath9k_hw_get_btcoex_scheme()
|
H A D | ar9002_phy.c | 417 struct ath_btcoex_hw *btcoex = &ah->btcoex_hw; ar9002_hw_set_bt_ant_diversity()
|
Completed in 152 milliseconds