Lines Matching refs:coex_sta

46 static struct coex_sta_8821a_1ant *coex_sta = &glcoex_sta_8821a_1ant;  variable
70 u8 bt_rssi_state = coex_sta->pre_bt_rssi_state; in btc8821a1ant_bt_rssi_state()
72 bt_rssi = coex_sta->bt_rssi; in btc8821a1ant_bt_rssi_state()
75 if ((coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW) || in btc8821a1ant_bt_rssi_state()
76 (coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_STAY_LOW)) { in btc8821a1ant_bt_rssi_state()
102 return coex_sta->pre_bt_rssi_state; in btc8821a1ant_bt_rssi_state()
105 if ((coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW) || in btc8821a1ant_bt_rssi_state()
106 (coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_STAY_LOW)) { in btc8821a1ant_bt_rssi_state()
117 } else if ((coex_sta->pre_bt_rssi_state == in btc8821a1ant_bt_rssi_state()
119 (coex_sta->pre_bt_rssi_state == in btc8821a1ant_bt_rssi_state()
147 coex_sta->pre_bt_rssi_state = bt_rssi_state; in btc8821a1ant_bt_rssi_state()
158 u8 wifi_rssi_state = coex_sta->pre_wifi_rssi_state[index]; in btc8821a1ant_wifi_rssi_state()
163 if ((coex_sta->pre_wifi_rssi_state[index] == in btc8821a1ant_wifi_rssi_state()
165 (coex_sta->pre_wifi_rssi_state[index] == in btc8821a1ant_wifi_rssi_state()
192 return coex_sta->pre_wifi_rssi_state[index]; in btc8821a1ant_wifi_rssi_state()
195 if ((coex_sta->pre_wifi_rssi_state[index] == in btc8821a1ant_wifi_rssi_state()
197 (coex_sta->pre_wifi_rssi_state[index] == in btc8821a1ant_wifi_rssi_state()
209 } else if ((coex_sta->pre_wifi_rssi_state[index] == in btc8821a1ant_wifi_rssi_state()
211 (coex_sta->pre_wifi_rssi_state[index] == in btc8821a1ant_wifi_rssi_state()
239 coex_sta->pre_wifi_rssi_state[index] = wifi_rssi_state; in btc8821a1ant_wifi_rssi_state()
404 coex_sta->high_priority_tx = reg_hp_tx; in btc8821a1ant_monitor_bt_ctr()
405 coex_sta->high_priority_rx = reg_hp_rx; in btc8821a1ant_monitor_bt_ctr()
406 coex_sta->low_priority_tx = reg_lp_tx; in btc8821a1ant_monitor_bt_ctr()
407 coex_sta->low_priority_rx = reg_lp_rx; in btc8821a1ant_monitor_bt_ctr()
418 coex_sta->c2h_bt_info_req_sent = true; in btc8821a1ant_query_bt_info()
436 bt_link_info->bt_link_exist = coex_sta->bt_link_exist; in btc8821a1ant_update_bt_link_info()
437 bt_link_info->sco_exist = coex_sta->sco_exist; in btc8821a1ant_update_bt_link_info()
438 bt_link_info->a2dp_exist = coex_sta->a2dp_exist; in btc8821a1ant_update_bt_link_info()
439 bt_link_info->pan_exist = coex_sta->pan_exist; in btc8821a1ant_update_bt_link_info()
440 bt_link_info->hid_exist = coex_sta->hid_exist; in btc8821a1ant_update_bt_link_info()
1548 if (!wifi_connected && !coex_sta->wifi_is_high_pri_task) { in btc8821a1ant_action_bt_inquiry()
1946 if (coex_sta->under_ips) { in btc8821a1ant_run_coexist_mechanism()
2015 if (coex_sta->c2h_bt_inquiry_page) { in btc8821a1ant_run_coexist_mechanism()
2220 ((coex_sta->bt_disabled) ? ("disabled") : in ex_btc8821a1ant_display_coex_info()
2221 ((coex_sta->c2h_bt_inquiry_page) ? ("inquiry/page scan") : in ex_btc8821a1ant_display_coex_info()
2228 coex_sta->bt_rssi, coex_sta->bt_retry_cnt); in ex_btc8821a1ant_display_coex_info()
2237 bt_info_ext = coex_sta->bt_info_ext; in ex_btc8821a1ant_display_coex_info()
2244 if (coex_sta->bt_info_c2h_cnt[i]) { in ex_btc8821a1ant_display_coex_info()
2247 coex_sta->bt_info_c2h[i], in ex_btc8821a1ant_display_coex_info()
2248 coex_sta->bt_info_c2h_cnt[i]); in ex_btc8821a1ant_display_coex_info()
2253 ((coex_sta->under_ips ? "IPS ON" : "IPS OFF")), in ex_btc8821a1ant_display_coex_info()
2254 ((coex_sta->under_lps ? "LPS ON" : "LPS OFF")), in ex_btc8821a1ant_display_coex_info()
2361 coex_sta->high_priority_rx, coex_sta->high_priority_tx); in ex_btc8821a1ant_display_coex_info()
2363 coex_sta->low_priority_rx, coex_sta->low_priority_tx); in ex_btc8821a1ant_display_coex_info()
2387 coex_sta->under_ips = true; in ex_btc8821a1ant_ips_notify()
2397 coex_sta->under_ips = false; in ex_btc8821a1ant_ips_notify()
2415 coex_sta->under_lps = true; in ex_btc8821a1ant_lps_notify()
2419 coex_sta->under_lps = false; in ex_btc8821a1ant_lps_notify()
2444 coex_sta->wifi_is_high_pri_task = true; in ex_btc8821a1ant_scan_notify()
2451 coex_sta->wifi_is_high_pri_task = false; in ex_btc8821a1ant_scan_notify()
2456 if (coex_sta->bt_disabled) in ex_btc8821a1ant_scan_notify()
2477 if (coex_sta->c2h_bt_inquiry_page) { in ex_btc8821a1ant_scan_notify()
2518 coex_sta->bt_disabled) in ex_btc8821a1ant_connect_notify()
2529 coex_sta->wifi_is_high_pri_task = true; in ex_btc8821a1ant_connect_notify()
2534 coex_sta->wifi_is_high_pri_task = false; in ex_btc8821a1ant_connect_notify()
2552 if (coex_sta->c2h_bt_inquiry_page) { in ex_btc8821a1ant_connect_notify()
2589 coex_sta->bt_disabled) in ex_btc8821a1ant_media_status_notify()
2648 coex_sta->bt_disabled) in ex_btc8821a1ant_special_packet_notify()
2661 coex_sta->wifi_is_high_pri_task = true; in ex_btc8821a1ant_special_packet_notify()
2671 coex_sta->wifi_is_high_pri_task = false; in ex_btc8821a1ant_special_packet_notify()
2677 coex_sta->special_pkt_period_cnt = 0; in ex_btc8821a1ant_special_packet_notify()
2691 if (coex_sta->c2h_bt_inquiry_page) { in ex_btc8821a1ant_special_packet_notify()
2730 coex_sta->c2h_bt_info_req_sent = false; in ex_btc8821a1ant_bt_info_notify()
2738 coex_sta->bt_info_c2h_cnt[rsp_source]++; in ex_btc8821a1ant_bt_info_notify()
2744 coex_sta->bt_info_c2h[rsp_source][i] = tmp_buf[i]; in ex_btc8821a1ant_bt_info_notify()
2758 coex_sta->bt_retry_cnt = in ex_btc8821a1ant_bt_info_notify()
2759 coex_sta->bt_info_c2h[rsp_source][2] & 0xf; in ex_btc8821a1ant_bt_info_notify()
2761 coex_sta->bt_rssi = in ex_btc8821a1ant_bt_info_notify()
2762 coex_sta->bt_info_c2h[rsp_source][3] * 2 + 10; in ex_btc8821a1ant_bt_info_notify()
2764 coex_sta->bt_info_ext = coex_sta->bt_info_c2h[rsp_source][4]; in ex_btc8821a1ant_bt_info_notify()
2766 coex_sta->bt_tx_rx_mask = in ex_btc8821a1ant_bt_info_notify()
2767 (coex_sta->bt_info_c2h[rsp_source][2] & 0x40); in ex_btc8821a1ant_bt_info_notify()
2769 &coex_sta->bt_tx_rx_mask); in ex_btc8821a1ant_bt_info_notify()
2770 if (!coex_sta->bt_tx_rx_mask) { in ex_btc8821a1ant_bt_info_notify()
2783 if (coex_sta->bt_info_ext & BIT1) { in ex_btc8821a1ant_bt_info_notify()
2797 if ((coex_sta->bt_info_ext & BIT3) && !wifi_under_5g) { in ex_btc8821a1ant_bt_info_notify()
2811 coex_sta->c2h_bt_inquiry_page = true; in ex_btc8821a1ant_bt_info_notify()
2813 coex_sta->c2h_bt_inquiry_page = false; in ex_btc8821a1ant_bt_info_notify()
2817 coex_sta->bt_link_exist = false; in ex_btc8821a1ant_bt_info_notify()
2818 coex_sta->pan_exist = false; in ex_btc8821a1ant_bt_info_notify()
2819 coex_sta->a2dp_exist = false; in ex_btc8821a1ant_bt_info_notify()
2820 coex_sta->hid_exist = false; in ex_btc8821a1ant_bt_info_notify()
2821 coex_sta->sco_exist = false; in ex_btc8821a1ant_bt_info_notify()
2824 coex_sta->bt_link_exist = true; in ex_btc8821a1ant_bt_info_notify()
2826 coex_sta->pan_exist = true; in ex_btc8821a1ant_bt_info_notify()
2828 coex_sta->pan_exist = false; in ex_btc8821a1ant_bt_info_notify()
2830 coex_sta->a2dp_exist = true; in ex_btc8821a1ant_bt_info_notify()
2832 coex_sta->a2dp_exist = false; in ex_btc8821a1ant_bt_info_notify()
2834 coex_sta->hid_exist = true; in ex_btc8821a1ant_bt_info_notify()
2836 coex_sta->hid_exist = false; in ex_btc8821a1ant_bt_info_notify()
2838 coex_sta->sco_exist = true; in ex_btc8821a1ant_bt_info_notify()
2840 coex_sta->sco_exist = false; in ex_btc8821a1ant_bt_info_notify()
2937 coex_sta->under_ips = false; in ex_btc8821a1ant_pnp_notify()
2938 coex_sta->under_lps = false; in ex_btc8821a1ant_pnp_notify()
2997 coex_sta->special_pkt_period_cnt++; in ex_btc8821a1ant_periodical()