Lines Matching refs:coex_sta

14 static struct coex_sta_8192e_2ant *coex_sta = &glcoex_sta_8192e_2ant;  variable
37 u8 bt_rssi_state = coex_sta->pre_bt_rssi_state; in btc8192e2ant_bt_rssi_state()
39 bt_rssi = coex_sta->bt_rssi; in btc8192e2ant_bt_rssi_state()
42 if ((coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW) || in btc8192e2ant_bt_rssi_state()
43 (coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_STAY_LOW)) { in btc8192e2ant_bt_rssi_state()
59 return coex_sta->pre_bt_rssi_state; in btc8192e2ant_bt_rssi_state()
62 if ((coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW) || in btc8192e2ant_bt_rssi_state()
63 (coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_STAY_LOW)) { in btc8192e2ant_bt_rssi_state()
69 } else if ((coex_sta->pre_bt_rssi_state == in btc8192e2ant_bt_rssi_state()
71 (coex_sta->pre_bt_rssi_state == in btc8192e2ant_bt_rssi_state()
88 coex_sta->pre_bt_rssi_state = bt_rssi_state; in btc8192e2ant_bt_rssi_state()
99 u8 wifi_rssi_state = coex_sta->pre_wifi_rssi_state[index]; in btc8192e2ant_wifi_rssi_state()
104 if ((coex_sta->pre_wifi_rssi_state[index] == in btc8192e2ant_wifi_rssi_state()
106 (coex_sta->pre_wifi_rssi_state[index] == in btc8192e2ant_wifi_rssi_state()
123 return coex_sta->pre_wifi_rssi_state[index]; in btc8192e2ant_wifi_rssi_state()
126 if ((coex_sta->pre_wifi_rssi_state[index] == in btc8192e2ant_wifi_rssi_state()
128 (coex_sta->pre_wifi_rssi_state[index] == in btc8192e2ant_wifi_rssi_state()
135 } else if ((coex_sta->pre_wifi_rssi_state[index] == in btc8192e2ant_wifi_rssi_state()
137 (coex_sta->pre_wifi_rssi_state[index] == in btc8192e2ant_wifi_rssi_state()
154 coex_sta->pre_wifi_rssi_state[index] = wifi_rssi_state; in btc8192e2ant_wifi_rssi_state()
169 if (coex_sta->high_priority_tx == 0 && in btc8192e2ant_monitor_bt_enable_disable()
170 coex_sta->high_priority_rx == 0 && in btc8192e2ant_monitor_bt_enable_disable()
171 coex_sta->low_priority_tx == 0 && in btc8192e2ant_monitor_bt_enable_disable()
172 coex_sta->low_priority_rx == 0) in btc8192e2ant_monitor_bt_enable_disable()
175 if (coex_sta->high_priority_tx == 0xffff && in btc8192e2ant_monitor_bt_enable_disable()
176 coex_sta->high_priority_rx == 0xffff && in btc8192e2ant_monitor_bt_enable_disable()
177 coex_sta->low_priority_tx == 0xffff && in btc8192e2ant_monitor_bt_enable_disable()
178 coex_sta->low_priority_rx == 0xffff) in btc8192e2ant_monitor_bt_enable_disable()
396 coex_sta->high_priority_tx = reg_hp_tx; in btc8192e2ant_monitor_bt_ctr()
397 coex_sta->high_priority_rx = reg_hp_rx; in btc8192e2ant_monitor_bt_ctr()
398 coex_sta->low_priority_tx = reg_lp_tx; in btc8192e2ant_monitor_bt_ctr()
399 coex_sta->low_priority_rx = reg_lp_rx; in btc8192e2ant_monitor_bt_ctr()
417 coex_sta->c2h_bt_info_req_sent = true; in btc8192e2ant_query_bt_info()
468 bt_link_info->bt_link_exist = coex_sta->bt_link_exist; in btc8192e2ant_update_bt_link_info()
469 bt_link_info->sco_exist = coex_sta->sco_exist; in btc8192e2ant_update_bt_link_info()
470 bt_link_info->a2dp_exist = coex_sta->a2dp_exist; in btc8192e2ant_update_bt_link_info()
471 bt_link_info->pan_exist = coex_sta->pan_exist; in btc8192e2ant_update_bt_link_info()
472 bt_link_info->hid_exist = coex_sta->hid_exist; in btc8192e2ant_update_bt_link_info()
1671 retry_cnt = coex_sta->bt_retry_cnt; in btc8192e2ant_tdma_duration_adjust()
2476 if (coex_sta->under_ips) { in btc8192e2ant_run_coexist_mechanism()
2483 if (coex_sta->c2h_bt_inquiry_page && in btc8192e2ant_run_coexist_mechanism()
2741 ((coex_sta->c2h_bt_inquiry_page) ? in ex_btc8192e2ant_display_coex_info()
2747 coex_sta->bt_rssi, coex_sta->bt_retry_cnt); in ex_btc8192e2ant_display_coex_info()
2755 bt_info_ext = coex_sta->bt_info_ext; in ex_btc8192e2ant_display_coex_info()
2761 if (coex_sta->bt_info_c2h_cnt[i]) { in ex_btc8192e2ant_display_coex_info()
2764 coex_sta->bt_info_c2h[i], in ex_btc8192e2ant_display_coex_info()
2765 coex_sta->bt_info_c2h_cnt[i]); in ex_btc8192e2ant_display_coex_info()
2771 ((coex_sta->under_ips ? "IPS ON" : "IPS OFF")), in ex_btc8192e2ant_display_coex_info()
2772 ((coex_sta->under_lps ? "LPS ON" : "LPS OFF"))); in ex_btc8192e2ant_display_coex_info()
2865 coex_sta->high_priority_rx, coex_sta->high_priority_tx); in ex_btc8192e2ant_display_coex_info()
2868 coex_sta->low_priority_rx, coex_sta->low_priority_tx); in ex_btc8192e2ant_display_coex_info()
2881 coex_sta->under_ips = true; in ex_btc8192e2ant_ips_notify()
2886 coex_sta->under_ips = false; in ex_btc8192e2ant_ips_notify()
2897 coex_sta->under_lps = true; in ex_btc8192e2ant_lps_notify()
2901 coex_sta->under_lps = false; in ex_btc8192e2ant_lps_notify()
2994 coex_sta->c2h_bt_info_req_sent = false; in ex_btc8192e2ant_bt_info_notify()
2999 coex_sta->bt_info_c2h_cnt[rsp_source]++; in ex_btc8192e2ant_bt_info_notify()
3005 coex_sta->bt_info_c2h[rsp_source][i] = tmp_buf[i]; in ex_btc8192e2ant_bt_info_notify()
3018 coex_sta->bt_retry_cnt = in ex_btc8192e2ant_bt_info_notify()
3019 coex_sta->bt_info_c2h[rsp_source][2] & 0xf; in ex_btc8192e2ant_bt_info_notify()
3021 coex_sta->bt_rssi = in ex_btc8192e2ant_bt_info_notify()
3022 coex_sta->bt_info_c2h[rsp_source][3] * 2 + 10; in ex_btc8192e2ant_bt_info_notify()
3024 coex_sta->bt_info_ext = in ex_btc8192e2ant_bt_info_notify()
3025 coex_sta->bt_info_c2h[rsp_source][4]; in ex_btc8192e2ant_bt_info_notify()
3030 if ((coex_sta->bt_info_ext & BIT1)) { in ex_btc8192e2ant_bt_info_notify()
3045 if ((coex_sta->bt_info_ext & BIT3)) { in ex_btc8192e2ant_bt_info_notify()
3061 if (!(coex_sta->bt_info_ext & BIT4)) in ex_btc8192e2ant_bt_info_notify()
3070 coex_sta->c2h_bt_inquiry_page = true; in ex_btc8192e2ant_bt_info_notify()
3072 coex_sta->c2h_bt_inquiry_page = false; in ex_btc8192e2ant_bt_info_notify()
3076 coex_sta->bt_link_exist = false; in ex_btc8192e2ant_bt_info_notify()
3077 coex_sta->pan_exist = false; in ex_btc8192e2ant_bt_info_notify()
3078 coex_sta->a2dp_exist = false; in ex_btc8192e2ant_bt_info_notify()
3079 coex_sta->hid_exist = false; in ex_btc8192e2ant_bt_info_notify()
3080 coex_sta->sco_exist = false; in ex_btc8192e2ant_bt_info_notify()
3082 coex_sta->bt_link_exist = true; in ex_btc8192e2ant_bt_info_notify()
3084 coex_sta->pan_exist = true; in ex_btc8192e2ant_bt_info_notify()
3086 coex_sta->pan_exist = false; in ex_btc8192e2ant_bt_info_notify()
3088 coex_sta->a2dp_exist = true; in ex_btc8192e2ant_bt_info_notify()
3090 coex_sta->a2dp_exist = false; in ex_btc8192e2ant_bt_info_notify()
3092 coex_sta->hid_exist = true; in ex_btc8192e2ant_bt_info_notify()
3094 coex_sta->hid_exist = false; in ex_btc8192e2ant_bt_info_notify()
3096 coex_sta->sco_exist = true; in ex_btc8192e2ant_bt_info_notify()
3098 coex_sta->sco_exist = false; in ex_btc8192e2ant_bt_info_notify()