• Home
  • Raw
  • Download

Lines Matching refs:coex_dm

12 static struct coex_dm_8192e_2ant *coex_dm = &glcoex_dm_8192e_2ant;  variable
244 coex_dm->cur_ra_mask = dis_rate_mask; in btc8192e2ant_update_ra_mask()
246 if (force_exec || (coex_dm->pre_ra_mask != coex_dm->cur_ra_mask)) in btc8192e2ant_update_ra_mask()
248 &coex_dm->cur_ra_mask); in btc8192e2ant_update_ra_mask()
249 coex_dm->pre_ra_mask = coex_dm->cur_ra_mask; in btc8192e2ant_update_ra_mask()
257 coex_dm->cur_arfr_type = type; in btc8192e2ant_auto_rate_fallback_retry()
259 if (force_exec || (coex_dm->pre_arfr_type != coex_dm->cur_arfr_type)) { in btc8192e2ant_auto_rate_fallback_retry()
260 switch (coex_dm->cur_arfr_type) { in btc8192e2ant_auto_rate_fallback_retry()
263 coex_dm->backup_arfr_cnt1); in btc8192e2ant_auto_rate_fallback_retry()
265 coex_dm->backup_arfr_cnt2); in btc8192e2ant_auto_rate_fallback_retry()
288 coex_dm->pre_arfr_type = coex_dm->cur_arfr_type; in btc8192e2ant_auto_rate_fallback_retry()
294 coex_dm->cur_retry_limit_type = type; in btc8192e2ant_retry_limit()
296 if (force_exec || (coex_dm->pre_retry_limit_type != in btc8192e2ant_retry_limit()
297 coex_dm->cur_retry_limit_type)) { in btc8192e2ant_retry_limit()
298 switch (coex_dm->cur_retry_limit_type) { in btc8192e2ant_retry_limit()
301 coex_dm->backup_retry_limit); in btc8192e2ant_retry_limit()
311 coex_dm->pre_retry_limit_type = coex_dm->cur_retry_limit_type; in btc8192e2ant_retry_limit()
317 coex_dm->cur_ampdu_time_type = type; in btc8192e2ant_ampdu_maxtime()
319 if (force_exec || (coex_dm->pre_ampdu_time_type != in btc8192e2ant_ampdu_maxtime()
320 coex_dm->cur_ampdu_time_type)) { in btc8192e2ant_ampdu_maxtime()
321 switch (coex_dm->cur_ampdu_time_type) { in btc8192e2ant_ampdu_maxtime()
324 coex_dm->backup_ampdu_maxtime); in btc8192e2ant_ampdu_maxtime()
334 coex_dm->pre_ampdu_time_type = coex_dm->cur_ampdu_time_type; in btc8192e2ant_ampdu_maxtime()
344 coex_dm->cur_ra_mask_type = ra_mask_type; in btc8192e2ant_limited_tx()
346 btc8192e2ant_decide_ra_mask(btcoexist, coex_dm->cur_ss_type, in btc8192e2ant_limited_tx()
765 coex_dm->cur_dec_bt_pwr = dec_bt_pwr_lvl; in btc8192e2ant_dec_bt_pwr()
770 coex_dm->pre_dec_bt_pwr, coex_dm->cur_dec_bt_pwr); in btc8192e2ant_dec_bt_pwr()
772 btc8192e2ant_set_fw_dec_bt_pwr(btcoexist, coex_dm->cur_dec_bt_pwr); in btc8192e2ant_dec_bt_pwr()
774 coex_dm->pre_dec_bt_pwr = coex_dm->cur_dec_bt_pwr; in btc8192e2ant_dec_bt_pwr()
806 coex_dm->cur_bt_auto_report = enable_auto_report; in btc8192e2ant_bt_auto_report()
811 coex_dm->pre_bt_auto_report, in btc8192e2ant_bt_auto_report()
812 coex_dm->cur_bt_auto_report); in btc8192e2ant_bt_auto_report()
814 if (coex_dm->pre_bt_auto_report == coex_dm->cur_bt_auto_report) in btc8192e2ant_bt_auto_report()
818 coex_dm->cur_bt_auto_report); in btc8192e2ant_bt_auto_report()
820 coex_dm->pre_bt_auto_report = coex_dm->cur_bt_auto_report; in btc8192e2ant_bt_auto_report()
831 coex_dm->cur_fw_dac_swing_lvl = fw_dac_swing_lvl; in btc8192e2ant_fw_dac_swing_lvl()
836 coex_dm->pre_fw_dac_swing_lvl, in btc8192e2ant_fw_dac_swing_lvl()
837 coex_dm->cur_fw_dac_swing_lvl); in btc8192e2ant_fw_dac_swing_lvl()
839 if (coex_dm->pre_fw_dac_swing_lvl == in btc8192e2ant_fw_dac_swing_lvl()
840 coex_dm->cur_fw_dac_swing_lvl) in btc8192e2ant_fw_dac_swing_lvl()
845 coex_dm->cur_fw_dac_swing_lvl); in btc8192e2ant_fw_dac_swing_lvl()
847 coex_dm->pre_fw_dac_swing_lvl = coex_dm->cur_fw_dac_swing_lvl; in btc8192e2ant_fw_dac_swing_lvl()
870 coex_dm->bt_rf0x1e_backup); in btc8192e2ant_set_sw_rf_rx_lpf_corner()
884 coex_dm->cur_rf_rx_lpf_shrink = rx_rf_shrink_on; in btc8192e2ant_rf_shrink()
889 coex_dm->pre_rf_rx_lpf_shrink, in btc8192e2ant_rf_shrink()
890 coex_dm->cur_rf_rx_lpf_shrink); in btc8192e2ant_rf_shrink()
892 if (coex_dm->pre_rf_rx_lpf_shrink == in btc8192e2ant_rf_shrink()
893 coex_dm->cur_rf_rx_lpf_shrink) in btc8192e2ant_rf_shrink()
897 coex_dm->cur_rf_rx_lpf_shrink); in btc8192e2ant_rf_shrink()
899 coex_dm->pre_rf_rx_lpf_shrink = coex_dm->cur_rf_rx_lpf_shrink; in btc8192e2ant_rf_shrink()
933 coex_dm->cur_dac_swing_on = dac_swing_on; in btc8192e2ant_dac_swing()
934 coex_dm->cur_dac_swing_lvl = dac_swing_lvl; in btc8192e2ant_dac_swing()
939 coex_dm->pre_dac_swing_on, in btc8192e2ant_dac_swing()
940 coex_dm->pre_dac_swing_lvl); in btc8192e2ant_dac_swing()
943 coex_dm->cur_dac_swing_on, in btc8192e2ant_dac_swing()
944 coex_dm->cur_dac_swing_lvl); in btc8192e2ant_dac_swing()
946 if ((coex_dm->pre_dac_swing_on == coex_dm->cur_dac_swing_on) && in btc8192e2ant_dac_swing()
947 (coex_dm->pre_dac_swing_lvl == coex_dm->cur_dac_swing_lvl)) in btc8192e2ant_dac_swing()
953 coex_dm->pre_dac_swing_on = coex_dm->cur_dac_swing_on; in btc8192e2ant_dac_swing()
954 coex_dm->pre_dac_swing_lvl = coex_dm->cur_dac_swing_lvl; in btc8192e2ant_dac_swing()
993 coex_dm->cur_agc_table_en = agc_table_en; in btc8192e2ant_agc_table()
998 coex_dm->pre_agc_table_en, in btc8192e2ant_agc_table()
999 coex_dm->cur_agc_table_en); in btc8192e2ant_agc_table()
1001 if (coex_dm->pre_agc_table_en == coex_dm->cur_agc_table_en) in btc8192e2ant_agc_table()
1006 coex_dm->pre_agc_table_en = coex_dm->cur_agc_table_en; in btc8192e2ant_agc_table()
1044 coex_dm->cur_val0x6c0 = val0x6c0; in btc8192e2ant_coex_table()
1045 coex_dm->cur_val0x6c4 = val0x6c4; in btc8192e2ant_coex_table()
1046 coex_dm->cur_val0x6c8 = val0x6c8; in btc8192e2ant_coex_table()
1047 coex_dm->cur_val0x6cc = val0x6cc; in btc8192e2ant_coex_table()
1052 coex_dm->pre_val0x6c0, coex_dm->pre_val0x6c4); in btc8192e2ant_coex_table()
1055 coex_dm->pre_val0x6c8, coex_dm->pre_val0x6cc); in btc8192e2ant_coex_table()
1058 coex_dm->cur_val0x6c0, coex_dm->cur_val0x6c4); in btc8192e2ant_coex_table()
1061 coex_dm->cur_val0x6c8, coex_dm->cur_val0x6cc); in btc8192e2ant_coex_table()
1063 if ((coex_dm->pre_val0x6c0 == coex_dm->cur_val0x6c0) && in btc8192e2ant_coex_table()
1064 (coex_dm->pre_val0x6c4 == coex_dm->cur_val0x6c4) && in btc8192e2ant_coex_table()
1065 (coex_dm->pre_val0x6c8 == coex_dm->cur_val0x6c8) && in btc8192e2ant_coex_table()
1066 (coex_dm->pre_val0x6cc == coex_dm->cur_val0x6cc)) in btc8192e2ant_coex_table()
1072 coex_dm->pre_val0x6c0 = coex_dm->cur_val0x6c0; in btc8192e2ant_coex_table()
1073 coex_dm->pre_val0x6c4 = coex_dm->cur_val0x6c4; in btc8192e2ant_coex_table()
1074 coex_dm->pre_val0x6c8 = coex_dm->cur_val0x6c8; in btc8192e2ant_coex_table()
1075 coex_dm->pre_val0x6cc = coex_dm->cur_val0x6cc; in btc8192e2ant_coex_table()
1131 coex_dm->cur_ignore_wlan_act = enable; in btc8192e2ant_ignore_wlan_act()
1136 coex_dm->pre_ignore_wlan_act); in btc8192e2ant_ignore_wlan_act()
1139 coex_dm->cur_ignore_wlan_act); in btc8192e2ant_ignore_wlan_act()
1141 if (coex_dm->pre_ignore_wlan_act == in btc8192e2ant_ignore_wlan_act()
1142 coex_dm->cur_ignore_wlan_act) in btc8192e2ant_ignore_wlan_act()
1147 coex_dm->pre_ignore_wlan_act = coex_dm->cur_ignore_wlan_act; in btc8192e2ant_ignore_wlan_act()
1163 coex_dm->ps_tdma_para[0] = byte1; in btc8192e2ant_set_fw_ps_tdma()
1164 coex_dm->ps_tdma_para[1] = byte2; in btc8192e2ant_set_fw_ps_tdma()
1165 coex_dm->ps_tdma_para[2] = byte3; in btc8192e2ant_set_fw_ps_tdma()
1166 coex_dm->ps_tdma_para[3] = byte4; in btc8192e2ant_set_fw_ps_tdma()
1167 coex_dm->ps_tdma_para[4] = byte5; in btc8192e2ant_set_fw_ps_tdma()
1203 coex_dm->cur_ps_tdma_on = turn_on; in btc8192e2ant_ps_tdma()
1204 coex_dm->cur_ps_tdma = type; in btc8192e2ant_ps_tdma()
1209 coex_dm->pre_ps_tdma_on, coex_dm->cur_ps_tdma_on); in btc8192e2ant_ps_tdma()
1212 coex_dm->pre_ps_tdma, coex_dm->cur_ps_tdma); in btc8192e2ant_ps_tdma()
1214 if ((coex_dm->pre_ps_tdma_on == coex_dm->cur_ps_tdma_on) && in btc8192e2ant_ps_tdma()
1215 (coex_dm->pre_ps_tdma == coex_dm->cur_ps_tdma)) in btc8192e2ant_ps_tdma()
1329 coex_dm->pre_ps_tdma_on = coex_dm->cur_ps_tdma_on; in btc8192e2ant_ps_tdma()
1330 coex_dm->pre_ps_tdma = coex_dm->cur_ps_tdma; in btc8192e2ant_ps_tdma()
1344 coex_dm->cur_ra_mask_type); in btc8192e2ant_set_switch_ss_type()
1378 coex_dm->cur_ss_type = new_ss_type; in btc8192e2ant_switch_ss_type()
1381 if (coex_dm->pre_ss_type == coex_dm->cur_ss_type) in btc8192e2ant_switch_ss_type()
1384 btc8192e2ant_set_switch_ss_type(btcoexist, coex_dm->cur_ss_type); in btc8192e2ant_switch_ss_type()
1386 coex_dm->pre_ss_type = coex_dm->cur_ss_type; in btc8192e2ant_switch_ss_type()
1463 coex_dm->bt_status) || in btc8192e2ant_is_common_action()
1465 coex_dm->bt_status)) { in btc8192e2ant_is_common_action()
1488 coex_dm->bt_status) { in btc8192e2ant_is_common_action()
1512 coex_dm->bt_status) { in btc8192e2ant_is_common_action()
1586 if (!coex_dm->auto_tdma_adjust) { in btc8192e2ant_tdma_duration_adjust()
1587 coex_dm->auto_tdma_adjust = true; in btc8192e2ant_tdma_duration_adjust()
1596 coex_dm->tdma_adj_type = 13; in btc8192e2ant_tdma_duration_adjust()
1601 coex_dm->tdma_adj_type = 14; in btc8192e2ant_tdma_duration_adjust()
1606 coex_dm->tdma_adj_type = 15; in btc8192e2ant_tdma_duration_adjust()
1613 coex_dm->tdma_adj_type = 9; in btc8192e2ant_tdma_duration_adjust()
1618 coex_dm->tdma_adj_type = 10; in btc8192e2ant_tdma_duration_adjust()
1623 coex_dm->tdma_adj_type = 11; in btc8192e2ant_tdma_duration_adjust()
1632 coex_dm->tdma_adj_type = 5; in btc8192e2ant_tdma_duration_adjust()
1637 coex_dm->tdma_adj_type = 6; in btc8192e2ant_tdma_duration_adjust()
1642 coex_dm->tdma_adj_type = 7; in btc8192e2ant_tdma_duration_adjust()
1649 coex_dm->tdma_adj_type = 1; in btc8192e2ant_tdma_duration_adjust()
1654 coex_dm->tdma_adj_type = 2; in btc8192e2ant_tdma_duration_adjust()
1659 coex_dm->tdma_adj_type = 3; in btc8192e2ant_tdma_duration_adjust()
1742 if (coex_dm->cur_ps_tdma != coex_dm->tdma_adj_type) { in btc8192e2ant_tdma_duration_adjust()
1749 coex_dm->cur_ps_tdma, coex_dm->tdma_adj_type); in btc8192e2ant_tdma_duration_adjust()
1757 true, coex_dm->tdma_adj_type); in btc8192e2ant_tdma_duration_adjust()
1988 coex_dm->auto_tdma_adjust = false; in btc8192e2ant_action_a2dp()
2491 coex_dm->cur_algorithm = algorithm; in btc8192e2ant_run_coexist_mechanism()
2493 "[BTCoex], Algorithm = %d\n", coex_dm->cur_algorithm); in btc8192e2ant_run_coexist_mechanism()
2498 coex_dm->auto_tdma_adjust = false; in btc8192e2ant_run_coexist_mechanism()
2500 if (coex_dm->cur_algorithm != coex_dm->pre_algorithm) { in btc8192e2ant_run_coexist_mechanism()
2503 coex_dm->pre_algorithm, in btc8192e2ant_run_coexist_mechanism()
2504 coex_dm->cur_algorithm); in btc8192e2ant_run_coexist_mechanism()
2505 coex_dm->auto_tdma_adjust = false; in btc8192e2ant_run_coexist_mechanism()
2507 switch (coex_dm->cur_algorithm) { in btc8192e2ant_run_coexist_mechanism()
2569 coex_dm->pre_algorithm = coex_dm->cur_algorithm; in btc8192e2ant_run_coexist_mechanism()
2585 coex_dm->bt_rf0x1e_backup = in btc8192e2ant_init_hwconfig()
2589 coex_dm->backup_arfr_cnt1 = btcoexist->btc_read_4byte(btcoexist, in btc8192e2ant_init_hwconfig()
2591 coex_dm->backup_arfr_cnt2 = btcoexist->btc_read_4byte(btcoexist, in btc8192e2ant_init_hwconfig()
2593 coex_dm->backup_retry_limit = btcoexist->btc_read_2byte( in btc8192e2ant_init_hwconfig()
2596 coex_dm->backup_ampdu_maxtime = btcoexist->btc_read_1byte( in btc8192e2ant_init_hwconfig()
2712 "H2C Wifi inform bt chnl Info", coex_dm->wifi_chnl_info); in ex_btc8192e2ant_display_coex_info()
2744 coex_dm->bt_status) ? "non-connected idle" : in ex_btc8192e2ant_display_coex_info()
2746 coex_dm->bt_status) ? "connected-idle" : "busy")))), in ex_btc8192e2ant_display_coex_info()
2776 coex_dm->cur_ss_type); in ex_btc8192e2ant_display_coex_info()
2782 "SM1[ShRf/ LpRA/ LimDig]", coex_dm->cur_rf_rx_lpf_shrink, in ex_btc8192e2ant_display_coex_info()
2783 coex_dm->cur_low_penalty_ra, coex_dm->limited_dig); in ex_btc8192e2ant_display_coex_info()
2786 coex_dm->cur_agc_table_en, coex_dm->cur_adc_back_off, in ex_btc8192e2ant_display_coex_info()
2787 coex_dm->cur_dac_swing_on, coex_dm->cur_dac_swing_lvl); in ex_btc8192e2ant_display_coex_info()
2796 ps_tdma_case = coex_dm->cur_ps_tdma; in ex_btc8192e2ant_display_coex_info()
2799 "PS TDMA", coex_dm->ps_tdma_para, in ex_btc8192e2ant_display_coex_info()
2800 ps_tdma_case, coex_dm->auto_tdma_adjust); in ex_btc8192e2ant_display_coex_info()
2804 coex_dm->cur_dec_bt_pwr, coex_dm->cur_ignore_wlan_act); in ex_btc8192e2ant_display_coex_info()
2811 "RF-A, 0x1e initVal", coex_dm->bt_rf0x1e_backup); in ex_btc8192e2ant_display_coex_info()
2814 "backup ARFR1/ARFR2/RL/AMaxTime", coex_dm->backup_arfr_cnt1, in ex_btc8192e2ant_display_coex_info()
2815 coex_dm->backup_arfr_cnt2, coex_dm->backup_retry_limit, in ex_btc8192e2ant_display_coex_info()
2816 coex_dm->backup_ampdu_maxtime); in ex_btc8192e2ant_display_coex_info()
2963 coex_dm->wifi_chnl_info[0] = h2c_parameter[0]; in ex_btc8192e2ant_media_status_notify()
2964 coex_dm->wifi_chnl_info[1] = h2c_parameter[1]; in ex_btc8192e2ant_media_status_notify()
2965 coex_dm->wifi_chnl_info[2] = h2c_parameter[2]; in ex_btc8192e2ant_media_status_notify()
3104 coex_dm->bt_status = BT_8192E_2ANT_BT_STATUS_NON_CONNECTED_IDLE; in ex_btc8192e2ant_bt_info_notify()
3108 coex_dm->bt_status = BT_8192E_2ANT_BT_STATUS_CONNECTED_IDLE; in ex_btc8192e2ant_bt_info_notify()
3113 coex_dm->bt_status = BT_8192E_2ANT_BT_STATUS_SCO_BUSY; in ex_btc8192e2ant_bt_info_notify()
3117 coex_dm->bt_status = BT_8192E_2ANT_BT_STATUS_ACL_BUSY; in ex_btc8192e2ant_bt_info_notify()
3121 coex_dm->bt_status = BT_8192E_2ANT_BT_STATUS_MAX; in ex_btc8192e2ant_bt_info_notify()
3126 if ((BT_8192E_2ANT_BT_STATUS_ACL_BUSY == coex_dm->bt_status) || in ex_btc8192e2ant_bt_info_notify()
3127 (BT_8192E_2ANT_BT_STATUS_SCO_BUSY == coex_dm->bt_status) || in ex_btc8192e2ant_bt_info_notify()
3128 (BT_8192E_2ANT_BT_STATUS_ACL_SCO_BUSY == coex_dm->bt_status)) { in ex_btc8192e2ant_bt_info_notify()
3138 coex_dm->limited_dig = limited_dig; in ex_btc8192e2ant_bt_info_notify()
3193 coex_dm->auto_tdma_adjust) in ex_btc8192e2ant_periodical()