Lines Matching refs:btcoex

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->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()
149 btcoex->duty_cycle = 30; in ath_mci_update_scheme()
160 btcoex->duty_cycle = AR_SREV_9565(sc->sc_ah) ? 40 : 35; in ath_mci_update_scheme()
161 btcoex->btcoex_period = 53; in ath_mci_update_scheme()
164 btcoex->duty_cycle, btcoex->btcoex_period); in ath_mci_update_scheme()
166 btcoex->duty_cycle = 30; in ath_mci_update_scheme()
174 btcoex->duty_cycle = 30; in ath_mci_update_scheme()
178 btcoex->duty_cycle); in ath_mci_update_scheme()
188 ath_mci_adjust_aggr_limit(btcoex); in ath_mci_update_scheme()
190 btcoex->btcoex_period >>= 1; in ath_mci_update_scheme()
199 btcoex->duty_cycle += (mci->num_bdr ? ATH_MCI_BDR_DUTY_CYCLE : 0); in ath_mci_update_scheme()
200 if (btcoex->duty_cycle > ATH_MCI_MAX_DUTY_CYCLE) in ath_mci_update_scheme()
201 btcoex->duty_cycle = ATH_MCI_MAX_DUTY_CYCLE; in ath_mci_update_scheme()
203 btcoex->btcoex_no_stomp = btcoex->btcoex_period * in ath_mci_update_scheme()
204 (100 - btcoex->duty_cycle) / 100; in ath_mci_update_scheme()
258 struct ath_btcoex *btcoex = &sc->btcoex; in ath_mci_set_concur_txprio() local
259 struct ath_mci_profile *mci = &btcoex->mci; in ath_mci_set_concur_txprio()
301 struct ath_btcoex *btcoex = &sc->btcoex; in ath_mci_process_profile() local
302 struct ath_mci_profile *mci = &btcoex->mci; in ath_mci_process_profile()
335 struct ath_btcoex *btcoex = &sc->btcoex; in ath_mci_process_status() local
336 struct ath_mci_profile *mci = &btcoex->mci; in ath_mci_process_status()
381 ath_mci_flush_profile(&sc->btcoex.mci); in ath_mci_msg()
732 struct ath_btcoex *btcoex = &sc->btcoex; in ath9k_mci_stomp_audio() local
733 struct ath_mci_profile *mci = &btcoex->mci; in ath9k_mci_stomp_audio()
739 btcoex->stomp_audio = 0; in ath9k_mci_stomp_audio()
743 btcoex->stomp_audio++; in ath9k_mci_stomp_audio()
748 struct ath_btcoex *btcoex = &sc->btcoex; in ath9k_mci_update_rssi() local
757 if (btcoex->rssi_count < 0) in ath9k_mci_update_rssi()
758 btcoex->rssi_count = 0; in ath9k_mci_update_rssi()
759 if (++btcoex->rssi_count >= ATH_MCI_CONCUR_TX_SWITCH) { in ath9k_mci_update_rssi()
760 btcoex->rssi_count = 0; in ath9k_mci_update_rssi()
764 if (btcoex->rssi_count > 0) in ath9k_mci_update_rssi()
765 btcoex->rssi_count = 0; in ath9k_mci_update_rssi()
766 if (--btcoex->rssi_count <= -ATH_MCI_CONCUR_TX_SWITCH) { in ath9k_mci_update_rssi()
767 btcoex->rssi_count = 0; in ath9k_mci_update_rssi()