Lines Matching refs:coex_sta
46 static struct coex_sta_8723b_1ant *coex_sta = &glcoex_sta_8723b_1ant; variable
67 u8 bt_rssi_state = coex_sta->pre_bt_rssi_state; in halbtc8723b1ant_bt_rssi_state()
69 bt_rssi = coex_sta->bt_rssi; in halbtc8723b1ant_bt_rssi_state()
72 if ((coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW) || in halbtc8723b1ant_bt_rssi_state()
73 (coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_STAY_LOW)) { in halbtc8723b1ant_bt_rssi_state()
99 return coex_sta->pre_bt_rssi_state; in halbtc8723b1ant_bt_rssi_state()
102 if ((coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW) || in halbtc8723b1ant_bt_rssi_state()
103 (coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_STAY_LOW)) { in halbtc8723b1ant_bt_rssi_state()
114 } else if ((coex_sta->pre_bt_rssi_state == in halbtc8723b1ant_bt_rssi_state()
116 (coex_sta->pre_bt_rssi_state == in halbtc8723b1ant_bt_rssi_state()
145 coex_sta->pre_bt_rssi_state = bt_rssi_state; in halbtc8723b1ant_bt_rssi_state()
155 u8 wifi_rssi_state = coex_sta->pre_wifi_rssi_state[index]; in halbtc8723b1ant_wifi_rssi_state()
161 if ((coex_sta->pre_wifi_rssi_state[index] == in halbtc8723b1ant_wifi_rssi_state()
163 (coex_sta->pre_wifi_rssi_state[index] == in halbtc8723b1ant_wifi_rssi_state()
194 return coex_sta->pre_wifi_rssi_state[index]; in halbtc8723b1ant_wifi_rssi_state()
197 if ((coex_sta->pre_wifi_rssi_state[index] == in halbtc8723b1ant_wifi_rssi_state()
199 (coex_sta->pre_wifi_rssi_state[index] == in halbtc8723b1ant_wifi_rssi_state()
213 } else if ((coex_sta->pre_wifi_rssi_state[index] == in halbtc8723b1ant_wifi_rssi_state()
215 (coex_sta->pre_wifi_rssi_state[index] == in halbtc8723b1ant_wifi_rssi_state()
249 coex_sta->pre_wifi_rssi_state[index] = wifi_rssi_state; in halbtc8723b1ant_wifi_rssi_state()
421 coex_sta->high_priority_tx = reg_hp_tx; in halbtc8723b1ant_monitor_bt_ctr()
422 coex_sta->high_priority_rx = reg_hp_rx; in halbtc8723b1ant_monitor_bt_ctr()
423 coex_sta->low_priority_tx = reg_lp_tx; in halbtc8723b1ant_monitor_bt_ctr()
424 coex_sta->low_priority_rx = reg_lp_rx; in halbtc8723b1ant_monitor_bt_ctr()
434 coex_sta->c2h_bt_info_req_sent = true; in halbtc8723b1ant_query_bt_info()
484 bt_link_info->bt_link_exist = coex_sta->bt_link_exist; in halbtc8723b1ant_update_bt_link_info()
485 bt_link_info->sco_exist = coex_sta->sco_exist; in halbtc8723b1ant_update_bt_link_info()
486 bt_link_info->a2dp_exist = coex_sta->a2dp_exist; in halbtc8723b1ant_update_bt_link_info()
487 bt_link_info->pan_exist = coex_sta->pan_exist; in halbtc8723b1ant_update_bt_link_info()
488 bt_link_info->hid_exist = coex_sta->hid_exist; in halbtc8723b1ant_update_bt_link_info()
1498 retry_count = coex_sta->bt_retry_cnt; in btc8723b1ant_tdma_dur_adj_for_acl()
1499 bt_info_ext = coex_sta->bt_info_ext; in btc8723b1ant_tdma_dur_adj_for_acl()
2189 if (coex_sta->under_ips) { in halbtc8723b1ant_run_coexist_mechanism()
2259 if (coex_sta->c2h_bt_inquiry_page) { in halbtc8723b1ant_run_coexist_mechanism()
2504 ((coex_sta->c2h_bt_inquiry_page) ? ("inquiry/page scan") : in ex_halbtc8723b1ant_display_coex_info()
2511 coex_sta->bt_rssi, coex_sta->bt_retry_cnt); in ex_halbtc8723b1ant_display_coex_info()
2520 bt_info_ext = coex_sta->bt_info_ext; in ex_halbtc8723b1ant_display_coex_info()
2526 if (coex_sta->bt_info_c2h_cnt[i]) { in ex_halbtc8723b1ant_display_coex_info()
2530 coex_sta->bt_info_c2h[i][0], in ex_halbtc8723b1ant_display_coex_info()
2531 coex_sta->bt_info_c2h[i][1], in ex_halbtc8723b1ant_display_coex_info()
2532 coex_sta->bt_info_c2h[i][2], in ex_halbtc8723b1ant_display_coex_info()
2533 coex_sta->bt_info_c2h[i][3], in ex_halbtc8723b1ant_display_coex_info()
2534 coex_sta->bt_info_c2h[i][4], in ex_halbtc8723b1ant_display_coex_info()
2535 coex_sta->bt_info_c2h[i][5], in ex_halbtc8723b1ant_display_coex_info()
2536 coex_sta->bt_info_c2h[i][6], in ex_halbtc8723b1ant_display_coex_info()
2537 coex_sta->bt_info_c2h_cnt[i]); in ex_halbtc8723b1ant_display_coex_info()
2543 ((coex_sta->under_ips ? "IPS ON" : "IPS OFF")), in ex_halbtc8723b1ant_display_coex_info()
2544 ((coex_sta->under_lps ? "LPS ON" : "LPS OFF")), in ex_halbtc8723b1ant_display_coex_info()
2672 "0x770(high-pri rx/tx)", coex_sta->high_priority_rx, in ex_halbtc8723b1ant_display_coex_info()
2673 coex_sta->high_priority_tx); in ex_halbtc8723b1ant_display_coex_info()
2675 "0x774(low-pri rx/tx)", coex_sta->low_priority_rx, in ex_halbtc8723b1ant_display_coex_info()
2676 coex_sta->low_priority_tx); in ex_halbtc8723b1ant_display_coex_info()
2691 coex_sta->under_ips = true; in ex_halbtc8723b1ant_ips_notify()
2703 coex_sta->under_ips = false; in ex_halbtc8723b1ant_ips_notify()
2719 coex_sta->under_lps = true; in ex_halbtc8723b1ant_lps_notify()
2723 coex_sta->under_lps = false; in ex_halbtc8723b1ant_lps_notify()
2756 if (coex_sta->c2h_bt_inquiry_page) { in ex_halbtc8723b1ant_scan_notify()
2805 if (coex_sta->c2h_bt_inquiry_page) { in ex_halbtc8723b1ant_connect_notify()
2899 coex_sta->special_pkt_period_cnt = 0; in ex_halbtc8723b1ant_special_packet_notify()
2902 if (coex_sta->c2h_bt_inquiry_page) { in ex_halbtc8723b1ant_special_packet_notify()
2926 coex_sta->c2h_bt_info_req_sent = false; in ex_halbtc8723b1ant_bt_info_notify()
2931 coex_sta->bt_info_c2h_cnt[rsp_source]++; in ex_halbtc8723b1ant_bt_info_notify()
2937 coex_sta->bt_info_c2h[rsp_source][i] = tmp_buf[i]; in ex_halbtc8723b1ant_bt_info_notify()
2949 coex_sta->bt_retry_cnt = /* [3:0] */ in ex_halbtc8723b1ant_bt_info_notify()
2950 coex_sta->bt_info_c2h[rsp_source][2] & 0xf; in ex_halbtc8723b1ant_bt_info_notify()
2952 coex_sta->bt_rssi = in ex_halbtc8723b1ant_bt_info_notify()
2953 coex_sta->bt_info_c2h[rsp_source][3] * 2 + 10; in ex_halbtc8723b1ant_bt_info_notify()
2955 coex_sta->bt_info_ext = in ex_halbtc8723b1ant_bt_info_notify()
2956 coex_sta->bt_info_c2h[rsp_source][4]; in ex_halbtc8723b1ant_bt_info_notify()
2961 if (coex_sta->bt_info_ext & BIT1) { in ex_halbtc8723b1ant_bt_info_notify()
2974 if (coex_sta->bt_info_ext & BIT3) { in ex_halbtc8723b1ant_bt_info_notify()
2987 if (coex_sta->bt_info_ext & BIT4) { in ex_halbtc8723b1ant_bt_info_notify()
2998 coex_sta->c2h_bt_inquiry_page = true; in ex_halbtc8723b1ant_bt_info_notify()
3000 coex_sta->c2h_bt_inquiry_page = false; in ex_halbtc8723b1ant_bt_info_notify()
3004 coex_sta->bt_link_exist = false; in ex_halbtc8723b1ant_bt_info_notify()
3005 coex_sta->pan_exist = false; in ex_halbtc8723b1ant_bt_info_notify()
3006 coex_sta->a2dp_exist = false; in ex_halbtc8723b1ant_bt_info_notify()
3007 coex_sta->hid_exist = false; in ex_halbtc8723b1ant_bt_info_notify()
3008 coex_sta->sco_exist = false; in ex_halbtc8723b1ant_bt_info_notify()
3010 coex_sta->bt_link_exist = true; in ex_halbtc8723b1ant_bt_info_notify()
3012 coex_sta->pan_exist = true; in ex_halbtc8723b1ant_bt_info_notify()
3014 coex_sta->pan_exist = false; in ex_halbtc8723b1ant_bt_info_notify()
3016 coex_sta->a2dp_exist = true; in ex_halbtc8723b1ant_bt_info_notify()
3018 coex_sta->a2dp_exist = false; in ex_halbtc8723b1ant_bt_info_notify()
3020 coex_sta->hid_exist = true; in ex_halbtc8723b1ant_bt_info_notify()
3022 coex_sta->hid_exist = false; in ex_halbtc8723b1ant_bt_info_notify()
3024 coex_sta->sco_exist = true; in ex_halbtc8723b1ant_bt_info_notify()
3026 coex_sta->sco_exist = false; in ex_halbtc8723b1ant_bt_info_notify()
3168 coex_sta->special_pkt_period_cnt++; in ex_halbtc8723b1ant_periodical()