Lines Matching refs:coex_dm

22 static struct coex_dm_8723b_1ant *coex_dm = &glcoex_dm_8723b_1ant;  variable
45 coex_dm->curra_mask = dis_rate_mask; in halbtc8723b1ant_updatera_mask()
47 if (force_exec || (coex_dm->prera_mask != coex_dm->curra_mask)) in halbtc8723b1ant_updatera_mask()
49 &coex_dm->curra_mask); in halbtc8723b1ant_updatera_mask()
51 coex_dm->prera_mask = coex_dm->curra_mask; in halbtc8723b1ant_updatera_mask()
59 coex_dm->cur_arfr_type = type; in btc8723b1ant_auto_rate_fb_retry()
61 if (force_exec || (coex_dm->pre_arfr_type != coex_dm->cur_arfr_type)) { in btc8723b1ant_auto_rate_fb_retry()
62 switch (coex_dm->cur_arfr_type) { in btc8723b1ant_auto_rate_fb_retry()
65 coex_dm->backup_arfr_cnt1); in btc8723b1ant_auto_rate_fb_retry()
67 coex_dm->backup_arfr_cnt2); in btc8723b1ant_auto_rate_fb_retry()
90 coex_dm->pre_arfr_type = coex_dm->cur_arfr_type; in btc8723b1ant_auto_rate_fb_retry()
96 coex_dm->cur_retry_limit_type = type; in halbtc8723b1ant_retry_limit()
98 if (force_exec || (coex_dm->pre_retry_limit_type != in halbtc8723b1ant_retry_limit()
99 coex_dm->cur_retry_limit_type)) { in halbtc8723b1ant_retry_limit()
100 switch (coex_dm->cur_retry_limit_type) { in halbtc8723b1ant_retry_limit()
103 coex_dm->backup_retry_limit); in halbtc8723b1ant_retry_limit()
113 coex_dm->pre_retry_limit_type = coex_dm->cur_retry_limit_type; in halbtc8723b1ant_retry_limit()
119 coex_dm->cur_ampdu_time_type = type; in halbtc8723b1ant_ampdu_maxtime()
121 if (force_exec || (coex_dm->pre_ampdu_time_type != in halbtc8723b1ant_ampdu_maxtime()
122 coex_dm->cur_ampdu_time_type)) { in halbtc8723b1ant_ampdu_maxtime()
123 switch (coex_dm->cur_ampdu_time_type) { in halbtc8723b1ant_ampdu_maxtime()
126 coex_dm->backup_ampdu_max_time); in halbtc8723b1ant_ampdu_maxtime()
136 coex_dm->pre_ampdu_time_type = coex_dm->cur_ampdu_time_type; in halbtc8723b1ant_ampdu_maxtime()
304 if ((coex_dm->bt_status == BT_8723B_1ANT_BT_STATUS_ACL_BUSY) || in halbtc8723b1ant_monitor_wifi_ctr()
305 (coex_dm->bt_status == in halbtc8723b1ant_monitor_wifi_ctr()
307 (coex_dm->bt_status == BT_8723B_1ANT_BT_STATUS_SCO_BUSY)) { in halbtc8723b1ant_monitor_wifi_ctr()
442 coex_dm->cur_bt_auto_report = enable_auto_report; in halbtc8723b1ant_bt_auto_report()
445 if (coex_dm->pre_bt_auto_report == coex_dm->cur_bt_auto_report) in halbtc8723b1ant_bt_auto_report()
449 coex_dm->cur_bt_auto_report); in halbtc8723b1ant_bt_auto_report()
451 coex_dm->pre_bt_auto_report = coex_dm->cur_bt_auto_report; in halbtc8723b1ant_bt_auto_report()
481 coex_dm->cur_low_penalty_ra = low_penalty_ra; in halbtc8723b1ant_low_penalty_ra()
484 if (coex_dm->pre_low_penalty_ra == coex_dm->cur_low_penalty_ra) in halbtc8723b1ant_low_penalty_ra()
488 coex_dm->cur_low_penalty_ra); in halbtc8723b1ant_low_penalty_ra()
490 coex_dm->pre_low_penalty_ra = coex_dm->cur_low_penalty_ra; in halbtc8723b1ant_low_penalty_ra()
527 coex_dm->cur_val0x6c0 = val0x6c0; in halbtc8723b1ant_coex_table()
528 coex_dm->cur_val0x6c4 = val0x6c4; in halbtc8723b1ant_coex_table()
529 coex_dm->cur_val0x6c8 = val0x6c8; in halbtc8723b1ant_coex_table()
530 coex_dm->cur_val0x6cc = val0x6cc; in halbtc8723b1ant_coex_table()
533 if ((coex_dm->pre_val0x6c0 == coex_dm->cur_val0x6c0) && in halbtc8723b1ant_coex_table()
534 (coex_dm->pre_val0x6c4 == coex_dm->cur_val0x6c4) && in halbtc8723b1ant_coex_table()
535 (coex_dm->pre_val0x6c8 == coex_dm->cur_val0x6c8) && in halbtc8723b1ant_coex_table()
536 (coex_dm->pre_val0x6cc == coex_dm->cur_val0x6cc)) in halbtc8723b1ant_coex_table()
542 coex_dm->pre_val0x6c0 = coex_dm->cur_val0x6c0; in halbtc8723b1ant_coex_table()
543 coex_dm->pre_val0x6c4 = coex_dm->cur_val0x6c4; in halbtc8723b1ant_coex_table()
544 coex_dm->pre_val0x6c8 = coex_dm->cur_val0x6c8; in halbtc8723b1ant_coex_table()
545 coex_dm->pre_val0x6cc = coex_dm->cur_val0x6cc; in halbtc8723b1ant_coex_table()
654 coex_dm->cur_ignore_wlan_act = enable; in halbtc8723b1ant_ignore_wlan_act()
659 coex_dm->pre_ignore_wlan_act, in halbtc8723b1ant_ignore_wlan_act()
660 coex_dm->cur_ignore_wlan_act); in halbtc8723b1ant_ignore_wlan_act()
662 if (coex_dm->pre_ignore_wlan_act == in halbtc8723b1ant_ignore_wlan_act()
663 coex_dm->cur_ignore_wlan_act) in halbtc8723b1ant_ignore_wlan_act()
668 coex_dm->pre_ignore_wlan_act = coex_dm->cur_ignore_wlan_act; in halbtc8723b1ant_ignore_wlan_act()
701 coex_dm->ps_tdma_para[0] = real_byte1; in halbtc8723b1ant_set_fw_ps_tdma()
702 coex_dm->ps_tdma_para[1] = byte2; in halbtc8723b1ant_set_fw_ps_tdma()
703 coex_dm->ps_tdma_para[2] = byte3; in halbtc8723b1ant_set_fw_ps_tdma()
704 coex_dm->ps_tdma_para[3] = byte4; in halbtc8723b1ant_set_fw_ps_tdma()
705 coex_dm->ps_tdma_para[4] = real_byte5; in halbtc8723b1ant_set_fw_ps_tdma()
737 coex_dm->cur_lps = lps_val; in halbtc8723b1ant_lps_rpwm()
738 coex_dm->cur_rpwm = rpwm_val; in halbtc8723b1ant_lps_rpwm()
743 coex_dm->cur_lps, coex_dm->cur_rpwm); in halbtc8723b1ant_lps_rpwm()
745 if ((coex_dm->pre_lps == coex_dm->cur_lps) && in halbtc8723b1ant_lps_rpwm()
746 (coex_dm->pre_rpwm == coex_dm->cur_rpwm)) { in halbtc8723b1ant_lps_rpwm()
749 coex_dm->pre_rpwm, coex_dm->cur_rpwm); in halbtc8723b1ant_lps_rpwm()
756 coex_dm->pre_lps = coex_dm->cur_lps; in halbtc8723b1ant_lps_rpwm()
757 coex_dm->pre_rpwm = coex_dm->cur_rpwm; in halbtc8723b1ant_lps_rpwm()
783 coex_dm->cur_ant_pos_type = ant_pos_type; in halbtc8723b1ant_set_ant_path()
924 (coex_dm->cur_ant_pos_type != coex_dm->pre_ant_pos_type)) { in halbtc8723b1ant_set_ant_path()
990 (coex_dm->cur_ant_pos_type != coex_dm->pre_ant_pos_type)) { in halbtc8723b1ant_set_ant_path()
1025 coex_dm->pre_ant_pos_type = coex_dm->cur_ant_pos_type; in halbtc8723b1ant_set_ant_path()
1040 coex_dm->cur_ps_tdma_on = turn_on; in halbtc8723b1ant_ps_tdma()
1041 coex_dm->cur_ps_tdma = type; in halbtc8723b1ant_ps_tdma()
1051 if ((coex_dm->pre_ps_tdma_on == coex_dm->cur_ps_tdma_on) && in halbtc8723b1ant_ps_tdma()
1052 (coex_dm->pre_ps_tdma == coex_dm->cur_ps_tdma)) in halbtc8723b1ant_ps_tdma()
1413 coex_dm->pre_ps_tdma_on = coex_dm->cur_ps_tdma_on; in halbtc8723b1ant_ps_tdma()
1414 coex_dm->pre_ps_tdma = coex_dm->cur_ps_tdma; in halbtc8723b1ant_ps_tdma()
1436 if (coex_dm->cur_ps_tdma != 1 && coex_dm->cur_ps_tdma != 2 && in btc8723b1ant_tdma_dur_adj_for_acl()
1437 coex_dm->cur_ps_tdma != 3 && coex_dm->cur_ps_tdma != 9) { in btc8723b1ant_tdma_dur_adj_for_acl()
1440 coex_dm->ps_tdma_du_adj_type = 9; in btc8723b1ant_tdma_dur_adj_for_acl()
1452 if (!coex_dm->auto_tdma_adjust) { in btc8723b1ant_tdma_dur_adj_for_acl()
1453 coex_dm->auto_tdma_adjust = true; in btc8723b1ant_tdma_dur_adj_for_acl()
1458 coex_dm->ps_tdma_du_adj_type = 2; in btc8723b1ant_tdma_dur_adj_for_acl()
1556 if (coex_dm->cur_ps_tdma == 1) { in btc8723b1ant_tdma_dur_adj_for_acl()
1559 coex_dm->ps_tdma_du_adj_type = 2; in btc8723b1ant_tdma_dur_adj_for_acl()
1560 } else if (coex_dm->cur_ps_tdma == 2) { in btc8723b1ant_tdma_dur_adj_for_acl()
1563 coex_dm->ps_tdma_du_adj_type = 9; in btc8723b1ant_tdma_dur_adj_for_acl()
1564 } else if (coex_dm->cur_ps_tdma == 9) { in btc8723b1ant_tdma_dur_adj_for_acl()
1567 coex_dm->ps_tdma_du_adj_type = 11; in btc8723b1ant_tdma_dur_adj_for_acl()
1570 if (coex_dm->cur_ps_tdma == 11) { in btc8723b1ant_tdma_dur_adj_for_acl()
1573 coex_dm->ps_tdma_du_adj_type = 9; in btc8723b1ant_tdma_dur_adj_for_acl()
1574 } else if (coex_dm->cur_ps_tdma == 9) { in btc8723b1ant_tdma_dur_adj_for_acl()
1577 coex_dm->ps_tdma_du_adj_type = 2; in btc8723b1ant_tdma_dur_adj_for_acl()
1578 } else if (coex_dm->cur_ps_tdma == 2) { in btc8723b1ant_tdma_dur_adj_for_acl()
1581 coex_dm->ps_tdma_du_adj_type = 1; in btc8723b1ant_tdma_dur_adj_for_acl()
1585 if (coex_dm->cur_ps_tdma != 1 && coex_dm->cur_ps_tdma != 2 && in btc8723b1ant_tdma_dur_adj_for_acl()
1586 coex_dm->cur_ps_tdma != 9 && coex_dm->cur_ps_tdma != 11) { in btc8723b1ant_tdma_dur_adj_for_acl()
1589 coex_dm->ps_tdma_du_adj_type); in btc8723b1ant_tdma_dur_adj_for_acl()
1835 coex_dm->auto_tdma_adjust = false; in halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1843 coex_dm->auto_tdma_adjust = false; in halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1849 coex_dm->auto_tdma_adjust = true; in halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1857 coex_dm->auto_tdma_adjust = false; in halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1861 coex_dm->auto_tdma_adjust = false; in halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1869 coex_dm->auto_tdma_adjust = false; in halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1874 coex_dm->auto_tdma_adjust = false; in halbtc8723b1ant_action_wifi_connected_bt_acl_busy()
1900 if (coex_dm->bt_status == BT_8723B_1ANT_BT_STATUS_ACL_BUSY) { in btc8723b1ant_action_wifi_not_conn_scan()
1917 } else if (coex_dm->bt_status == BT_8723B_1ANT_BT_STATUS_SCO_BUSY || in btc8723b1ant_action_wifi_not_conn_scan()
1918 coex_dm->bt_status == BT_8723B_1ANT_BT_STATUS_ACL_SCO_BUSY){ in btc8723b1ant_action_wifi_not_conn_scan()
1961 if (coex_dm->bt_status == BT_8723B_1ANT_BT_STATUS_ACL_BUSY) { in btc8723b1ant_action_wifi_conn_scan()
1979 } else if (coex_dm->bt_status == BT_8723B_1ANT_BT_STATUS_SCO_BUSY || in btc8723b1ant_action_wifi_conn_scan()
1980 coex_dm->bt_status == BT_8723B_1ANT_BT_STATUS_ACL_SCO_BUSY) { in btc8723b1ant_action_wifi_conn_scan()
2064 coex_dm->bt_status == BT_8723B_1ANT_BT_STATUS_ACL_BUSY && in halbtc8723b1ant_action_wifi_connected()
2099 if (coex_dm->bt_status == BT_8723B_1ANT_BT_STATUS_ACL_BUSY) { in halbtc8723b1ant_action_wifi_connected()
2103 } else if (coex_dm->bt_status == in halbtc8723b1ant_action_wifi_connected()
2105 coex_dm->bt_status == in halbtc8723b1ant_action_wifi_connected()
2119 if (coex_dm->bt_status == BT_8723B_1ANT_BT_STATUS_ACL_BUSY) { in halbtc8723b1ant_action_wifi_connected()
2123 } else if (coex_dm->bt_status == in halbtc8723b1ant_action_wifi_connected()
2125 coex_dm->bt_status == in halbtc8723b1ant_action_wifi_connected()
2183 if (coex_dm->bt_status == BT_8723B_1ANT_BT_STATUS_ACL_BUSY || in halbtc8723b1ant_run_coexist_mechanism()
2184 coex_dm->bt_status == BT_8723B_1ANT_BT_STATUS_SCO_BUSY || in halbtc8723b1ant_run_coexist_mechanism()
2185 coex_dm->bt_status == BT_8723B_1ANT_BT_STATUS_ACL_SCO_BUSY) in halbtc8723b1ant_run_coexist_mechanism()
2504 coex_dm->wifi_chnl_info); in ex_btc8723b1ant_display_coex_info()
2547 coex_dm->bt_status) ? in ex_btc8723b1ant_display_coex_info()
2550 coex_dm->bt_status) ? in ex_btc8723b1ant_display_coex_info()
2587 "SM[LowPenaltyRA]", coex_dm->cur_low_penalty_ra); in ex_btc8723b1ant_display_coex_info()
2602 pstdmacase = coex_dm->cur_ps_tdma; in ex_btc8723b1ant_display_coex_info()
2604 "PS TDMA", coex_dm->ps_tdma_para, in ex_btc8723b1ant_display_coex_info()
2605 pstdmacase, coex_dm->auto_tdma_adjust); in ex_btc8723b1ant_display_coex_info()
2608 "IgnWlanAct", coex_dm->cur_ignore_wlan_act); in ex_btc8723b1ant_display_coex_info()
2612 coex_dm->error_condition); in ex_btc8723b1ant_display_coex_info()
2623 "backup ARFR1/ARFR2/RL/AMaxTime", coex_dm->backup_arfr_cnt1, in ex_btc8723b1ant_display_coex_info()
2624 coex_dm->backup_arfr_cnt2, coex_dm->backup_retry_limit, in ex_btc8723b1ant_display_coex_info()
2625 coex_dm->backup_ampdu_max_time); in ex_btc8723b1ant_display_coex_info()
2871 coex_dm->arp_cnt = 0; in ex_btc8723b1ant_connect_notify()
2952 coex_dm->backup_arfr_cnt1 = in ex_btc8723b1ant_media_status_notify()
2954 coex_dm->backup_arfr_cnt2 = in ex_btc8723b1ant_media_status_notify()
2956 coex_dm->backup_retry_limit = in ex_btc8723b1ant_media_status_notify()
2958 coex_dm->backup_ampdu_max_time = in ex_btc8723b1ant_media_status_notify()
2963 coex_dm->arp_cnt = 0; in ex_btc8723b1ant_media_status_notify()
2985 coex_dm->wifi_chnl_info[0] = h2c_parameter[0]; in ex_btc8723b1ant_media_status_notify()
2986 coex_dm->wifi_chnl_info[1] = h2c_parameter[1]; in ex_btc8723b1ant_media_status_notify()
2987 coex_dm->wifi_chnl_info[2] = h2c_parameter[2]; in ex_btc8723b1ant_media_status_notify()
3020 coex_dm->arp_cnt++; in ex_btc8723b1ant_special_packet_notify()
3023 coex_dm->arp_cnt); in ex_btc8723b1ant_special_packet_notify()
3025 if ((coex_dm->arp_cnt >= 10) && (!under_4way)) in ex_btc8723b1ant_special_packet_notify()
3282 coex_dm->bt_status = BT_8723B_1ANT_BT_STATUS_NON_CONNECTED_IDLE; in ex_btc8723b1ant_bt_info_notify()
3287 coex_dm->bt_status = BT_8723B_1ANT_BT_STATUS_CONNECTED_IDLE; in ex_btc8723b1ant_bt_info_notify()
3292 coex_dm->bt_status = BT_8723B_1ANT_BT_STATUS_SCO_BUSY; in ex_btc8723b1ant_bt_info_notify()
3296 if (BT_8723B_1ANT_BT_STATUS_ACL_BUSY != coex_dm->bt_status) in ex_btc8723b1ant_bt_info_notify()
3297 coex_dm->auto_tdma_adjust = false; in ex_btc8723b1ant_bt_info_notify()
3299 coex_dm->bt_status = BT_8723B_1ANT_BT_STATUS_ACL_BUSY; in ex_btc8723b1ant_bt_info_notify()
3303 coex_dm->bt_status = BT_8723B_1ANT_BT_STATUS_MAX; in ex_btc8723b1ant_bt_info_notify()
3308 if ((BT_8723B_1ANT_BT_STATUS_ACL_BUSY == coex_dm->bt_status) || in ex_btc8723b1ant_bt_info_notify()
3309 (BT_8723B_1ANT_BT_STATUS_SCO_BUSY == coex_dm->bt_status) || in ex_btc8723b1ant_bt_info_notify()
3310 (BT_8723B_1ANT_BT_STATUS_ACL_SCO_BUSY == coex_dm->bt_status)) in ex_btc8723b1ant_bt_info_notify()
3444 coex_dm->auto_tdma_adjust) { in ex_btc8723b1ant_periodical()