Lines Matching refs:coex_sta

46 static struct coex_sta_8723b_1ant *coex_sta = &glcoex_sta_8723b_1ant;  variable
217 coex_sta->c2h_bt_info_req_sent = true; in halbtc8723b1ant_query_bt_info()
243 coex_sta->high_priority_tx = reg_hp_tx; in halbtc8723b1ant_monitor_bt_ctr()
244 coex_sta->high_priority_rx = reg_hp_rx; in halbtc8723b1ant_monitor_bt_ctr()
245 coex_sta->low_priority_tx = reg_lp_tx; in halbtc8723b1ant_monitor_bt_ctr()
246 coex_sta->low_priority_rx = reg_lp_rx; in halbtc8723b1ant_monitor_bt_ctr()
248 if ((coex_sta->low_priority_tx > 1050) && in halbtc8723b1ant_monitor_bt_ctr()
249 (!coex_sta->c2h_bt_inquiry_page)) in halbtc8723b1ant_monitor_bt_ctr()
250 coex_sta->pop_event_cnt++; in halbtc8723b1ant_monitor_bt_ctr()
288 if (coex_sta->under_ips) { in halbtc8723b1ant_monitor_wifi_ctr()
289 coex_sta->crc_ok_cck = 0; in halbtc8723b1ant_monitor_wifi_ctr()
290 coex_sta->crc_ok_11g = 0; in halbtc8723b1ant_monitor_wifi_ctr()
291 coex_sta->crc_ok_11n = 0; in halbtc8723b1ant_monitor_wifi_ctr()
292 coex_sta->crc_ok_11n_agg = 0; in halbtc8723b1ant_monitor_wifi_ctr()
294 coex_sta->crc_err_cck = 0; in halbtc8723b1ant_monitor_wifi_ctr()
295 coex_sta->crc_err_11g = 0; in halbtc8723b1ant_monitor_wifi_ctr()
296 coex_sta->crc_err_11n = 0; in halbtc8723b1ant_monitor_wifi_ctr()
297 coex_sta->crc_err_11n_agg = 0; in halbtc8723b1ant_monitor_wifi_ctr()
299 coex_sta->crc_ok_cck = in halbtc8723b1ant_monitor_wifi_ctr()
301 coex_sta->crc_ok_11g = in halbtc8723b1ant_monitor_wifi_ctr()
303 coex_sta->crc_ok_11n = in halbtc8723b1ant_monitor_wifi_ctr()
305 coex_sta->crc_ok_11n_agg = in halbtc8723b1ant_monitor_wifi_ctr()
308 coex_sta->crc_err_cck = in halbtc8723b1ant_monitor_wifi_ctr()
310 coex_sta->crc_err_11g = in halbtc8723b1ant_monitor_wifi_ctr()
312 coex_sta->crc_err_11n = in halbtc8723b1ant_monitor_wifi_ctr()
314 coex_sta->crc_err_11n_agg = in halbtc8723b1ant_monitor_wifi_ctr()
323 total_cnt = coex_sta->crc_ok_cck + coex_sta->crc_ok_11g + in halbtc8723b1ant_monitor_wifi_ctr()
324 coex_sta->crc_ok_11n + coex_sta->crc_ok_11n_agg; in halbtc8723b1ant_monitor_wifi_ctr()
330 if (coex_sta->crc_ok_cck > in halbtc8723b1ant_monitor_wifi_ctr()
331 (total_cnt - coex_sta->crc_ok_cck)) { in halbtc8723b1ant_monitor_wifi_ctr()
348 if (!coex_sta->pre_ccklock) { in halbtc8723b1ant_monitor_wifi_ctr()
350 coex_sta->cck_lock = true; in halbtc8723b1ant_monitor_wifi_ctr()
352 coex_sta->cck_lock = false; in halbtc8723b1ant_monitor_wifi_ctr()
355 coex_sta->cck_lock = false; in halbtc8723b1ant_monitor_wifi_ctr()
357 coex_sta->cck_lock = true; in halbtc8723b1ant_monitor_wifi_ctr()
360 if (coex_sta->cck_lock) in halbtc8723b1ant_monitor_wifi_ctr()
361 coex_sta->cck_ever_lock = true; in halbtc8723b1ant_monitor_wifi_ctr()
363 coex_sta->pre_ccklock = coex_sta->cck_lock; in halbtc8723b1ant_monitor_wifi_ctr()
405 bt_link_info->bt_link_exist = coex_sta->bt_link_exist; in halbtc8723b1ant_update_bt_link_info()
406 bt_link_info->sco_exist = coex_sta->sco_exist; in halbtc8723b1ant_update_bt_link_info()
407 bt_link_info->a2dp_exist = coex_sta->a2dp_exist; in halbtc8723b1ant_update_bt_link_info()
408 bt_link_info->pan_exist = coex_sta->pan_exist; in halbtc8723b1ant_update_bt_link_info()
409 bt_link_info->hid_exist = coex_sta->hid_exist; in halbtc8723b1ant_update_bt_link_info()
410 bt_link_info->bt_hi_pri_link_exist = coex_sta->bt_hi_pri_link_exist; in halbtc8723b1ant_update_bt_link_info()
573 coex_sta->coex_table_type = type; in halbtc8723b1ant_coex_table_with_type()
593 if ((coex_sta->cck_ever_lock) && (coex_sta->scan_ap_num <= 5)) in halbtc8723b1ant_coex_table_with_type()
1078 if (coex_sta->scan_ap_num <= 5) { in halbtc8723b1ant_ps_tdma()
1081 if (coex_sta->a2dp_bit_pool >= 35) in halbtc8723b1ant_ps_tdma()
1083 else if (coex_sta->a2dp_bit_pool >= 45) in halbtc8723b1ant_ps_tdma()
1085 } else if (coex_sta->scan_ap_num >= 40) { in halbtc8723b1ant_ps_tdma()
1088 if (coex_sta->a2dp_bit_pool < 35) in halbtc8723b1ant_ps_tdma()
1090 else if (coex_sta->a2dp_bit_pool < 45) in halbtc8723b1ant_ps_tdma()
1092 } else if (coex_sta->scan_ap_num >= 20) { in halbtc8723b1ant_ps_tdma()
1095 if (coex_sta->a2dp_bit_pool >= 45) in halbtc8723b1ant_ps_tdma()
1100 if (coex_sta->a2dp_bit_pool >= 35) in halbtc8723b1ant_ps_tdma()
1102 else if (coex_sta->a2dp_bit_pool >= 45) in halbtc8723b1ant_ps_tdma()
1108 if (!coex_sta->force_lps_on) { in halbtc8723b1ant_ps_tdma()
1224 if (coex_sta->scan_ap_num <= 3) in halbtc8723b1ant_ps_tdma()
1234 if (coex_sta->scan_ap_num <= 3) in halbtc8723b1ant_ps_tdma()
1496 retry_count = coex_sta->bt_retry_cnt; in btc8723b1ant_tdma_dur_adj_for_acl()
1497 bt_info_ext = coex_sta->bt_info_ext; in btc8723b1ant_tdma_dur_adj_for_acl()
1499 if ((coex_sta->low_priority_tx) > 1050 || in btc8723b1ant_tdma_dur_adj_for_acl()
1500 (coex_sta->low_priority_rx) > 1250) in btc8723b1ant_tdma_dur_adj_for_acl()
1664 coex_sta->force_lps_on = false; in halbtc8723b1ant_power_save_state()
1676 coex_sta->force_lps_on = true; in halbtc8723b1ant_power_save_state()
1681 coex_sta->force_lps_on = false; in halbtc8723b1ant_power_save_state()
1704 if (coex_sta->high_priority_tx == 0 && in halbtc8723b1ant_monitor_bt_enable_disable()
1705 coex_sta->high_priority_rx == 0 && coex_sta->low_priority_tx == 0 && in halbtc8723b1ant_monitor_bt_enable_disable()
1706 coex_sta->low_priority_rx == 0) in halbtc8723b1ant_monitor_bt_enable_disable()
1708 if (coex_sta->high_priority_tx == 0xffff && in halbtc8723b1ant_monitor_bt_enable_disable()
1709 coex_sta->high_priority_rx == 0xffff && in halbtc8723b1ant_monitor_bt_enable_disable()
1710 coex_sta->low_priority_tx == 0xffff && in halbtc8723b1ant_monitor_bt_enable_disable()
1711 coex_sta->low_priority_rx == 0xffff) in halbtc8723b1ant_monitor_bt_enable_disable()
1721 if (coex_sta->bt_disabled != bt_disabled) { in halbtc8723b1ant_monitor_bt_enable_disable()
1724 (coex_sta->bt_disabled ? "disabled" : "enabled"), in halbtc8723b1ant_monitor_bt_enable_disable()
1727 coex_sta->bt_disabled = bt_disabled; in halbtc8723b1ant_monitor_bt_enable_disable()
1787 if (coex_sta->bt_abnormal_scan) { in halbtc8723b1ant_action_bt_inquiry()
1790 } else if (!wifi_connected && !coex_sta->wifi_is_high_pri_task) { in halbtc8723b1ant_action_bt_inquiry()
1802 if (coex_sta->c2h_bt_remote_name_req) in halbtc8723b1ant_action_bt_inquiry()
1813 if (coex_sta->c2h_bt_remote_name_req) in halbtc8723b1ant_action_bt_inquiry()
1857 if ((coex_sta->low_priority_rx >= 950) && (!coex_sta->under_ips)) in halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
2030 ((bt_link_info->pan_exist) || (coex_sta->num_of_profile >= 2))) in halbtc8723b1ant_action_wifi_connected_special_packet()
2101 if (coex_sta->scan_ap_num >= in halbtc8723b1ant_action_wifi_connected()
2114 } else if ((!coex_sta->pan_exist) && (!coex_sta->a2dp_exist) && in halbtc8723b1ant_action_wifi_connected()
2115 (!coex_sta->hid_exist)) in halbtc8723b1ant_action_wifi_connected()
2199 if (coex_sta->under_ips) { in halbtc8723b1ant_run_coexist_mechanism()
2205 if (coex_sta->bt_whck_test) { in halbtc8723b1ant_run_coexist_mechanism()
2244 (coex_sta->c2h_bt_inquiry_page)) in halbtc8723b1ant_run_coexist_mechanism()
2297 if (coex_sta->c2h_bt_inquiry_page) { in halbtc8723b1ant_run_coexist_mechanism()
2336 coex_sta->pop_event_cnt = 0; in halbtc8723b1ant_init_coex_dm()
2350 coex_sta->cut_version = in halbtc8723b1ant_init_hw_config()
2573 ((coex_sta->bt_disabled) ? ("disabled") : in ex_btc8723b1ant_display_coex_info()
2574 ((coex_sta->c2h_bt_inquiry_page) ? ("inquiry/page scan") : in ex_btc8723b1ant_display_coex_info()
2581 coex_sta->bt_rssi, coex_sta->bt_retry_cnt); in ex_btc8723b1ant_display_coex_info()
2589 bt_info_ext = coex_sta->bt_info_ext; in ex_btc8723b1ant_display_coex_info()
2595 if (coex_sta->bt_info_c2h_cnt[i]) { in ex_btc8723b1ant_display_coex_info()
2598 coex_sta->bt_info_c2h[i], in ex_btc8723b1ant_display_coex_info()
2599 coex_sta->bt_info_c2h_cnt[i]); in ex_btc8723b1ant_display_coex_info()
2604 ((coex_sta->under_ips ? "IPS ON" : "IPS OFF")), in ex_btc8723b1ant_display_coex_info()
2605 ((coex_sta->under_lps ? "LPS ON" : "LPS OFF")), in ex_btc8723b1ant_display_coex_info()
2645 "Coex Table Type", coex_sta->coex_table_type); in ex_btc8723b1ant_display_coex_info()
2732 "0x770(high-pri rx/tx)", coex_sta->high_priority_rx, in ex_btc8723b1ant_display_coex_info()
2733 coex_sta->high_priority_tx); in ex_btc8723b1ant_display_coex_info()
2735 "0x774(low-pri rx/tx)", coex_sta->low_priority_rx, in ex_btc8723b1ant_display_coex_info()
2736 coex_sta->low_priority_tx); in ex_btc8723b1ant_display_coex_info()
2752 coex_sta->under_ips = true; in ex_btc8723b1ant_ips_notify()
2763 coex_sta->under_ips = false; in ex_btc8723b1ant_ips_notify()
2781 coex_sta->under_lps = true; in ex_btc8723b1ant_lps_notify()
2785 coex_sta->under_lps = false; in ex_btc8723b1ant_lps_notify()
2804 coex_sta->wifi_is_high_pri_task = true; in ex_btc8723b1ant_scan_notify()
2819 coex_sta->wifi_is_high_pri_task = false; in ex_btc8723b1ant_scan_notify()
2824 &coex_sta->scan_ap_num); in ex_btc8723b1ant_scan_notify()
2827 if (coex_sta->bt_disabled) in ex_btc8723b1ant_scan_notify()
2847 if (coex_sta->c2h_bt_inquiry_page) { in ex_btc8723b1ant_scan_notify()
2888 coex_sta->bt_disabled) in ex_btc8723b1ant_connect_notify()
2892 coex_sta->wifi_is_high_pri_task = true; in ex_btc8723b1ant_connect_notify()
2902 coex_sta->wifi_is_high_pri_task = false; in ex_btc8723b1ant_connect_notify()
2919 if (coex_sta->c2h_bt_inquiry_page) { in ex_btc8723b1ant_connect_notify()
2955 coex_sta->bt_disabled) in ex_btc8723b1ant_media_status_notify()
2997 coex_sta->cck_ever_lock = false; in ex_btc8723b1ant_media_status_notify()
3040 coex_sta->bt_disabled) in ex_btc8723b1ant_special_packet_notify()
3058 coex_sta->wifi_is_high_pri_task = false; in ex_btc8723b1ant_special_packet_notify()
3060 coex_sta->wifi_is_high_pri_task = true; in ex_btc8723b1ant_special_packet_notify()
3062 coex_sta->wifi_is_high_pri_task = true; in ex_btc8723b1ant_special_packet_notify()
3067 coex_sta->wifi_is_high_pri_task = false; in ex_btc8723b1ant_special_packet_notify()
3084 coex_sta->special_pkt_period_cnt = 0; in ex_btc8723b1ant_special_packet_notify()
3087 if (coex_sta->c2h_bt_inquiry_page) { in ex_btc8723b1ant_special_packet_notify()
3112 coex_sta->c2h_bt_info_req_sent = false; in ex_btc8723b1ant_bt_info_notify()
3117 coex_sta->bt_info_c2h_cnt[rsp_source]++; in ex_btc8723b1ant_bt_info_notify()
3123 coex_sta->bt_info_c2h[rsp_source][i] = tmp_buf[i]; in ex_btc8723b1ant_bt_info_notify()
3136 coex_sta->bt_whck_test = true; in ex_btc8723b1ant_bt_info_notify()
3138 coex_sta->bt_whck_test = false; in ex_btc8723b1ant_bt_info_notify()
3141 coex_sta->bt_retry_cnt = /* [3:0] */ in ex_btc8723b1ant_bt_info_notify()
3142 coex_sta->bt_info_c2h[rsp_source][2] & 0xf; in ex_btc8723b1ant_bt_info_notify()
3144 if (coex_sta->bt_retry_cnt >= 1) in ex_btc8723b1ant_bt_info_notify()
3145 coex_sta->pop_event_cnt++; in ex_btc8723b1ant_bt_info_notify()
3147 if (coex_sta->bt_info_c2h[rsp_source][2] & 0x20) in ex_btc8723b1ant_bt_info_notify()
3148 coex_sta->c2h_bt_remote_name_req = true; in ex_btc8723b1ant_bt_info_notify()
3150 coex_sta->c2h_bt_remote_name_req = false; in ex_btc8723b1ant_bt_info_notify()
3152 coex_sta->bt_rssi = in ex_btc8723b1ant_bt_info_notify()
3153 coex_sta->bt_info_c2h[rsp_source][3] * 2 - 90; in ex_btc8723b1ant_bt_info_notify()
3155 coex_sta->bt_info_ext = in ex_btc8723b1ant_bt_info_notify()
3156 coex_sta->bt_info_c2h[rsp_source][4]; in ex_btc8723b1ant_bt_info_notify()
3158 if (coex_sta->bt_info_c2h[rsp_source][1] == 0x49) { in ex_btc8723b1ant_bt_info_notify()
3159 coex_sta->a2dp_bit_pool = in ex_btc8723b1ant_bt_info_notify()
3160 coex_sta->bt_info_c2h[rsp_source][6]; in ex_btc8723b1ant_bt_info_notify()
3162 coex_sta->a2dp_bit_pool = 0; in ex_btc8723b1ant_bt_info_notify()
3165 coex_sta->bt_tx_rx_mask = in ex_btc8723b1ant_bt_info_notify()
3166 (coex_sta->bt_info_c2h[rsp_source][2] & 0x40); in ex_btc8723b1ant_bt_info_notify()
3168 &coex_sta->bt_tx_rx_mask); in ex_btc8723b1ant_bt_info_notify()
3170 if (!coex_sta->bt_tx_rx_mask) { in ex_btc8723b1ant_bt_info_notify()
3189 if (coex_sta->bt_info_ext & BIT1) { in ex_btc8723b1ant_bt_info_notify()
3202 if (coex_sta->bt_info_ext & BIT3) { in ex_btc8723b1ant_bt_info_notify()
3215 if (coex_sta->bt_info_ext & BIT4) { in ex_btc8723b1ant_bt_info_notify()
3227 coex_sta->c2h_bt_inquiry_page = true; in ex_btc8723b1ant_bt_info_notify()
3229 coex_sta->c2h_bt_inquiry_page = false; in ex_btc8723b1ant_bt_info_notify()
3231 coex_sta->num_of_profile = 0; in ex_btc8723b1ant_bt_info_notify()
3235 coex_sta->bt_link_exist = false; in ex_btc8723b1ant_bt_info_notify()
3236 coex_sta->pan_exist = false; in ex_btc8723b1ant_bt_info_notify()
3237 coex_sta->a2dp_exist = false; in ex_btc8723b1ant_bt_info_notify()
3238 coex_sta->hid_exist = false; in ex_btc8723b1ant_bt_info_notify()
3239 coex_sta->sco_exist = false; in ex_btc8723b1ant_bt_info_notify()
3241 coex_sta->bt_hi_pri_link_exist = false; in ex_btc8723b1ant_bt_info_notify()
3244 coex_sta->bt_link_exist = true; in ex_btc8723b1ant_bt_info_notify()
3246 coex_sta->pan_exist = true; in ex_btc8723b1ant_bt_info_notify()
3247 coex_sta->num_of_profile++; in ex_btc8723b1ant_bt_info_notify()
3249 coex_sta->pan_exist = false; in ex_btc8723b1ant_bt_info_notify()
3252 coex_sta->a2dp_exist = true; in ex_btc8723b1ant_bt_info_notify()
3253 coex_sta->num_of_profile++; in ex_btc8723b1ant_bt_info_notify()
3255 coex_sta->a2dp_exist = false; in ex_btc8723b1ant_bt_info_notify()
3258 coex_sta->hid_exist = true; in ex_btc8723b1ant_bt_info_notify()
3259 coex_sta->num_of_profile++; in ex_btc8723b1ant_bt_info_notify()
3261 coex_sta->hid_exist = false; in ex_btc8723b1ant_bt_info_notify()
3264 coex_sta->sco_exist = true; in ex_btc8723b1ant_bt_info_notify()
3265 coex_sta->num_of_profile++; in ex_btc8723b1ant_bt_info_notify()
3267 coex_sta->sco_exist = false; in ex_btc8723b1ant_bt_info_notify()
3270 if ((!coex_sta->hid_exist) && in ex_btc8723b1ant_bt_info_notify()
3271 (!coex_sta->c2h_bt_inquiry_page) && in ex_btc8723b1ant_bt_info_notify()
3272 (!coex_sta->sco_exist)) { in ex_btc8723b1ant_bt_info_notify()
3273 if (coex_sta->high_priority_tx + in ex_btc8723b1ant_bt_info_notify()
3274 coex_sta->high_priority_rx >= in ex_btc8723b1ant_bt_info_notify()
3276 coex_sta->hid_exist = true; in ex_btc8723b1ant_bt_info_notify()
3277 coex_sta->wrong_profile_notification++; in ex_btc8723b1ant_bt_info_notify()
3278 coex_sta->num_of_profile++; in ex_btc8723b1ant_bt_info_notify()
3284 if (((coex_sta->hid_exist) || (coex_sta->sco_exist)) && in ex_btc8723b1ant_bt_info_notify()
3285 (coex_sta->high_priority_tx + coex_sta->high_priority_rx >= in ex_btc8723b1ant_bt_info_notify()
3287 (!coex_sta->c2h_bt_inquiry_page)) in ex_btc8723b1ant_bt_info_notify()
3288 coex_sta->bt_hi_pri_link_exist = true; in ex_btc8723b1ant_bt_info_notify()
3291 (coex_sta->num_of_profile == 0)) { in ex_btc8723b1ant_bt_info_notify()
3292 if (coex_sta->low_priority_tx + in ex_btc8723b1ant_bt_info_notify()
3293 coex_sta->low_priority_rx >= in ex_btc8723b1ant_bt_info_notify()
3295 coex_sta->pan_exist = true; in ex_btc8723b1ant_bt_info_notify()
3296 coex_sta->num_of_profile++; in ex_btc8723b1ant_bt_info_notify()
3297 coex_sta->wrong_profile_notification++; in ex_btc8723b1ant_bt_info_notify()
3429 coex_sta->under_ips = false; in ex_btc8723b1ant_pnp_notify()
3430 coex_sta->under_lps = false; in ex_btc8723b1ant_pnp_notify()
3468 if ((coex_sta->high_priority_tx + coex_sta->high_priority_rx < 50) && in ex_btc8723b1ant_periodical()
3476 coex_sta->special_pkt_period_cnt++; in ex_btc8723b1ant_periodical()