Lines Matching refs:coex_sta

50 static struct coex_sta_8821a_2ant	*coex_sta = &glcoex_sta_8821a_2ant;  variable
72 u8 bt_rssi_state = coex_sta->pre_bt_rssi_state; in halbtc8821a2ant_bt_rssi_state()
74 bt_rssi = coex_sta->bt_rssi; in halbtc8821a2ant_bt_rssi_state()
77 if ((coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW) || in halbtc8821a2ant_bt_rssi_state()
78 (coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_STAY_LOW)) { in halbtc8821a2ant_bt_rssi_state()
105 return coex_sta->pre_bt_rssi_state; in halbtc8821a2ant_bt_rssi_state()
108 if ((coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW) || in halbtc8821a2ant_bt_rssi_state()
109 (coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_STAY_LOW)) { in halbtc8821a2ant_bt_rssi_state()
120 } else if ((coex_sta->pre_bt_rssi_state == in halbtc8821a2ant_bt_rssi_state()
122 (coex_sta->pre_bt_rssi_state == in halbtc8821a2ant_bt_rssi_state()
152 coex_sta->pre_bt_rssi_state = bt_rssi_state; in halbtc8821a2ant_bt_rssi_state()
162 u8 wifi_rssi_state = coex_sta->pre_wifi_rssi_state[index]; in halbtc8821a2ant_wifi_rssi_state()
167 if ((coex_sta->pre_wifi_rssi_state[index] == in halbtc8821a2ant_wifi_rssi_state()
169 (coex_sta->pre_wifi_rssi_state[index] == in halbtc8821a2ant_wifi_rssi_state()
200 return coex_sta->pre_wifi_rssi_state[index]; in halbtc8821a2ant_wifi_rssi_state()
203 if ((coex_sta->pre_wifi_rssi_state[index] == in halbtc8821a2ant_wifi_rssi_state()
205 (coex_sta->pre_wifi_rssi_state[index] == in halbtc8821a2ant_wifi_rssi_state()
219 } else if ((coex_sta->pre_wifi_rssi_state[index] == in halbtc8821a2ant_wifi_rssi_state()
221 (coex_sta->pre_wifi_rssi_state[index] == in halbtc8821a2ant_wifi_rssi_state()
254 coex_sta->pre_wifi_rssi_state[index] = wifi_rssi_state; in halbtc8821a2ant_wifi_rssi_state()
267 if (coex_sta->high_priority_tx == 0 && in btc8821a2ant_mon_bt_en_dis()
268 coex_sta->high_priority_rx == 0 && in btc8821a2ant_mon_bt_en_dis()
269 coex_sta->low_priority_tx == 0 && in btc8821a2ant_mon_bt_en_dis()
270 coex_sta->low_priority_rx == 0) in btc8821a2ant_mon_bt_en_dis()
272 if (coex_sta->high_priority_tx == 0xffff && in btc8821a2ant_mon_bt_en_dis()
273 coex_sta->high_priority_rx == 0xffff && in btc8821a2ant_mon_bt_en_dis()
274 coex_sta->low_priority_tx == 0xffff && in btc8821a2ant_mon_bt_en_dis()
275 coex_sta->low_priority_rx == 0xffff) in btc8821a2ant_mon_bt_en_dis()
322 coex_sta->high_priority_tx = reg_hp_tx; in halbtc8821a2ant_monitor_bt_ctr()
323 coex_sta->high_priority_rx = reg_hp_rx; in halbtc8821a2ant_monitor_bt_ctr()
324 coex_sta->low_priority_tx = reg_lp_tx; in halbtc8821a2ant_monitor_bt_ctr()
325 coex_sta->low_priority_rx = reg_lp_rx; in halbtc8821a2ant_monitor_bt_ctr()
342 coex_sta->c2h_bt_info_req_sent = true; in halbtc8821a2ant_query_bt_info()
365 stack_info->hid_exist = coex_sta->hid_exist; in halbtc8821a2ant_action_algorithm()
368 stack_info->bt_link_exist = coex_sta->bt_link_exist; in halbtc8821a2ant_action_algorithm()
370 if (!coex_sta->bt_link_exist) { in halbtc8821a2ant_action_algorithm()
376 if (coex_sta->sco_exist) in halbtc8821a2ant_action_algorithm()
378 if (coex_sta->hid_exist) in halbtc8821a2ant_action_algorithm()
380 if (coex_sta->pan_exist) in halbtc8821a2ant_action_algorithm()
382 if (coex_sta->a2dp_exist) in halbtc8821a2ant_action_algorithm()
386 if (coex_sta->sco_exist) { in halbtc8821a2ant_action_algorithm()
391 if (coex_sta->hid_exist) { in halbtc8821a2ant_action_algorithm()
395 } else if (coex_sta->a2dp_exist) { in halbtc8821a2ant_action_algorithm()
399 } else if (coex_sta->pan_exist) { in halbtc8821a2ant_action_algorithm()
412 if (coex_sta->sco_exist) { in halbtc8821a2ant_action_algorithm()
413 if (coex_sta->hid_exist) { in halbtc8821a2ant_action_algorithm()
417 } else if (coex_sta->a2dp_exist) { in halbtc8821a2ant_action_algorithm()
421 } else if (coex_sta->pan_exist) { in halbtc8821a2ant_action_algorithm()
433 if (coex_sta->hid_exist && in halbtc8821a2ant_action_algorithm()
434 coex_sta->a2dp_exist) { in halbtc8821a2ant_action_algorithm()
438 } else if (coex_sta->hid_exist && in halbtc8821a2ant_action_algorithm()
439 coex_sta->pan_exist) { in halbtc8821a2ant_action_algorithm()
449 } else if (coex_sta->pan_exist && in halbtc8821a2ant_action_algorithm()
450 coex_sta->a2dp_exist) { in halbtc8821a2ant_action_algorithm()
463 if (coex_sta->sco_exist) { in halbtc8821a2ant_action_algorithm()
464 if (coex_sta->hid_exist && in halbtc8821a2ant_action_algorithm()
465 coex_sta->a2dp_exist) { in halbtc8821a2ant_action_algorithm()
469 } else if (coex_sta->hid_exist && in halbtc8821a2ant_action_algorithm()
470 coex_sta->pan_exist) { in halbtc8821a2ant_action_algorithm()
480 } else if (coex_sta->pan_exist && in halbtc8821a2ant_action_algorithm()
481 coex_sta->a2dp_exist) { in halbtc8821a2ant_action_algorithm()
493 if (coex_sta->hid_exist && in halbtc8821a2ant_action_algorithm()
494 coex_sta->pan_exist && in halbtc8821a2ant_action_algorithm()
495 coex_sta->a2dp_exist) { in halbtc8821a2ant_action_algorithm()
508 if (coex_sta->sco_exist) { in halbtc8821a2ant_action_algorithm()
509 if (coex_sta->hid_exist && in halbtc8821a2ant_action_algorithm()
510 coex_sta->pan_exist && in halbtc8821a2ant_action_algorithm()
511 coex_sta->a2dp_exist) { in halbtc8821a2ant_action_algorithm()
2197 retry_count = coex_sta->bt_retry_cnt; in btc8821a2ant_tdma_dur_adj()
2555 bt_info_ext = coex_sta->bt_info_ext; in halbtc8821a2ant_action_a2dp_pan_hs()
2780 bt_info_ext = coex_sta->bt_info_ext; in halbtc8821a2ant_action_pan_edr_a2dp()
2970 bt_info_ext = coex_sta->bt_info_ext; in btc8821a2ant_act_hid_a2dp_pan_edr()
3078 bt_info_ext = coex_sta->bt_info_ext; in halbtc8821a2ant_action_hid_a2dp()
3202 if (coex_sta->c2h_bt_inquiry_page && in halbtc8821a2ant_run_coexist_mechanism()
3433 ((coex_sta->c2h_bt_inquiry_page) ? ("inquiry/page scan") : in ex_halbtc8821a2ant_display_coex_info()
3437 coex_sta->bt_rssi, coex_sta->bt_retry_cnt); in ex_halbtc8821a2ant_display_coex_info()
3449 bt_info_ext = coex_sta->bt_info_ext; in ex_halbtc8821a2ant_display_coex_info()
3455 if (coex_sta->bt_info_c2h_cnt[i]) { in ex_halbtc8821a2ant_display_coex_info()
3459 coex_sta->bt_info_c2h[i][0], in ex_halbtc8821a2ant_display_coex_info()
3460 coex_sta->bt_info_c2h[i][1], in ex_halbtc8821a2ant_display_coex_info()
3461 coex_sta->bt_info_c2h[i][2], in ex_halbtc8821a2ant_display_coex_info()
3462 coex_sta->bt_info_c2h[i][3], in ex_halbtc8821a2ant_display_coex_info()
3463 coex_sta->bt_info_c2h[i][4], in ex_halbtc8821a2ant_display_coex_info()
3464 coex_sta->bt_info_c2h[i][5], in ex_halbtc8821a2ant_display_coex_info()
3465 coex_sta->bt_info_c2h[i][6], in ex_halbtc8821a2ant_display_coex_info()
3466 coex_sta->bt_info_c2h_cnt[i]); in ex_halbtc8821a2ant_display_coex_info()
3472 ((coex_sta->under_ips ? "IPS ON" : "IPS OFF")), in ex_halbtc8821a2ant_display_coex_info()
3473 ((coex_sta->under_lps ? "LPS ON" : "LPS OFF"))); in ex_halbtc8821a2ant_display_coex_info()
3569 coex_sta->high_priority_rx, coex_sta->high_priority_tx); in ex_halbtc8821a2ant_display_coex_info()
3572 coex_sta->low_priority_rx, coex_sta->low_priority_tx); in ex_halbtc8821a2ant_display_coex_info()
3588 coex_sta->under_ips = true; in ex_halbtc8821a2ant_ips_notify()
3593 coex_sta->under_ips = false; in ex_halbtc8821a2ant_ips_notify()
3603 coex_sta->under_lps = true; in ex_halbtc8821a2ant_lps_notify()
3607 coex_sta->under_lps = false; in ex_halbtc8821a2ant_lps_notify()
3690 coex_sta->c2h_bt_info_req_sent = false; in ex_halbtc8821a2ant_bt_info_notify()
3695 coex_sta->bt_info_c2h_cnt[rsp_source]++; in ex_halbtc8821a2ant_bt_info_notify()
3701 coex_sta->bt_info_c2h[rsp_source][i] = tmp_buf[i]; in ex_halbtc8821a2ant_bt_info_notify()
3714 coex_sta->bt_retry_cnt = /* [3:0]*/ in ex_halbtc8821a2ant_bt_info_notify()
3715 coex_sta->bt_info_c2h[rsp_source][2]&0xf; in ex_halbtc8821a2ant_bt_info_notify()
3717 coex_sta->bt_rssi = in ex_halbtc8821a2ant_bt_info_notify()
3718 coex_sta->bt_info_c2h[rsp_source][3]*2+10; in ex_halbtc8821a2ant_bt_info_notify()
3720 coex_sta->bt_info_ext = in ex_halbtc8821a2ant_bt_info_notify()
3721 coex_sta->bt_info_c2h[rsp_source][4]; in ex_halbtc8821a2ant_bt_info_notify()
3725 if ((coex_sta->bt_info_ext & BIT1)) { in ex_halbtc8821a2ant_bt_info_notify()
3745 if (!(coex_sta->bt_info_ext & BIT2)) { in ex_halbtc8821a2ant_bt_info_notify()
3757 if ((coex_sta->bt_info_ext & BIT3)) { in ex_halbtc8821a2ant_bt_info_notify()
3764 if ((coex_sta->bt_info_ext & BIT4)) { in ex_halbtc8821a2ant_bt_info_notify()
3775 coex_sta->c2h_bt_inquiry_page = true; in ex_halbtc8821a2ant_bt_info_notify()
3778 coex_sta->c2h_bt_inquiry_page = false; in ex_halbtc8821a2ant_bt_info_notify()
3781 coex_sta->bt_link_exist = true; in ex_halbtc8821a2ant_bt_info_notify()
3785 coex_sta->bt_link_exist = true; in ex_halbtc8821a2ant_bt_info_notify()
3787 coex_sta->pan_exist = true; in ex_halbtc8821a2ant_bt_info_notify()
3789 coex_sta->pan_exist = false; in ex_halbtc8821a2ant_bt_info_notify()
3791 coex_sta->a2dp_exist = true; in ex_halbtc8821a2ant_bt_info_notify()
3793 coex_sta->a2dp_exist = false; in ex_halbtc8821a2ant_bt_info_notify()
3795 coex_sta->hid_exist = true; in ex_halbtc8821a2ant_bt_info_notify()
3797 coex_sta->hid_exist = false; in ex_halbtc8821a2ant_bt_info_notify()
3799 coex_sta->sco_exist = true; in ex_halbtc8821a2ant_bt_info_notify()
3801 coex_sta->sco_exist = false; in ex_halbtc8821a2ant_bt_info_notify()
3804 coex_sta->bt_link_exist = false; in ex_halbtc8821a2ant_bt_info_notify()
3805 coex_sta->pan_exist = false; in ex_halbtc8821a2ant_bt_info_notify()
3806 coex_sta->a2dp_exist = false; in ex_halbtc8821a2ant_bt_info_notify()
3807 coex_sta->hid_exist = false; in ex_halbtc8821a2ant_bt_info_notify()
3808 coex_sta->sco_exist = false; in ex_halbtc8821a2ant_bt_info_notify()