Lines Matching refs:coex_dm
44 static struct coex_dm_8821a_1ant *coex_dm = &glcoex_dm_8821a_1ant; variable
247 coex_dm->cur_ra_mask = dis_rate_mask; in btc8821a1ant_update_ra_mask()
250 (coex_dm->pre_ra_mask != coex_dm->cur_ra_mask)) { in btc8821a1ant_update_ra_mask()
252 &coex_dm->cur_ra_mask); in btc8821a1ant_update_ra_mask()
254 coex_dm->pre_ra_mask = coex_dm->cur_ra_mask; in btc8821a1ant_update_ra_mask()
262 coex_dm->cur_arfr_type = type; in btc8821a1ant_auto_rate_fb_retry()
265 (coex_dm->pre_arfr_type != coex_dm->cur_arfr_type)) { in btc8821a1ant_auto_rate_fb_retry()
266 switch (coex_dm->cur_arfr_type) { in btc8821a1ant_auto_rate_fb_retry()
269 coex_dm->backup_arfr_cnt1); in btc8821a1ant_auto_rate_fb_retry()
271 coex_dm->backup_arfr_cnt2); in btc8821a1ant_auto_rate_fb_retry()
294 coex_dm->pre_arfr_type = coex_dm->cur_arfr_type; in btc8821a1ant_auto_rate_fb_retry()
300 coex_dm->cur_retry_limit_type = type; in btc8821a1ant_retry_limit()
303 (coex_dm->pre_retry_limit_type != coex_dm->cur_retry_limit_type)) { in btc8821a1ant_retry_limit()
304 switch (coex_dm->cur_retry_limit_type) { in btc8821a1ant_retry_limit()
307 coex_dm->backup_retry_limit); in btc8821a1ant_retry_limit()
316 coex_dm->pre_retry_limit_type = coex_dm->cur_retry_limit_type; in btc8821a1ant_retry_limit()
322 coex_dm->cur_ampdu_time_type = type; in btc8821a1ant_ampdu_max_time()
325 (coex_dm->pre_ampdu_time_type != coex_dm->cur_ampdu_time_type)) { in btc8821a1ant_ampdu_max_time()
326 switch (coex_dm->cur_ampdu_time_type) { in btc8821a1ant_ampdu_max_time()
329 coex_dm->backup_ampdu_max_time); in btc8821a1ant_ampdu_max_time()
339 coex_dm->pre_ampdu_time_type = coex_dm->cur_ampdu_time_type; in btc8821a1ant_ampdu_max_time()
695 coex_dm->cur_low_penalty_ra = low_penalty_ra; in btc8821a1ant_low_penalty_ra()
698 if (coex_dm->pre_low_penalty_ra == coex_dm->cur_low_penalty_ra) in btc8821a1ant_low_penalty_ra()
702 coex_dm->cur_low_penalty_ra); in btc8821a1ant_low_penalty_ra()
704 coex_dm->pre_low_penalty_ra = coex_dm->cur_low_penalty_ra; in btc8821a1ant_low_penalty_ra()
740 coex_dm->cur_val_0x6c0 = val0x6c0; in btc8821a1ant_coex_table()
741 coex_dm->cur_val_0x6c4 = val0x6c4; in btc8821a1ant_coex_table()
742 coex_dm->cur_val_0x6c8 = val0x6c8; in btc8821a1ant_coex_table()
743 coex_dm->cur_val_0x6cc = val0x6cc; in btc8821a1ant_coex_table()
746 if ((coex_dm->pre_val_0x6c0 == coex_dm->cur_val_0x6c0) && in btc8821a1ant_coex_table()
747 (coex_dm->pre_val_0x6c4 == coex_dm->cur_val_0x6c4) && in btc8821a1ant_coex_table()
748 (coex_dm->pre_val_0x6c8 == coex_dm->cur_val_0x6c8) && in btc8821a1ant_coex_table()
749 (coex_dm->pre_val_0x6cc == coex_dm->cur_val_0x6cc)) in btc8821a1ant_coex_table()
755 coex_dm->pre_val_0x6c0 = coex_dm->cur_val_0x6c0; in btc8821a1ant_coex_table()
756 coex_dm->pre_val_0x6c4 = coex_dm->cur_val_0x6c4; in btc8821a1ant_coex_table()
757 coex_dm->pre_val_0x6c8 = coex_dm->cur_val_0x6c8; in btc8821a1ant_coex_table()
758 coex_dm->pre_val_0x6cc = coex_dm->cur_val_0x6cc; in btc8821a1ant_coex_table()
826 coex_dm->cur_ignore_wlan_act = enable; in btc8821a1ant_ignore_wlan_act()
831 coex_dm->pre_ignore_wlan_act, in btc8821a1ant_ignore_wlan_act()
832 coex_dm->cur_ignore_wlan_act); in btc8821a1ant_ignore_wlan_act()
834 if (coex_dm->pre_ignore_wlan_act == in btc8821a1ant_ignore_wlan_act()
835 coex_dm->cur_ignore_wlan_act) in btc8821a1ant_ignore_wlan_act()
840 coex_dm->pre_ignore_wlan_act = coex_dm->cur_ignore_wlan_act; in btc8821a1ant_ignore_wlan_act()
872 coex_dm->ps_tdma_para[0] = real_byte1; in btc8821a1ant_set_fw_ps_tdma()
873 coex_dm->ps_tdma_para[1] = byte2; in btc8821a1ant_set_fw_ps_tdma()
874 coex_dm->ps_tdma_para[2] = byte3; in btc8821a1ant_set_fw_ps_tdma()
875 coex_dm->ps_tdma_para[3] = byte4; in btc8821a1ant_set_fw_ps_tdma()
876 coex_dm->ps_tdma_para[4] = real_byte5; in btc8821a1ant_set_fw_ps_tdma()
906 coex_dm->cur_lps = lps_val; in btc8821a1ant_lps_rpwm()
907 coex_dm->cur_rpwm = rpwm_val; in btc8821a1ant_lps_rpwm()
912 coex_dm->cur_lps, coex_dm->cur_rpwm); in btc8821a1ant_lps_rpwm()
914 if ((coex_dm->pre_lps == coex_dm->cur_lps) && in btc8821a1ant_lps_rpwm()
915 (coex_dm->pre_rpwm == coex_dm->cur_rpwm)) { in btc8821a1ant_lps_rpwm()
918 coex_dm->pre_rpwm, coex_dm->cur_rpwm); in btc8821a1ant_lps_rpwm()
925 coex_dm->pre_lps = coex_dm->cur_lps; in btc8821a1ant_lps_rpwm()
926 coex_dm->pre_rpwm = coex_dm->cur_rpwm; in btc8821a1ant_lps_rpwm()
1030 coex_dm->cur_ps_tdma_on = turn_on; in btc8821a1ant_ps_tdma()
1031 coex_dm->cur_ps_tdma = type; in btc8821a1ant_ps_tdma()
1034 if (coex_dm->cur_ps_tdma_on) { in btc8821a1ant_ps_tdma()
1037 coex_dm->cur_ps_tdma); in btc8821a1ant_ps_tdma()
1041 coex_dm->cur_ps_tdma); in btc8821a1ant_ps_tdma()
1043 if ((coex_dm->pre_ps_tdma_on == coex_dm->cur_ps_tdma_on) && in btc8821a1ant_ps_tdma()
1044 (coex_dm->pre_ps_tdma == coex_dm->cur_ps_tdma)) in btc8821a1ant_ps_tdma()
1263 coex_dm->pre_ps_tdma_on = coex_dm->cur_ps_tdma_on; in btc8821a1ant_ps_tdma()
1264 coex_dm->pre_ps_tdma = coex_dm->cur_ps_tdma; in btc8821a1ant_ps_tdma()
1278 coex_dm->bt_status) { in btc8821a1ant_is_common_action()
1286 coex_dm->bt_status)) { in btc8821a1ant_is_common_action()
1294 coex_dm->bt_status)) { in btc8821a1ant_is_common_action()
1302 coex_dm->bt_status)) { in btc8821a1ant_is_common_action()
1310 coex_dm->bt_status)) { in btc8821a1ant_is_common_action()
1479 if (coex_dm->bt_status == BT_8821A_1ANT_BT_STATUS_ACL_BUSY) { in btc8821a1ant_action_wifi_multi_port()
1494 } else if ((coex_dm->bt_status == BT_8821A_1ANT_BT_STATUS_SCO_BUSY) || in btc8821a1ant_action_wifi_multi_port()
1496 coex_dm->bt_status)) { in btc8821a1ant_action_wifi_multi_port()
1603 coex_dm->auto_tdma_adjust = false; in btc8821a1ant_act_wifi_con_bt_acl_busy()
1611 coex_dm->auto_tdma_adjust = false; in btc8821a1ant_act_wifi_con_bt_acl_busy()
1622 coex_dm->auto_tdma_adjust = false; in btc8821a1ant_act_wifi_con_bt_acl_busy()
1630 coex_dm->auto_tdma_adjust = false; in btc8821a1ant_act_wifi_con_bt_acl_busy()
1635 coex_dm->auto_tdma_adjust = false; in btc8821a1ant_act_wifi_con_bt_acl_busy()
1644 coex_dm->auto_tdma_adjust = false; in btc8821a1ant_act_wifi_con_bt_acl_busy()
1651 coex_dm->auto_tdma_adjust = false; in btc8821a1ant_act_wifi_con_bt_acl_busy()
1655 coex_dm->auto_tdma_adjust = false; in btc8821a1ant_act_wifi_con_bt_acl_busy()
1677 if (coex_dm->bt_status == BT_8821A_1ANT_BT_STATUS_ACL_BUSY) { in btc8821a1ant_act_wifi_not_conn_scan()
1692 } else if ((coex_dm->bt_status == BT_8821A_1ANT_BT_STATUS_SCO_BUSY) || in btc8821a1ant_act_wifi_not_conn_scan()
1694 coex_dm->bt_status)) { in btc8821a1ant_act_wifi_not_conn_scan()
1713 if (BT_8821A_1ANT_BT_STATUS_ACL_BUSY == coex_dm->bt_status) { in btc8821a1ant_action_wifi_connected_scan()
1723 } else if ((coex_dm->bt_status == BT_8821A_1ANT_BT_STATUS_SCO_BUSY) || in btc8821a1ant_action_wifi_connected_scan()
1724 (coex_dm->bt_status == in btc8821a1ant_action_wifi_connected_scan()
1799 coex_dm->bt_status && !ap_enable && in btc8821a1ant_action_wifi_connected()
1816 if (BT_8821A_1ANT_BT_STATUS_ACL_BUSY == coex_dm->bt_status) { in btc8821a1ant_action_wifi_connected()
1820 coex_dm->bt_status) || in btc8821a1ant_action_wifi_connected()
1822 coex_dm->bt_status)) { in btc8821a1ant_action_wifi_connected()
1831 if (BT_8821A_1ANT_BT_STATUS_ACL_BUSY == coex_dm->bt_status) { in btc8821a1ant_action_wifi_connected()
1835 coex_dm->bt_status) || in btc8821a1ant_action_wifi_connected()
1837 coex_dm->bt_status)) { in btc8821a1ant_action_wifi_connected()
1854 coex_dm->cur_algorithm = algorithm; in btc8821a1ant_run_sw_coex_mech()
1857 switch (coex_dm->cur_algorithm) { in btc8821a1ant_run_sw_coex_mech()
1914 coex_dm->pre_algorithm = coex_dm->cur_algorithm; in btc8821a1ant_run_sw_coex_mech()
1960 if ((BT_8821A_1ANT_BT_STATUS_ACL_BUSY == coex_dm->bt_status) || in btc8821a1ant_run_coexist_mechanism()
1961 (BT_8821A_1ANT_BT_STATUS_SCO_BUSY == coex_dm->bt_status) || in btc8821a1ant_run_coexist_mechanism()
1962 (BT_8821A_1ANT_BT_STATUS_ACL_SCO_BUSY == coex_dm->bt_status)) in btc8821a1ant_run_coexist_mechanism()
2072 coex_dm->backup_arfr_cnt1 = btcoexist->btc_read_4byte(btcoexist, in btc8821a1ant_init_hw_config()
2074 coex_dm->backup_arfr_cnt2 = btcoexist->btc_read_4byte(btcoexist, in btc8821a1ant_init_hw_config()
2076 coex_dm->backup_retry_limit = in btc8821a1ant_init_hw_config()
2078 coex_dm->backup_ampdu_max_time = in btc8821a1ant_init_hw_config()
2190 coex_dm->wifi_chnl_info); in ex_btc8821a1ant_display_coex_info()
2223 coex_dm->bt_status) ? in ex_btc8821a1ant_display_coex_info()
2226 coex_dm->bt_status) ? in ex_btc8821a1ant_display_coex_info()
2265 coex_dm->cur_low_penalty_ra); in ex_btc8821a1ant_display_coex_info()
2279 ps_tdma_case = coex_dm->cur_ps_tdma; in ex_btc8821a1ant_display_coex_info()
2282 coex_dm->ps_tdma_para, in ex_btc8821a1ant_display_coex_info()
2284 coex_dm->auto_tdma_adjust); in ex_btc8821a1ant_display_coex_info()
2288 coex_dm->error_condition); in ex_btc8821a1ant_display_coex_info()
2291 coex_dm->cur_ignore_wlan_act); in ex_btc8821a1ant_display_coex_info()
2299 coex_dm->backup_arfr_cnt1, in ex_btc8821a1ant_display_coex_info()
2300 coex_dm->backup_arfr_cnt2, in ex_btc8821a1ant_display_coex_info()
2301 coex_dm->backup_retry_limit, in ex_btc8821a1ant_display_coex_info()
2302 coex_dm->backup_ampdu_max_time); in ex_btc8821a1ant_display_coex_info()
2532 coex_dm->arp_cnt = 0; in ex_btc8821a1ant_connect_notify()
2537 coex_dm->arp_cnt = 0; in ex_btc8821a1ant_connect_notify()
2605 coex_dm->arp_cnt = 0; in ex_btc8821a1ant_media_status_notify()
2623 coex_dm->wifi_chnl_info[0] = h2c_parameter[0]; in ex_btc8821a1ant_media_status_notify()
2624 coex_dm->wifi_chnl_info[1] = h2c_parameter[1]; in ex_btc8821a1ant_media_status_notify()
2625 coex_dm->wifi_chnl_info[2] = h2c_parameter[2]; in ex_btc8821a1ant_media_status_notify()
2702 coex_dm->arp_cnt++; in ex_btc8821a1ant_special_packet_notify()
2705 coex_dm->arp_cnt); in ex_btc8821a1ant_special_packet_notify()
2706 if (coex_dm->arp_cnt >= 10) in ex_btc8821a1ant_special_packet_notify()
2851 coex_dm->bt_status = BT_8821A_1ANT_BT_STATUS_NON_CONNECTED_IDLE; in ex_btc8821a1ant_bt_info_notify()
2856 coex_dm->bt_status = BT_8821A_1ANT_BT_STATUS_CONNECTED_IDLE; in ex_btc8821a1ant_bt_info_notify()
2861 coex_dm->bt_status = BT_8821A_1ANT_BT_STATUS_SCO_BUSY; in ex_btc8821a1ant_bt_info_notify()
2865 if (BT_8821A_1ANT_BT_STATUS_ACL_BUSY != coex_dm->bt_status) in ex_btc8821a1ant_bt_info_notify()
2866 coex_dm->auto_tdma_adjust = false; in ex_btc8821a1ant_bt_info_notify()
2867 coex_dm->bt_status = BT_8821A_1ANT_BT_STATUS_ACL_BUSY; in ex_btc8821a1ant_bt_info_notify()
2871 coex_dm->bt_status = BT_8821A_1ANT_BT_STATUS_MAX; in ex_btc8821a1ant_bt_info_notify()
2876 if ((BT_8821A_1ANT_BT_STATUS_ACL_BUSY == coex_dm->bt_status) || in ex_btc8821a1ant_bt_info_notify()
2877 (BT_8821A_1ANT_BT_STATUS_SCO_BUSY == coex_dm->bt_status) || in ex_btc8821a1ant_bt_info_notify()
2878 (BT_8821A_1ANT_BT_STATUS_ACL_SCO_BUSY == coex_dm->bt_status)) in ex_btc8821a1ant_bt_info_notify()