Lines Matching defs:mci

127 	struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci;
130 if (mci->bt_version_known ||
131 (mci->bt_state == MCI_BT_SLEEP))
142 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci;
148 mci->wlan_ver_major;
150 mci->wlan_ver_minor;
157 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci;
158 u32 *payload = &mci->wlan_channels[0];
160 if (!mci->wlan_channels_update ||
161 (mci->bt_state == MCI_BT_SLEEP))
173 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci;
177 if (mci->bt_state == MCI_BT_SLEEP)
194 mci->need_flush_btinfo = true;
198 mci->query_bt = false;
204 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci;
211 mci->query_bt = true;
213 mci->unhalt_bt_gpm = true;
214 mci->need_flush_btinfo = true;
227 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci;
231 mci->bt_state = MCI_BT_SLEEP;
247 mci->bt_state = MCI_BT_AWAKE;
288 if (mci->is_2g && MCI_ANT_ARCH_PA_LNA_SHARED(mci)) {
293 if (mci->is_2g && !mci->update_2g5g && MCI_ANT_ARCH_PA_LNA_SHARED(mci)) {
307 if ((mci->bt_state == MCI_BT_AWAKE) &&
323 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci;
326 (mci->bt_state != MCI_BT_SLEEP) &&
327 !mci->halted_bt_gpm) {
331 mci->ready = false;
358 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci;
360 *raw_intr = mci->raw_intr;
361 *rx_msg_intr = mci->rx_msg_intr;
364 mci->raw_intr = 0;
365 mci->rx_msg_intr = 0;
372 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci;
382 mci->rx_msg_intr |= rx_msg_intr;
383 mci->raw_intr |= raw_intr;
387 mci->cont_status = REG_READ(ah, AR_MCI_CONT_STATUS);
396 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci;
398 if (!mci->update_2g5g &&
399 (mci->is_2g != is_2g))
400 mci->update_2g5g = true;
402 mci->is_2g = is_2g;
407 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci;
416 payload = (u32 *)(mci->gpm_buf + offset);
427 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci;
429 if (mci->config & ATH_MCI_CONFIG_MCI_OBS_MCI) {
438 } else if (mci->config & ATH_MCI_CONFIG_MCI_OBS_TXRX) {
449 } else if (mci->config & ATH_MCI_CONFIG_MCI_OBS_BT) {
498 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci;
503 if (mci->bt_state != cur_bt_state)
504 mci->bt_state = cur_bt_state;
506 if (mci->bt_state != MCI_BT_SLEEP) {
511 if (mci->unhalt_bt_gpm == true)
518 struct ath9k_hw_mci *mci_hw = &ah->btcoex_hw.mci;
540 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci;
553 mci->bt_ver_major =
555 mci->bt_ver_minor =
557 mci->bt_version_known = true;
559 mci->bt_ver_major, mci->bt_ver_minor);
565 mci->wlan_channels_update = true;
569 mci->query_bt = true;
573 mci->query_bt = true;
587 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci;
615 p_gpm = (u32 *) (mci->gpm_buf + offset);
677 p_gpm = (u32 *) (mci->gpm_buf + offset);
694 struct ath9k_hw_mci *mci_hw = &ah->btcoex_hw.mci;
705 * MCI FIX: disable mci interrupt here. This is to avoid
725 /* MCI FIX: enable mci interrupt here */
734 struct ath9k_hw_mci *mci_hw = &ah->btcoex_hw.mci;
787 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci;
805 if (MCI_ANT_ARCH_PA_LNA_SHARED(mci)) {
815 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci;
830 if (!(mci->config & ATH_MCI_CONFIG_DISABLE_AGGR_THRESH)) {
831 thresh = MS(mci->config, ATH_MCI_CONFIG_AGGR_THRESH);
846 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci;
851 if (mci->config & ATH_MCI_CONFIG_MCI_STAT_DBG) {
922 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci;
934 REG_WRITE(ah, AR_MCI_GPM_0, mci->gpm_addr);
935 REG_WRITE(ah, AR_MCI_GPM_1, mci->gpm_len);
936 REG_WRITE(ah, AR_MCI_SCHD_TABLE_0, mci->sched_addr);
943 u8 ant = MS(mci->config, ATH_MCI_CONFIG_ANT_ARCH);
953 if (is_2g && !(mci->config & ATH_MCI_CONFIG_DISABLE_OSLA))
970 if (mci->config & ATH_MCI_CONFIG_CONCUR_TX) {
981 regval = MS(mci->config, ATH_MCI_CONFIG_CLK_DIV);
1016 if (MCI_ANT_ARCH_PA_LNA_SHARED(mci))
1025 mci->ready = true;
1040 struct ath9k_hw_mci *mci_hw = &ah->btcoex_hw.mci;
1056 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci;
1059 if (!mci->update_2g5g || (mci->bt_state == MCI_BT_SLEEP))
1062 if (mci->is_2g) {
1083 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci;
1102 mci->update_2g5g = queue;
1106 mci->wlan_channels_update = queue;
1111 mci->unhalt_bt_gpm = queue;
1114 mci->halted_bt_gpm = false;
1120 mci->halted_bt_gpm = !queue;
1131 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci;
1133 if (!mci->update_2g5g && !force)
1136 if (mci->is_2g) {
1146 if (!(mci->config & ATH_MCI_CONFIG_DISABLE_OSLA))
1170 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci;
1185 } else if (check_bt && (mci->bt_state == MCI_BT_SLEEP)) {
1233 struct ath9k_hw_mci *mci_hw = &ah->btcoex_hw.mci;
1255 struct ath9k_hw_mci *mci_hw = &ah->btcoex_hw.mci;
1270 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci;
1272 mci->gpm_addr = gpm_addr;
1273 mci->gpm_buf = gpm_buf;
1274 mci->gpm_len = len;
1275 mci->sched_addr = sched_addr;
1291 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci;
1297 if (mci->ready) {
1308 if (value < mci->gpm_len)
1309 mci->gpm_idx = value;
1311 mci->gpm_idx = 0;
1325 mci->bt_state = MCI_BT_AWAKE;
1329 if (mci->unhalt_bt_gpm)
1336 mci->update_2g5g = true;
1338 if (mci->config & ATH_MCI_CONFIG_MCI_OBS_MASK) {
1359 if ((tsf - mci->last_recovery) <= MCI_RECOVERY_DUR_TSF) {
1365 mci->last_recovery = tsf;
1367 mci->query_bt = true;
1368 mci->need_flush_btinfo = true;
1373 value = !(mci->config & ATH_MCI_CONFIG_DISABLE_FTP_STOMP);
1376 value = (!mci->unhalt_bt_gpm && mci->need_flush_btinfo) ? 1 : 0;
1377 mci->need_flush_btinfo = false;
1406 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci;
1414 mci->is_2g = false;
1415 mci->update_2g5g = true;
1419 mci->update_2g5g = true;
1459 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci;
1466 if (mci->gpm_idx == offset)
1469 mci->gpm_idx, offset);
1470 mci->query_bt = true;
1471 mci->need_flush_btinfo = true;
1472 mci->gpm_idx = 0;
1477 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci;
1496 offset = mci->gpm_len - 1;
1497 else if (offset >= mci->gpm_len) {
1504 if ((offset == 0xFFFF) || (gpm_ptr == mci->gpm_idx)) {
1514 if (offset != mci->gpm_idx)
1519 temp_index = mci->gpm_idx;
1521 if (temp_index >= mci->gpm_len)
1524 mci->gpm_idx++;
1526 if (mci->gpm_idx >= mci->gpm_len)
1527 mci->gpm_idx = 0;
1552 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci;
1554 mci->bt_ver_major = major;
1555 mci->bt_ver_minor = minor;
1556 mci->bt_version_known = true;
1558 mci->bt_ver_major, mci->bt_ver_minor);
1564 struct ath9k_hw_mci *mci = &ah->btcoex_hw.mci;
1566 mci->wlan_channels_update = true;
1573 if (!ah->btcoex_hw.mci.concur_tx)