Lines Matching refs:coex_sta
24 static struct coex_sta_8821a_1ant *coex_sta = &glcoex_sta_8821a_1ant; variable
48 u8 bt_rssi_state = coex_sta->pre_bt_rssi_state; in btc8821a1ant_bt_rssi_state()
50 bt_rssi = coex_sta->bt_rssi; in btc8821a1ant_bt_rssi_state()
53 if ((coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW) || in btc8821a1ant_bt_rssi_state()
54 (coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_STAY_LOW)) { in btc8821a1ant_bt_rssi_state()
80 return coex_sta->pre_bt_rssi_state; in btc8821a1ant_bt_rssi_state()
83 if ((coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW) || in btc8821a1ant_bt_rssi_state()
84 (coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_STAY_LOW)) { in btc8821a1ant_bt_rssi_state()
95 } else if ((coex_sta->pre_bt_rssi_state == in btc8821a1ant_bt_rssi_state()
97 (coex_sta->pre_bt_rssi_state == in btc8821a1ant_bt_rssi_state()
125 coex_sta->pre_bt_rssi_state = bt_rssi_state; in btc8821a1ant_bt_rssi_state()
136 u8 wifi_rssi_state = coex_sta->pre_wifi_rssi_state[index]; in btc8821a1ant_wifi_rssi_state()
141 if ((coex_sta->pre_wifi_rssi_state[index] == in btc8821a1ant_wifi_rssi_state()
143 (coex_sta->pre_wifi_rssi_state[index] == in btc8821a1ant_wifi_rssi_state()
170 return coex_sta->pre_wifi_rssi_state[index]; in btc8821a1ant_wifi_rssi_state()
173 if ((coex_sta->pre_wifi_rssi_state[index] == in btc8821a1ant_wifi_rssi_state()
175 (coex_sta->pre_wifi_rssi_state[index] == in btc8821a1ant_wifi_rssi_state()
187 } else if ((coex_sta->pre_wifi_rssi_state[index] == in btc8821a1ant_wifi_rssi_state()
189 (coex_sta->pre_wifi_rssi_state[index] == in btc8821a1ant_wifi_rssi_state()
217 coex_sta->pre_wifi_rssi_state[index] = wifi_rssi_state; in btc8821a1ant_wifi_rssi_state()
382 coex_sta->high_priority_tx = reg_hp_tx; in btc8821a1ant_monitor_bt_ctr()
383 coex_sta->high_priority_rx = reg_hp_rx; in btc8821a1ant_monitor_bt_ctr()
384 coex_sta->low_priority_tx = reg_lp_tx; in btc8821a1ant_monitor_bt_ctr()
385 coex_sta->low_priority_rx = reg_lp_rx; in btc8821a1ant_monitor_bt_ctr()
396 coex_sta->c2h_bt_info_req_sent = true; in btc8821a1ant_query_bt_info()
414 bt_link_info->bt_link_exist = coex_sta->bt_link_exist; in btc8821a1ant_update_bt_link_info()
415 bt_link_info->sco_exist = coex_sta->sco_exist; in btc8821a1ant_update_bt_link_info()
416 bt_link_info->a2dp_exist = coex_sta->a2dp_exist; in btc8821a1ant_update_bt_link_info()
417 bt_link_info->pan_exist = coex_sta->pan_exist; in btc8821a1ant_update_bt_link_info()
418 bt_link_info->hid_exist = coex_sta->hid_exist; in btc8821a1ant_update_bt_link_info()
1526 if (!wifi_connected && !coex_sta->wifi_is_high_pri_task) { in btc8821a1ant_action_bt_inquiry()
1915 if (coex_sta->under_ips) { in btc8821a1ant_run_coexist_mechanism()
1983 if (coex_sta->c2h_bt_inquiry_page) { in btc8821a1ant_run_coexist_mechanism()
2188 ((coex_sta->bt_disabled) ? ("disabled") : in ex_btc8821a1ant_display_coex_info()
2189 ((coex_sta->c2h_bt_inquiry_page) ? ("inquiry/page scan") : in ex_btc8821a1ant_display_coex_info()
2196 coex_sta->bt_rssi, coex_sta->bt_retry_cnt); in ex_btc8821a1ant_display_coex_info()
2205 bt_info_ext = coex_sta->bt_info_ext; in ex_btc8821a1ant_display_coex_info()
2212 if (coex_sta->bt_info_c2h_cnt[i]) { in ex_btc8821a1ant_display_coex_info()
2215 coex_sta->bt_info_c2h[i], in ex_btc8821a1ant_display_coex_info()
2216 coex_sta->bt_info_c2h_cnt[i]); in ex_btc8821a1ant_display_coex_info()
2221 ((coex_sta->under_ips ? "IPS ON" : "IPS OFF")), in ex_btc8821a1ant_display_coex_info()
2222 ((coex_sta->under_lps ? "LPS ON" : "LPS OFF")), in ex_btc8821a1ant_display_coex_info()
2329 coex_sta->high_priority_rx, coex_sta->high_priority_tx); in ex_btc8821a1ant_display_coex_info()
2331 coex_sta->low_priority_rx, coex_sta->low_priority_tx); in ex_btc8821a1ant_display_coex_info()
2355 coex_sta->under_ips = true; in ex_btc8821a1ant_ips_notify()
2365 coex_sta->under_ips = false; in ex_btc8821a1ant_ips_notify()
2383 coex_sta->under_lps = true; in ex_btc8821a1ant_lps_notify()
2387 coex_sta->under_lps = false; in ex_btc8821a1ant_lps_notify()
2412 coex_sta->wifi_is_high_pri_task = true; in ex_btc8821a1ant_scan_notify()
2419 coex_sta->wifi_is_high_pri_task = false; in ex_btc8821a1ant_scan_notify()
2424 if (coex_sta->bt_disabled) in ex_btc8821a1ant_scan_notify()
2445 if (coex_sta->c2h_bt_inquiry_page) { in ex_btc8821a1ant_scan_notify()
2486 coex_sta->bt_disabled) in ex_btc8821a1ant_connect_notify()
2497 coex_sta->wifi_is_high_pri_task = true; in ex_btc8821a1ant_connect_notify()
2502 coex_sta->wifi_is_high_pri_task = false; in ex_btc8821a1ant_connect_notify()
2520 if (coex_sta->c2h_bt_inquiry_page) { in ex_btc8821a1ant_connect_notify()
2557 coex_sta->bt_disabled) in ex_btc8821a1ant_media_status_notify()
2616 coex_sta->bt_disabled) in ex_btc8821a1ant_special_packet_notify()
2629 coex_sta->wifi_is_high_pri_task = true; in ex_btc8821a1ant_special_packet_notify()
2639 coex_sta->wifi_is_high_pri_task = false; in ex_btc8821a1ant_special_packet_notify()
2645 coex_sta->special_pkt_period_cnt = 0; in ex_btc8821a1ant_special_packet_notify()
2659 if (coex_sta->c2h_bt_inquiry_page) { in ex_btc8821a1ant_special_packet_notify()
2698 coex_sta->c2h_bt_info_req_sent = false; in ex_btc8821a1ant_bt_info_notify()
2706 coex_sta->bt_info_c2h_cnt[rsp_source]++; in ex_btc8821a1ant_bt_info_notify()
2712 coex_sta->bt_info_c2h[rsp_source][i] = tmp_buf[i]; in ex_btc8821a1ant_bt_info_notify()
2726 coex_sta->bt_retry_cnt = in ex_btc8821a1ant_bt_info_notify()
2727 coex_sta->bt_info_c2h[rsp_source][2] & 0xf; in ex_btc8821a1ant_bt_info_notify()
2729 coex_sta->bt_rssi = in ex_btc8821a1ant_bt_info_notify()
2730 coex_sta->bt_info_c2h[rsp_source][3] * 2 + 10; in ex_btc8821a1ant_bt_info_notify()
2732 coex_sta->bt_info_ext = coex_sta->bt_info_c2h[rsp_source][4]; in ex_btc8821a1ant_bt_info_notify()
2734 coex_sta->bt_tx_rx_mask = in ex_btc8821a1ant_bt_info_notify()
2735 (coex_sta->bt_info_c2h[rsp_source][2] & 0x40); in ex_btc8821a1ant_bt_info_notify()
2737 &coex_sta->bt_tx_rx_mask); in ex_btc8821a1ant_bt_info_notify()
2738 if (!coex_sta->bt_tx_rx_mask) { in ex_btc8821a1ant_bt_info_notify()
2751 if (coex_sta->bt_info_ext & BIT1) { in ex_btc8821a1ant_bt_info_notify()
2765 if ((coex_sta->bt_info_ext & BIT3) && !wifi_under_5g) { in ex_btc8821a1ant_bt_info_notify()
2779 coex_sta->c2h_bt_inquiry_page = true; in ex_btc8821a1ant_bt_info_notify()
2781 coex_sta->c2h_bt_inquiry_page = false; in ex_btc8821a1ant_bt_info_notify()
2785 coex_sta->bt_link_exist = false; in ex_btc8821a1ant_bt_info_notify()
2786 coex_sta->pan_exist = false; in ex_btc8821a1ant_bt_info_notify()
2787 coex_sta->a2dp_exist = false; in ex_btc8821a1ant_bt_info_notify()
2788 coex_sta->hid_exist = false; in ex_btc8821a1ant_bt_info_notify()
2789 coex_sta->sco_exist = false; in ex_btc8821a1ant_bt_info_notify()
2792 coex_sta->bt_link_exist = true; in ex_btc8821a1ant_bt_info_notify()
2794 coex_sta->pan_exist = true; in ex_btc8821a1ant_bt_info_notify()
2796 coex_sta->pan_exist = false; in ex_btc8821a1ant_bt_info_notify()
2798 coex_sta->a2dp_exist = true; in ex_btc8821a1ant_bt_info_notify()
2800 coex_sta->a2dp_exist = false; in ex_btc8821a1ant_bt_info_notify()
2802 coex_sta->hid_exist = true; in ex_btc8821a1ant_bt_info_notify()
2804 coex_sta->hid_exist = false; in ex_btc8821a1ant_bt_info_notify()
2806 coex_sta->sco_exist = true; in ex_btc8821a1ant_bt_info_notify()
2808 coex_sta->sco_exist = false; in ex_btc8821a1ant_bt_info_notify()
2905 coex_sta->under_ips = false; in ex_btc8821a1ant_pnp_notify()
2906 coex_sta->under_lps = false; in ex_btc8821a1ant_pnp_notify()
2965 coex_sta->special_pkt_period_cnt++; in ex_btc8821a1ant_periodical()