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()
1529 if (BTC_RSSI_HIGH(wifi_rssi_state1) && (coex_sta->hid_exist) && in btc8821a2ant_action_wifi_idle_process()
1530 (coex_sta->a2dp_exist)) { in btc8821a2ant_action_wifi_idle_process()
1549 } else if (coex_sta->pan_exist) { in btc8821a2ant_action_wifi_idle_process()
1784 retry_count = coex_sta->bt_retry_cnt; in btc8821a2ant_tdma_duration_adjust()
3391 if (coex_sta->under_ips) { in btc8821a2ant_run_coexist_mechanism()
3398 if (coex_sta->c2h_bt_inquiry_page && in btc8821a2ant_run_coexist_mechanism()
3564 coex_sta->dis_ver_info_cnt = 0; in ex_btc8821a2ant_init_hwconfig()
3709 bt_info_ext = coex_sta->bt_info_ext; in ex_btc8821a2ant_display_coex_info()
3714 if (coex_sta->bt_info_c2h_cnt[i]) { in ex_btc8821a2ant_display_coex_info()
3717 coex_sta->bt_info_c2h[i], in ex_btc8821a2ant_display_coex_info()
3718 coex_sta->bt_info_c2h_cnt[i]); in ex_btc8821a2ant_display_coex_info()
3724 ((coex_sta->under_ips ? "IPS ON" : "IPS OFF")), in ex_btc8821a2ant_display_coex_info()
3725 ((coex_sta->under_lps ? "LPS ON" : "LPS OFF"))); in ex_btc8821a2ant_display_coex_info()
3809 coex_sta->high_priority_rx, coex_sta->high_priority_tx); in ex_btc8821a2ant_display_coex_info()
3812 coex_sta->low_priority_rx, coex_sta->low_priority_tx); in ex_btc8821a2ant_display_coex_info()
3830 coex_sta->under_ips = true; in ex_btc8821a2ant_ips_notify()
3837 coex_sta->under_ips = false; in ex_btc8821a2ant_ips_notify()
3851 coex_sta->under_lps = true; in ex_btc8821a2ant_lps_notify()
3855 coex_sta->under_lps = false; in ex_btc8821a2ant_lps_notify()
3954 coex_sta->c2h_bt_info_req_sent = false; in ex_btc8821a2ant_bt_info_notify()
3962 coex_sta->bt_info_c2h_cnt[rsp_source]++; in ex_btc8821a2ant_bt_info_notify()
3968 coex_sta->bt_info_c2h[rsp_source][i] = tmp_buf[i]; in ex_btc8821a2ant_bt_info_notify()
3988 coex_sta->bt_retry_cnt = in ex_btc8821a2ant_bt_info_notify()
3989 coex_sta->bt_info_c2h[rsp_source][2]&0xf; in ex_btc8821a2ant_bt_info_notify()
3991 coex_sta->bt_rssi = in ex_btc8821a2ant_bt_info_notify()
3992 coex_sta->bt_info_c2h[rsp_source][3] * 2 + 10; in ex_btc8821a2ant_bt_info_notify()
3994 coex_sta->bt_info_ext = coex_sta->bt_info_c2h[rsp_source][4]; in ex_btc8821a2ant_bt_info_notify()
3996 coex_sta->bt_tx_rx_mask = in ex_btc8821a2ant_bt_info_notify()
3997 (coex_sta->bt_info_c2h[rsp_source][2] & 0x40); in ex_btc8821a2ant_bt_info_notify()
3999 &coex_sta->bt_tx_rx_mask); in ex_btc8821a2ant_bt_info_notify()
4000 if (coex_sta->bt_tx_rx_mask) { in ex_btc8821a2ant_bt_info_notify()
4013 if ((coex_sta->bt_info_ext & BIT1)) { in ex_btc8821a2ant_bt_info_notify()
4029 coex_sta->bt_info_ext); in ex_btc8821a2ant_bt_info_notify()
4030 if ((coex_sta->bt_info_ext & BIT(3))) { in ex_btc8821a2ant_bt_info_notify()
4062 coex_sta->c2h_bt_inquiry_page = true; in ex_btc8821a2ant_bt_info_notify()
4064 coex_sta->c2h_bt_inquiry_page = false; in ex_btc8821a2ant_bt_info_notify()
4068 coex_sta->bt_link_exist = false; in ex_btc8821a2ant_bt_info_notify()
4069 coex_sta->pan_exist = false; in ex_btc8821a2ant_bt_info_notify()
4070 coex_sta->a2dp_exist = false; in ex_btc8821a2ant_bt_info_notify()
4071 coex_sta->hid_exist = false; in ex_btc8821a2ant_bt_info_notify()
4072 coex_sta->sco_exist = false; in ex_btc8821a2ant_bt_info_notify()
4074 coex_sta->bt_link_exist = true; in ex_btc8821a2ant_bt_info_notify()
4076 coex_sta->pan_exist = true; in ex_btc8821a2ant_bt_info_notify()
4078 coex_sta->pan_exist = false; in ex_btc8821a2ant_bt_info_notify()
4080 coex_sta->a2dp_exist = true; in ex_btc8821a2ant_bt_info_notify()
4082 coex_sta->a2dp_exist = false; in ex_btc8821a2ant_bt_info_notify()
4084 coex_sta->hid_exist = true; in ex_btc8821a2ant_bt_info_notify()
4086 coex_sta->hid_exist = false; in ex_btc8821a2ant_bt_info_notify()
4088 coex_sta->sco_exist = true; in ex_btc8821a2ant_bt_info_notify()
4090 coex_sta->sco_exist = false; in ex_btc8821a2ant_bt_info_notify()
4092 if ((!coex_sta->hid_exist) && in ex_btc8821a2ant_bt_info_notify()
4093 (!coex_sta->c2h_bt_inquiry_page) && in ex_btc8821a2ant_bt_info_notify()
4094 (!coex_sta->sco_exist)) { in ex_btc8821a2ant_bt_info_notify()
4095 if (coex_sta->high_priority_tx + in ex_btc8821a2ant_bt_info_notify()
4096 coex_sta->high_priority_rx >= 160) in ex_btc8821a2ant_bt_info_notify()
4097 coex_sta->hid_exist = true; in ex_btc8821a2ant_bt_info_notify()
4182 if (coex_sta->dis_ver_info_cnt <= 5) { in ex_btc8821a2ant_periodical()
4183 coex_sta->dis_ver_info_cnt += 1; in ex_btc8821a2ant_periodical()
4184 if (coex_sta->dis_ver_info_cnt == 3) { in ex_btc8821a2ant_periodical()