Lines Matching refs:coex_dm
22 static struct coex_dm_8821a_1ant *coex_dm = &glcoex_dm_8821a_1ant; variable
225 coex_dm->cur_ra_mask = dis_rate_mask; in btc8821a1ant_update_ra_mask()
228 (coex_dm->pre_ra_mask != coex_dm->cur_ra_mask)) { in btc8821a1ant_update_ra_mask()
230 &coex_dm->cur_ra_mask); in btc8821a1ant_update_ra_mask()
232 coex_dm->pre_ra_mask = coex_dm->cur_ra_mask; in btc8821a1ant_update_ra_mask()
240 coex_dm->cur_arfr_type = type; in btc8821a1ant_auto_rate_fb_retry()
243 (coex_dm->pre_arfr_type != coex_dm->cur_arfr_type)) { in btc8821a1ant_auto_rate_fb_retry()
244 switch (coex_dm->cur_arfr_type) { in btc8821a1ant_auto_rate_fb_retry()
247 coex_dm->backup_arfr_cnt1); in btc8821a1ant_auto_rate_fb_retry()
249 coex_dm->backup_arfr_cnt2); in btc8821a1ant_auto_rate_fb_retry()
272 coex_dm->pre_arfr_type = coex_dm->cur_arfr_type; in btc8821a1ant_auto_rate_fb_retry()
278 coex_dm->cur_retry_limit_type = type; in btc8821a1ant_retry_limit()
281 (coex_dm->pre_retry_limit_type != coex_dm->cur_retry_limit_type)) { in btc8821a1ant_retry_limit()
282 switch (coex_dm->cur_retry_limit_type) { in btc8821a1ant_retry_limit()
285 coex_dm->backup_retry_limit); in btc8821a1ant_retry_limit()
294 coex_dm->pre_retry_limit_type = coex_dm->cur_retry_limit_type; in btc8821a1ant_retry_limit()
300 coex_dm->cur_ampdu_time_type = type; in btc8821a1ant_ampdu_max_time()
303 (coex_dm->pre_ampdu_time_type != coex_dm->cur_ampdu_time_type)) { in btc8821a1ant_ampdu_max_time()
304 switch (coex_dm->cur_ampdu_time_type) { in btc8821a1ant_ampdu_max_time()
307 coex_dm->backup_ampdu_max_time); in btc8821a1ant_ampdu_max_time()
317 coex_dm->pre_ampdu_time_type = coex_dm->cur_ampdu_time_type; in btc8821a1ant_ampdu_max_time()
673 coex_dm->cur_low_penalty_ra = low_penalty_ra; in btc8821a1ant_low_penalty_ra()
676 if (coex_dm->pre_low_penalty_ra == coex_dm->cur_low_penalty_ra) in btc8821a1ant_low_penalty_ra()
680 coex_dm->cur_low_penalty_ra); in btc8821a1ant_low_penalty_ra()
682 coex_dm->pre_low_penalty_ra = coex_dm->cur_low_penalty_ra; in btc8821a1ant_low_penalty_ra()
718 coex_dm->cur_val_0x6c0 = val0x6c0; in btc8821a1ant_coex_table()
719 coex_dm->cur_val_0x6c4 = val0x6c4; in btc8821a1ant_coex_table()
720 coex_dm->cur_val_0x6c8 = val0x6c8; in btc8821a1ant_coex_table()
721 coex_dm->cur_val_0x6cc = val0x6cc; in btc8821a1ant_coex_table()
724 if ((coex_dm->pre_val_0x6c0 == coex_dm->cur_val_0x6c0) && in btc8821a1ant_coex_table()
725 (coex_dm->pre_val_0x6c4 == coex_dm->cur_val_0x6c4) && in btc8821a1ant_coex_table()
726 (coex_dm->pre_val_0x6c8 == coex_dm->cur_val_0x6c8) && in btc8821a1ant_coex_table()
727 (coex_dm->pre_val_0x6cc == coex_dm->cur_val_0x6cc)) in btc8821a1ant_coex_table()
733 coex_dm->pre_val_0x6c0 = coex_dm->cur_val_0x6c0; in btc8821a1ant_coex_table()
734 coex_dm->pre_val_0x6c4 = coex_dm->cur_val_0x6c4; in btc8821a1ant_coex_table()
735 coex_dm->pre_val_0x6c8 = coex_dm->cur_val_0x6c8; in btc8821a1ant_coex_table()
736 coex_dm->pre_val_0x6cc = coex_dm->cur_val_0x6cc; in btc8821a1ant_coex_table()
804 coex_dm->cur_ignore_wlan_act = enable; in btc8821a1ant_ignore_wlan_act()
809 coex_dm->pre_ignore_wlan_act, in btc8821a1ant_ignore_wlan_act()
810 coex_dm->cur_ignore_wlan_act); in btc8821a1ant_ignore_wlan_act()
812 if (coex_dm->pre_ignore_wlan_act == in btc8821a1ant_ignore_wlan_act()
813 coex_dm->cur_ignore_wlan_act) in btc8821a1ant_ignore_wlan_act()
818 coex_dm->pre_ignore_wlan_act = coex_dm->cur_ignore_wlan_act; in btc8821a1ant_ignore_wlan_act()
850 coex_dm->ps_tdma_para[0] = real_byte1; in btc8821a1ant_set_fw_ps_tdma()
851 coex_dm->ps_tdma_para[1] = byte2; in btc8821a1ant_set_fw_ps_tdma()
852 coex_dm->ps_tdma_para[2] = byte3; in btc8821a1ant_set_fw_ps_tdma()
853 coex_dm->ps_tdma_para[3] = byte4; in btc8821a1ant_set_fw_ps_tdma()
854 coex_dm->ps_tdma_para[4] = real_byte5; in btc8821a1ant_set_fw_ps_tdma()
884 coex_dm->cur_lps = lps_val; in btc8821a1ant_lps_rpwm()
885 coex_dm->cur_rpwm = rpwm_val; in btc8821a1ant_lps_rpwm()
890 coex_dm->cur_lps, coex_dm->cur_rpwm); in btc8821a1ant_lps_rpwm()
892 if ((coex_dm->pre_lps == coex_dm->cur_lps) && in btc8821a1ant_lps_rpwm()
893 (coex_dm->pre_rpwm == coex_dm->cur_rpwm)) { in btc8821a1ant_lps_rpwm()
896 coex_dm->pre_rpwm, coex_dm->cur_rpwm); in btc8821a1ant_lps_rpwm()
903 coex_dm->pre_lps = coex_dm->cur_lps; in btc8821a1ant_lps_rpwm()
904 coex_dm->pre_rpwm = coex_dm->cur_rpwm; in btc8821a1ant_lps_rpwm()
1008 coex_dm->cur_ps_tdma_on = turn_on; in btc8821a1ant_ps_tdma()
1009 coex_dm->cur_ps_tdma = type; in btc8821a1ant_ps_tdma()
1012 if (coex_dm->cur_ps_tdma_on) { in btc8821a1ant_ps_tdma()
1015 coex_dm->cur_ps_tdma); in btc8821a1ant_ps_tdma()
1019 coex_dm->cur_ps_tdma); in btc8821a1ant_ps_tdma()
1021 if ((coex_dm->pre_ps_tdma_on == coex_dm->cur_ps_tdma_on) && in btc8821a1ant_ps_tdma()
1022 (coex_dm->pre_ps_tdma == coex_dm->cur_ps_tdma)) in btc8821a1ant_ps_tdma()
1241 coex_dm->pre_ps_tdma_on = coex_dm->cur_ps_tdma_on; in btc8821a1ant_ps_tdma()
1242 coex_dm->pre_ps_tdma = coex_dm->cur_ps_tdma; in btc8821a1ant_ps_tdma()
1256 coex_dm->bt_status) { in btc8821a1ant_is_common_action()
1264 coex_dm->bt_status)) { in btc8821a1ant_is_common_action()
1272 coex_dm->bt_status)) { in btc8821a1ant_is_common_action()
1280 coex_dm->bt_status)) { in btc8821a1ant_is_common_action()
1288 coex_dm->bt_status)) { in btc8821a1ant_is_common_action()
1457 if (coex_dm->bt_status == BT_8821A_1ANT_BT_STATUS_ACL_BUSY) { in btc8821a1ant_action_wifi_multi_port()
1472 } else if ((coex_dm->bt_status == BT_8821A_1ANT_BT_STATUS_SCO_BUSY) || in btc8821a1ant_action_wifi_multi_port()
1474 coex_dm->bt_status)) { in btc8821a1ant_action_wifi_multi_port()
1581 coex_dm->auto_tdma_adjust = false; in btc8821a1ant_act_wifi_con_bt_acl_busy()
1589 coex_dm->auto_tdma_adjust = false; in btc8821a1ant_act_wifi_con_bt_acl_busy()
1600 coex_dm->auto_tdma_adjust = false; in btc8821a1ant_act_wifi_con_bt_acl_busy()
1606 coex_dm->auto_tdma_adjust = false; in btc8821a1ant_act_wifi_con_bt_acl_busy()
1614 coex_dm->auto_tdma_adjust = false; in btc8821a1ant_act_wifi_con_bt_acl_busy()
1621 coex_dm->auto_tdma_adjust = false; in btc8821a1ant_act_wifi_con_bt_acl_busy()
1625 coex_dm->auto_tdma_adjust = false; in btc8821a1ant_act_wifi_con_bt_acl_busy()
1647 if (coex_dm->bt_status == BT_8821A_1ANT_BT_STATUS_ACL_BUSY) { in btc8821a1ant_act_wifi_not_conn_scan()
1662 } else if ((coex_dm->bt_status == BT_8821A_1ANT_BT_STATUS_SCO_BUSY) || in btc8821a1ant_act_wifi_not_conn_scan()
1664 coex_dm->bt_status)) { in btc8821a1ant_act_wifi_not_conn_scan()
1683 if (BT_8821A_1ANT_BT_STATUS_ACL_BUSY == coex_dm->bt_status) { in btc8821a1ant_action_wifi_connected_scan()
1693 } else if ((coex_dm->bt_status == BT_8821A_1ANT_BT_STATUS_SCO_BUSY) || in btc8821a1ant_action_wifi_connected_scan()
1694 (coex_dm->bt_status == in btc8821a1ant_action_wifi_connected_scan()
1769 coex_dm->bt_status && !ap_enable && in btc8821a1ant_action_wifi_connected()
1786 if (BT_8821A_1ANT_BT_STATUS_ACL_BUSY == coex_dm->bt_status) { in btc8821a1ant_action_wifi_connected()
1790 coex_dm->bt_status) || in btc8821a1ant_action_wifi_connected()
1792 coex_dm->bt_status)) { in btc8821a1ant_action_wifi_connected()
1801 if (BT_8821A_1ANT_BT_STATUS_ACL_BUSY == coex_dm->bt_status) { in btc8821a1ant_action_wifi_connected()
1805 coex_dm->bt_status) || in btc8821a1ant_action_wifi_connected()
1807 coex_dm->bt_status)) { in btc8821a1ant_action_wifi_connected()
1824 coex_dm->cur_algorithm = algorithm; in btc8821a1ant_run_sw_coex_mech()
1827 switch (coex_dm->cur_algorithm) { in btc8821a1ant_run_sw_coex_mech()
1884 coex_dm->pre_algorithm = coex_dm->cur_algorithm; in btc8821a1ant_run_sw_coex_mech()
1929 if ((BT_8821A_1ANT_BT_STATUS_ACL_BUSY == coex_dm->bt_status) || in btc8821a1ant_run_coexist_mechanism()
1930 (BT_8821A_1ANT_BT_STATUS_SCO_BUSY == coex_dm->bt_status) || in btc8821a1ant_run_coexist_mechanism()
1931 (BT_8821A_1ANT_BT_STATUS_ACL_SCO_BUSY == coex_dm->bt_status)) in btc8821a1ant_run_coexist_mechanism()
2040 coex_dm->backup_arfr_cnt1 = btcoexist->btc_read_4byte(btcoexist, in btc8821a1ant_init_hw_config()
2042 coex_dm->backup_arfr_cnt2 = btcoexist->btc_read_4byte(btcoexist, in btc8821a1ant_init_hw_config()
2044 coex_dm->backup_retry_limit = in btc8821a1ant_init_hw_config()
2046 coex_dm->backup_ampdu_max_time = in btc8821a1ant_init_hw_config()
2158 coex_dm->wifi_chnl_info); in ex_btc8821a1ant_display_coex_info()
2191 coex_dm->bt_status) ? in ex_btc8821a1ant_display_coex_info()
2194 coex_dm->bt_status) ? in ex_btc8821a1ant_display_coex_info()
2233 coex_dm->cur_low_penalty_ra); in ex_btc8821a1ant_display_coex_info()
2247 ps_tdma_case = coex_dm->cur_ps_tdma; in ex_btc8821a1ant_display_coex_info()
2250 coex_dm->ps_tdma_para, in ex_btc8821a1ant_display_coex_info()
2252 coex_dm->auto_tdma_adjust); in ex_btc8821a1ant_display_coex_info()
2256 coex_dm->error_condition); in ex_btc8821a1ant_display_coex_info()
2259 coex_dm->cur_ignore_wlan_act); in ex_btc8821a1ant_display_coex_info()
2267 coex_dm->backup_arfr_cnt1, in ex_btc8821a1ant_display_coex_info()
2268 coex_dm->backup_arfr_cnt2, in ex_btc8821a1ant_display_coex_info()
2269 coex_dm->backup_retry_limit, in ex_btc8821a1ant_display_coex_info()
2270 coex_dm->backup_ampdu_max_time); in ex_btc8821a1ant_display_coex_info()
2500 coex_dm->arp_cnt = 0; in ex_btc8821a1ant_connect_notify()
2505 coex_dm->arp_cnt = 0; in ex_btc8821a1ant_connect_notify()
2573 coex_dm->arp_cnt = 0; in ex_btc8821a1ant_media_status_notify()
2591 coex_dm->wifi_chnl_info[0] = h2c_parameter[0]; in ex_btc8821a1ant_media_status_notify()
2592 coex_dm->wifi_chnl_info[1] = h2c_parameter[1]; in ex_btc8821a1ant_media_status_notify()
2593 coex_dm->wifi_chnl_info[2] = h2c_parameter[2]; in ex_btc8821a1ant_media_status_notify()
2670 coex_dm->arp_cnt++; in ex_btc8821a1ant_special_packet_notify()
2673 coex_dm->arp_cnt); in ex_btc8821a1ant_special_packet_notify()
2674 if (coex_dm->arp_cnt >= 10) in ex_btc8821a1ant_special_packet_notify()
2819 coex_dm->bt_status = BT_8821A_1ANT_BT_STATUS_NON_CONNECTED_IDLE; in ex_btc8821a1ant_bt_info_notify()
2824 coex_dm->bt_status = BT_8821A_1ANT_BT_STATUS_CONNECTED_IDLE; in ex_btc8821a1ant_bt_info_notify()
2829 coex_dm->bt_status = BT_8821A_1ANT_BT_STATUS_SCO_BUSY; in ex_btc8821a1ant_bt_info_notify()
2833 if (BT_8821A_1ANT_BT_STATUS_ACL_BUSY != coex_dm->bt_status) in ex_btc8821a1ant_bt_info_notify()
2834 coex_dm->auto_tdma_adjust = false; in ex_btc8821a1ant_bt_info_notify()
2835 coex_dm->bt_status = BT_8821A_1ANT_BT_STATUS_ACL_BUSY; in ex_btc8821a1ant_bt_info_notify()
2839 coex_dm->bt_status = BT_8821A_1ANT_BT_STATUS_MAX; in ex_btc8821a1ant_bt_info_notify()
2844 if ((BT_8821A_1ANT_BT_STATUS_ACL_BUSY == coex_dm->bt_status) || in ex_btc8821a1ant_bt_info_notify()
2845 (BT_8821A_1ANT_BT_STATUS_SCO_BUSY == coex_dm->bt_status) || in ex_btc8821a1ant_bt_info_notify()
2846 (BT_8821A_1ANT_BT_STATUS_ACL_SCO_BUSY == coex_dm->bt_status)) in ex_btc8821a1ant_bt_info_notify()