Lines Matching refs:coex_sta
45 static struct coex_sta_8192e_2ant *coex_sta = &glcoex_sta_8192e_2ant; variable
68 u8 bt_rssi_state = coex_sta->pre_bt_rssi_state; in btc8192e2ant_bt_rssi_state()
70 bt_rssi = coex_sta->bt_rssi; in btc8192e2ant_bt_rssi_state()
73 if ((coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW) || in btc8192e2ant_bt_rssi_state()
74 (coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_STAY_LOW)) { in btc8192e2ant_bt_rssi_state()
90 return coex_sta->pre_bt_rssi_state; in btc8192e2ant_bt_rssi_state()
93 if ((coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW) || in btc8192e2ant_bt_rssi_state()
94 (coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_STAY_LOW)) { in btc8192e2ant_bt_rssi_state()
100 } else if ((coex_sta->pre_bt_rssi_state == in btc8192e2ant_bt_rssi_state()
102 (coex_sta->pre_bt_rssi_state == in btc8192e2ant_bt_rssi_state()
119 coex_sta->pre_bt_rssi_state = bt_rssi_state; in btc8192e2ant_bt_rssi_state()
130 u8 wifi_rssi_state = coex_sta->pre_wifi_rssi_state[index]; in btc8192e2ant_wifi_rssi_state()
135 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 return coex_sta->pre_wifi_rssi_state[index]; in btc8192e2ant_wifi_rssi_state()
157 if ((coex_sta->pre_wifi_rssi_state[index] == in btc8192e2ant_wifi_rssi_state()
159 (coex_sta->pre_wifi_rssi_state[index] == in btc8192e2ant_wifi_rssi_state()
166 } else if ((coex_sta->pre_wifi_rssi_state[index] == in btc8192e2ant_wifi_rssi_state()
168 (coex_sta->pre_wifi_rssi_state[index] == in btc8192e2ant_wifi_rssi_state()
185 coex_sta->pre_wifi_rssi_state[index] = wifi_rssi_state; in btc8192e2ant_wifi_rssi_state()
200 if (coex_sta->high_priority_tx == 0 && in btc8192e2ant_monitor_bt_enable_disable()
201 coex_sta->high_priority_rx == 0 && in btc8192e2ant_monitor_bt_enable_disable()
202 coex_sta->low_priority_tx == 0 && in btc8192e2ant_monitor_bt_enable_disable()
203 coex_sta->low_priority_rx == 0) in btc8192e2ant_monitor_bt_enable_disable()
206 if (coex_sta->high_priority_tx == 0xffff && in btc8192e2ant_monitor_bt_enable_disable()
207 coex_sta->high_priority_rx == 0xffff && in btc8192e2ant_monitor_bt_enable_disable()
208 coex_sta->low_priority_tx == 0xffff && in btc8192e2ant_monitor_bt_enable_disable()
209 coex_sta->low_priority_rx == 0xffff) in btc8192e2ant_monitor_bt_enable_disable()
427 coex_sta->high_priority_tx = reg_hp_tx; in btc8192e2ant_monitor_bt_ctr()
428 coex_sta->high_priority_rx = reg_hp_rx; in btc8192e2ant_monitor_bt_ctr()
429 coex_sta->low_priority_tx = reg_lp_tx; in btc8192e2ant_monitor_bt_ctr()
430 coex_sta->low_priority_rx = reg_lp_rx; in btc8192e2ant_monitor_bt_ctr()
448 coex_sta->c2h_bt_info_req_sent = true; in btc8192e2ant_query_bt_info()
499 bt_link_info->bt_link_exist = coex_sta->bt_link_exist; in btc8192e2ant_update_bt_link_info()
500 bt_link_info->sco_exist = coex_sta->sco_exist; in btc8192e2ant_update_bt_link_info()
501 bt_link_info->a2dp_exist = coex_sta->a2dp_exist; in btc8192e2ant_update_bt_link_info()
502 bt_link_info->pan_exist = coex_sta->pan_exist; in btc8192e2ant_update_bt_link_info()
503 bt_link_info->hid_exist = coex_sta->hid_exist; in btc8192e2ant_update_bt_link_info()
1707 retry_cnt = coex_sta->bt_retry_cnt; in btc8192e2ant_tdma_duration_adjust()
2516 if (coex_sta->under_ips) { in btc8192e2ant_run_coexist_mechanism()
2523 if (coex_sta->c2h_bt_inquiry_page && in btc8192e2ant_run_coexist_mechanism()
2781 ((coex_sta->c2h_bt_inquiry_page) ? in ex_btc8192e2ant_display_coex_info()
2787 coex_sta->bt_rssi, coex_sta->bt_retry_cnt); in ex_btc8192e2ant_display_coex_info()
2795 bt_info_ext = coex_sta->bt_info_ext; in ex_btc8192e2ant_display_coex_info()
2801 if (coex_sta->bt_info_c2h_cnt[i]) { in ex_btc8192e2ant_display_coex_info()
2804 coex_sta->bt_info_c2h[i], in ex_btc8192e2ant_display_coex_info()
2805 coex_sta->bt_info_c2h_cnt[i]); in ex_btc8192e2ant_display_coex_info()
2811 ((coex_sta->under_ips ? "IPS ON" : "IPS OFF")), in ex_btc8192e2ant_display_coex_info()
2812 ((coex_sta->under_lps ? "LPS ON" : "LPS OFF"))); in ex_btc8192e2ant_display_coex_info()
2905 coex_sta->high_priority_rx, coex_sta->high_priority_tx); in ex_btc8192e2ant_display_coex_info()
2908 coex_sta->low_priority_rx, coex_sta->low_priority_tx); in ex_btc8192e2ant_display_coex_info()
2921 coex_sta->under_ips = true; in ex_btc8192e2ant_ips_notify()
2926 coex_sta->under_ips = false; in ex_btc8192e2ant_ips_notify()
2937 coex_sta->under_lps = true; in ex_btc8192e2ant_lps_notify()
2941 coex_sta->under_lps = false; in ex_btc8192e2ant_lps_notify()
3034 coex_sta->c2h_bt_info_req_sent = false; in ex_btc8192e2ant_bt_info_notify()
3039 coex_sta->bt_info_c2h_cnt[rsp_source]++; in ex_btc8192e2ant_bt_info_notify()
3045 coex_sta->bt_info_c2h[rsp_source][i] = tmp_buf[i]; in ex_btc8192e2ant_bt_info_notify()
3058 coex_sta->bt_retry_cnt = in ex_btc8192e2ant_bt_info_notify()
3059 coex_sta->bt_info_c2h[rsp_source][2] & 0xf; in ex_btc8192e2ant_bt_info_notify()
3061 coex_sta->bt_rssi = in ex_btc8192e2ant_bt_info_notify()
3062 coex_sta->bt_info_c2h[rsp_source][3] * 2 + 10; in ex_btc8192e2ant_bt_info_notify()
3064 coex_sta->bt_info_ext = in ex_btc8192e2ant_bt_info_notify()
3065 coex_sta->bt_info_c2h[rsp_source][4]; in ex_btc8192e2ant_bt_info_notify()
3070 if ((coex_sta->bt_info_ext & BIT1)) { in ex_btc8192e2ant_bt_info_notify()
3085 if ((coex_sta->bt_info_ext & BIT3)) { in ex_btc8192e2ant_bt_info_notify()
3101 if (!(coex_sta->bt_info_ext & BIT4)) in ex_btc8192e2ant_bt_info_notify()
3110 coex_sta->c2h_bt_inquiry_page = true; in ex_btc8192e2ant_bt_info_notify()
3112 coex_sta->c2h_bt_inquiry_page = false; in ex_btc8192e2ant_bt_info_notify()
3116 coex_sta->bt_link_exist = false; in ex_btc8192e2ant_bt_info_notify()
3117 coex_sta->pan_exist = false; in ex_btc8192e2ant_bt_info_notify()
3118 coex_sta->a2dp_exist = false; in ex_btc8192e2ant_bt_info_notify()
3119 coex_sta->hid_exist = false; in ex_btc8192e2ant_bt_info_notify()
3120 coex_sta->sco_exist = false; in ex_btc8192e2ant_bt_info_notify()
3122 coex_sta->bt_link_exist = true; in ex_btc8192e2ant_bt_info_notify()
3124 coex_sta->pan_exist = true; in ex_btc8192e2ant_bt_info_notify()
3126 coex_sta->pan_exist = false; in ex_btc8192e2ant_bt_info_notify()
3128 coex_sta->a2dp_exist = true; in ex_btc8192e2ant_bt_info_notify()
3130 coex_sta->a2dp_exist = false; in ex_btc8192e2ant_bt_info_notify()
3132 coex_sta->hid_exist = true; in ex_btc8192e2ant_bt_info_notify()
3134 coex_sta->hid_exist = false; in ex_btc8192e2ant_bt_info_notify()
3136 coex_sta->sco_exist = true; in ex_btc8192e2ant_bt_info_notify()
3138 coex_sta->sco_exist = false; in ex_btc8192e2ant_bt_info_notify()