Lines Matching refs:coex_sta
47 static struct coex_sta_8821a_2ant *coex_sta = &glcoex_sta_8821a_2ant; variable
69 u8 bt_rssi_state = coex_sta->pre_bt_rssi_state; in btc8821a2ant_bt_rssi_state()
71 bt_rssi = coex_sta->bt_rssi; in btc8821a2ant_bt_rssi_state()
74 if ((coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW) || in btc8821a2ant_bt_rssi_state()
75 (coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_STAY_LOW)) { in btc8821a2ant_bt_rssi_state()
101 return coex_sta->pre_bt_rssi_state; in btc8821a2ant_bt_rssi_state()
104 if ((coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW) || in btc8821a2ant_bt_rssi_state()
105 (coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_STAY_LOW)) { in btc8821a2ant_bt_rssi_state()
117 } else if ((coex_sta->pre_bt_rssi_state == in btc8821a2ant_bt_rssi_state()
119 (coex_sta->pre_bt_rssi_state == in btc8821a2ant_bt_rssi_state()
149 coex_sta->pre_bt_rssi_state = bt_rssi_state; in btc8821a2ant_bt_rssi_state()
160 u8 wifi_rssi_state = coex_sta->pre_wifi_rssi_state[index]; in btc8821a2ant_wifi_rssi_state()
165 if ((coex_sta->pre_wifi_rssi_state[index] == in btc8821a2ant_wifi_rssi_state()
167 (coex_sta->pre_wifi_rssi_state[index] == in btc8821a2ant_wifi_rssi_state()
194 return coex_sta->pre_wifi_rssi_state[index]; in btc8821a2ant_wifi_rssi_state()
197 if ((coex_sta->pre_wifi_rssi_state[index] == in btc8821a2ant_wifi_rssi_state()
199 (coex_sta->pre_wifi_rssi_state[index] == in btc8821a2ant_wifi_rssi_state()
212 } else if ((coex_sta->pre_wifi_rssi_state[index] == in btc8821a2ant_wifi_rssi_state()
214 (coex_sta->pre_wifi_rssi_state[index] == in btc8821a2ant_wifi_rssi_state()
242 coex_sta->pre_wifi_rssi_state[index] = wifi_rssi_state; in btc8821a2ant_wifi_rssi_state()
286 coex_sta->high_priority_tx = reg_hp_tx; in btc8821a2ant_monitor_bt_ctr()
287 coex_sta->high_priority_rx = reg_hp_rx; in btc8821a2ant_monitor_bt_ctr()
288 coex_sta->low_priority_tx = reg_lp_tx; in btc8821a2ant_monitor_bt_ctr()
289 coex_sta->low_priority_rx = reg_lp_rx; in btc8821a2ant_monitor_bt_ctr()
291 if ((coex_sta->low_priority_rx >= 950) && in btc8821a2ant_monitor_bt_ctr()
292 (coex_sta->low_priority_rx >= coex_sta->low_priority_tx) && in btc8821a2ant_monitor_bt_ctr()
293 (!coex_sta->under_ips)) in btc8821a2ant_monitor_bt_ctr()
311 if (coex_sta->under_ips) { in btc8821a2ant_monitor_wifi_ctr()
312 coex_sta->crc_ok_cck = 0; in btc8821a2ant_monitor_wifi_ctr()
313 coex_sta->crc_ok_11g = 0; in btc8821a2ant_monitor_wifi_ctr()
314 coex_sta->crc_ok_11n = 0; in btc8821a2ant_monitor_wifi_ctr()
315 coex_sta->crc_ok_11n_agg = 0; in btc8821a2ant_monitor_wifi_ctr()
317 coex_sta->crc_err_cck = 0; in btc8821a2ant_monitor_wifi_ctr()
318 coex_sta->crc_err_11g = 0; in btc8821a2ant_monitor_wifi_ctr()
319 coex_sta->crc_err_11n = 0; in btc8821a2ant_monitor_wifi_ctr()
320 coex_sta->crc_err_11n_agg = 0; in btc8821a2ant_monitor_wifi_ctr()
322 coex_sta->crc_ok_cck = in btc8821a2ant_monitor_wifi_ctr()
324 coex_sta->crc_ok_11g = in btc8821a2ant_monitor_wifi_ctr()
326 coex_sta->crc_ok_11n = in btc8821a2ant_monitor_wifi_ctr()
328 coex_sta->crc_ok_11n_agg = in btc8821a2ant_monitor_wifi_ctr()
331 coex_sta->crc_err_cck = in btc8821a2ant_monitor_wifi_ctr()
333 coex_sta->crc_err_11g = in btc8821a2ant_monitor_wifi_ctr()
335 coex_sta->crc_err_11n = in btc8821a2ant_monitor_wifi_ctr()
337 coex_sta->crc_err_11n_agg = in btc8821a2ant_monitor_wifi_ctr()
351 coex_sta->c2h_bt_info_req_sent = true; in btc8821a2ant_query_bt_info()
410 bt_link_info->bt_link_exist = coex_sta->bt_link_exist; in btc8821a2ant_update_bt_link_info()
411 bt_link_info->sco_exist = coex_sta->sco_exist; in btc8821a2ant_update_bt_link_info()
412 bt_link_info->a2dp_exist = coex_sta->a2dp_exist; in btc8821a2ant_update_bt_link_info()
413 bt_link_info->pan_exist = coex_sta->pan_exist; in btc8821a2ant_update_bt_link_info()
414 bt_link_info->hid_exist = coex_sta->hid_exist; in btc8821a2ant_update_bt_link_info()
903 coex_sta->coex_table_type = type; in btc8821a2ant_coex_table_with_type()
1408 coex_sta->force_lps_on = false; in btc8821a2ant_power_save_state()
1421 coex_sta->force_lps_on = true; in btc8821a2ant_power_save_state()
1427 coex_sta->force_lps_on = false; in btc8821a2ant_power_save_state()
1554 if (BTC_RSSI_HIGH(wifi_rssi_state1) && (coex_sta->hid_exist) && in btc8821a2ant_action_wifi_idle_process()
1555 (coex_sta->a2dp_exist)) { in btc8821a2ant_action_wifi_idle_process()
1574 } else if (coex_sta->pan_exist) { in btc8821a2ant_action_wifi_idle_process()
1825 retry_count = coex_sta->bt_retry_cnt; in btc8821a2ant_tdma_duration_adjust()
3428 if (coex_sta->under_ips) { in btc8821a2ant_run_coexist_mechanism()
3435 if (coex_sta->c2h_bt_inquiry_page && in btc8821a2ant_run_coexist_mechanism()
3601 coex_sta->dis_ver_info_cnt = 0; in ex_btc8821a2ant_init_hwconfig()
3746 bt_info_ext = coex_sta->bt_info_ext; in ex_btc8821a2ant_display_coex_info()
3751 if (coex_sta->bt_info_c2h_cnt[i]) { in ex_btc8821a2ant_display_coex_info()
3754 coex_sta->bt_info_c2h[i], in ex_btc8821a2ant_display_coex_info()
3755 coex_sta->bt_info_c2h_cnt[i]); in ex_btc8821a2ant_display_coex_info()
3761 ((coex_sta->under_ips ? "IPS ON" : "IPS OFF")), in ex_btc8821a2ant_display_coex_info()
3762 ((coex_sta->under_lps ? "LPS ON" : "LPS OFF"))); in ex_btc8821a2ant_display_coex_info()
3846 coex_sta->high_priority_rx, coex_sta->high_priority_tx); in ex_btc8821a2ant_display_coex_info()
3849 coex_sta->low_priority_rx, coex_sta->low_priority_tx); in ex_btc8821a2ant_display_coex_info()
3867 coex_sta->under_ips = true; in ex_btc8821a2ant_ips_notify()
3874 coex_sta->under_ips = false; in ex_btc8821a2ant_ips_notify()
3888 coex_sta->under_lps = true; in ex_btc8821a2ant_lps_notify()
3892 coex_sta->under_lps = false; in ex_btc8821a2ant_lps_notify()
3991 coex_sta->c2h_bt_info_req_sent = false; in ex_btc8821a2ant_bt_info_notify()
3999 coex_sta->bt_info_c2h_cnt[rsp_source]++; in ex_btc8821a2ant_bt_info_notify()
4005 coex_sta->bt_info_c2h[rsp_source][i] = tmp_buf[i]; in ex_btc8821a2ant_bt_info_notify()
4025 coex_sta->bt_retry_cnt = in ex_btc8821a2ant_bt_info_notify()
4026 coex_sta->bt_info_c2h[rsp_source][2]&0xf; in ex_btc8821a2ant_bt_info_notify()
4028 coex_sta->bt_rssi = in ex_btc8821a2ant_bt_info_notify()
4029 coex_sta->bt_info_c2h[rsp_source][3] * 2 + 10; in ex_btc8821a2ant_bt_info_notify()
4031 coex_sta->bt_info_ext = coex_sta->bt_info_c2h[rsp_source][4]; in ex_btc8821a2ant_bt_info_notify()
4033 coex_sta->bt_tx_rx_mask = in ex_btc8821a2ant_bt_info_notify()
4034 (coex_sta->bt_info_c2h[rsp_source][2] & 0x40); in ex_btc8821a2ant_bt_info_notify()
4036 &coex_sta->bt_tx_rx_mask); in ex_btc8821a2ant_bt_info_notify()
4037 if (coex_sta->bt_tx_rx_mask) { in ex_btc8821a2ant_bt_info_notify()
4050 if ((coex_sta->bt_info_ext & BIT1)) { in ex_btc8821a2ant_bt_info_notify()
4066 coex_sta->bt_info_ext); in ex_btc8821a2ant_bt_info_notify()
4067 if ((coex_sta->bt_info_ext & BIT(3))) { in ex_btc8821a2ant_bt_info_notify()
4099 coex_sta->c2h_bt_inquiry_page = true; in ex_btc8821a2ant_bt_info_notify()
4101 coex_sta->c2h_bt_inquiry_page = false; in ex_btc8821a2ant_bt_info_notify()
4105 coex_sta->bt_link_exist = false; in ex_btc8821a2ant_bt_info_notify()
4106 coex_sta->pan_exist = false; in ex_btc8821a2ant_bt_info_notify()
4107 coex_sta->a2dp_exist = false; in ex_btc8821a2ant_bt_info_notify()
4108 coex_sta->hid_exist = false; in ex_btc8821a2ant_bt_info_notify()
4109 coex_sta->sco_exist = false; in ex_btc8821a2ant_bt_info_notify()
4111 coex_sta->bt_link_exist = true; in ex_btc8821a2ant_bt_info_notify()
4113 coex_sta->pan_exist = true; in ex_btc8821a2ant_bt_info_notify()
4115 coex_sta->pan_exist = false; in ex_btc8821a2ant_bt_info_notify()
4117 coex_sta->a2dp_exist = true; in ex_btc8821a2ant_bt_info_notify()
4119 coex_sta->a2dp_exist = false; in ex_btc8821a2ant_bt_info_notify()
4121 coex_sta->hid_exist = true; in ex_btc8821a2ant_bt_info_notify()
4123 coex_sta->hid_exist = false; in ex_btc8821a2ant_bt_info_notify()
4125 coex_sta->sco_exist = true; in ex_btc8821a2ant_bt_info_notify()
4127 coex_sta->sco_exist = false; in ex_btc8821a2ant_bt_info_notify()
4129 if ((!coex_sta->hid_exist) && in ex_btc8821a2ant_bt_info_notify()
4130 (!coex_sta->c2h_bt_inquiry_page) && in ex_btc8821a2ant_bt_info_notify()
4131 (!coex_sta->sco_exist)) { in ex_btc8821a2ant_bt_info_notify()
4132 if (coex_sta->high_priority_tx + in ex_btc8821a2ant_bt_info_notify()
4133 coex_sta->high_priority_rx >= 160) in ex_btc8821a2ant_bt_info_notify()
4134 coex_sta->hid_exist = true; in ex_btc8821a2ant_bt_info_notify()
4219 if (coex_sta->dis_ver_info_cnt <= 5) { in ex_btc8821a2ant_periodical()
4220 coex_sta->dis_ver_info_cnt += 1; in ex_btc8821a2ant_periodical()
4221 if (coex_sta->dis_ver_info_cnt == 3) { in ex_btc8821a2ant_periodical()