Lines Matching refs:coex_dm
43 static struct coex_dm_8192e_2ant *coex_dm = &glcoex_dm_8192e_2ant; variable
345 coex_dm->curra_mask = dis_ratemask; in halbtc8192e2ant_Updatera_mask()
347 if (force_exec || (coex_dm->prera_mask != coex_dm->curra_mask)) in halbtc8192e2ant_Updatera_mask()
349 &coex_dm->curra_mask); in halbtc8192e2ant_Updatera_mask()
350 coex_dm->prera_mask = coex_dm->curra_mask; in halbtc8192e2ant_Updatera_mask()
358 coex_dm->cur_arfrtype = type; in btc8192e2ant_autorate_fallback_retry()
360 if (force_exec || (coex_dm->pre_arfrtype != coex_dm->cur_arfrtype)) { in btc8192e2ant_autorate_fallback_retry()
361 switch (coex_dm->cur_arfrtype) { in btc8192e2ant_autorate_fallback_retry()
364 coex_dm->backup_arfr_cnt1); in btc8192e2ant_autorate_fallback_retry()
366 coex_dm->backup_arfr_cnt2); in btc8192e2ant_autorate_fallback_retry()
389 coex_dm->pre_arfrtype = coex_dm->cur_arfrtype; in btc8192e2ant_autorate_fallback_retry()
395 coex_dm->cur_retrylimit_type = type; in halbtc8192e2ant_retrylimit()
397 if (force_exec || (coex_dm->pre_retrylimit_type != in halbtc8192e2ant_retrylimit()
398 coex_dm->cur_retrylimit_type)) { in halbtc8192e2ant_retrylimit()
399 switch (coex_dm->cur_retrylimit_type) { in halbtc8192e2ant_retrylimit()
402 coex_dm->backup_retrylimit); in halbtc8192e2ant_retrylimit()
413 coex_dm->pre_retrylimit_type = coex_dm->cur_retrylimit_type; in halbtc8192e2ant_retrylimit()
419 coex_dm->cur_ampdutime_type = type; in halbtc8192e2ant_ampdu_maxtime()
421 if (force_exec || (coex_dm->pre_ampdutime_type != in halbtc8192e2ant_ampdu_maxtime()
422 coex_dm->cur_ampdutime_type)) { in halbtc8192e2ant_ampdu_maxtime()
423 switch (coex_dm->cur_ampdutime_type) { in halbtc8192e2ant_ampdu_maxtime()
426 coex_dm->backup_ampdu_maxtime); in halbtc8192e2ant_ampdu_maxtime()
436 coex_dm->pre_ampdutime_type = coex_dm->cur_ampdutime_type; in halbtc8192e2ant_ampdu_maxtime()
446 coex_dm->curra_masktype = ra_masktype; in halbtc8192e2ant_limited_tx()
448 coex_dm->cur_sstype, in halbtc8192e2ant_limited_tx()
809 coex_dm->cur_dec_bt_pwr = dec_btpwr_lvl; in halbtc8192e2ant_dec_btpwr()
814 coex_dm->pre_dec_bt_pwr, coex_dm->cur_dec_bt_pwr); in halbtc8192e2ant_dec_btpwr()
816 halbtc8192e2ant_set_fwdec_btpwr(btcoexist, coex_dm->cur_dec_bt_pwr); in halbtc8192e2ant_dec_btpwr()
818 coex_dm->pre_dec_bt_pwr = coex_dm->cur_dec_bt_pwr; in halbtc8192e2ant_dec_btpwr()
847 coex_dm->cur_bt_auto_report = enable_autoreport; in halbtc8192e2ant_bt_autoreport()
852 coex_dm->pre_bt_auto_report, in halbtc8192e2ant_bt_autoreport()
853 coex_dm->cur_bt_auto_report); in halbtc8192e2ant_bt_autoreport()
855 if (coex_dm->pre_bt_auto_report == coex_dm->cur_bt_auto_report) in halbtc8192e2ant_bt_autoreport()
859 coex_dm->cur_bt_auto_report); in halbtc8192e2ant_bt_autoreport()
861 coex_dm->pre_bt_auto_report = coex_dm->cur_bt_auto_report; in halbtc8192e2ant_bt_autoreport()
870 coex_dm->cur_fw_dac_swing_lvl = fw_dac_swinglvl; in halbtc8192e2ant_fw_dac_swinglvl()
875 coex_dm->pre_fw_dac_swing_lvl, in halbtc8192e2ant_fw_dac_swinglvl()
876 coex_dm->cur_fw_dac_swing_lvl); in halbtc8192e2ant_fw_dac_swinglvl()
878 if (coex_dm->pre_fw_dac_swing_lvl == in halbtc8192e2ant_fw_dac_swinglvl()
879 coex_dm->cur_fw_dac_swing_lvl) in halbtc8192e2ant_fw_dac_swinglvl()
884 coex_dm->cur_fw_dac_swing_lvl); in halbtc8192e2ant_fw_dac_swinglvl()
886 coex_dm->pre_fw_dac_swing_lvl = coex_dm->cur_fw_dac_swing_lvl; in halbtc8192e2ant_fw_dac_swinglvl()
907 coex_dm->bt_rf0x1e_backup); in btc8192e2ant_set_sw_rf_rx_lpf_corner()
919 coex_dm->cur_rf_rx_lpf_shrink = rx_rf_shrink_on; in halbtc8192e2ant_rf_shrink()
924 coex_dm->pre_rf_rx_lpf_shrink, in halbtc8192e2ant_rf_shrink()
925 coex_dm->cur_rf_rx_lpf_shrink); in halbtc8192e2ant_rf_shrink()
927 if (coex_dm->pre_rf_rx_lpf_shrink == in halbtc8192e2ant_rf_shrink()
928 coex_dm->cur_rf_rx_lpf_shrink) in halbtc8192e2ant_rf_shrink()
932 coex_dm->cur_rf_rx_lpf_shrink); in halbtc8192e2ant_rf_shrink()
934 coex_dm->pre_rf_rx_lpf_shrink = coex_dm->cur_rf_rx_lpf_shrink; in halbtc8192e2ant_rf_shrink()
965 coex_dm->cur_dac_swing_on = dac_swingon; in halbtc8192e2ant_DacSwing()
966 coex_dm->cur_dac_swing_lvl = dac_swinglvl; in halbtc8192e2ant_DacSwing()
971 coex_dm->pre_dac_swing_on, in halbtc8192e2ant_DacSwing()
972 coex_dm->pre_dac_swing_lvl); in halbtc8192e2ant_DacSwing()
975 coex_dm->cur_dac_swing_on, in halbtc8192e2ant_DacSwing()
976 coex_dm->cur_dac_swing_lvl); in halbtc8192e2ant_DacSwing()
978 if ((coex_dm->pre_dac_swing_on == coex_dm->cur_dac_swing_on) && in halbtc8192e2ant_DacSwing()
979 (coex_dm->pre_dac_swing_lvl == coex_dm->cur_dac_swing_lvl)) in halbtc8192e2ant_DacSwing()
985 coex_dm->pre_dac_swing_on = coex_dm->cur_dac_swing_on; in halbtc8192e2ant_DacSwing()
986 coex_dm->pre_dac_swing_lvl = coex_dm->cur_dac_swing_lvl; in halbtc8192e2ant_DacSwing()
1021 coex_dm->cur_agc_table_en = agc_table_en; in halbtc8192e2ant_AgcTable()
1026 coex_dm->pre_agc_table_en, coex_dm->cur_agc_table_en); in halbtc8192e2ant_AgcTable()
1028 if (coex_dm->pre_agc_table_en == coex_dm->cur_agc_table_en) in halbtc8192e2ant_AgcTable()
1033 coex_dm->pre_agc_table_en = coex_dm->cur_agc_table_en; in halbtc8192e2ant_AgcTable()
1068 coex_dm->cur_val0x6c0 = val0x6c0; in halbtc8192e2ant_coex_table()
1069 coex_dm->cur_val0x6c4 = val0x6c4; in halbtc8192e2ant_coex_table()
1070 coex_dm->cur_val0x6c8 = val0x6c8; in halbtc8192e2ant_coex_table()
1071 coex_dm->cur_val0x6cc = val0x6cc; in halbtc8192e2ant_coex_table()
1076 coex_dm->pre_val0x6c0, coex_dm->pre_val0x6c4); in halbtc8192e2ant_coex_table()
1079 coex_dm->pre_val0x6c8, coex_dm->pre_val0x6cc); in halbtc8192e2ant_coex_table()
1082 coex_dm->cur_val0x6c0, coex_dm->cur_val0x6c4); in halbtc8192e2ant_coex_table()
1085 coex_dm->cur_val0x6c8, coex_dm->cur_val0x6cc); in halbtc8192e2ant_coex_table()
1087 if ((coex_dm->pre_val0x6c0 == coex_dm->cur_val0x6c0) && in halbtc8192e2ant_coex_table()
1088 (coex_dm->pre_val0x6c4 == coex_dm->cur_val0x6c4) && in halbtc8192e2ant_coex_table()
1089 (coex_dm->pre_val0x6c8 == coex_dm->cur_val0x6c8) && in halbtc8192e2ant_coex_table()
1090 (coex_dm->pre_val0x6cc == coex_dm->cur_val0x6cc)) in halbtc8192e2ant_coex_table()
1096 coex_dm->pre_val0x6c0 = coex_dm->cur_val0x6c0; in halbtc8192e2ant_coex_table()
1097 coex_dm->pre_val0x6c4 = coex_dm->cur_val0x6c4; in halbtc8192e2ant_coex_table()
1098 coex_dm->pre_val0x6c8 = coex_dm->cur_val0x6c8; in halbtc8192e2ant_coex_table()
1099 coex_dm->pre_val0x6cc = coex_dm->cur_val0x6cc; in halbtc8192e2ant_coex_table()
1152 coex_dm->cur_ignore_wlan_act = enable; in halbtc8192e2ant_IgnoreWlanAct()
1157 coex_dm->pre_ignore_wlan_act); in halbtc8192e2ant_IgnoreWlanAct()
1160 coex_dm->cur_ignore_wlan_act); in halbtc8192e2ant_IgnoreWlanAct()
1162 if (coex_dm->pre_ignore_wlan_act == in halbtc8192e2ant_IgnoreWlanAct()
1163 coex_dm->cur_ignore_wlan_act) in halbtc8192e2ant_IgnoreWlanAct()
1168 coex_dm->pre_ignore_wlan_act = coex_dm->cur_ignore_wlan_act; in halbtc8192e2ant_IgnoreWlanAct()
1182 coex_dm->ps_tdma_para[0] = byte1; in halbtc8192e2ant_SetFwPstdma()
1183 coex_dm->ps_tdma_para[1] = byte2; in halbtc8192e2ant_SetFwPstdma()
1184 coex_dm->ps_tdma_para[2] = byte3; in halbtc8192e2ant_SetFwPstdma()
1185 coex_dm->ps_tdma_para[3] = byte4; in halbtc8192e2ant_SetFwPstdma()
1186 coex_dm->ps_tdma_para[4] = byte5; in halbtc8192e2ant_SetFwPstdma()
1220 coex_dm->cur_ps_tdma_on = turn_on; in halbtc8192e2ant_ps_tdma()
1221 coex_dm->cur_ps_tdma = type; in halbtc8192e2ant_ps_tdma()
1226 coex_dm->pre_ps_tdma_on, coex_dm->cur_ps_tdma_on); in halbtc8192e2ant_ps_tdma()
1229 coex_dm->pre_ps_tdma, coex_dm->cur_ps_tdma); in halbtc8192e2ant_ps_tdma()
1231 if ((coex_dm->pre_ps_tdma_on == coex_dm->cur_ps_tdma_on) && in halbtc8192e2ant_ps_tdma()
1232 (coex_dm->pre_ps_tdma == coex_dm->cur_ps_tdma)) in halbtc8192e2ant_ps_tdma()
1346 coex_dm->pre_ps_tdma_on = coex_dm->cur_ps_tdma_on; in halbtc8192e2ant_ps_tdma()
1347 coex_dm->pre_ps_tdma = coex_dm->cur_ps_tdma; in halbtc8192e2ant_ps_tdma()
1360 coex_dm->curra_masktype); in halbtc8192e2ant_set_switch_sstype()
1392 coex_dm->cur_sstype = new_sstype; in halbtc8192e2ant_switch_sstype()
1395 if (coex_dm->pre_sstype == coex_dm->cur_sstype) in halbtc8192e2ant_switch_sstype()
1398 halbtc8192e2ant_set_switch_sstype(btcoexist, coex_dm->cur_sstype); in halbtc8192e2ant_switch_sstype()
1400 coex_dm->pre_sstype = coex_dm->cur_sstype; in halbtc8192e2ant_switch_sstype()
1476 coex_dm->bt_status) || in halbtc8192e2ant_is_common_action()
1478 coex_dm->bt_status)) { in halbtc8192e2ant_is_common_action()
1503 coex_dm->bt_status) { in halbtc8192e2ant_is_common_action()
1529 coex_dm->bt_status) { in halbtc8192e2ant_is_common_action()
1599 if (coex_dm->cur_ps_tdma == 71) { in btc8192e_int1()
1602 coex_dm->tdma_adj_type = 5; in btc8192e_int1()
1603 } else if (coex_dm->cur_ps_tdma == 1) { in btc8192e_int1()
1606 coex_dm->tdma_adj_type = 5; in btc8192e_int1()
1607 } else if (coex_dm->cur_ps_tdma == 2) { in btc8192e_int1()
1610 coex_dm->tdma_adj_type = 6; in btc8192e_int1()
1611 } else if (coex_dm->cur_ps_tdma == 3) { in btc8192e_int1()
1614 coex_dm->tdma_adj_type = 7; in btc8192e_int1()
1615 } else if (coex_dm->cur_ps_tdma == 4) { in btc8192e_int1()
1618 coex_dm->tdma_adj_type = 8; in btc8192e_int1()
1620 if (coex_dm->cur_ps_tdma == 9) { in btc8192e_int1()
1623 coex_dm->tdma_adj_type = 13; in btc8192e_int1()
1624 } else if (coex_dm->cur_ps_tdma == 10) { in btc8192e_int1()
1627 coex_dm->tdma_adj_type = 14; in btc8192e_int1()
1628 } else if (coex_dm->cur_ps_tdma == 11) { in btc8192e_int1()
1631 coex_dm->tdma_adj_type = 15; in btc8192e_int1()
1632 } else if (coex_dm->cur_ps_tdma == 12) { in btc8192e_int1()
1635 coex_dm->tdma_adj_type = 16; in btc8192e_int1()
1639 if (coex_dm->cur_ps_tdma == 5) { in btc8192e_int1()
1642 coex_dm->tdma_adj_type = 6; in btc8192e_int1()
1643 } else if (coex_dm->cur_ps_tdma == 6) { in btc8192e_int1()
1646 coex_dm->tdma_adj_type = 7; in btc8192e_int1()
1647 } else if (coex_dm->cur_ps_tdma == 7) { in btc8192e_int1()
1650 coex_dm->tdma_adj_type = 8; in btc8192e_int1()
1651 } else if (coex_dm->cur_ps_tdma == 13) { in btc8192e_int1()
1654 coex_dm->tdma_adj_type = 14; in btc8192e_int1()
1655 } else if (coex_dm->cur_ps_tdma == 14) { in btc8192e_int1()
1658 coex_dm->tdma_adj_type = 15; in btc8192e_int1()
1659 } else if (coex_dm->cur_ps_tdma == 15) { in btc8192e_int1()
1662 coex_dm->tdma_adj_type = 16; in btc8192e_int1()
1665 if (coex_dm->cur_ps_tdma == 8) { in btc8192e_int1()
1668 coex_dm->tdma_adj_type = 7; in btc8192e_int1()
1669 } else if (coex_dm->cur_ps_tdma == 7) { in btc8192e_int1()
1672 coex_dm->tdma_adj_type = 6; in btc8192e_int1()
1673 } else if (coex_dm->cur_ps_tdma == 6) { in btc8192e_int1()
1676 coex_dm->tdma_adj_type = 5; in btc8192e_int1()
1677 } else if (coex_dm->cur_ps_tdma == 16) { in btc8192e_int1()
1680 coex_dm->tdma_adj_type = 15; in btc8192e_int1()
1681 } else if (coex_dm->cur_ps_tdma == 15) { in btc8192e_int1()
1684 coex_dm->tdma_adj_type = 14; in btc8192e_int1()
1685 } else if (coex_dm->cur_ps_tdma == 14) { in btc8192e_int1()
1688 coex_dm->tdma_adj_type = 13; in btc8192e_int1()
1695 if (coex_dm->cur_ps_tdma == 5) { in btc8192e_int1()
1698 coex_dm->tdma_adj_type = 71; in btc8192e_int1()
1699 } else if (coex_dm->cur_ps_tdma == 6) { in btc8192e_int1()
1702 coex_dm->tdma_adj_type = 2; in btc8192e_int1()
1703 } else if (coex_dm->cur_ps_tdma == 7) { in btc8192e_int1()
1706 coex_dm->tdma_adj_type = 3; in btc8192e_int1()
1707 } else if (coex_dm->cur_ps_tdma == 8) { in btc8192e_int1()
1710 coex_dm->tdma_adj_type = 4; in btc8192e_int1()
1712 if (coex_dm->cur_ps_tdma == 13) { in btc8192e_int1()
1715 coex_dm->tdma_adj_type = 9; in btc8192e_int1()
1716 } else if (coex_dm->cur_ps_tdma == 14) { in btc8192e_int1()
1719 coex_dm->tdma_adj_type = 10; in btc8192e_int1()
1720 } else if (coex_dm->cur_ps_tdma == 15) { in btc8192e_int1()
1723 coex_dm->tdma_adj_type = 11; in btc8192e_int1()
1724 } else if (coex_dm->cur_ps_tdma == 16) { in btc8192e_int1()
1727 coex_dm->tdma_adj_type = 12; in btc8192e_int1()
1731 if (coex_dm->cur_ps_tdma == 71) { in btc8192e_int1()
1734 coex_dm->tdma_adj_type = 1; in btc8192e_int1()
1735 } else if (coex_dm->cur_ps_tdma == 1) { in btc8192e_int1()
1738 coex_dm->tdma_adj_type = 2; in btc8192e_int1()
1739 } else if (coex_dm->cur_ps_tdma == 2) { in btc8192e_int1()
1742 coex_dm->tdma_adj_type = 3; in btc8192e_int1()
1743 } else if (coex_dm->cur_ps_tdma == 3) { in btc8192e_int1()
1746 coex_dm->tdma_adj_type = 4; in btc8192e_int1()
1747 } else if (coex_dm->cur_ps_tdma == 9) { in btc8192e_int1()
1750 coex_dm->tdma_adj_type = 10; in btc8192e_int1()
1751 } else if (coex_dm->cur_ps_tdma == 10) { in btc8192e_int1()
1754 coex_dm->tdma_adj_type = 11; in btc8192e_int1()
1755 } else if (coex_dm->cur_ps_tdma == 11) { in btc8192e_int1()
1758 coex_dm->tdma_adj_type = 12; in btc8192e_int1()
1761 if (coex_dm->cur_ps_tdma == 4) { in btc8192e_int1()
1764 coex_dm->tdma_adj_type = 3; in btc8192e_int1()
1765 } else if (coex_dm->cur_ps_tdma == 3) { in btc8192e_int1()
1768 coex_dm->tdma_adj_type = 2; in btc8192e_int1()
1769 } else if (coex_dm->cur_ps_tdma == 2) { in btc8192e_int1()
1772 coex_dm->tdma_adj_type = 1; in btc8192e_int1()
1773 } else if (coex_dm->cur_ps_tdma == 1) { in btc8192e_int1()
1776 coex_dm->tdma_adj_type = 71; in btc8192e_int1()
1777 } else if (coex_dm->cur_ps_tdma == 12) { in btc8192e_int1()
1780 coex_dm->tdma_adj_type = 11; in btc8192e_int1()
1781 } else if (coex_dm->cur_ps_tdma == 11) { in btc8192e_int1()
1784 coex_dm->tdma_adj_type = 10; in btc8192e_int1()
1785 } else if (coex_dm->cur_ps_tdma == 10) { in btc8192e_int1()
1788 coex_dm->tdma_adj_type = 9; in btc8192e_int1()
1801 if (coex_dm->cur_ps_tdma == 1) { in btc8192e_int2()
1804 coex_dm->tdma_adj_type = 6; in btc8192e_int2()
1805 } else if (coex_dm->cur_ps_tdma == 2) { in btc8192e_int2()
1808 coex_dm->tdma_adj_type = 6; in btc8192e_int2()
1809 } else if (coex_dm->cur_ps_tdma == 3) { in btc8192e_int2()
1812 coex_dm->tdma_adj_type = 7; in btc8192e_int2()
1813 } else if (coex_dm->cur_ps_tdma == 4) { in btc8192e_int2()
1816 coex_dm->tdma_adj_type = 8; in btc8192e_int2()
1818 if (coex_dm->cur_ps_tdma == 9) { in btc8192e_int2()
1821 coex_dm->tdma_adj_type = 14; in btc8192e_int2()
1822 } else if (coex_dm->cur_ps_tdma == 10) { in btc8192e_int2()
1825 coex_dm->tdma_adj_type = 14; in btc8192e_int2()
1826 } else if (coex_dm->cur_ps_tdma == 11) { in btc8192e_int2()
1829 coex_dm->tdma_adj_type = 15; in btc8192e_int2()
1830 } else if (coex_dm->cur_ps_tdma == 12) { in btc8192e_int2()
1833 coex_dm->tdma_adj_type = 16; in btc8192e_int2()
1836 if (coex_dm->cur_ps_tdma == 5) { in btc8192e_int2()
1839 coex_dm->tdma_adj_type = 6; in btc8192e_int2()
1840 } else if (coex_dm->cur_ps_tdma == 6) { in btc8192e_int2()
1843 coex_dm->tdma_adj_type = 7; in btc8192e_int2()
1844 } else if (coex_dm->cur_ps_tdma == 7) { in btc8192e_int2()
1847 coex_dm->tdma_adj_type = 8; in btc8192e_int2()
1848 } else if (coex_dm->cur_ps_tdma == 13) { in btc8192e_int2()
1851 coex_dm->tdma_adj_type = 14; in btc8192e_int2()
1852 } else if (coex_dm->cur_ps_tdma == 14) { in btc8192e_int2()
1855 coex_dm->tdma_adj_type = 15; in btc8192e_int2()
1856 } else if (coex_dm->cur_ps_tdma == 15) { in btc8192e_int2()
1859 coex_dm->tdma_adj_type = 16; in btc8192e_int2()
1862 if (coex_dm->cur_ps_tdma == 8) { in btc8192e_int2()
1865 coex_dm->tdma_adj_type = 7; in btc8192e_int2()
1866 } else if (coex_dm->cur_ps_tdma == 7) { in btc8192e_int2()
1869 coex_dm->tdma_adj_type = 6; in btc8192e_int2()
1870 } else if (coex_dm->cur_ps_tdma == 6) { in btc8192e_int2()
1873 coex_dm->tdma_adj_type = 6; in btc8192e_int2()
1874 } else if (coex_dm->cur_ps_tdma == 16) { in btc8192e_int2()
1877 coex_dm->tdma_adj_type = 15; in btc8192e_int2()
1878 } else if (coex_dm->cur_ps_tdma == 15) { in btc8192e_int2()
1881 coex_dm->tdma_adj_type = 14; in btc8192e_int2()
1882 } else if (coex_dm->cur_ps_tdma == 14) { in btc8192e_int2()
1885 coex_dm->tdma_adj_type = 14; in btc8192e_int2()
1892 if (coex_dm->cur_ps_tdma == 5) { in btc8192e_int2()
1895 coex_dm->tdma_adj_type = 2; in btc8192e_int2()
1896 } else if (coex_dm->cur_ps_tdma == 6) { in btc8192e_int2()
1899 coex_dm->tdma_adj_type = 2; in btc8192e_int2()
1900 } else if (coex_dm->cur_ps_tdma == 7) { in btc8192e_int2()
1903 coex_dm->tdma_adj_type = 3; in btc8192e_int2()
1904 } else if (coex_dm->cur_ps_tdma == 8) { in btc8192e_int2()
1907 coex_dm->tdma_adj_type = 4; in btc8192e_int2()
1909 if (coex_dm->cur_ps_tdma == 13) { in btc8192e_int2()
1912 coex_dm->tdma_adj_type = 10; in btc8192e_int2()
1913 } else if (coex_dm->cur_ps_tdma == 14) { in btc8192e_int2()
1916 coex_dm->tdma_adj_type = 10; in btc8192e_int2()
1917 } else if (coex_dm->cur_ps_tdma == 15) { in btc8192e_int2()
1920 coex_dm->tdma_adj_type = 11; in btc8192e_int2()
1921 } else if (coex_dm->cur_ps_tdma == 16) { in btc8192e_int2()
1924 coex_dm->tdma_adj_type = 12; in btc8192e_int2()
1927 if (coex_dm->cur_ps_tdma == 1) { in btc8192e_int2()
1930 coex_dm->tdma_adj_type = 2; in btc8192e_int2()
1931 } else if (coex_dm->cur_ps_tdma == 2) { in btc8192e_int2()
1934 coex_dm->tdma_adj_type = 3; in btc8192e_int2()
1935 } else if (coex_dm->cur_ps_tdma == 3) { in btc8192e_int2()
1938 coex_dm->tdma_adj_type = 4; in btc8192e_int2()
1939 } else if (coex_dm->cur_ps_tdma == 9) { in btc8192e_int2()
1942 coex_dm->tdma_adj_type = 10; in btc8192e_int2()
1943 } else if (coex_dm->cur_ps_tdma == 10) { in btc8192e_int2()
1946 coex_dm->tdma_adj_type = 11; in btc8192e_int2()
1947 } else if (coex_dm->cur_ps_tdma == 11) { in btc8192e_int2()
1950 coex_dm->tdma_adj_type = 12; in btc8192e_int2()
1953 if (coex_dm->cur_ps_tdma == 4) { in btc8192e_int2()
1956 coex_dm->tdma_adj_type = 3; in btc8192e_int2()
1957 } else if (coex_dm->cur_ps_tdma == 3) { in btc8192e_int2()
1960 coex_dm->tdma_adj_type = 2; in btc8192e_int2()
1961 } else if (coex_dm->cur_ps_tdma == 2) { in btc8192e_int2()
1964 coex_dm->tdma_adj_type = 2; in btc8192e_int2()
1965 } else if (coex_dm->cur_ps_tdma == 12) { in btc8192e_int2()
1968 coex_dm->tdma_adj_type = 11; in btc8192e_int2()
1969 } else if (coex_dm->cur_ps_tdma == 11) { in btc8192e_int2()
1972 coex_dm->tdma_adj_type = 10; in btc8192e_int2()
1973 } else if (coex_dm->cur_ps_tdma == 10) { in btc8192e_int2()
1976 coex_dm->tdma_adj_type = 10; in btc8192e_int2()
1989 if (coex_dm->cur_ps_tdma == 1) { in btc8192e_int3()
1992 coex_dm->tdma_adj_type = 7; in btc8192e_int3()
1993 } else if (coex_dm->cur_ps_tdma == 2) { in btc8192e_int3()
1996 coex_dm->tdma_adj_type = 7; in btc8192e_int3()
1997 } else if (coex_dm->cur_ps_tdma == 3) { in btc8192e_int3()
2000 coex_dm->tdma_adj_type = 7; in btc8192e_int3()
2001 } else if (coex_dm->cur_ps_tdma == 4) { in btc8192e_int3()
2004 coex_dm->tdma_adj_type = 8; in btc8192e_int3()
2006 if (coex_dm->cur_ps_tdma == 9) { in btc8192e_int3()
2009 coex_dm->tdma_adj_type = 15; in btc8192e_int3()
2010 } else if (coex_dm->cur_ps_tdma == 10) { in btc8192e_int3()
2013 coex_dm->tdma_adj_type = 15; in btc8192e_int3()
2014 } else if (coex_dm->cur_ps_tdma == 11) { in btc8192e_int3()
2017 coex_dm->tdma_adj_type = 15; in btc8192e_int3()
2018 } else if (coex_dm->cur_ps_tdma == 12) { in btc8192e_int3()
2021 coex_dm->tdma_adj_type = 16; in btc8192e_int3()
2024 if (coex_dm->cur_ps_tdma == 5) { in btc8192e_int3()
2027 coex_dm->tdma_adj_type = 7; in btc8192e_int3()
2028 } else if (coex_dm->cur_ps_tdma == 6) { in btc8192e_int3()
2031 coex_dm->tdma_adj_type = 7; in btc8192e_int3()
2032 } else if (coex_dm->cur_ps_tdma == 7) { in btc8192e_int3()
2035 coex_dm->tdma_adj_type = 8; in btc8192e_int3()
2036 } else if (coex_dm->cur_ps_tdma == 13) { in btc8192e_int3()
2039 coex_dm->tdma_adj_type = 15; in btc8192e_int3()
2040 } else if (coex_dm->cur_ps_tdma == 14) { in btc8192e_int3()
2043 coex_dm->tdma_adj_type = 15; in btc8192e_int3()
2044 } else if (coex_dm->cur_ps_tdma == 15) { in btc8192e_int3()
2047 coex_dm->tdma_adj_type = 16; in btc8192e_int3()
2050 if (coex_dm->cur_ps_tdma == 8) { in btc8192e_int3()
2053 coex_dm->tdma_adj_type = 7; in btc8192e_int3()
2054 } else if (coex_dm->cur_ps_tdma == 7) { in btc8192e_int3()
2057 coex_dm->tdma_adj_type = 7; in btc8192e_int3()
2058 } else if (coex_dm->cur_ps_tdma == 6) { in btc8192e_int3()
2061 coex_dm->tdma_adj_type = 7; in btc8192e_int3()
2062 } else if (coex_dm->cur_ps_tdma == 16) { in btc8192e_int3()
2065 coex_dm->tdma_adj_type = 15; in btc8192e_int3()
2066 } else if (coex_dm->cur_ps_tdma == 15) { in btc8192e_int3()
2069 coex_dm->tdma_adj_type = 15; in btc8192e_int3()
2070 } else if (coex_dm->cur_ps_tdma == 14) { in btc8192e_int3()
2073 coex_dm->tdma_adj_type = 15; in btc8192e_int3()
2080 if (coex_dm->cur_ps_tdma == 5) { in btc8192e_int3()
2083 coex_dm->tdma_adj_type = 3; in btc8192e_int3()
2084 } else if (coex_dm->cur_ps_tdma == 6) { in btc8192e_int3()
2087 coex_dm->tdma_adj_type = 3; in btc8192e_int3()
2088 } else if (coex_dm->cur_ps_tdma == 7) { in btc8192e_int3()
2091 coex_dm->tdma_adj_type = 3; in btc8192e_int3()
2092 } else if (coex_dm->cur_ps_tdma == 8) { in btc8192e_int3()
2095 coex_dm->tdma_adj_type = 4; in btc8192e_int3()
2097 if (coex_dm->cur_ps_tdma == 13) { in btc8192e_int3()
2100 coex_dm->tdma_adj_type = 11; in btc8192e_int3()
2101 } else if (coex_dm->cur_ps_tdma == 14) { in btc8192e_int3()
2104 coex_dm->tdma_adj_type = 11; in btc8192e_int3()
2105 } else if (coex_dm->cur_ps_tdma == 15) { in btc8192e_int3()
2108 coex_dm->tdma_adj_type = 11; in btc8192e_int3()
2109 } else if (coex_dm->cur_ps_tdma == 16) { in btc8192e_int3()
2112 coex_dm->tdma_adj_type = 12; in btc8192e_int3()
2115 if (coex_dm->cur_ps_tdma == 1) { in btc8192e_int3()
2118 coex_dm->tdma_adj_type = 3; in btc8192e_int3()
2119 } else if (coex_dm->cur_ps_tdma == 2) { in btc8192e_int3()
2122 coex_dm->tdma_adj_type = 3; in btc8192e_int3()
2123 } else if (coex_dm->cur_ps_tdma == 3) { in btc8192e_int3()
2126 coex_dm->tdma_adj_type = 4; in btc8192e_int3()
2127 } else if (coex_dm->cur_ps_tdma == 9) { in btc8192e_int3()
2130 coex_dm->tdma_adj_type = 11; in btc8192e_int3()
2131 } else if (coex_dm->cur_ps_tdma == 10) { in btc8192e_int3()
2134 coex_dm->tdma_adj_type = 11; in btc8192e_int3()
2135 } else if (coex_dm->cur_ps_tdma == 11) { in btc8192e_int3()
2138 coex_dm->tdma_adj_type = 12; in btc8192e_int3()
2141 if (coex_dm->cur_ps_tdma == 4) { in btc8192e_int3()
2144 coex_dm->tdma_adj_type = 3; in btc8192e_int3()
2145 } else if (coex_dm->cur_ps_tdma == 3) { in btc8192e_int3()
2148 coex_dm->tdma_adj_type = 3; in btc8192e_int3()
2149 } else if (coex_dm->cur_ps_tdma == 2) { in btc8192e_int3()
2152 coex_dm->tdma_adj_type = 3; in btc8192e_int3()
2153 } else if (coex_dm->cur_ps_tdma == 12) { in btc8192e_int3()
2156 coex_dm->tdma_adj_type = 11; in btc8192e_int3()
2157 } else if (coex_dm->cur_ps_tdma == 11) { in btc8192e_int3()
2160 coex_dm->tdma_adj_type = 11; in btc8192e_int3()
2161 } else if (coex_dm->cur_ps_tdma == 10) { in btc8192e_int3()
2164 coex_dm->tdma_adj_type = 11; in btc8192e_int3()
2184 if (!coex_dm->auto_tdma_adjust) { in halbtc8192e2ant_tdma_duration_adjust()
2185 coex_dm->auto_tdma_adjust = true; in halbtc8192e2ant_tdma_duration_adjust()
2194 coex_dm->tdma_adj_type = 13; in halbtc8192e2ant_tdma_duration_adjust()
2199 coex_dm->tdma_adj_type = 14; in halbtc8192e2ant_tdma_duration_adjust()
2204 coex_dm->tdma_adj_type = 15; in halbtc8192e2ant_tdma_duration_adjust()
2209 coex_dm->tdma_adj_type = 15; in halbtc8192e2ant_tdma_duration_adjust()
2216 coex_dm->tdma_adj_type = 9; in halbtc8192e2ant_tdma_duration_adjust()
2221 coex_dm->tdma_adj_type = 10; in halbtc8192e2ant_tdma_duration_adjust()
2226 coex_dm->tdma_adj_type = 11; in halbtc8192e2ant_tdma_duration_adjust()
2231 coex_dm->tdma_adj_type = 11; in halbtc8192e2ant_tdma_duration_adjust()
2240 coex_dm->tdma_adj_type = 5; in halbtc8192e2ant_tdma_duration_adjust()
2245 coex_dm->tdma_adj_type = 6; in halbtc8192e2ant_tdma_duration_adjust()
2250 coex_dm->tdma_adj_type = 7; in halbtc8192e2ant_tdma_duration_adjust()
2255 coex_dm->tdma_adj_type = 7; in halbtc8192e2ant_tdma_duration_adjust()
2262 coex_dm->tdma_adj_type = 1; in halbtc8192e2ant_tdma_duration_adjust()
2267 coex_dm->tdma_adj_type = 2; in halbtc8192e2ant_tdma_duration_adjust()
2272 coex_dm->tdma_adj_type = 3; in halbtc8192e2ant_tdma_duration_adjust()
2277 coex_dm->tdma_adj_type = 3; in halbtc8192e2ant_tdma_duration_adjust()
2373 if (coex_dm->cur_ps_tdma != coex_dm->tdma_adj_type) { in halbtc8192e2ant_tdma_duration_adjust()
2380 coex_dm->cur_ps_tdma, coex_dm->tdma_adj_type); in halbtc8192e2ant_tdma_duration_adjust()
2389 coex_dm->tdma_adj_type); in halbtc8192e2ant_tdma_duration_adjust()
2620 coex_dm->auto_tdma_adjust = false; in halbtc8192e2ant_action_a2dp()
3127 coex_dm->cur_algorithm = algorithm; in halbtc8192e2ant_run_coexist_mechanism()
3129 "[BTCoex], Algorithm = %d\n", coex_dm->cur_algorithm); in halbtc8192e2ant_run_coexist_mechanism()
3134 coex_dm->auto_tdma_adjust = false; in halbtc8192e2ant_run_coexist_mechanism()
3136 if (coex_dm->cur_algorithm != coex_dm->pre_algorithm) { in halbtc8192e2ant_run_coexist_mechanism()
3139 coex_dm->pre_algorithm, in halbtc8192e2ant_run_coexist_mechanism()
3140 coex_dm->cur_algorithm); in halbtc8192e2ant_run_coexist_mechanism()
3141 coex_dm->auto_tdma_adjust = false; in halbtc8192e2ant_run_coexist_mechanism()
3143 switch (coex_dm->cur_algorithm) { in halbtc8192e2ant_run_coexist_mechanism()
3205 coex_dm->pre_algorithm = coex_dm->cur_algorithm; in halbtc8192e2ant_run_coexist_mechanism()
3220 coex_dm->bt_rf0x1e_backup = in halbtc8192e2ant_init_hwconfig()
3224 coex_dm->backup_arfr_cnt1 = btcoexist->btc_read_4byte(btcoexist, in halbtc8192e2ant_init_hwconfig()
3226 coex_dm->backup_arfr_cnt2 = btcoexist->btc_read_4byte(btcoexist, in halbtc8192e2ant_init_hwconfig()
3228 coex_dm->backup_retrylimit = btcoexist->btc_read_2byte( in halbtc8192e2ant_init_hwconfig()
3231 coex_dm->backup_ampdu_maxtime = btcoexist->btc_read_1byte( in halbtc8192e2ant_init_hwconfig()
3360 "H2C Wifi inform bt chnl Info", coex_dm->wifi_chnl_info[0], in ex_halbtc8192e2ant_display_coex_info()
3361 coex_dm->wifi_chnl_info[1], coex_dm->wifi_chnl_info[2]); in ex_halbtc8192e2ant_display_coex_info()
3393 coex_dm->bt_status) ? "non-connected idle" : in ex_halbtc8192e2ant_display_coex_info()
3395 coex_dm->bt_status) ? "connected-idle" : "busy")))), in ex_halbtc8192e2ant_display_coex_info()
3434 coex_dm->cur_sstype); in ex_halbtc8192e2ant_display_coex_info()
3440 "SM1[ShRf/ LpRA/ LimDig]", coex_dm->cur_rf_rx_lpf_shrink, in ex_halbtc8192e2ant_display_coex_info()
3441 coex_dm->cur_low_penalty_ra, coex_dm->limited_dig); in ex_halbtc8192e2ant_display_coex_info()
3444 coex_dm->cur_agc_table_en, coex_dm->cur_adc_back_off, in ex_halbtc8192e2ant_display_coex_info()
3445 coex_dm->cur_dac_swing_on, coex_dm->cur_dac_swing_lvl); in ex_halbtc8192e2ant_display_coex_info()
3454 ps_tdma_case = coex_dm->cur_ps_tdma; in ex_halbtc8192e2ant_display_coex_info()
3457 "PS TDMA", coex_dm->ps_tdma_para[0], in ex_halbtc8192e2ant_display_coex_info()
3458 coex_dm->ps_tdma_para[1], coex_dm->ps_tdma_para[2], in ex_halbtc8192e2ant_display_coex_info()
3459 coex_dm->ps_tdma_para[3], coex_dm->ps_tdma_para[4], in ex_halbtc8192e2ant_display_coex_info()
3460 ps_tdma_case, coex_dm->auto_tdma_adjust); in ex_halbtc8192e2ant_display_coex_info()
3464 coex_dm->cur_dec_bt_pwr, coex_dm->cur_ignore_wlan_act); in ex_halbtc8192e2ant_display_coex_info()
3471 "RF-A, 0x1e initVal", coex_dm->bt_rf0x1e_backup); in ex_halbtc8192e2ant_display_coex_info()
3474 "backup ARFR1/ARFR2/RL/AMaxTime", coex_dm->backup_arfr_cnt1, in ex_halbtc8192e2ant_display_coex_info()
3475 coex_dm->backup_arfr_cnt2, coex_dm->backup_retrylimit, in ex_halbtc8192e2ant_display_coex_info()
3476 coex_dm->backup_ampdu_maxtime); in ex_halbtc8192e2ant_display_coex_info()
3616 coex_dm->wifi_chnl_info[0] = h2c_parameter[0]; in ex_halbtc8192e2ant_media_status_notify()
3617 coex_dm->wifi_chnl_info[1] = h2c_parameter[1]; in ex_halbtc8192e2ant_media_status_notify()
3618 coex_dm->wifi_chnl_info[2] = h2c_parameter[2]; in ex_halbtc8192e2ant_media_status_notify()
3755 coex_dm->bt_status = BT_8192E_2ANT_BT_STATUS_NON_CONNECTED_IDLE; in ex_halbtc8192e2ant_bt_info_notify()
3759 coex_dm->bt_status = BT_8192E_2ANT_BT_STATUS_CONNECTED_IDLE; in ex_halbtc8192e2ant_bt_info_notify()
3764 coex_dm->bt_status = BT_8192E_2ANT_BT_STATUS_SCO_BUSY; in ex_halbtc8192e2ant_bt_info_notify()
3768 coex_dm->bt_status = BT_8192E_2ANT_BT_STATUS_ACL_BUSY; in ex_halbtc8192e2ant_bt_info_notify()
3772 coex_dm->bt_status = BT_8192E_2ANT_BT_STATUS_MAX; in ex_halbtc8192e2ant_bt_info_notify()
3777 if ((BT_8192E_2ANT_BT_STATUS_ACL_BUSY == coex_dm->bt_status) || in ex_halbtc8192e2ant_bt_info_notify()
3778 (BT_8192E_2ANT_BT_STATUS_SCO_BUSY == coex_dm->bt_status) || in ex_halbtc8192e2ant_bt_info_notify()
3779 (BT_8192E_2ANT_BT_STATUS_ACL_SCO_BUSY == coex_dm->bt_status)) { in ex_halbtc8192e2ant_bt_info_notify()
3789 coex_dm->limited_dig = limited_dig; in ex_halbtc8192e2ant_bt_info_notify()
3846 coex_dm->auto_tdma_adjust) in ex_halbtc8192e2ant_periodical()