Lines Matching defs:btcoex_hw

61 	struct ath_btcoex_hw *btcoex_hw = &ah->btcoex_hw;
86 btcoex_hw->bt_coex_mode3 =
90 btcoex_hw->bt_coex_mode2 =
95 btcoex_hw->bt_coex_mode =
96 (btcoex_hw->bt_coex_mode & AR_BT_QCU_THRESH) |
107 btcoex_hw->bt_coex_mode2 |=
117 struct ath_btcoex_hw *btcoex_hw = &ah->btcoex_hw;
120 if (btcoex_hw->scheme != ATH_BTCOEX_CFG_2WIRE &&
121 btcoex_hw->scheme != ATH_BTCOEX_CFG_3WIRE)
127 btcoex_hw->btactive_gpio = pdata->bt_active_pin;
128 btcoex_hw->wlanactive_gpio = pdata->wlan_active_pin;
129 btcoex_hw->btpriority_gpio = pdata->bt_priority_pin;
131 btcoex_hw->btactive_gpio = btactive_gpio;
132 btcoex_hw->wlanactive_gpio = wlanactive_gpio;
133 btcoex_hw->btpriority_gpio = btpriority_gpio;
140 struct ath_btcoex_hw *btcoex_hw = &ah->btcoex_hw;
146 btcoex_hw->scheme = ATH_BTCOEX_CFG_NONE;
151 btcoex_hw->scheme = ATH_BTCOEX_CFG_MCI;
153 btcoex_hw->scheme = ATH_BTCOEX_CFG_3WIRE;
160 btcoex_hw->scheme = ATH_BTCOEX_CFG_3WIRE;
162 btcoex_hw->scheme = ATH_BTCOEX_CFG_2WIRE;
173 struct ath_btcoex_hw *btcoex_hw = &ah->btcoex_hw;
187 btcoex_hw->btactive_gpio);
190 ath9k_hw_gpio_request_in(ah, btcoex_hw->btactive_gpio,
197 struct ath_btcoex_hw *btcoex_hw = &ah->btcoex_hw;
209 btcoex_hw->btactive_gpio);
212 btcoex_hw->btpriority_gpio);
216 ath9k_hw_gpio_request_in(ah, btcoex_hw->btactive_gpio,
218 ath9k_hw_gpio_request_in(ah, btcoex_hw->btpriority_gpio,
225 struct ath_btcoex_hw *btcoex_hw = &ah->btcoex_hw;
227 ath9k_hw_gpio_free(ah, btcoex_hw->btactive_gpio);
228 ath9k_hw_gpio_free(ah, btcoex_hw->btpriority_gpio);
229 ath9k_hw_gpio_free(ah, btcoex_hw->wlanactive_gpio);
235 ah->btcoex_hw.mci.ready = false;
236 ah->btcoex_hw.mci.bt_state = 0;
237 ah->btcoex_hw.mci.bt_ver_major = 3;
238 ah->btcoex_hw.mci.bt_ver_minor = 0;
239 ah->btcoex_hw.mci.bt_version_known = false;
240 ah->btcoex_hw.mci.update_2g5g = true;
241 ah->btcoex_hw.mci.is_2g = true;
242 ah->btcoex_hw.mci.wlan_channels_update = false;
243 ah->btcoex_hw.mci.wlan_channels[0] = 0x00000000;
244 ah->btcoex_hw.mci.wlan_channels[1] = 0xffffffff;
245 ah->btcoex_hw.mci.wlan_channels[2] = 0xffffffff;
246 ah->btcoex_hw.mci.wlan_channels[3] = 0x7fffffff;
247 ah->btcoex_hw.mci.query_bt = true;
248 ah->btcoex_hw.mci.unhalt_bt_gpm = true;
249 ah->btcoex_hw.mci.halted_bt_gpm = false;
250 ah->btcoex_hw.mci.need_flush_btinfo = false;
251 ah->btcoex_hw.mci.wlan_cal_seq = 0;
252 ah->btcoex_hw.mci.wlan_cal_done = 0;
253 ah->btcoex_hw.mci.config = (AR_SREV_9462(ah)) ? 0x2201 : 0xa4c1;
259 struct ath_btcoex_hw *btcoex_hw = &ah->btcoex_hw;
262 ath9k_hw_gpio_request_out(ah, btcoex_hw->wlanactive_gpio,
276 struct ath_btcoex_hw *btcoex_hw = &ah->btcoex_hw;
277 struct ath9k_hw_mci *mci_hw = &ah->btcoex_hw.mci;
279 bool concur_tx = (mci_hw->concur_tx && btcoex_hw->tx_prio[stomp_type]);
284 btcoex_hw->bt_coex_weights =
293 btcoex_hw->mci.stomp_ftp) ?
299 btcoex_hw->bt_weight[i] = AR9300_BT_WGHT;
300 btcoex_hw->wlan_weight[i] = weight[i];
302 btcoex_hw->wlan_weight[i] &=
304 btcoex_hw->wlan_weight[i] |=
305 (btcoex_hw->tx_prio[stomp_type] <<
312 btcoex_hw->wlan_weight[i-1] &= ~(0xff << txprio_shift[i-1]);
313 btcoex_hw->wlan_weight[i-1] |= (btcoex_hw->tx_prio[stomp_type]
322 struct ath_btcoex_hw *btcoex = &ah->btcoex_hw;
364 struct ath_btcoex_hw *btcoex = &ah->btcoex_hw;
377 struct ath_btcoex_hw *btcoex_hw = &ah->btcoex_hw;
384 btcoex_hw->wlan_weight[i]);
389 struct ath_btcoex_hw *btcoex_hw = &ah->btcoex_hw;
408 (0x2 << (btcoex_hw->btactive_gpio * 2)),
409 (0x3 << (btcoex_hw->btactive_gpio * 2)));
412 ah->btcoex_hw.enabled = true;
418 struct ath_btcoex_hw *btcoex_hw = &ah->btcoex_hw;
421 btcoex_hw->enabled = false;
429 ath9k_hw_set_gpio(ah, btcoex_hw->wlanactive_gpio, 0);
431 ath9k_hw_gpio_request_out(ah, btcoex_hw->wlanactive_gpio,
434 if (btcoex_hw->scheme == ATH_BTCOEX_CFG_3WIRE) {
483 struct ath_btcoex_hw *btcoex = &ah->btcoex_hw;