Lines Matching refs:coex_sta

24 static struct coex_sta_8723b_1ant *coex_sta = &glcoex_sta_8723b_1ant;  variable
195 coex_sta->c2h_bt_info_req_sent = true; in halbtc8723b1ant_query_bt_info()
221 coex_sta->high_priority_tx = reg_hp_tx; in halbtc8723b1ant_monitor_bt_ctr()
222 coex_sta->high_priority_rx = reg_hp_rx; in halbtc8723b1ant_monitor_bt_ctr()
223 coex_sta->low_priority_tx = reg_lp_tx; in halbtc8723b1ant_monitor_bt_ctr()
224 coex_sta->low_priority_rx = reg_lp_rx; in halbtc8723b1ant_monitor_bt_ctr()
226 if ((coex_sta->low_priority_tx > 1050) && in halbtc8723b1ant_monitor_bt_ctr()
227 (!coex_sta->c2h_bt_inquiry_page)) in halbtc8723b1ant_monitor_bt_ctr()
228 coex_sta->pop_event_cnt++; in halbtc8723b1ant_monitor_bt_ctr()
266 if (coex_sta->under_ips) { in halbtc8723b1ant_monitor_wifi_ctr()
267 coex_sta->crc_ok_cck = 0; in halbtc8723b1ant_monitor_wifi_ctr()
268 coex_sta->crc_ok_11g = 0; in halbtc8723b1ant_monitor_wifi_ctr()
269 coex_sta->crc_ok_11n = 0; in halbtc8723b1ant_monitor_wifi_ctr()
270 coex_sta->crc_ok_11n_agg = 0; in halbtc8723b1ant_monitor_wifi_ctr()
272 coex_sta->crc_err_cck = 0; in halbtc8723b1ant_monitor_wifi_ctr()
273 coex_sta->crc_err_11g = 0; in halbtc8723b1ant_monitor_wifi_ctr()
274 coex_sta->crc_err_11n = 0; in halbtc8723b1ant_monitor_wifi_ctr()
275 coex_sta->crc_err_11n_agg = 0; in halbtc8723b1ant_monitor_wifi_ctr()
277 coex_sta->crc_ok_cck = in halbtc8723b1ant_monitor_wifi_ctr()
279 coex_sta->crc_ok_11g = in halbtc8723b1ant_monitor_wifi_ctr()
281 coex_sta->crc_ok_11n = in halbtc8723b1ant_monitor_wifi_ctr()
283 coex_sta->crc_ok_11n_agg = in halbtc8723b1ant_monitor_wifi_ctr()
286 coex_sta->crc_err_cck = in halbtc8723b1ant_monitor_wifi_ctr()
288 coex_sta->crc_err_11g = in halbtc8723b1ant_monitor_wifi_ctr()
290 coex_sta->crc_err_11n = in halbtc8723b1ant_monitor_wifi_ctr()
292 coex_sta->crc_err_11n_agg = in halbtc8723b1ant_monitor_wifi_ctr()
301 total_cnt = coex_sta->crc_ok_cck + coex_sta->crc_ok_11g + in halbtc8723b1ant_monitor_wifi_ctr()
302 coex_sta->crc_ok_11n + coex_sta->crc_ok_11n_agg; in halbtc8723b1ant_monitor_wifi_ctr()
308 if (coex_sta->crc_ok_cck > in halbtc8723b1ant_monitor_wifi_ctr()
309 (total_cnt - coex_sta->crc_ok_cck)) { in halbtc8723b1ant_monitor_wifi_ctr()
326 if (!coex_sta->pre_ccklock) { in halbtc8723b1ant_monitor_wifi_ctr()
328 coex_sta->cck_lock = true; in halbtc8723b1ant_monitor_wifi_ctr()
330 coex_sta->cck_lock = false; in halbtc8723b1ant_monitor_wifi_ctr()
333 coex_sta->cck_lock = false; in halbtc8723b1ant_monitor_wifi_ctr()
335 coex_sta->cck_lock = true; in halbtc8723b1ant_monitor_wifi_ctr()
338 if (coex_sta->cck_lock) in halbtc8723b1ant_monitor_wifi_ctr()
339 coex_sta->cck_ever_lock = true; in halbtc8723b1ant_monitor_wifi_ctr()
341 coex_sta->pre_ccklock = coex_sta->cck_lock; in halbtc8723b1ant_monitor_wifi_ctr()
383 bt_link_info->bt_link_exist = coex_sta->bt_link_exist; in halbtc8723b1ant_update_bt_link_info()
384 bt_link_info->sco_exist = coex_sta->sco_exist; in halbtc8723b1ant_update_bt_link_info()
385 bt_link_info->a2dp_exist = coex_sta->a2dp_exist; in halbtc8723b1ant_update_bt_link_info()
386 bt_link_info->pan_exist = coex_sta->pan_exist; in halbtc8723b1ant_update_bt_link_info()
387 bt_link_info->hid_exist = coex_sta->hid_exist; in halbtc8723b1ant_update_bt_link_info()
388 bt_link_info->bt_hi_pri_link_exist = coex_sta->bt_hi_pri_link_exist; in halbtc8723b1ant_update_bt_link_info()
551 coex_sta->coex_table_type = type; in halbtc8723b1ant_coex_table_with_type()
571 if ((coex_sta->cck_ever_lock) && (coex_sta->scan_ap_num <= 5)) in halbtc8723b1ant_coex_table_with_type()
1056 if (coex_sta->scan_ap_num <= 5) { in halbtc8723b1ant_ps_tdma()
1059 if (coex_sta->a2dp_bit_pool >= 35) in halbtc8723b1ant_ps_tdma()
1061 else if (coex_sta->a2dp_bit_pool >= 45) in halbtc8723b1ant_ps_tdma()
1063 } else if (coex_sta->scan_ap_num >= 40) { in halbtc8723b1ant_ps_tdma()
1066 if (coex_sta->a2dp_bit_pool < 35) in halbtc8723b1ant_ps_tdma()
1068 else if (coex_sta->a2dp_bit_pool < 45) in halbtc8723b1ant_ps_tdma()
1070 } else if (coex_sta->scan_ap_num >= 20) { in halbtc8723b1ant_ps_tdma()
1073 if (coex_sta->a2dp_bit_pool >= 45) in halbtc8723b1ant_ps_tdma()
1078 if (coex_sta->a2dp_bit_pool >= 35) in halbtc8723b1ant_ps_tdma()
1080 else if (coex_sta->a2dp_bit_pool >= 45) in halbtc8723b1ant_ps_tdma()
1086 if (!coex_sta->force_lps_on) { in halbtc8723b1ant_ps_tdma()
1202 if (coex_sta->scan_ap_num <= 3) in halbtc8723b1ant_ps_tdma()
1212 if (coex_sta->scan_ap_num <= 3) in halbtc8723b1ant_ps_tdma()
1468 retry_count = coex_sta->bt_retry_cnt; in btc8723b1ant_tdma_dur_adj_for_acl()
1470 if ((coex_sta->low_priority_tx) > 1050 || in btc8723b1ant_tdma_dur_adj_for_acl()
1471 (coex_sta->low_priority_rx) > 1250) in btc8723b1ant_tdma_dur_adj_for_acl()
1635 coex_sta->force_lps_on = false; in halbtc8723b1ant_power_save_state()
1647 coex_sta->force_lps_on = true; in halbtc8723b1ant_power_save_state()
1652 coex_sta->force_lps_on = false; in halbtc8723b1ant_power_save_state()
1675 if (coex_sta->high_priority_tx == 0 && in halbtc8723b1ant_monitor_bt_enable_disable()
1676 coex_sta->high_priority_rx == 0 && coex_sta->low_priority_tx == 0 && in halbtc8723b1ant_monitor_bt_enable_disable()
1677 coex_sta->low_priority_rx == 0) in halbtc8723b1ant_monitor_bt_enable_disable()
1679 if (coex_sta->high_priority_tx == 0xffff && in halbtc8723b1ant_monitor_bt_enable_disable()
1680 coex_sta->high_priority_rx == 0xffff && in halbtc8723b1ant_monitor_bt_enable_disable()
1681 coex_sta->low_priority_tx == 0xffff && in halbtc8723b1ant_monitor_bt_enable_disable()
1682 coex_sta->low_priority_rx == 0xffff) in halbtc8723b1ant_monitor_bt_enable_disable()
1692 if (coex_sta->bt_disabled != bt_disabled) { in halbtc8723b1ant_monitor_bt_enable_disable()
1695 (coex_sta->bt_disabled ? "disabled" : "enabled"), in halbtc8723b1ant_monitor_bt_enable_disable()
1698 coex_sta->bt_disabled = bt_disabled; in halbtc8723b1ant_monitor_bt_enable_disable()
1758 if (coex_sta->bt_abnormal_scan) { in halbtc8723b1ant_action_bt_inquiry()
1761 } else if (!wifi_connected && !coex_sta->wifi_is_high_pri_task) { in halbtc8723b1ant_action_bt_inquiry()
1773 if (coex_sta->c2h_bt_remote_name_req) in halbtc8723b1ant_action_bt_inquiry()
1784 if (coex_sta->c2h_bt_remote_name_req) in halbtc8723b1ant_action_bt_inquiry()
1828 if ((coex_sta->low_priority_rx >= 950) && (!coex_sta->under_ips)) in halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
2000 ((bt_link_info->pan_exist) || (coex_sta->num_of_profile >= 2))) in halbtc8723b1ant_action_wifi_connected_special_packet()
2071 if (coex_sta->scan_ap_num >= in halbtc8723b1ant_action_wifi_connected()
2084 } else if ((!coex_sta->pan_exist) && (!coex_sta->a2dp_exist) && in halbtc8723b1ant_action_wifi_connected()
2085 (!coex_sta->hid_exist)) in halbtc8723b1ant_action_wifi_connected()
2169 if (coex_sta->under_ips) { in halbtc8723b1ant_run_coexist_mechanism()
2175 if (coex_sta->bt_whck_test) { in halbtc8723b1ant_run_coexist_mechanism()
2214 (coex_sta->c2h_bt_inquiry_page)) in halbtc8723b1ant_run_coexist_mechanism()
2267 if (coex_sta->c2h_bt_inquiry_page) { in halbtc8723b1ant_run_coexist_mechanism()
2306 coex_sta->pop_event_cnt = 0; in halbtc8723b1ant_init_coex_dm()
2320 coex_sta->cut_version = in halbtc8723b1ant_init_hw_config()
2543 ((coex_sta->bt_disabled) ? ("disabled") : in ex_btc8723b1ant_display_coex_info()
2544 ((coex_sta->c2h_bt_inquiry_page) ? ("inquiry/page scan") : in ex_btc8723b1ant_display_coex_info()
2551 coex_sta->bt_rssi, coex_sta->bt_retry_cnt); in ex_btc8723b1ant_display_coex_info()
2559 bt_info_ext = coex_sta->bt_info_ext; in ex_btc8723b1ant_display_coex_info()
2565 if (coex_sta->bt_info_c2h_cnt[i]) { in ex_btc8723b1ant_display_coex_info()
2568 coex_sta->bt_info_c2h[i], in ex_btc8723b1ant_display_coex_info()
2569 coex_sta->bt_info_c2h_cnt[i]); in ex_btc8723b1ant_display_coex_info()
2574 ((coex_sta->under_ips ? "IPS ON" : "IPS OFF")), in ex_btc8723b1ant_display_coex_info()
2575 ((coex_sta->under_lps ? "LPS ON" : "LPS OFF")), in ex_btc8723b1ant_display_coex_info()
2615 "Coex Table Type", coex_sta->coex_table_type); in ex_btc8723b1ant_display_coex_info()
2702 "0x770(high-pri rx/tx)", coex_sta->high_priority_rx, in ex_btc8723b1ant_display_coex_info()
2703 coex_sta->high_priority_tx); in ex_btc8723b1ant_display_coex_info()
2705 "0x774(low-pri rx/tx)", coex_sta->low_priority_rx, in ex_btc8723b1ant_display_coex_info()
2706 coex_sta->low_priority_tx); in ex_btc8723b1ant_display_coex_info()
2722 coex_sta->under_ips = true; in ex_btc8723b1ant_ips_notify()
2733 coex_sta->under_ips = false; in ex_btc8723b1ant_ips_notify()
2751 coex_sta->under_lps = true; in ex_btc8723b1ant_lps_notify()
2755 coex_sta->under_lps = false; in ex_btc8723b1ant_lps_notify()
2774 coex_sta->wifi_is_high_pri_task = true; in ex_btc8723b1ant_scan_notify()
2789 coex_sta->wifi_is_high_pri_task = false; in ex_btc8723b1ant_scan_notify()
2794 &coex_sta->scan_ap_num); in ex_btc8723b1ant_scan_notify()
2797 if (coex_sta->bt_disabled) in ex_btc8723b1ant_scan_notify()
2817 if (coex_sta->c2h_bt_inquiry_page) { in ex_btc8723b1ant_scan_notify()
2858 coex_sta->bt_disabled) in ex_btc8723b1ant_connect_notify()
2862 coex_sta->wifi_is_high_pri_task = true; in ex_btc8723b1ant_connect_notify()
2872 coex_sta->wifi_is_high_pri_task = false; in ex_btc8723b1ant_connect_notify()
2889 if (coex_sta->c2h_bt_inquiry_page) { in ex_btc8723b1ant_connect_notify()
2925 coex_sta->bt_disabled) in ex_btc8723b1ant_media_status_notify()
2967 coex_sta->cck_ever_lock = false; in ex_btc8723b1ant_media_status_notify()
3010 coex_sta->bt_disabled) in ex_btc8723b1ant_special_packet_notify()
3028 coex_sta->wifi_is_high_pri_task = false; in ex_btc8723b1ant_special_packet_notify()
3030 coex_sta->wifi_is_high_pri_task = true; in ex_btc8723b1ant_special_packet_notify()
3032 coex_sta->wifi_is_high_pri_task = true; in ex_btc8723b1ant_special_packet_notify()
3037 coex_sta->wifi_is_high_pri_task = false; in ex_btc8723b1ant_special_packet_notify()
3054 coex_sta->special_pkt_period_cnt = 0; in ex_btc8723b1ant_special_packet_notify()
3057 if (coex_sta->c2h_bt_inquiry_page) { in ex_btc8723b1ant_special_packet_notify()
3082 coex_sta->c2h_bt_info_req_sent = false; in ex_btc8723b1ant_bt_info_notify()
3087 coex_sta->bt_info_c2h_cnt[rsp_source]++; in ex_btc8723b1ant_bt_info_notify()
3093 coex_sta->bt_info_c2h[rsp_source][i] = tmp_buf[i]; in ex_btc8723b1ant_bt_info_notify()
3106 coex_sta->bt_whck_test = true; in ex_btc8723b1ant_bt_info_notify()
3108 coex_sta->bt_whck_test = false; in ex_btc8723b1ant_bt_info_notify()
3111 coex_sta->bt_retry_cnt = /* [3:0] */ in ex_btc8723b1ant_bt_info_notify()
3112 coex_sta->bt_info_c2h[rsp_source][2] & 0xf; in ex_btc8723b1ant_bt_info_notify()
3114 if (coex_sta->bt_retry_cnt >= 1) in ex_btc8723b1ant_bt_info_notify()
3115 coex_sta->pop_event_cnt++; in ex_btc8723b1ant_bt_info_notify()
3117 if (coex_sta->bt_info_c2h[rsp_source][2] & 0x20) in ex_btc8723b1ant_bt_info_notify()
3118 coex_sta->c2h_bt_remote_name_req = true; in ex_btc8723b1ant_bt_info_notify()
3120 coex_sta->c2h_bt_remote_name_req = false; in ex_btc8723b1ant_bt_info_notify()
3122 coex_sta->bt_rssi = in ex_btc8723b1ant_bt_info_notify()
3123 coex_sta->bt_info_c2h[rsp_source][3] * 2 - 90; in ex_btc8723b1ant_bt_info_notify()
3125 coex_sta->bt_info_ext = in ex_btc8723b1ant_bt_info_notify()
3126 coex_sta->bt_info_c2h[rsp_source][4]; in ex_btc8723b1ant_bt_info_notify()
3128 if (coex_sta->bt_info_c2h[rsp_source][1] == 0x49) { in ex_btc8723b1ant_bt_info_notify()
3129 coex_sta->a2dp_bit_pool = in ex_btc8723b1ant_bt_info_notify()
3130 coex_sta->bt_info_c2h[rsp_source][6]; in ex_btc8723b1ant_bt_info_notify()
3132 coex_sta->a2dp_bit_pool = 0; in ex_btc8723b1ant_bt_info_notify()
3135 coex_sta->bt_tx_rx_mask = in ex_btc8723b1ant_bt_info_notify()
3136 (coex_sta->bt_info_c2h[rsp_source][2] & 0x40); in ex_btc8723b1ant_bt_info_notify()
3138 &coex_sta->bt_tx_rx_mask); in ex_btc8723b1ant_bt_info_notify()
3140 if (!coex_sta->bt_tx_rx_mask) { in ex_btc8723b1ant_bt_info_notify()
3159 if (coex_sta->bt_info_ext & BIT1) { in ex_btc8723b1ant_bt_info_notify()
3172 if (coex_sta->bt_info_ext & BIT3) { in ex_btc8723b1ant_bt_info_notify()
3185 if (coex_sta->bt_info_ext & BIT4) { in ex_btc8723b1ant_bt_info_notify()
3197 coex_sta->c2h_bt_inquiry_page = true; in ex_btc8723b1ant_bt_info_notify()
3199 coex_sta->c2h_bt_inquiry_page = false; in ex_btc8723b1ant_bt_info_notify()
3201 coex_sta->num_of_profile = 0; in ex_btc8723b1ant_bt_info_notify()
3205 coex_sta->bt_link_exist = false; in ex_btc8723b1ant_bt_info_notify()
3206 coex_sta->pan_exist = false; in ex_btc8723b1ant_bt_info_notify()
3207 coex_sta->a2dp_exist = false; in ex_btc8723b1ant_bt_info_notify()
3208 coex_sta->hid_exist = false; in ex_btc8723b1ant_bt_info_notify()
3209 coex_sta->sco_exist = false; in ex_btc8723b1ant_bt_info_notify()
3211 coex_sta->bt_hi_pri_link_exist = false; in ex_btc8723b1ant_bt_info_notify()
3214 coex_sta->bt_link_exist = true; in ex_btc8723b1ant_bt_info_notify()
3216 coex_sta->pan_exist = true; in ex_btc8723b1ant_bt_info_notify()
3217 coex_sta->num_of_profile++; in ex_btc8723b1ant_bt_info_notify()
3219 coex_sta->pan_exist = false; in ex_btc8723b1ant_bt_info_notify()
3222 coex_sta->a2dp_exist = true; in ex_btc8723b1ant_bt_info_notify()
3223 coex_sta->num_of_profile++; in ex_btc8723b1ant_bt_info_notify()
3225 coex_sta->a2dp_exist = false; in ex_btc8723b1ant_bt_info_notify()
3228 coex_sta->hid_exist = true; in ex_btc8723b1ant_bt_info_notify()
3229 coex_sta->num_of_profile++; in ex_btc8723b1ant_bt_info_notify()
3231 coex_sta->hid_exist = false; in ex_btc8723b1ant_bt_info_notify()
3234 coex_sta->sco_exist = true; in ex_btc8723b1ant_bt_info_notify()
3235 coex_sta->num_of_profile++; in ex_btc8723b1ant_bt_info_notify()
3237 coex_sta->sco_exist = false; in ex_btc8723b1ant_bt_info_notify()
3240 if ((!coex_sta->hid_exist) && in ex_btc8723b1ant_bt_info_notify()
3241 (!coex_sta->c2h_bt_inquiry_page) && in ex_btc8723b1ant_bt_info_notify()
3242 (!coex_sta->sco_exist)) { in ex_btc8723b1ant_bt_info_notify()
3243 if (coex_sta->high_priority_tx + in ex_btc8723b1ant_bt_info_notify()
3244 coex_sta->high_priority_rx >= in ex_btc8723b1ant_bt_info_notify()
3246 coex_sta->hid_exist = true; in ex_btc8723b1ant_bt_info_notify()
3247 coex_sta->wrong_profile_notification++; in ex_btc8723b1ant_bt_info_notify()
3248 coex_sta->num_of_profile++; in ex_btc8723b1ant_bt_info_notify()
3254 if (((coex_sta->hid_exist) || (coex_sta->sco_exist)) && in ex_btc8723b1ant_bt_info_notify()
3255 (coex_sta->high_priority_tx + coex_sta->high_priority_rx >= in ex_btc8723b1ant_bt_info_notify()
3257 (!coex_sta->c2h_bt_inquiry_page)) in ex_btc8723b1ant_bt_info_notify()
3258 coex_sta->bt_hi_pri_link_exist = true; in ex_btc8723b1ant_bt_info_notify()
3261 (coex_sta->num_of_profile == 0)) { in ex_btc8723b1ant_bt_info_notify()
3262 if (coex_sta->low_priority_tx + in ex_btc8723b1ant_bt_info_notify()
3263 coex_sta->low_priority_rx >= in ex_btc8723b1ant_bt_info_notify()
3265 coex_sta->pan_exist = true; in ex_btc8723b1ant_bt_info_notify()
3266 coex_sta->num_of_profile++; in ex_btc8723b1ant_bt_info_notify()
3267 coex_sta->wrong_profile_notification++; in ex_btc8723b1ant_bt_info_notify()
3399 coex_sta->under_ips = false; in ex_btc8723b1ant_pnp_notify()
3400 coex_sta->under_lps = false; in ex_btc8723b1ant_pnp_notify()
3438 if ((coex_sta->high_priority_tx + coex_sta->high_priority_rx < 50) && in ex_btc8723b1ant_periodical()
3446 coex_sta->special_pkt_period_cnt++; in ex_btc8723b1ant_periodical()