Lines Matching refs:coex_sta

45 static struct coex_sta_8192e_2ant *coex_sta = &glcoex_sta_8192e_2ant;  variable
66 u8 btrssi_state = coex_sta->pre_bt_rssi_state; in halbtc8192e2ant_btrssi_state()
68 btrssi = coex_sta->bt_rssi; in halbtc8192e2ant_btrssi_state()
71 if ((coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW) || in halbtc8192e2ant_btrssi_state()
72 (coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_STAY_LOW)) { in halbtc8192e2ant_btrssi_state()
102 return coex_sta->pre_bt_rssi_state; in halbtc8192e2ant_btrssi_state()
105 if ((coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW) || in halbtc8192e2ant_btrssi_state()
106 (coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_STAY_LOW)) { in halbtc8192e2ant_btrssi_state()
119 } else if ((coex_sta->pre_bt_rssi_state == in halbtc8192e2ant_btrssi_state()
121 (coex_sta->pre_bt_rssi_state == in halbtc8192e2ant_btrssi_state()
154 coex_sta->pre_bt_rssi_state = btrssi_state; in halbtc8192e2ant_btrssi_state()
164 u8 wifirssi_state = coex_sta->pre_wifi_rssi_state[index]; in halbtc8192e2ant_wifirssi_state()
169 if ((coex_sta->pre_wifi_rssi_state[index] == in halbtc8192e2ant_wifirssi_state()
171 (coex_sta->pre_wifi_rssi_state[index] == in halbtc8192e2ant_wifirssi_state()
202 return coex_sta->pre_wifi_rssi_state[index]; in halbtc8192e2ant_wifirssi_state()
205 if ((coex_sta->pre_wifi_rssi_state[index] == in halbtc8192e2ant_wifirssi_state()
207 (coex_sta->pre_wifi_rssi_state[index] == in halbtc8192e2ant_wifirssi_state()
221 } else if ((coex_sta->pre_wifi_rssi_state[index] == in halbtc8192e2ant_wifirssi_state()
223 (coex_sta->pre_wifi_rssi_state[index] == in halbtc8192e2ant_wifirssi_state()
257 coex_sta->pre_wifi_rssi_state[index] = wifirssi_state; in halbtc8192e2ant_wifirssi_state()
270 if (coex_sta->high_priority_tx == 0 && in btc8192e2ant_monitor_bt_enable_dis()
271 coex_sta->high_priority_rx == 0 && in btc8192e2ant_monitor_bt_enable_dis()
272 coex_sta->low_priority_tx == 0 && in btc8192e2ant_monitor_bt_enable_dis()
273 coex_sta->low_priority_rx == 0) in btc8192e2ant_monitor_bt_enable_dis()
276 if (coex_sta->high_priority_tx == 0xffff && in btc8192e2ant_monitor_bt_enable_dis()
277 coex_sta->high_priority_rx == 0xffff && in btc8192e2ant_monitor_bt_enable_dis()
278 coex_sta->low_priority_tx == 0xffff && in btc8192e2ant_monitor_bt_enable_dis()
279 coex_sta->low_priority_rx == 0xffff) in btc8192e2ant_monitor_bt_enable_dis()
497 coex_sta->high_priority_tx = reg_hp_tx; in halbtc8192e2ant_monitor_bt_ctr()
498 coex_sta->high_priority_rx = reg_hp_rx; in halbtc8192e2ant_monitor_bt_ctr()
499 coex_sta->low_priority_tx = reg_lp_tx; in halbtc8192e2ant_monitor_bt_ctr()
500 coex_sta->low_priority_rx = reg_lp_rx; in halbtc8192e2ant_monitor_bt_ctr()
517 coex_sta->c2h_bt_info_req_sent = true; in halbtc8192e2ant_querybt_info()
535 bt_link_info->bt_link_exist = coex_sta->bt_link_exist; in halbtc8192e2ant_update_btlink_info()
536 bt_link_info->sco_exist = coex_sta->sco_exist; in halbtc8192e2ant_update_btlink_info()
537 bt_link_info->a2dp_exist = coex_sta->a2dp_exist; in halbtc8192e2ant_update_btlink_info()
538 bt_link_info->pan_exist = coex_sta->pan_exist; in halbtc8192e2ant_update_btlink_info()
539 bt_link_info->hid_exist = coex_sta->hid_exist; in halbtc8192e2ant_update_btlink_info()
2290 retry_cnt = coex_sta->bt_retry_cnt; in halbtc8192e2ant_tdma_duration_adjust()
3112 if (coex_sta->under_ips) { in halbtc8192e2ant_run_coexist_mechanism()
3119 if (coex_sta->c2h_bt_inquiry_page && in halbtc8192e2ant_run_coexist_mechanism()
3390 ((coex_sta->c2h_bt_inquiry_page) ? in ex_halbtc8192e2ant_display_coex_info()
3396 coex_sta->bt_rssi, coex_sta->bt_retry_cnt); in ex_halbtc8192e2ant_display_coex_info()
3404 bt_info_ext = coex_sta->bt_info_ext; in ex_halbtc8192e2ant_display_coex_info()
3410 if (coex_sta->bt_info_c2h_cnt[i]) { in ex_halbtc8192e2ant_display_coex_info()
3414 coex_sta->bt_info_c2h[i][0], in ex_halbtc8192e2ant_display_coex_info()
3415 coex_sta->bt_info_c2h[i][1], in ex_halbtc8192e2ant_display_coex_info()
3416 coex_sta->bt_info_c2h[i][2], in ex_halbtc8192e2ant_display_coex_info()
3417 coex_sta->bt_info_c2h[i][3]); in ex_halbtc8192e2ant_display_coex_info()
3420 coex_sta->bt_info_c2h[i][4], in ex_halbtc8192e2ant_display_coex_info()
3421 coex_sta->bt_info_c2h[i][5], in ex_halbtc8192e2ant_display_coex_info()
3422 coex_sta->bt_info_c2h[i][6], in ex_halbtc8192e2ant_display_coex_info()
3423 coex_sta->bt_info_c2h_cnt[i]); in ex_halbtc8192e2ant_display_coex_info()
3429 ((coex_sta->under_ips ? "IPS ON" : "IPS OFF")), in ex_halbtc8192e2ant_display_coex_info()
3430 ((coex_sta->under_lps ? "LPS ON" : "LPS OFF"))); in ex_halbtc8192e2ant_display_coex_info()
3526 coex_sta->high_priority_rx, coex_sta->high_priority_tx); in ex_halbtc8192e2ant_display_coex_info()
3529 coex_sta->low_priority_rx, coex_sta->low_priority_tx); in ex_halbtc8192e2ant_display_coex_info()
3541 coex_sta->under_ips = true; in ex_halbtc8192e2ant_ips_notify()
3546 coex_sta->under_ips = false; in ex_halbtc8192e2ant_ips_notify()
3555 coex_sta->under_lps = true; in ex_halbtc8192e2ant_lps_notify()
3559 coex_sta->under_lps = false; in ex_halbtc8192e2ant_lps_notify()
3644 coex_sta->c2h_bt_info_req_sent = false; in ex_halbtc8192e2ant_bt_info_notify()
3649 coex_sta->bt_info_c2h_cnt[rsp_source]++; in ex_halbtc8192e2ant_bt_info_notify()
3655 coex_sta->bt_info_c2h[rsp_source][i] = tmp_buf[i]; in ex_halbtc8192e2ant_bt_info_notify()
3667 coex_sta->bt_retry_cnt = /* [3:0] */ in ex_halbtc8192e2ant_bt_info_notify()
3668 coex_sta->bt_info_c2h[rsp_source][2] & 0xf; in ex_halbtc8192e2ant_bt_info_notify()
3670 coex_sta->bt_rssi = in ex_halbtc8192e2ant_bt_info_notify()
3671 coex_sta->bt_info_c2h[rsp_source][3] * 2 + 10; in ex_halbtc8192e2ant_bt_info_notify()
3673 coex_sta->bt_info_ext = in ex_halbtc8192e2ant_bt_info_notify()
3674 coex_sta->bt_info_c2h[rsp_source][4]; in ex_halbtc8192e2ant_bt_info_notify()
3679 if ((coex_sta->bt_info_ext & BIT1)) { in ex_halbtc8192e2ant_bt_info_notify()
3694 if ((coex_sta->bt_info_ext & BIT3)) { in ex_halbtc8192e2ant_bt_info_notify()
3710 if ((coex_sta->bt_info_ext & BIT4)) { in ex_halbtc8192e2ant_bt_info_notify()
3721 coex_sta->c2h_bt_inquiry_page = true; in ex_halbtc8192e2ant_bt_info_notify()
3723 coex_sta->c2h_bt_inquiry_page = false; in ex_halbtc8192e2ant_bt_info_notify()
3727 coex_sta->bt_link_exist = false; in ex_halbtc8192e2ant_bt_info_notify()
3728 coex_sta->pan_exist = false; in ex_halbtc8192e2ant_bt_info_notify()
3729 coex_sta->a2dp_exist = false; in ex_halbtc8192e2ant_bt_info_notify()
3730 coex_sta->hid_exist = false; in ex_halbtc8192e2ant_bt_info_notify()
3731 coex_sta->sco_exist = false; in ex_halbtc8192e2ant_bt_info_notify()
3733 coex_sta->bt_link_exist = true; in ex_halbtc8192e2ant_bt_info_notify()
3735 coex_sta->pan_exist = true; in ex_halbtc8192e2ant_bt_info_notify()
3737 coex_sta->pan_exist = false; in ex_halbtc8192e2ant_bt_info_notify()
3739 coex_sta->a2dp_exist = true; in ex_halbtc8192e2ant_bt_info_notify()
3741 coex_sta->a2dp_exist = false; in ex_halbtc8192e2ant_bt_info_notify()
3743 coex_sta->hid_exist = true; in ex_halbtc8192e2ant_bt_info_notify()
3745 coex_sta->hid_exist = false; in ex_halbtc8192e2ant_bt_info_notify()
3747 coex_sta->sco_exist = true; in ex_halbtc8192e2ant_bt_info_notify()
3749 coex_sta->sco_exist = false; in ex_halbtc8192e2ant_bt_info_notify()