Lines Matching refs:coex_sta
25 static struct coex_sta_8821a_2ant *coex_sta = &glcoex_sta_8821a_2ant; variable
47 u8 bt_rssi_state = coex_sta->pre_bt_rssi_state; in btc8821a2ant_bt_rssi_state()
49 bt_rssi = coex_sta->bt_rssi; in btc8821a2ant_bt_rssi_state()
52 if ((coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW) || in btc8821a2ant_bt_rssi_state()
53 (coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_STAY_LOW)) { in btc8821a2ant_bt_rssi_state()
79 return coex_sta->pre_bt_rssi_state; in btc8821a2ant_bt_rssi_state()
82 if ((coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_LOW) || in btc8821a2ant_bt_rssi_state()
83 (coex_sta->pre_bt_rssi_state == BTC_RSSI_STATE_STAY_LOW)) { in btc8821a2ant_bt_rssi_state()
95 } else if ((coex_sta->pre_bt_rssi_state == in btc8821a2ant_bt_rssi_state()
97 (coex_sta->pre_bt_rssi_state == in btc8821a2ant_bt_rssi_state()
127 coex_sta->pre_bt_rssi_state = bt_rssi_state; in btc8821a2ant_bt_rssi_state()
138 u8 wifi_rssi_state = coex_sta->pre_wifi_rssi_state[index]; in btc8821a2ant_wifi_rssi_state()
143 if ((coex_sta->pre_wifi_rssi_state[index] == in btc8821a2ant_wifi_rssi_state()
145 (coex_sta->pre_wifi_rssi_state[index] == in btc8821a2ant_wifi_rssi_state()
172 return coex_sta->pre_wifi_rssi_state[index]; in btc8821a2ant_wifi_rssi_state()
175 if ((coex_sta->pre_wifi_rssi_state[index] == in btc8821a2ant_wifi_rssi_state()
177 (coex_sta->pre_wifi_rssi_state[index] == in btc8821a2ant_wifi_rssi_state()
190 } else if ((coex_sta->pre_wifi_rssi_state[index] == in btc8821a2ant_wifi_rssi_state()
192 (coex_sta->pre_wifi_rssi_state[index] == in btc8821a2ant_wifi_rssi_state()
220 coex_sta->pre_wifi_rssi_state[index] = wifi_rssi_state; in btc8821a2ant_wifi_rssi_state()
264 coex_sta->high_priority_tx = reg_hp_tx; in btc8821a2ant_monitor_bt_ctr()
265 coex_sta->high_priority_rx = reg_hp_rx; in btc8821a2ant_monitor_bt_ctr()
266 coex_sta->low_priority_tx = reg_lp_tx; in btc8821a2ant_monitor_bt_ctr()
267 coex_sta->low_priority_rx = reg_lp_rx; in btc8821a2ant_monitor_bt_ctr()
269 if ((coex_sta->low_priority_rx >= 950) && in btc8821a2ant_monitor_bt_ctr()
270 (coex_sta->low_priority_rx >= coex_sta->low_priority_tx) && in btc8821a2ant_monitor_bt_ctr()
271 (!coex_sta->under_ips)) in btc8821a2ant_monitor_bt_ctr()
289 if (coex_sta->under_ips) { in btc8821a2ant_monitor_wifi_ctr()
290 coex_sta->crc_ok_cck = 0; in btc8821a2ant_monitor_wifi_ctr()
291 coex_sta->crc_ok_11g = 0; in btc8821a2ant_monitor_wifi_ctr()
292 coex_sta->crc_ok_11n = 0; in btc8821a2ant_monitor_wifi_ctr()
293 coex_sta->crc_ok_11n_agg = 0; in btc8821a2ant_monitor_wifi_ctr()
295 coex_sta->crc_err_cck = 0; in btc8821a2ant_monitor_wifi_ctr()
296 coex_sta->crc_err_11g = 0; in btc8821a2ant_monitor_wifi_ctr()
297 coex_sta->crc_err_11n = 0; in btc8821a2ant_monitor_wifi_ctr()
298 coex_sta->crc_err_11n_agg = 0; in btc8821a2ant_monitor_wifi_ctr()
300 coex_sta->crc_ok_cck = in btc8821a2ant_monitor_wifi_ctr()
302 coex_sta->crc_ok_11g = in btc8821a2ant_monitor_wifi_ctr()
304 coex_sta->crc_ok_11n = in btc8821a2ant_monitor_wifi_ctr()
306 coex_sta->crc_ok_11n_agg = in btc8821a2ant_monitor_wifi_ctr()
309 coex_sta->crc_err_cck = in btc8821a2ant_monitor_wifi_ctr()
311 coex_sta->crc_err_11g = in btc8821a2ant_monitor_wifi_ctr()
313 coex_sta->crc_err_11n = in btc8821a2ant_monitor_wifi_ctr()
315 coex_sta->crc_err_11n_agg = in btc8821a2ant_monitor_wifi_ctr()
329 coex_sta->c2h_bt_info_req_sent = true; in btc8821a2ant_query_bt_info()
388 bt_link_info->bt_link_exist = coex_sta->bt_link_exist; in btc8821a2ant_update_bt_link_info()
389 bt_link_info->sco_exist = coex_sta->sco_exist; in btc8821a2ant_update_bt_link_info()
390 bt_link_info->a2dp_exist = coex_sta->a2dp_exist; in btc8821a2ant_update_bt_link_info()
391 bt_link_info->pan_exist = coex_sta->pan_exist; in btc8821a2ant_update_bt_link_info()
392 bt_link_info->hid_exist = coex_sta->hid_exist; in btc8821a2ant_update_bt_link_info()
881 coex_sta->coex_table_type = type; in btc8821a2ant_coex_table_with_type()
1386 coex_sta->force_lps_on = false; in btc8821a2ant_power_save_state()
1399 coex_sta->force_lps_on = true; in btc8821a2ant_power_save_state()
1405 coex_sta->force_lps_on = false; in btc8821a2ant_power_save_state()
1532 if (BTC_RSSI_HIGH(wifi_rssi_state1) && (coex_sta->hid_exist) && in btc8821a2ant_action_wifi_idle_process()
1533 (coex_sta->a2dp_exist)) { in btc8821a2ant_action_wifi_idle_process()
1552 } else if (coex_sta->pan_exist) { in btc8821a2ant_action_wifi_idle_process()
1803 retry_count = coex_sta->bt_retry_cnt; in btc8821a2ant_tdma_duration_adjust()
3406 if (coex_sta->under_ips) { in btc8821a2ant_run_coexist_mechanism()
3413 if (coex_sta->c2h_bt_inquiry_page && in btc8821a2ant_run_coexist_mechanism()
3579 coex_sta->dis_ver_info_cnt = 0; in ex_btc8821a2ant_init_hwconfig()
3724 bt_info_ext = coex_sta->bt_info_ext; in ex_btc8821a2ant_display_coex_info()
3729 if (coex_sta->bt_info_c2h_cnt[i]) { in ex_btc8821a2ant_display_coex_info()
3732 coex_sta->bt_info_c2h[i], in ex_btc8821a2ant_display_coex_info()
3733 coex_sta->bt_info_c2h_cnt[i]); in ex_btc8821a2ant_display_coex_info()
3739 ((coex_sta->under_ips ? "IPS ON" : "IPS OFF")), in ex_btc8821a2ant_display_coex_info()
3740 ((coex_sta->under_lps ? "LPS ON" : "LPS OFF"))); in ex_btc8821a2ant_display_coex_info()
3824 coex_sta->high_priority_rx, coex_sta->high_priority_tx); in ex_btc8821a2ant_display_coex_info()
3827 coex_sta->low_priority_rx, coex_sta->low_priority_tx); in ex_btc8821a2ant_display_coex_info()
3845 coex_sta->under_ips = true; in ex_btc8821a2ant_ips_notify()
3852 coex_sta->under_ips = false; in ex_btc8821a2ant_ips_notify()
3866 coex_sta->under_lps = true; in ex_btc8821a2ant_lps_notify()
3870 coex_sta->under_lps = false; in ex_btc8821a2ant_lps_notify()
3969 coex_sta->c2h_bt_info_req_sent = false; in ex_btc8821a2ant_bt_info_notify()
3977 coex_sta->bt_info_c2h_cnt[rsp_source]++; in ex_btc8821a2ant_bt_info_notify()
3983 coex_sta->bt_info_c2h[rsp_source][i] = tmp_buf[i]; in ex_btc8821a2ant_bt_info_notify()
4003 coex_sta->bt_retry_cnt = in ex_btc8821a2ant_bt_info_notify()
4004 coex_sta->bt_info_c2h[rsp_source][2]&0xf; in ex_btc8821a2ant_bt_info_notify()
4006 coex_sta->bt_rssi = in ex_btc8821a2ant_bt_info_notify()
4007 coex_sta->bt_info_c2h[rsp_source][3] * 2 + 10; in ex_btc8821a2ant_bt_info_notify()
4009 coex_sta->bt_info_ext = coex_sta->bt_info_c2h[rsp_source][4]; in ex_btc8821a2ant_bt_info_notify()
4011 coex_sta->bt_tx_rx_mask = in ex_btc8821a2ant_bt_info_notify()
4012 (coex_sta->bt_info_c2h[rsp_source][2] & 0x40); in ex_btc8821a2ant_bt_info_notify()
4014 &coex_sta->bt_tx_rx_mask); in ex_btc8821a2ant_bt_info_notify()
4015 if (coex_sta->bt_tx_rx_mask) { in ex_btc8821a2ant_bt_info_notify()
4028 if ((coex_sta->bt_info_ext & BIT1)) { in ex_btc8821a2ant_bt_info_notify()
4044 coex_sta->bt_info_ext); in ex_btc8821a2ant_bt_info_notify()
4045 if ((coex_sta->bt_info_ext & BIT(3))) { in ex_btc8821a2ant_bt_info_notify()
4077 coex_sta->c2h_bt_inquiry_page = true; in ex_btc8821a2ant_bt_info_notify()
4079 coex_sta->c2h_bt_inquiry_page = false; in ex_btc8821a2ant_bt_info_notify()
4083 coex_sta->bt_link_exist = false; in ex_btc8821a2ant_bt_info_notify()
4084 coex_sta->pan_exist = false; in ex_btc8821a2ant_bt_info_notify()
4085 coex_sta->a2dp_exist = false; in ex_btc8821a2ant_bt_info_notify()
4086 coex_sta->hid_exist = false; in ex_btc8821a2ant_bt_info_notify()
4087 coex_sta->sco_exist = false; in ex_btc8821a2ant_bt_info_notify()
4089 coex_sta->bt_link_exist = true; in ex_btc8821a2ant_bt_info_notify()
4091 coex_sta->pan_exist = true; in ex_btc8821a2ant_bt_info_notify()
4093 coex_sta->pan_exist = false; in ex_btc8821a2ant_bt_info_notify()
4095 coex_sta->a2dp_exist = true; in ex_btc8821a2ant_bt_info_notify()
4097 coex_sta->a2dp_exist = false; in ex_btc8821a2ant_bt_info_notify()
4099 coex_sta->hid_exist = true; in ex_btc8821a2ant_bt_info_notify()
4101 coex_sta->hid_exist = false; in ex_btc8821a2ant_bt_info_notify()
4103 coex_sta->sco_exist = true; in ex_btc8821a2ant_bt_info_notify()
4105 coex_sta->sco_exist = false; in ex_btc8821a2ant_bt_info_notify()
4107 if ((!coex_sta->hid_exist) && in ex_btc8821a2ant_bt_info_notify()
4108 (!coex_sta->c2h_bt_inquiry_page) && in ex_btc8821a2ant_bt_info_notify()
4109 (!coex_sta->sco_exist)) { in ex_btc8821a2ant_bt_info_notify()
4110 if (coex_sta->high_priority_tx + in ex_btc8821a2ant_bt_info_notify()
4111 coex_sta->high_priority_rx >= 160) in ex_btc8821a2ant_bt_info_notify()
4112 coex_sta->hid_exist = true; in ex_btc8821a2ant_bt_info_notify()
4197 if (coex_sta->dis_ver_info_cnt <= 5) { in ex_btc8821a2ant_periodical()
4198 coex_sta->dis_ver_info_cnt += 1; in ex_btc8821a2ant_periodical()
4199 if (coex_sta->dis_ver_info_cnt == 3) { in ex_btc8821a2ant_periodical()