Lines Matching refs:coex_sta
48 static struct coex_sta_8821a_1ant *coex_sta = &glcoex_sta_8821a_1ant; variable
69 u8 bt_rssi_state = coex_sta->pre_bt_rssi_state; in halbtc8821a1ant_bt_rssi_state()
71 bt_rssi = coex_sta->bt_rssi; in halbtc8821a1ant_bt_rssi_state()
74 if ((coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW) || in halbtc8821a1ant_bt_rssi_state()
75 (coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_STAY_LOW)) { in halbtc8821a1ant_bt_rssi_state()
101 return coex_sta->pre_bt_rssi_state; in halbtc8821a1ant_bt_rssi_state()
104 if ((coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW) || in halbtc8821a1ant_bt_rssi_state()
105 (coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_STAY_LOW)) { in halbtc8821a1ant_bt_rssi_state()
116 } else if ((coex_sta->pre_bt_rssi_state == in halbtc8821a1ant_bt_rssi_state()
118 (coex_sta->pre_bt_rssi_state == in halbtc8821a1ant_bt_rssi_state()
146 coex_sta->pre_bt_rssi_state = bt_rssi_state; in halbtc8821a1ant_bt_rssi_state()
156 u8 wifi_rssi_state = coex_sta->pre_wifi_rssi_state[index]; in halbtc8821a1ant_WifiRssiState()
161 if ((coex_sta->pre_wifi_rssi_state[index] == in halbtc8821a1ant_WifiRssiState()
163 (coex_sta->pre_wifi_rssi_state[index] == in halbtc8821a1ant_WifiRssiState()
194 return coex_sta->pre_wifi_rssi_state[index]; in halbtc8821a1ant_WifiRssiState()
197 if ((coex_sta->pre_wifi_rssi_state[index] == in halbtc8821a1ant_WifiRssiState()
199 (coex_sta->pre_wifi_rssi_state[index] == in halbtc8821a1ant_WifiRssiState()
213 } else if ((coex_sta->pre_wifi_rssi_state[index] == in halbtc8821a1ant_WifiRssiState()
215 (coex_sta->pre_wifi_rssi_state[index] == in halbtc8821a1ant_WifiRssiState()
249 coex_sta->pre_wifi_rssi_state[index] = wifi_rssi_state; in halbtc8821a1ant_WifiRssiState()
417 coex_sta->high_priority_tx = reg_hp_tx; in halbtc8821a1ant_monitor_bt_ctr()
418 coex_sta->high_priority_rx = reg_hp_rx; in halbtc8821a1ant_monitor_bt_ctr()
419 coex_sta->low_priority_tx = reg_lp_tx; in halbtc8821a1ant_monitor_bt_ctr()
420 coex_sta->low_priority_rx = reg_lp_rx; in halbtc8821a1ant_monitor_bt_ctr()
430 coex_sta->c2h_bt_info_req_sent = true; in halbtc8821a1ant_query_bt_info()
448 bt_link_info->bt_link_exist = coex_sta->bt_link_exist; in halbtc8821a1ant_update_bt_link_info()
449 bt_link_info->sco_exist = coex_sta->sco_exist; in halbtc8821a1ant_update_bt_link_info()
450 bt_link_info->a2dp_exist = coex_sta->a2dp_exist; in halbtc8821a1ant_update_bt_link_info()
451 bt_link_info->pan_exist = coex_sta->pan_exist; in halbtc8821a1ant_update_bt_link_info()
452 bt_link_info->hid_exist = coex_sta->hid_exist; in halbtc8821a1ant_update_bt_link_info()
1359 retry_count = coex_sta->bt_retry_cnt; in btc8821a1ant_tdma_dur_adj()
1360 bt_info_ext = coex_sta->bt_info_ext; in btc8821a1ant_tdma_dur_adj()
1589 if (coex_sta->high_priority_tx == 0 && in btc8821a1ant_mon_bt_en_dis()
1590 coex_sta->high_priority_rx == 0 && in btc8821a1ant_mon_bt_en_dis()
1591 coex_sta->low_priority_tx == 0 && in btc8821a1ant_mon_bt_en_dis()
1592 coex_sta->low_priority_rx == 0) { in btc8821a1ant_mon_bt_en_dis()
1595 if (coex_sta->high_priority_tx == 0xffff && in btc8821a1ant_mon_bt_en_dis()
1596 coex_sta->high_priority_rx == 0xffff && in btc8821a1ant_mon_bt_en_dis()
1597 coex_sta->low_priority_tx == 0xffff && in btc8821a1ant_mon_bt_en_dis()
1598 coex_sta->low_priority_rx == 0xffff) { in btc8821a1ant_mon_bt_en_dis()
2063 if (coex_sta->under_ips) { in halbtc8821a1ant_run_coexist_mechanism()
2127 if (coex_sta->c2h_bt_inquiry_page) { in halbtc8821a1ant_run_coexist_mechanism()
2342 ((coex_sta->c2h_bt_inquiry_page) ? ("inquiry/page scan") : in ex_halbtc8821a1ant_display_coex_info()
2349 coex_sta->bt_rssi, coex_sta->bt_retry_cnt); in ex_halbtc8821a1ant_display_coex_info()
2359 bt_info_ext = coex_sta->bt_info_ext; in ex_halbtc8821a1ant_display_coex_info()
2367 if (coex_sta->bt_info_c2h_cnt[i]) { in ex_halbtc8821a1ant_display_coex_info()
2371 coex_sta->bt_info_c2h[i][0], in ex_halbtc8821a1ant_display_coex_info()
2372 coex_sta->bt_info_c2h[i][1], in ex_halbtc8821a1ant_display_coex_info()
2373 coex_sta->bt_info_c2h[i][2], in ex_halbtc8821a1ant_display_coex_info()
2374 coex_sta->bt_info_c2h[i][3], in ex_halbtc8821a1ant_display_coex_info()
2375 coex_sta->bt_info_c2h[i][4], in ex_halbtc8821a1ant_display_coex_info()
2376 coex_sta->bt_info_c2h[i][5], in ex_halbtc8821a1ant_display_coex_info()
2377 coex_sta->bt_info_c2h[i][6], in ex_halbtc8821a1ant_display_coex_info()
2378 coex_sta->bt_info_c2h_cnt[i]); in ex_halbtc8821a1ant_display_coex_info()
2384 ((coex_sta->under_ips ? "IPS ON" : "IPS OFF")), in ex_halbtc8821a1ant_display_coex_info()
2385 ((coex_sta->under_Lps ? "LPS ON" : "LPS OFF")), in ex_halbtc8821a1ant_display_coex_info()
2513 coex_sta->high_priority_rx, coex_sta->high_priority_tx); in ex_halbtc8821a1ant_display_coex_info()
2516 coex_sta->low_priority_rx, coex_sta->low_priority_tx); in ex_halbtc8821a1ant_display_coex_info()
2531 coex_sta->under_ips = true; in ex_halbtc8821a1ant_ips_notify()
2541 coex_sta->under_ips = false; in ex_halbtc8821a1ant_ips_notify()
2555 coex_sta->under_Lps = true; in ex_halbtc8821a1ant_lps_notify()
2559 coex_sta->under_Lps = false; in ex_halbtc8821a1ant_lps_notify()
2579 if (coex_sta->c2h_bt_inquiry_page) { in ex_halbtc8821a1ant_scan_notify()
2619 if (coex_sta->c2h_bt_inquiry_page) { in ex_halbtc8821a1ant_connect_notify()
2703 coex_sta->special_pkt_period_cnt = 0; in ex_halbtc8821a1ant_special_packet_notify()
2706 if (coex_sta->c2h_bt_inquiry_page) { in ex_halbtc8821a1ant_special_packet_notify()
2731 coex_sta->c2h_bt_info_req_sent = false; in ex_halbtc8821a1ant_bt_info_notify()
2739 coex_sta->bt_info_c2h_cnt[rsp_source]++; in ex_halbtc8821a1ant_bt_info_notify()
2745 coex_sta->bt_info_c2h[rsp_source][i] = tmp_buf[i]; in ex_halbtc8821a1ant_bt_info_notify()
2758 coex_sta->bt_retry_cnt = /* [3:0]*/ in ex_halbtc8821a1ant_bt_info_notify()
2759 coex_sta->bt_info_c2h[rsp_source][2]&0xf; in ex_halbtc8821a1ant_bt_info_notify()
2761 coex_sta->bt_rssi = in ex_halbtc8821a1ant_bt_info_notify()
2762 coex_sta->bt_info_c2h[rsp_source][3]*2+10; in ex_halbtc8821a1ant_bt_info_notify()
2764 coex_sta->bt_info_ext = in ex_halbtc8821a1ant_bt_info_notify()
2765 coex_sta->bt_info_c2h[rsp_source][4]; in ex_halbtc8821a1ant_bt_info_notify()
2769 if (coex_sta->bt_info_ext & BIT1) { in ex_halbtc8821a1ant_bt_info_notify()
2784 if ((coex_sta->bt_info_ext & BIT3) && !wifi_under_5g) { in ex_halbtc8821a1ant_bt_info_notify()
2795 if (!(coex_sta->bt_info_ext & BIT4)) { in ex_halbtc8821a1ant_bt_info_notify()
2806 coex_sta->c2h_bt_inquiry_page = true; in ex_halbtc8821a1ant_bt_info_notify()
2808 coex_sta->c2h_bt_inquiry_page = false; in ex_halbtc8821a1ant_bt_info_notify()
2812 coex_sta->bt_link_exist = false; in ex_halbtc8821a1ant_bt_info_notify()
2813 coex_sta->pan_exist = false; in ex_halbtc8821a1ant_bt_info_notify()
2814 coex_sta->a2dp_exist = false; in ex_halbtc8821a1ant_bt_info_notify()
2815 coex_sta->hid_exist = false; in ex_halbtc8821a1ant_bt_info_notify()
2816 coex_sta->sco_exist = false; in ex_halbtc8821a1ant_bt_info_notify()
2819 coex_sta->bt_link_exist = true; in ex_halbtc8821a1ant_bt_info_notify()
2821 coex_sta->pan_exist = true; in ex_halbtc8821a1ant_bt_info_notify()
2823 coex_sta->pan_exist = false; in ex_halbtc8821a1ant_bt_info_notify()
2825 coex_sta->a2dp_exist = true; in ex_halbtc8821a1ant_bt_info_notify()
2827 coex_sta->a2dp_exist = false; in ex_halbtc8821a1ant_bt_info_notify()
2829 coex_sta->hid_exist = true; in ex_halbtc8821a1ant_bt_info_notify()
2831 coex_sta->hid_exist = false; in ex_halbtc8821a1ant_bt_info_notify()
2833 coex_sta->sco_exist = true; in ex_halbtc8821a1ant_bt_info_notify()
2835 coex_sta->sco_exist = false; in ex_halbtc8821a1ant_bt_info_notify()
2964 if (coex_sta->special_pkt_period_cnt > 2) in ex_halbtc8821a1ant_periodical()
2968 coex_sta->special_pkt_period_cnt++; in ex_halbtc8821a1ant_periodical()