Lines Matching refs:coex_dm

23 static struct coex_dm_8821a_2ant *coex_dm = &glcoex_dm_8821a_2ant;  variable
659 coex_dm->cur_dec_bt_pwr_lvl = dec_bt_pwr_lvl; in btc8821a2ant_dec_bt_pwr()
664 coex_dm->pre_dec_bt_pwr_lvl, in btc8821a2ant_dec_bt_pwr()
665 coex_dm->cur_dec_bt_pwr_lvl); in btc8821a2ant_dec_bt_pwr()
667 if (coex_dm->pre_dec_bt_pwr_lvl == coex_dm->cur_dec_bt_pwr_lvl) in btc8821a2ant_dec_bt_pwr()
670 btc8821a2ant_set_fw_dec_bt_pwr(btcoexist, coex_dm->cur_dec_bt_pwr_lvl); in btc8821a2ant_dec_bt_pwr()
672 coex_dm->pre_dec_bt_pwr_lvl = coex_dm->cur_dec_bt_pwr_lvl; in btc8821a2ant_dec_bt_pwr()
683 coex_dm->cur_fw_dac_swing_lvl = fw_dac_swing_lvl; in btc8821a2ant_fw_dac_swing_lvl()
688 coex_dm->pre_fw_dac_swing_lvl, in btc8821a2ant_fw_dac_swing_lvl()
689 coex_dm->cur_fw_dac_swing_lvl); in btc8821a2ant_fw_dac_swing_lvl()
691 if (coex_dm->pre_fw_dac_swing_lvl == in btc8821a2ant_fw_dac_swing_lvl()
692 coex_dm->cur_fw_dac_swing_lvl) in btc8821a2ant_fw_dac_swing_lvl()
697 coex_dm->cur_fw_dac_swing_lvl); in btc8821a2ant_fw_dac_swing_lvl()
699 coex_dm->pre_fw_dac_swing_lvl = coex_dm->cur_fw_dac_swing_lvl; in btc8821a2ant_fw_dac_swing_lvl()
738 coex_dm->cur_low_penalty_ra = low_penalty_ra; in btc8821a2ant_low_penalty_ra()
743 coex_dm->pre_low_penalty_ra, in btc8821a2ant_low_penalty_ra()
744 coex_dm->cur_low_penalty_ra); in btc8821a2ant_low_penalty_ra()
746 if (coex_dm->pre_low_penalty_ra == coex_dm->cur_low_penalty_ra) in btc8821a2ant_low_penalty_ra()
750 coex_dm->cur_low_penalty_ra); in btc8821a2ant_low_penalty_ra()
752 coex_dm->pre_low_penalty_ra = coex_dm->cur_low_penalty_ra; in btc8821a2ant_low_penalty_ra()
787 coex_dm->cur_dac_swing_on = dac_swing_on; in btc8821a2ant_dac_swing()
788 coex_dm->cur_dac_swing_lvl = dac_swing_lvl; in btc8821a2ant_dac_swing()
793 coex_dm->pre_dac_swing_on, in btc8821a2ant_dac_swing()
794 coex_dm->pre_dac_swing_lvl, in btc8821a2ant_dac_swing()
795 coex_dm->cur_dac_swing_on, in btc8821a2ant_dac_swing()
796 coex_dm->cur_dac_swing_lvl); in btc8821a2ant_dac_swing()
798 if ((coex_dm->pre_dac_swing_on == coex_dm->cur_dac_swing_on) && in btc8821a2ant_dac_swing()
799 (coex_dm->pre_dac_swing_lvl == in btc8821a2ant_dac_swing()
800 coex_dm->cur_dac_swing_lvl)) in btc8821a2ant_dac_swing()
807 coex_dm->pre_dac_swing_on = coex_dm->cur_dac_swing_on; in btc8821a2ant_dac_swing()
808 coex_dm->pre_dac_swing_lvl = coex_dm->cur_dac_swing_lvl; in btc8821a2ant_dac_swing()
844 coex_dm->cur_val0x6c0 = val0x6c0; in btc8821a2ant_coex_table()
845 coex_dm->cur_val0x6c4 = val0x6c4; in btc8821a2ant_coex_table()
846 coex_dm->cur_val0x6c8 = val0x6c8; in btc8821a2ant_coex_table()
847 coex_dm->cur_val0x6cc = val0x6cc; in btc8821a2ant_coex_table()
852 coex_dm->pre_val0x6c0, in btc8821a2ant_coex_table()
853 coex_dm->pre_val0x6c4, in btc8821a2ant_coex_table()
854 coex_dm->pre_val0x6c8, in btc8821a2ant_coex_table()
855 coex_dm->pre_val0x6cc); in btc8821a2ant_coex_table()
858 coex_dm->cur_val0x6c0, in btc8821a2ant_coex_table()
859 coex_dm->cur_val0x6c4, in btc8821a2ant_coex_table()
860 coex_dm->cur_val0x6c8, in btc8821a2ant_coex_table()
861 coex_dm->cur_val0x6cc); in btc8821a2ant_coex_table()
863 if ((coex_dm->pre_val0x6c0 == coex_dm->cur_val0x6c0) && in btc8821a2ant_coex_table()
864 (coex_dm->pre_val0x6c4 == coex_dm->cur_val0x6c4) && in btc8821a2ant_coex_table()
865 (coex_dm->pre_val0x6c8 == coex_dm->cur_val0x6c8) && in btc8821a2ant_coex_table()
866 (coex_dm->pre_val0x6cc == coex_dm->cur_val0x6cc)) in btc8821a2ant_coex_table()
872 coex_dm->pre_val0x6c0 = coex_dm->cur_val0x6c0; in btc8821a2ant_coex_table()
873 coex_dm->pre_val0x6c4 = coex_dm->cur_val0x6c4; in btc8821a2ant_coex_table()
874 coex_dm->pre_val0x6c8 = coex_dm->cur_val0x6c8; in btc8821a2ant_coex_table()
875 coex_dm->pre_val0x6cc = coex_dm->cur_val0x6cc; in btc8821a2ant_coex_table()
990 coex_dm->cur_lps = lps_val; in btc8821a2ant_lps_rpwm()
991 coex_dm->cur_rpwm = rpwm_val; in btc8821a2ant_lps_rpwm()
994 if ((coex_dm->pre_lps == coex_dm->cur_lps) && in btc8821a2ant_lps_rpwm()
995 (coex_dm->pre_rpwm == coex_dm->cur_rpwm)) in btc8821a2ant_lps_rpwm()
1000 coex_dm->pre_lps = coex_dm->cur_lps; in btc8821a2ant_lps_rpwm()
1001 coex_dm->pre_rpwm = coex_dm->cur_rpwm; in btc8821a2ant_lps_rpwm()
1012 coex_dm->cur_ignore_wlan_act = enable; in btc8821a2ant_ignore_wlan_act()
1017 coex_dm->pre_ignore_wlan_act, in btc8821a2ant_ignore_wlan_act()
1018 coex_dm->cur_ignore_wlan_act); in btc8821a2ant_ignore_wlan_act()
1020 if (coex_dm->pre_ignore_wlan_act == in btc8821a2ant_ignore_wlan_act()
1021 coex_dm->cur_ignore_wlan_act) in btc8821a2ant_ignore_wlan_act()
1026 coex_dm->pre_ignore_wlan_act = coex_dm->cur_ignore_wlan_act; in btc8821a2ant_ignore_wlan_act()
1042 coex_dm->ps_tdma_para[0] = byte1; in btc8821a2ant_set_fw_ps_tdma()
1043 coex_dm->ps_tdma_para[1] = byte2; in btc8821a2ant_set_fw_ps_tdma()
1044 coex_dm->ps_tdma_para[2] = byte3; in btc8821a2ant_set_fw_ps_tdma()
1045 coex_dm->ps_tdma_para[3] = byte4; in btc8821a2ant_set_fw_ps_tdma()
1046 coex_dm->ps_tdma_para[4] = byte5; in btc8821a2ant_set_fw_ps_tdma()
1144 coex_dm->cur_ps_tdma_on = turn_on; in btc8821a2ant_ps_tdma()
1145 coex_dm->cur_ps_tdma = type; in btc8821a2ant_ps_tdma()
1150 coex_dm->pre_ps_tdma_on, coex_dm->cur_ps_tdma_on); in btc8821a2ant_ps_tdma()
1153 coex_dm->pre_ps_tdma, coex_dm->cur_ps_tdma); in btc8821a2ant_ps_tdma()
1155 if ((coex_dm->pre_ps_tdma_on == coex_dm->cur_ps_tdma_on) && in btc8821a2ant_ps_tdma()
1156 (coex_dm->pre_ps_tdma == coex_dm->cur_ps_tdma)) in btc8821a2ant_ps_tdma()
1343 coex_dm->pre_ps_tdma_on = coex_dm->cur_ps_tdma_on; in btc8821a2ant_ps_tdma()
1344 coex_dm->pre_ps_tdma = coex_dm->cur_ps_tdma; in btc8821a2ant_ps_tdma()
1612 coex_dm->bt_status) { in btc8821a2ant_is_common_action()
1642 coex_dm->bt_status) { in btc8821a2ant_is_common_action()
1710 if (coex_dm->auto_tdma_adjust) { in btc8821a2ant_tdma_duration_adjust()
1711 coex_dm->auto_tdma_adjust = false; in btc8821a2ant_tdma_duration_adjust()
1719 coex_dm->ps_tdma_du_adj_type = 13; in btc8821a2ant_tdma_duration_adjust()
1723 coex_dm->ps_tdma_du_adj_type = 14; in btc8821a2ant_tdma_duration_adjust()
1727 coex_dm->ps_tdma_du_adj_type = 15; in btc8821a2ant_tdma_duration_adjust()
1733 coex_dm->ps_tdma_du_adj_type = 9; in btc8821a2ant_tdma_duration_adjust()
1737 coex_dm->ps_tdma_du_adj_type = 10; in btc8821a2ant_tdma_duration_adjust()
1741 coex_dm->ps_tdma_du_adj_type = 11; in btc8821a2ant_tdma_duration_adjust()
1749 coex_dm->ps_tdma_du_adj_type = 5; in btc8821a2ant_tdma_duration_adjust()
1753 coex_dm->ps_tdma_du_adj_type = 6; in btc8821a2ant_tdma_duration_adjust()
1757 coex_dm->ps_tdma_du_adj_type = 7; in btc8821a2ant_tdma_duration_adjust()
1763 coex_dm->ps_tdma_du_adj_type = 1; in btc8821a2ant_tdma_duration_adjust()
1767 coex_dm->ps_tdma_du_adj_type = 2; in btc8821a2ant_tdma_duration_adjust()
1771 coex_dm->ps_tdma_du_adj_type = 3; in btc8821a2ant_tdma_duration_adjust()
1871 if (coex_dm->cur_ps_tdma == 71) { in btc8821a2ant_tdma_duration_adjust()
1874 coex_dm->ps_tdma_du_adj_type = 5; in btc8821a2ant_tdma_duration_adjust()
1875 } else if (coex_dm->cur_ps_tdma == 1) { in btc8821a2ant_tdma_duration_adjust()
1878 coex_dm->ps_tdma_du_adj_type = 5; in btc8821a2ant_tdma_duration_adjust()
1879 } else if (coex_dm->cur_ps_tdma == 2) { in btc8821a2ant_tdma_duration_adjust()
1882 coex_dm->ps_tdma_du_adj_type = 6; in btc8821a2ant_tdma_duration_adjust()
1883 } else if (coex_dm->cur_ps_tdma == 3) { in btc8821a2ant_tdma_duration_adjust()
1886 coex_dm->ps_tdma_du_adj_type = 7; in btc8821a2ant_tdma_duration_adjust()
1887 } else if (coex_dm->cur_ps_tdma == 4) { in btc8821a2ant_tdma_duration_adjust()
1890 coex_dm->ps_tdma_du_adj_type = 8; in btc8821a2ant_tdma_duration_adjust()
1892 if (coex_dm->cur_ps_tdma == 9) { in btc8821a2ant_tdma_duration_adjust()
1895 coex_dm->ps_tdma_du_adj_type = 13; in btc8821a2ant_tdma_duration_adjust()
1896 } else if (coex_dm->cur_ps_tdma == 10) { in btc8821a2ant_tdma_duration_adjust()
1899 coex_dm->ps_tdma_du_adj_type = 14; in btc8821a2ant_tdma_duration_adjust()
1900 } else if (coex_dm->cur_ps_tdma == 11) { in btc8821a2ant_tdma_duration_adjust()
1903 coex_dm->ps_tdma_du_adj_type = 15; in btc8821a2ant_tdma_duration_adjust()
1904 } else if (coex_dm->cur_ps_tdma == 12) { in btc8821a2ant_tdma_duration_adjust()
1907 coex_dm->ps_tdma_du_adj_type = 16; in btc8821a2ant_tdma_duration_adjust()
1911 if (coex_dm->cur_ps_tdma == 5) { in btc8821a2ant_tdma_duration_adjust()
1915 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
1917 } else if (coex_dm->cur_ps_tdma == 6) { in btc8821a2ant_tdma_duration_adjust()
1921 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
1923 } else if (coex_dm->cur_ps_tdma == 7) { in btc8821a2ant_tdma_duration_adjust()
1927 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
1929 } else if (coex_dm->cur_ps_tdma == 13) { in btc8821a2ant_tdma_duration_adjust()
1933 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
1935 } else if (coex_dm->cur_ps_tdma == 14) { in btc8821a2ant_tdma_duration_adjust()
1939 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
1941 } else if (coex_dm->cur_ps_tdma == 15) { in btc8821a2ant_tdma_duration_adjust()
1945 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
1949 if (coex_dm->cur_ps_tdma == 8) { in btc8821a2ant_tdma_duration_adjust()
1953 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
1955 } else if (coex_dm->cur_ps_tdma == 7) { in btc8821a2ant_tdma_duration_adjust()
1959 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
1961 } else if (coex_dm->cur_ps_tdma == 6) { in btc8821a2ant_tdma_duration_adjust()
1965 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
1967 } else if (coex_dm->cur_ps_tdma == 16) { in btc8821a2ant_tdma_duration_adjust()
1971 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
1973 } else if (coex_dm->cur_ps_tdma == 15) { in btc8821a2ant_tdma_duration_adjust()
1977 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
1979 } else if (coex_dm->cur_ps_tdma == 14) { in btc8821a2ant_tdma_duration_adjust()
1983 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
1988 if (coex_dm->cur_ps_tdma == 5) { in btc8821a2ant_tdma_duration_adjust()
1991 coex_dm->ps_tdma_du_adj_type = 71; in btc8821a2ant_tdma_duration_adjust()
1992 } else if (coex_dm->cur_ps_tdma == 6) { in btc8821a2ant_tdma_duration_adjust()
1995 coex_dm->ps_tdma_du_adj_type = 2; in btc8821a2ant_tdma_duration_adjust()
1996 } else if (coex_dm->cur_ps_tdma == 7) { in btc8821a2ant_tdma_duration_adjust()
1999 coex_dm->ps_tdma_du_adj_type = 3; in btc8821a2ant_tdma_duration_adjust()
2000 } else if (coex_dm->cur_ps_tdma == 8) { in btc8821a2ant_tdma_duration_adjust()
2003 coex_dm->ps_tdma_du_adj_type = 4; in btc8821a2ant_tdma_duration_adjust()
2005 if (coex_dm->cur_ps_tdma == 13) { in btc8821a2ant_tdma_duration_adjust()
2008 coex_dm->ps_tdma_du_adj_type = 9; in btc8821a2ant_tdma_duration_adjust()
2009 } else if (coex_dm->cur_ps_tdma == 14) { in btc8821a2ant_tdma_duration_adjust()
2012 coex_dm->ps_tdma_du_adj_type = 10; in btc8821a2ant_tdma_duration_adjust()
2013 } else if (coex_dm->cur_ps_tdma == 15) { in btc8821a2ant_tdma_duration_adjust()
2016 coex_dm->ps_tdma_du_adj_type = 11; in btc8821a2ant_tdma_duration_adjust()
2017 } else if (coex_dm->cur_ps_tdma == 16) { in btc8821a2ant_tdma_duration_adjust()
2020 coex_dm->ps_tdma_du_adj_type = 12; in btc8821a2ant_tdma_duration_adjust()
2024 if (coex_dm->cur_ps_tdma == 71) { in btc8821a2ant_tdma_duration_adjust()
2028 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2030 } else if (coex_dm->cur_ps_tdma == 1) { in btc8821a2ant_tdma_duration_adjust()
2034 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2036 } else if (coex_dm->cur_ps_tdma == 2) { in btc8821a2ant_tdma_duration_adjust()
2040 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2042 } else if (coex_dm->cur_ps_tdma == 3) { in btc8821a2ant_tdma_duration_adjust()
2046 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2048 } else if (coex_dm->cur_ps_tdma == 9) { in btc8821a2ant_tdma_duration_adjust()
2052 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2054 } else if (coex_dm->cur_ps_tdma == 10) { in btc8821a2ant_tdma_duration_adjust()
2058 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2060 } else if (coex_dm->cur_ps_tdma == 11) { in btc8821a2ant_tdma_duration_adjust()
2064 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2068 if (coex_dm->cur_ps_tdma == 4) { in btc8821a2ant_tdma_duration_adjust()
2072 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2074 } else if (coex_dm->cur_ps_tdma == 3) { in btc8821a2ant_tdma_duration_adjust()
2078 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2080 } else if (coex_dm->cur_ps_tdma == 2) { in btc8821a2ant_tdma_duration_adjust()
2084 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2086 } else if (coex_dm->cur_ps_tdma == 1) { in btc8821a2ant_tdma_duration_adjust()
2090 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2092 } else if (coex_dm->cur_ps_tdma == 12) { in btc8821a2ant_tdma_duration_adjust()
2096 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2098 } else if (coex_dm->cur_ps_tdma == 11) { in btc8821a2ant_tdma_duration_adjust()
2102 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2104 } else if (coex_dm->cur_ps_tdma == 10) { in btc8821a2ant_tdma_duration_adjust()
2108 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2115 if (coex_dm->cur_ps_tdma == 1) { in btc8821a2ant_tdma_duration_adjust()
2118 coex_dm->ps_tdma_du_adj_type = 6; in btc8821a2ant_tdma_duration_adjust()
2119 } else if (coex_dm->cur_ps_tdma == 2) { in btc8821a2ant_tdma_duration_adjust()
2122 coex_dm->ps_tdma_du_adj_type = 6; in btc8821a2ant_tdma_duration_adjust()
2123 } else if (coex_dm->cur_ps_tdma == 3) { in btc8821a2ant_tdma_duration_adjust()
2126 coex_dm->ps_tdma_du_adj_type = 7; in btc8821a2ant_tdma_duration_adjust()
2127 } else if (coex_dm->cur_ps_tdma == 4) { in btc8821a2ant_tdma_duration_adjust()
2130 coex_dm->ps_tdma_du_adj_type = 8; in btc8821a2ant_tdma_duration_adjust()
2132 if (coex_dm->cur_ps_tdma == 9) { in btc8821a2ant_tdma_duration_adjust()
2135 coex_dm->ps_tdma_du_adj_type = 14; in btc8821a2ant_tdma_duration_adjust()
2136 } else if (coex_dm->cur_ps_tdma == 10) { in btc8821a2ant_tdma_duration_adjust()
2139 coex_dm->ps_tdma_du_adj_type = 14; in btc8821a2ant_tdma_duration_adjust()
2140 } else if (coex_dm->cur_ps_tdma == 11) { in btc8821a2ant_tdma_duration_adjust()
2143 coex_dm->ps_tdma_du_adj_type = 15; in btc8821a2ant_tdma_duration_adjust()
2144 } else if (coex_dm->cur_ps_tdma == 12) { in btc8821a2ant_tdma_duration_adjust()
2147 coex_dm->ps_tdma_du_adj_type = 16; in btc8821a2ant_tdma_duration_adjust()
2150 if (coex_dm->cur_ps_tdma == 5) { in btc8821a2ant_tdma_duration_adjust()
2154 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2156 } else if (coex_dm->cur_ps_tdma == 6) { in btc8821a2ant_tdma_duration_adjust()
2160 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2162 } else if (coex_dm->cur_ps_tdma == 7) { in btc8821a2ant_tdma_duration_adjust()
2166 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2168 } else if (coex_dm->cur_ps_tdma == 13) { in btc8821a2ant_tdma_duration_adjust()
2172 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2174 } else if (coex_dm->cur_ps_tdma == 14) { in btc8821a2ant_tdma_duration_adjust()
2178 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2180 } else if (coex_dm->cur_ps_tdma == 15) { in btc8821a2ant_tdma_duration_adjust()
2184 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2188 if (coex_dm->cur_ps_tdma == 8) { in btc8821a2ant_tdma_duration_adjust()
2192 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2194 } else if (coex_dm->cur_ps_tdma == 7) { in btc8821a2ant_tdma_duration_adjust()
2198 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2200 } else if (coex_dm->cur_ps_tdma == 6) { in btc8821a2ant_tdma_duration_adjust()
2204 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2206 } else if (coex_dm->cur_ps_tdma == 16) { in btc8821a2ant_tdma_duration_adjust()
2210 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2212 } else if (coex_dm->cur_ps_tdma == 15) { in btc8821a2ant_tdma_duration_adjust()
2216 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2218 } else if (coex_dm->cur_ps_tdma == 14) { in btc8821a2ant_tdma_duration_adjust()
2222 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2227 if (coex_dm->cur_ps_tdma == 5) { in btc8821a2ant_tdma_duration_adjust()
2230 coex_dm->ps_tdma_du_adj_type = 2; in btc8821a2ant_tdma_duration_adjust()
2231 } else if (coex_dm->cur_ps_tdma == 6) { in btc8821a2ant_tdma_duration_adjust()
2234 coex_dm->ps_tdma_du_adj_type = 2; in btc8821a2ant_tdma_duration_adjust()
2235 } else if (coex_dm->cur_ps_tdma == 7) { in btc8821a2ant_tdma_duration_adjust()
2238 coex_dm->ps_tdma_du_adj_type = 3; in btc8821a2ant_tdma_duration_adjust()
2239 } else if (coex_dm->cur_ps_tdma == 8) { in btc8821a2ant_tdma_duration_adjust()
2242 coex_dm->ps_tdma_du_adj_type = 4; in btc8821a2ant_tdma_duration_adjust()
2244 if (coex_dm->cur_ps_tdma == 13) { in btc8821a2ant_tdma_duration_adjust()
2247 coex_dm->ps_tdma_du_adj_type = 10; in btc8821a2ant_tdma_duration_adjust()
2248 } else if (coex_dm->cur_ps_tdma == 14) { in btc8821a2ant_tdma_duration_adjust()
2251 coex_dm->ps_tdma_du_adj_type = 10; in btc8821a2ant_tdma_duration_adjust()
2252 } else if (coex_dm->cur_ps_tdma == 15) { in btc8821a2ant_tdma_duration_adjust()
2255 coex_dm->ps_tdma_du_adj_type = 11; in btc8821a2ant_tdma_duration_adjust()
2256 } else if (coex_dm->cur_ps_tdma == 16) { in btc8821a2ant_tdma_duration_adjust()
2259 coex_dm->ps_tdma_du_adj_type = 12; in btc8821a2ant_tdma_duration_adjust()
2262 if (coex_dm->cur_ps_tdma == 1) { in btc8821a2ant_tdma_duration_adjust()
2266 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2268 } else if (coex_dm->cur_ps_tdma == 2) { in btc8821a2ant_tdma_duration_adjust()
2272 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2274 } else if (coex_dm->cur_ps_tdma == 3) { in btc8821a2ant_tdma_duration_adjust()
2278 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2280 } else if (coex_dm->cur_ps_tdma == 9) { in btc8821a2ant_tdma_duration_adjust()
2284 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2286 } else if (coex_dm->cur_ps_tdma == 10) { in btc8821a2ant_tdma_duration_adjust()
2290 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2292 } else if (coex_dm->cur_ps_tdma == 11) { in btc8821a2ant_tdma_duration_adjust()
2296 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2300 if (coex_dm->cur_ps_tdma == 4) { in btc8821a2ant_tdma_duration_adjust()
2304 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2306 } else if (coex_dm->cur_ps_tdma == 3) { in btc8821a2ant_tdma_duration_adjust()
2310 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2312 } else if (coex_dm->cur_ps_tdma == 2) { in btc8821a2ant_tdma_duration_adjust()
2316 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2318 } else if (coex_dm->cur_ps_tdma == 12) { in btc8821a2ant_tdma_duration_adjust()
2322 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2324 } else if (coex_dm->cur_ps_tdma == 11) { in btc8821a2ant_tdma_duration_adjust()
2328 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2330 } else if (coex_dm->cur_ps_tdma == 10) { in btc8821a2ant_tdma_duration_adjust()
2334 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2341 if (coex_dm->cur_ps_tdma == 1) { in btc8821a2ant_tdma_duration_adjust()
2344 coex_dm->ps_tdma_du_adj_type = 7; in btc8821a2ant_tdma_duration_adjust()
2345 } else if (coex_dm->cur_ps_tdma == 2) { in btc8821a2ant_tdma_duration_adjust()
2348 coex_dm->ps_tdma_du_adj_type = 7; in btc8821a2ant_tdma_duration_adjust()
2349 } else if (coex_dm->cur_ps_tdma == 3) { in btc8821a2ant_tdma_duration_adjust()
2352 coex_dm->ps_tdma_du_adj_type = 7; in btc8821a2ant_tdma_duration_adjust()
2353 } else if (coex_dm->cur_ps_tdma == 4) { in btc8821a2ant_tdma_duration_adjust()
2356 coex_dm->ps_tdma_du_adj_type = 8; in btc8821a2ant_tdma_duration_adjust()
2358 if (coex_dm->cur_ps_tdma == 9) { in btc8821a2ant_tdma_duration_adjust()
2361 coex_dm->ps_tdma_du_adj_type = 15; in btc8821a2ant_tdma_duration_adjust()
2362 } else if (coex_dm->cur_ps_tdma == 10) { in btc8821a2ant_tdma_duration_adjust()
2365 coex_dm->ps_tdma_du_adj_type = 15; in btc8821a2ant_tdma_duration_adjust()
2366 } else if (coex_dm->cur_ps_tdma == 11) { in btc8821a2ant_tdma_duration_adjust()
2369 coex_dm->ps_tdma_du_adj_type = 15; in btc8821a2ant_tdma_duration_adjust()
2370 } else if (coex_dm->cur_ps_tdma == 12) { in btc8821a2ant_tdma_duration_adjust()
2373 coex_dm->ps_tdma_du_adj_type = 16; in btc8821a2ant_tdma_duration_adjust()
2376 if (coex_dm->cur_ps_tdma == 5) { in btc8821a2ant_tdma_duration_adjust()
2380 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2382 } else if (coex_dm->cur_ps_tdma == 6) { in btc8821a2ant_tdma_duration_adjust()
2386 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2388 } else if (coex_dm->cur_ps_tdma == 7) { in btc8821a2ant_tdma_duration_adjust()
2392 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2394 } else if (coex_dm->cur_ps_tdma == 13) { in btc8821a2ant_tdma_duration_adjust()
2398 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2400 } else if (coex_dm->cur_ps_tdma == 14) { in btc8821a2ant_tdma_duration_adjust()
2404 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2406 } else if (coex_dm->cur_ps_tdma == 15) { in btc8821a2ant_tdma_duration_adjust()
2410 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2414 if (coex_dm->cur_ps_tdma == 8) { in btc8821a2ant_tdma_duration_adjust()
2418 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2420 } else if (coex_dm->cur_ps_tdma == 7) { in btc8821a2ant_tdma_duration_adjust()
2424 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2426 } else if (coex_dm->cur_ps_tdma == 6) { in btc8821a2ant_tdma_duration_adjust()
2430 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2432 } else if (coex_dm->cur_ps_tdma == 16) { in btc8821a2ant_tdma_duration_adjust()
2436 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2438 } else if (coex_dm->cur_ps_tdma == 15) { in btc8821a2ant_tdma_duration_adjust()
2442 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2444 } else if (coex_dm->cur_ps_tdma == 14) { in btc8821a2ant_tdma_duration_adjust()
2448 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2453 if (coex_dm->cur_ps_tdma == 5) { in btc8821a2ant_tdma_duration_adjust()
2456 coex_dm->ps_tdma_du_adj_type = 3; in btc8821a2ant_tdma_duration_adjust()
2457 } else if (coex_dm->cur_ps_tdma == 6) { in btc8821a2ant_tdma_duration_adjust()
2460 coex_dm->ps_tdma_du_adj_type = 3; in btc8821a2ant_tdma_duration_adjust()
2461 } else if (coex_dm->cur_ps_tdma == 7) { in btc8821a2ant_tdma_duration_adjust()
2464 coex_dm->ps_tdma_du_adj_type = 3; in btc8821a2ant_tdma_duration_adjust()
2465 } else if (coex_dm->cur_ps_tdma == 8) { in btc8821a2ant_tdma_duration_adjust()
2468 coex_dm->ps_tdma_du_adj_type = 4; in btc8821a2ant_tdma_duration_adjust()
2470 if (coex_dm->cur_ps_tdma == 13) { in btc8821a2ant_tdma_duration_adjust()
2473 coex_dm->ps_tdma_du_adj_type = 11; in btc8821a2ant_tdma_duration_adjust()
2474 } else if (coex_dm->cur_ps_tdma == 14) { in btc8821a2ant_tdma_duration_adjust()
2477 coex_dm->ps_tdma_du_adj_type = 11; in btc8821a2ant_tdma_duration_adjust()
2478 } else if (coex_dm->cur_ps_tdma == 15) { in btc8821a2ant_tdma_duration_adjust()
2481 coex_dm->ps_tdma_du_adj_type = 11; in btc8821a2ant_tdma_duration_adjust()
2482 } else if (coex_dm->cur_ps_tdma == 16) { in btc8821a2ant_tdma_duration_adjust()
2485 coex_dm->ps_tdma_du_adj_type = 12; in btc8821a2ant_tdma_duration_adjust()
2488 if (coex_dm->cur_ps_tdma == 1) { in btc8821a2ant_tdma_duration_adjust()
2492 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2494 } else if (coex_dm->cur_ps_tdma == 2) { in btc8821a2ant_tdma_duration_adjust()
2498 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2500 } else if (coex_dm->cur_ps_tdma == 3) { in btc8821a2ant_tdma_duration_adjust()
2504 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2506 } else if (coex_dm->cur_ps_tdma == 9) { in btc8821a2ant_tdma_duration_adjust()
2510 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2512 } else if (coex_dm->cur_ps_tdma == 10) { in btc8821a2ant_tdma_duration_adjust()
2516 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2518 } else if (coex_dm->cur_ps_tdma == 11) { in btc8821a2ant_tdma_duration_adjust()
2522 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2526 if (coex_dm->cur_ps_tdma == 4) { in btc8821a2ant_tdma_duration_adjust()
2530 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2532 } else if (coex_dm->cur_ps_tdma == 3) { in btc8821a2ant_tdma_duration_adjust()
2536 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2538 } else if (coex_dm->cur_ps_tdma == 2) { in btc8821a2ant_tdma_duration_adjust()
2542 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2544 } else if (coex_dm->cur_ps_tdma == 12) { in btc8821a2ant_tdma_duration_adjust()
2548 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2550 } else if (coex_dm->cur_ps_tdma == 11) { in btc8821a2ant_tdma_duration_adjust()
2554 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2556 } else if (coex_dm->cur_ps_tdma == 10) { in btc8821a2ant_tdma_duration_adjust()
2560 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2572 if (coex_dm->cur_ps_tdma != coex_dm->ps_tdma_du_adj_type) { in btc8821a2ant_tdma_duration_adjust()
2577 coex_dm->cur_ps_tdma, coex_dm->ps_tdma_du_adj_type); in btc8821a2ant_tdma_duration_adjust()
2585 coex_dm->ps_tdma_du_adj_type); in btc8821a2ant_tdma_duration_adjust()
3444 coex_dm->cur_algorithm = algorithm; in btc8821a2ant_run_coexist_mechanism()
3446 "[BTCoex], Algorithm = %d\n", coex_dm->cur_algorithm); in btc8821a2ant_run_coexist_mechanism()
3451 coex_dm->auto_tdma_adjust = true; in btc8821a2ant_run_coexist_mechanism()
3453 if (coex_dm->cur_algorithm != coex_dm->pre_algorithm) { in btc8821a2ant_run_coexist_mechanism()
3456 coex_dm->pre_algorithm, in btc8821a2ant_run_coexist_mechanism()
3457 coex_dm->cur_algorithm); in btc8821a2ant_run_coexist_mechanism()
3458 coex_dm->auto_tdma_adjust = false; in btc8821a2ant_run_coexist_mechanism()
3460 switch (coex_dm->cur_algorithm) { in btc8821a2ant_run_coexist_mechanism()
3517 coex_dm->pre_algorithm = coex_dm->cur_algorithm; in btc8821a2ant_run_coexist_mechanism()
3553 coex_dm->bt_rf0x1e_backup = in ex_btc8821a2ant_init_hwconfig()
3669 coex_dm->wifi_chnl_info); in ex_btc8821a2ant_display_coex_info()
3733 coex_dm->cur_agc_table_en, coex_dm->cur_adc_back_off, in ex_btc8821a2ant_display_coex_info()
3734 coex_dm->cur_dac_swing_on, coex_dm->cur_dac_swing_lvl); in ex_btc8821a2ant_display_coex_info()
3741 ps_tdma_case = coex_dm->cur_ps_tdma; in ex_btc8821a2ant_display_coex_info()
3744 coex_dm->ps_tdma_para, ps_tdma_case); in ex_btc8821a2ant_display_coex_info()
3747 coex_dm->cur_dec_bt_pwr_lvl, in ex_btc8821a2ant_display_coex_info()
3748 coex_dm->cur_ignore_wlan_act); in ex_btc8821a2ant_display_coex_info()
3755 coex_dm->bt_rf0x1e_backup); in ex_btc8821a2ant_display_coex_info()
3921 coex_dm->wifi_chnl_info[0] = h2c_parameter[0]; in ex_btc8821a2ant_media_status_notify()
3922 coex_dm->wifi_chnl_info[1] = h2c_parameter[1]; in ex_btc8821a2ant_media_status_notify()
3923 coex_dm->wifi_chnl_info[2] = h2c_parameter[2]; in ex_btc8821a2ant_media_status_notify()
4104 coex_dm->bt_status = BT_8821A_2ANT_BT_STATUS_IDLE; in ex_btc8821a2ant_bt_info_notify()
4109 coex_dm->bt_status = BT_8821A_2ANT_BT_STATUS_CON_IDLE; in ex_btc8821a2ant_bt_info_notify()
4114 coex_dm->bt_status = BT_8821A_2ANT_BT_STATUS_SCO_BUSY; in ex_btc8821a2ant_bt_info_notify()
4118 coex_dm->bt_status = BT_8821A_2ANT_BT_STATUS_ACL_BUSY; in ex_btc8821a2ant_bt_info_notify()
4122 coex_dm->bt_status = BT_8821A_2ANT_BT_STATUS_MAX; in ex_btc8821a2ant_bt_info_notify()
4127 if ((coex_dm->bt_status == BT_8821A_2ANT_BT_STATUS_ACL_BUSY) || in ex_btc8821a2ant_bt_info_notify()
4128 (coex_dm->bt_status == BT_8821A_2ANT_BT_STATUS_SCO_BUSY) || in ex_btc8821a2ant_bt_info_notify()
4129 (coex_dm->bt_status == BT_8821A_2ANT_BT_STATUS_ACL_SCO_BUSY)) { in ex_btc8821a2ant_bt_info_notify()
4139 coex_dm->limited_dig = limited_dig; in ex_btc8821a2ant_bt_info_notify()
4202 coex_dm->auto_tdma_adjust) in ex_btc8821a2ant_periodical()