Lines Matching refs:coex_dm

45 static struct coex_dm_8821a_2ant *coex_dm = &glcoex_dm_8821a_2ant;  variable
681 coex_dm->cur_dec_bt_pwr_lvl = dec_bt_pwr_lvl; in btc8821a2ant_dec_bt_pwr()
686 coex_dm->pre_dec_bt_pwr_lvl, in btc8821a2ant_dec_bt_pwr()
687 coex_dm->cur_dec_bt_pwr_lvl); in btc8821a2ant_dec_bt_pwr()
689 if (coex_dm->pre_dec_bt_pwr_lvl == coex_dm->cur_dec_bt_pwr_lvl) in btc8821a2ant_dec_bt_pwr()
692 btc8821a2ant_set_fw_dec_bt_pwr(btcoexist, coex_dm->cur_dec_bt_pwr_lvl); in btc8821a2ant_dec_bt_pwr()
694 coex_dm->pre_dec_bt_pwr_lvl = coex_dm->cur_dec_bt_pwr_lvl; in btc8821a2ant_dec_bt_pwr()
705 coex_dm->cur_fw_dac_swing_lvl = fw_dac_swing_lvl; in btc8821a2ant_fw_dac_swing_lvl()
710 coex_dm->pre_fw_dac_swing_lvl, in btc8821a2ant_fw_dac_swing_lvl()
711 coex_dm->cur_fw_dac_swing_lvl); in btc8821a2ant_fw_dac_swing_lvl()
713 if (coex_dm->pre_fw_dac_swing_lvl == in btc8821a2ant_fw_dac_swing_lvl()
714 coex_dm->cur_fw_dac_swing_lvl) in btc8821a2ant_fw_dac_swing_lvl()
719 coex_dm->cur_fw_dac_swing_lvl); in btc8821a2ant_fw_dac_swing_lvl()
721 coex_dm->pre_fw_dac_swing_lvl = coex_dm->cur_fw_dac_swing_lvl; in btc8821a2ant_fw_dac_swing_lvl()
760 coex_dm->cur_low_penalty_ra = low_penalty_ra; in btc8821a2ant_low_penalty_ra()
765 coex_dm->pre_low_penalty_ra, in btc8821a2ant_low_penalty_ra()
766 coex_dm->cur_low_penalty_ra); in btc8821a2ant_low_penalty_ra()
768 if (coex_dm->pre_low_penalty_ra == coex_dm->cur_low_penalty_ra) in btc8821a2ant_low_penalty_ra()
772 coex_dm->cur_low_penalty_ra); in btc8821a2ant_low_penalty_ra()
774 coex_dm->pre_low_penalty_ra = coex_dm->cur_low_penalty_ra; in btc8821a2ant_low_penalty_ra()
809 coex_dm->cur_dac_swing_on = dac_swing_on; in btc8821a2ant_dac_swing()
810 coex_dm->cur_dac_swing_lvl = dac_swing_lvl; in btc8821a2ant_dac_swing()
815 coex_dm->pre_dac_swing_on, in btc8821a2ant_dac_swing()
816 coex_dm->pre_dac_swing_lvl, in btc8821a2ant_dac_swing()
817 coex_dm->cur_dac_swing_on, in btc8821a2ant_dac_swing()
818 coex_dm->cur_dac_swing_lvl); in btc8821a2ant_dac_swing()
820 if ((coex_dm->pre_dac_swing_on == coex_dm->cur_dac_swing_on) && in btc8821a2ant_dac_swing()
821 (coex_dm->pre_dac_swing_lvl == in btc8821a2ant_dac_swing()
822 coex_dm->cur_dac_swing_lvl)) in btc8821a2ant_dac_swing()
829 coex_dm->pre_dac_swing_on = coex_dm->cur_dac_swing_on; in btc8821a2ant_dac_swing()
830 coex_dm->pre_dac_swing_lvl = coex_dm->cur_dac_swing_lvl; in btc8821a2ant_dac_swing()
866 coex_dm->cur_val0x6c0 = val0x6c0; in btc8821a2ant_coex_table()
867 coex_dm->cur_val0x6c4 = val0x6c4; in btc8821a2ant_coex_table()
868 coex_dm->cur_val0x6c8 = val0x6c8; in btc8821a2ant_coex_table()
869 coex_dm->cur_val0x6cc = val0x6cc; in btc8821a2ant_coex_table()
874 coex_dm->pre_val0x6c0, in btc8821a2ant_coex_table()
875 coex_dm->pre_val0x6c4, in btc8821a2ant_coex_table()
876 coex_dm->pre_val0x6c8, in btc8821a2ant_coex_table()
877 coex_dm->pre_val0x6cc); in btc8821a2ant_coex_table()
880 coex_dm->cur_val0x6c0, in btc8821a2ant_coex_table()
881 coex_dm->cur_val0x6c4, in btc8821a2ant_coex_table()
882 coex_dm->cur_val0x6c8, in btc8821a2ant_coex_table()
883 coex_dm->cur_val0x6cc); in btc8821a2ant_coex_table()
885 if ((coex_dm->pre_val0x6c0 == coex_dm->cur_val0x6c0) && in btc8821a2ant_coex_table()
886 (coex_dm->pre_val0x6c4 == coex_dm->cur_val0x6c4) && in btc8821a2ant_coex_table()
887 (coex_dm->pre_val0x6c8 == coex_dm->cur_val0x6c8) && in btc8821a2ant_coex_table()
888 (coex_dm->pre_val0x6cc == coex_dm->cur_val0x6cc)) in btc8821a2ant_coex_table()
894 coex_dm->pre_val0x6c0 = coex_dm->cur_val0x6c0; in btc8821a2ant_coex_table()
895 coex_dm->pre_val0x6c4 = coex_dm->cur_val0x6c4; in btc8821a2ant_coex_table()
896 coex_dm->pre_val0x6c8 = coex_dm->cur_val0x6c8; in btc8821a2ant_coex_table()
897 coex_dm->pre_val0x6cc = coex_dm->cur_val0x6cc; in btc8821a2ant_coex_table()
1012 coex_dm->cur_lps = lps_val; in btc8821a2ant_lps_rpwm()
1013 coex_dm->cur_rpwm = rpwm_val; in btc8821a2ant_lps_rpwm()
1016 if ((coex_dm->pre_lps == coex_dm->cur_lps) && in btc8821a2ant_lps_rpwm()
1017 (coex_dm->pre_rpwm == coex_dm->cur_rpwm)) in btc8821a2ant_lps_rpwm()
1022 coex_dm->pre_lps = coex_dm->cur_lps; in btc8821a2ant_lps_rpwm()
1023 coex_dm->pre_rpwm = coex_dm->cur_rpwm; in btc8821a2ant_lps_rpwm()
1034 coex_dm->cur_ignore_wlan_act = enable; in btc8821a2ant_ignore_wlan_act()
1039 coex_dm->pre_ignore_wlan_act, in btc8821a2ant_ignore_wlan_act()
1040 coex_dm->cur_ignore_wlan_act); in btc8821a2ant_ignore_wlan_act()
1042 if (coex_dm->pre_ignore_wlan_act == in btc8821a2ant_ignore_wlan_act()
1043 coex_dm->cur_ignore_wlan_act) in btc8821a2ant_ignore_wlan_act()
1048 coex_dm->pre_ignore_wlan_act = coex_dm->cur_ignore_wlan_act; in btc8821a2ant_ignore_wlan_act()
1064 coex_dm->ps_tdma_para[0] = byte1; in btc8821a2ant_set_fw_ps_tdma()
1065 coex_dm->ps_tdma_para[1] = byte2; in btc8821a2ant_set_fw_ps_tdma()
1066 coex_dm->ps_tdma_para[2] = byte3; in btc8821a2ant_set_fw_ps_tdma()
1067 coex_dm->ps_tdma_para[3] = byte4; in btc8821a2ant_set_fw_ps_tdma()
1068 coex_dm->ps_tdma_para[4] = byte5; in btc8821a2ant_set_fw_ps_tdma()
1166 coex_dm->cur_ps_tdma_on = turn_on; in btc8821a2ant_ps_tdma()
1167 coex_dm->cur_ps_tdma = type; in btc8821a2ant_ps_tdma()
1172 coex_dm->pre_ps_tdma_on, coex_dm->cur_ps_tdma_on); in btc8821a2ant_ps_tdma()
1175 coex_dm->pre_ps_tdma, coex_dm->cur_ps_tdma); in btc8821a2ant_ps_tdma()
1177 if ((coex_dm->pre_ps_tdma_on == coex_dm->cur_ps_tdma_on) && in btc8821a2ant_ps_tdma()
1178 (coex_dm->pre_ps_tdma == coex_dm->cur_ps_tdma)) in btc8821a2ant_ps_tdma()
1365 coex_dm->pre_ps_tdma_on = coex_dm->cur_ps_tdma_on; in btc8821a2ant_ps_tdma()
1366 coex_dm->pre_ps_tdma = coex_dm->cur_ps_tdma; in btc8821a2ant_ps_tdma()
1637 coex_dm->bt_status) { in btc8821a2ant_is_common_action()
1667 coex_dm->bt_status) { in btc8821a2ant_is_common_action()
1735 if (coex_dm->auto_tdma_adjust) { in btc8821a2ant_tdma_duration_adjust()
1736 coex_dm->auto_tdma_adjust = false; in btc8821a2ant_tdma_duration_adjust()
1744 coex_dm->ps_tdma_du_adj_type = 13; in btc8821a2ant_tdma_duration_adjust()
1748 coex_dm->ps_tdma_du_adj_type = 14; in btc8821a2ant_tdma_duration_adjust()
1752 coex_dm->ps_tdma_du_adj_type = 15; in btc8821a2ant_tdma_duration_adjust()
1756 coex_dm->ps_tdma_du_adj_type = 15; in btc8821a2ant_tdma_duration_adjust()
1762 coex_dm->ps_tdma_du_adj_type = 9; in btc8821a2ant_tdma_duration_adjust()
1766 coex_dm->ps_tdma_du_adj_type = 10; in btc8821a2ant_tdma_duration_adjust()
1770 coex_dm->ps_tdma_du_adj_type = 11; in btc8821a2ant_tdma_duration_adjust()
1774 coex_dm->ps_tdma_du_adj_type = 11; in btc8821a2ant_tdma_duration_adjust()
1782 coex_dm->ps_tdma_du_adj_type = 5; in btc8821a2ant_tdma_duration_adjust()
1786 coex_dm->ps_tdma_du_adj_type = 6; in btc8821a2ant_tdma_duration_adjust()
1790 coex_dm->ps_tdma_du_adj_type = 7; in btc8821a2ant_tdma_duration_adjust()
1794 coex_dm->ps_tdma_du_adj_type = 7; in btc8821a2ant_tdma_duration_adjust()
1800 coex_dm->ps_tdma_du_adj_type = 1; in btc8821a2ant_tdma_duration_adjust()
1804 coex_dm->ps_tdma_du_adj_type = 2; in btc8821a2ant_tdma_duration_adjust()
1808 coex_dm->ps_tdma_du_adj_type = 3; in btc8821a2ant_tdma_duration_adjust()
1812 coex_dm->ps_tdma_du_adj_type = 3; in btc8821a2ant_tdma_duration_adjust()
1912 if (coex_dm->cur_ps_tdma == 71) { in btc8821a2ant_tdma_duration_adjust()
1915 coex_dm->ps_tdma_du_adj_type = 5; in btc8821a2ant_tdma_duration_adjust()
1916 } else if (coex_dm->cur_ps_tdma == 1) { in btc8821a2ant_tdma_duration_adjust()
1919 coex_dm->ps_tdma_du_adj_type = 5; in btc8821a2ant_tdma_duration_adjust()
1920 } else if (coex_dm->cur_ps_tdma == 2) { in btc8821a2ant_tdma_duration_adjust()
1923 coex_dm->ps_tdma_du_adj_type = 6; in btc8821a2ant_tdma_duration_adjust()
1924 } else if (coex_dm->cur_ps_tdma == 3) { in btc8821a2ant_tdma_duration_adjust()
1927 coex_dm->ps_tdma_du_adj_type = 7; in btc8821a2ant_tdma_duration_adjust()
1928 } else if (coex_dm->cur_ps_tdma == 4) { in btc8821a2ant_tdma_duration_adjust()
1931 coex_dm->ps_tdma_du_adj_type = 8; in btc8821a2ant_tdma_duration_adjust()
1933 if (coex_dm->cur_ps_tdma == 9) { in btc8821a2ant_tdma_duration_adjust()
1936 coex_dm->ps_tdma_du_adj_type = 13; in btc8821a2ant_tdma_duration_adjust()
1937 } else if (coex_dm->cur_ps_tdma == 10) { in btc8821a2ant_tdma_duration_adjust()
1940 coex_dm->ps_tdma_du_adj_type = 14; in btc8821a2ant_tdma_duration_adjust()
1941 } else if (coex_dm->cur_ps_tdma == 11) { in btc8821a2ant_tdma_duration_adjust()
1944 coex_dm->ps_tdma_du_adj_type = 15; in btc8821a2ant_tdma_duration_adjust()
1945 } else if (coex_dm->cur_ps_tdma == 12) { in btc8821a2ant_tdma_duration_adjust()
1948 coex_dm->ps_tdma_du_adj_type = 16; in btc8821a2ant_tdma_duration_adjust()
1952 if (coex_dm->cur_ps_tdma == 5) { in btc8821a2ant_tdma_duration_adjust()
1956 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
1958 } else if (coex_dm->cur_ps_tdma == 6) { in btc8821a2ant_tdma_duration_adjust()
1962 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
1964 } else if (coex_dm->cur_ps_tdma == 7) { in btc8821a2ant_tdma_duration_adjust()
1968 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
1970 } else if (coex_dm->cur_ps_tdma == 13) { in btc8821a2ant_tdma_duration_adjust()
1974 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
1976 } else if (coex_dm->cur_ps_tdma == 14) { in btc8821a2ant_tdma_duration_adjust()
1980 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
1982 } else if (coex_dm->cur_ps_tdma == 15) { in btc8821a2ant_tdma_duration_adjust()
1986 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
1990 if (coex_dm->cur_ps_tdma == 8) { in btc8821a2ant_tdma_duration_adjust()
1994 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
1996 } else if (coex_dm->cur_ps_tdma == 7) { in btc8821a2ant_tdma_duration_adjust()
2000 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2002 } else if (coex_dm->cur_ps_tdma == 6) { in btc8821a2ant_tdma_duration_adjust()
2006 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2008 } else if (coex_dm->cur_ps_tdma == 16) { in btc8821a2ant_tdma_duration_adjust()
2012 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2014 } else if (coex_dm->cur_ps_tdma == 15) { in btc8821a2ant_tdma_duration_adjust()
2018 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2020 } else if (coex_dm->cur_ps_tdma == 14) { in btc8821a2ant_tdma_duration_adjust()
2024 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2029 if (coex_dm->cur_ps_tdma == 5) { in btc8821a2ant_tdma_duration_adjust()
2032 coex_dm->ps_tdma_du_adj_type = 71; in btc8821a2ant_tdma_duration_adjust()
2033 } else if (coex_dm->cur_ps_tdma == 6) { in btc8821a2ant_tdma_duration_adjust()
2036 coex_dm->ps_tdma_du_adj_type = 2; in btc8821a2ant_tdma_duration_adjust()
2037 } else if (coex_dm->cur_ps_tdma == 7) { in btc8821a2ant_tdma_duration_adjust()
2040 coex_dm->ps_tdma_du_adj_type = 3; in btc8821a2ant_tdma_duration_adjust()
2041 } else if (coex_dm->cur_ps_tdma == 8) { in btc8821a2ant_tdma_duration_adjust()
2044 coex_dm->ps_tdma_du_adj_type = 4; in btc8821a2ant_tdma_duration_adjust()
2046 if (coex_dm->cur_ps_tdma == 13) { in btc8821a2ant_tdma_duration_adjust()
2049 coex_dm->ps_tdma_du_adj_type = 9; in btc8821a2ant_tdma_duration_adjust()
2050 } else if (coex_dm->cur_ps_tdma == 14) { in btc8821a2ant_tdma_duration_adjust()
2053 coex_dm->ps_tdma_du_adj_type = 10; in btc8821a2ant_tdma_duration_adjust()
2054 } else if (coex_dm->cur_ps_tdma == 15) { in btc8821a2ant_tdma_duration_adjust()
2057 coex_dm->ps_tdma_du_adj_type = 11; in btc8821a2ant_tdma_duration_adjust()
2058 } else if (coex_dm->cur_ps_tdma == 16) { in btc8821a2ant_tdma_duration_adjust()
2061 coex_dm->ps_tdma_du_adj_type = 12; in btc8821a2ant_tdma_duration_adjust()
2065 if (coex_dm->cur_ps_tdma == 71) { in btc8821a2ant_tdma_duration_adjust()
2069 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2071 } else if (coex_dm->cur_ps_tdma == 1) { in btc8821a2ant_tdma_duration_adjust()
2075 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2077 } else if (coex_dm->cur_ps_tdma == 2) { in btc8821a2ant_tdma_duration_adjust()
2081 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2083 } else if (coex_dm->cur_ps_tdma == 3) { in btc8821a2ant_tdma_duration_adjust()
2087 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2089 } else if (coex_dm->cur_ps_tdma == 9) { in btc8821a2ant_tdma_duration_adjust()
2093 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2095 } else if (coex_dm->cur_ps_tdma == 10) { in btc8821a2ant_tdma_duration_adjust()
2099 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2101 } else if (coex_dm->cur_ps_tdma == 11) { in btc8821a2ant_tdma_duration_adjust()
2105 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2109 if (coex_dm->cur_ps_tdma == 4) { in btc8821a2ant_tdma_duration_adjust()
2113 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2115 } else if (coex_dm->cur_ps_tdma == 3) { in btc8821a2ant_tdma_duration_adjust()
2119 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2121 } else if (coex_dm->cur_ps_tdma == 2) { in btc8821a2ant_tdma_duration_adjust()
2125 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2127 } else if (coex_dm->cur_ps_tdma == 1) { in btc8821a2ant_tdma_duration_adjust()
2131 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2133 } else if (coex_dm->cur_ps_tdma == 12) { in btc8821a2ant_tdma_duration_adjust()
2137 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2139 } else if (coex_dm->cur_ps_tdma == 11) { in btc8821a2ant_tdma_duration_adjust()
2143 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2145 } else if (coex_dm->cur_ps_tdma == 10) { in btc8821a2ant_tdma_duration_adjust()
2149 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2156 if (coex_dm->cur_ps_tdma == 1) { in btc8821a2ant_tdma_duration_adjust()
2159 coex_dm->ps_tdma_du_adj_type = 6; in btc8821a2ant_tdma_duration_adjust()
2160 } else if (coex_dm->cur_ps_tdma == 2) { in btc8821a2ant_tdma_duration_adjust()
2163 coex_dm->ps_tdma_du_adj_type = 6; in btc8821a2ant_tdma_duration_adjust()
2164 } else if (coex_dm->cur_ps_tdma == 3) { in btc8821a2ant_tdma_duration_adjust()
2167 coex_dm->ps_tdma_du_adj_type = 7; in btc8821a2ant_tdma_duration_adjust()
2168 } else if (coex_dm->cur_ps_tdma == 4) { in btc8821a2ant_tdma_duration_adjust()
2171 coex_dm->ps_tdma_du_adj_type = 8; in btc8821a2ant_tdma_duration_adjust()
2173 if (coex_dm->cur_ps_tdma == 9) { in btc8821a2ant_tdma_duration_adjust()
2176 coex_dm->ps_tdma_du_adj_type = 14; in btc8821a2ant_tdma_duration_adjust()
2177 } else if (coex_dm->cur_ps_tdma == 10) { in btc8821a2ant_tdma_duration_adjust()
2180 coex_dm->ps_tdma_du_adj_type = 14; in btc8821a2ant_tdma_duration_adjust()
2181 } else if (coex_dm->cur_ps_tdma == 11) { in btc8821a2ant_tdma_duration_adjust()
2184 coex_dm->ps_tdma_du_adj_type = 15; in btc8821a2ant_tdma_duration_adjust()
2185 } else if (coex_dm->cur_ps_tdma == 12) { in btc8821a2ant_tdma_duration_adjust()
2188 coex_dm->ps_tdma_du_adj_type = 16; in btc8821a2ant_tdma_duration_adjust()
2191 if (coex_dm->cur_ps_tdma == 5) { in btc8821a2ant_tdma_duration_adjust()
2195 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2197 } else if (coex_dm->cur_ps_tdma == 6) { in btc8821a2ant_tdma_duration_adjust()
2201 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2203 } else if (coex_dm->cur_ps_tdma == 7) { in btc8821a2ant_tdma_duration_adjust()
2207 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2209 } else if (coex_dm->cur_ps_tdma == 13) { in btc8821a2ant_tdma_duration_adjust()
2213 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2215 } else if (coex_dm->cur_ps_tdma == 14) { in btc8821a2ant_tdma_duration_adjust()
2219 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2221 } else if (coex_dm->cur_ps_tdma == 15) { in btc8821a2ant_tdma_duration_adjust()
2225 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2229 if (coex_dm->cur_ps_tdma == 8) { in btc8821a2ant_tdma_duration_adjust()
2233 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2235 } else if (coex_dm->cur_ps_tdma == 7) { in btc8821a2ant_tdma_duration_adjust()
2239 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2241 } else if (coex_dm->cur_ps_tdma == 6) { in btc8821a2ant_tdma_duration_adjust()
2245 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2247 } else if (coex_dm->cur_ps_tdma == 16) { in btc8821a2ant_tdma_duration_adjust()
2251 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2253 } else if (coex_dm->cur_ps_tdma == 15) { in btc8821a2ant_tdma_duration_adjust()
2257 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2259 } else if (coex_dm->cur_ps_tdma == 14) { in btc8821a2ant_tdma_duration_adjust()
2263 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2268 if (coex_dm->cur_ps_tdma == 5) { in btc8821a2ant_tdma_duration_adjust()
2271 coex_dm->ps_tdma_du_adj_type = 2; in btc8821a2ant_tdma_duration_adjust()
2272 } else if (coex_dm->cur_ps_tdma == 6) { in btc8821a2ant_tdma_duration_adjust()
2275 coex_dm->ps_tdma_du_adj_type = 2; in btc8821a2ant_tdma_duration_adjust()
2276 } else if (coex_dm->cur_ps_tdma == 7) { in btc8821a2ant_tdma_duration_adjust()
2279 coex_dm->ps_tdma_du_adj_type = 3; in btc8821a2ant_tdma_duration_adjust()
2280 } else if (coex_dm->cur_ps_tdma == 8) { in btc8821a2ant_tdma_duration_adjust()
2283 coex_dm->ps_tdma_du_adj_type = 4; in btc8821a2ant_tdma_duration_adjust()
2285 if (coex_dm->cur_ps_tdma == 13) { in btc8821a2ant_tdma_duration_adjust()
2288 coex_dm->ps_tdma_du_adj_type = 10; in btc8821a2ant_tdma_duration_adjust()
2289 } else if (coex_dm->cur_ps_tdma == 14) { in btc8821a2ant_tdma_duration_adjust()
2292 coex_dm->ps_tdma_du_adj_type = 10; in btc8821a2ant_tdma_duration_adjust()
2293 } else if (coex_dm->cur_ps_tdma == 15) { in btc8821a2ant_tdma_duration_adjust()
2296 coex_dm->ps_tdma_du_adj_type = 11; in btc8821a2ant_tdma_duration_adjust()
2297 } else if (coex_dm->cur_ps_tdma == 16) { in btc8821a2ant_tdma_duration_adjust()
2300 coex_dm->ps_tdma_du_adj_type = 12; in btc8821a2ant_tdma_duration_adjust()
2303 if (coex_dm->cur_ps_tdma == 1) { in btc8821a2ant_tdma_duration_adjust()
2307 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2309 } else if (coex_dm->cur_ps_tdma == 2) { in btc8821a2ant_tdma_duration_adjust()
2313 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2315 } else if (coex_dm->cur_ps_tdma == 3) { in btc8821a2ant_tdma_duration_adjust()
2319 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2321 } else if (coex_dm->cur_ps_tdma == 9) { in btc8821a2ant_tdma_duration_adjust()
2325 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2327 } else if (coex_dm->cur_ps_tdma == 10) { in btc8821a2ant_tdma_duration_adjust()
2331 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2333 } else if (coex_dm->cur_ps_tdma == 11) { in btc8821a2ant_tdma_duration_adjust()
2337 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2341 if (coex_dm->cur_ps_tdma == 4) { in btc8821a2ant_tdma_duration_adjust()
2345 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2347 } else if (coex_dm->cur_ps_tdma == 3) { in btc8821a2ant_tdma_duration_adjust()
2351 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2353 } else if (coex_dm->cur_ps_tdma == 2) { in btc8821a2ant_tdma_duration_adjust()
2357 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2359 } else if (coex_dm->cur_ps_tdma == 12) { in btc8821a2ant_tdma_duration_adjust()
2363 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2365 } else if (coex_dm->cur_ps_tdma == 11) { in btc8821a2ant_tdma_duration_adjust()
2369 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2371 } else if (coex_dm->cur_ps_tdma == 10) { in btc8821a2ant_tdma_duration_adjust()
2375 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2382 if (coex_dm->cur_ps_tdma == 1) { in btc8821a2ant_tdma_duration_adjust()
2385 coex_dm->ps_tdma_du_adj_type = 7; in btc8821a2ant_tdma_duration_adjust()
2386 } else if (coex_dm->cur_ps_tdma == 2) { in btc8821a2ant_tdma_duration_adjust()
2389 coex_dm->ps_tdma_du_adj_type = 7; in btc8821a2ant_tdma_duration_adjust()
2390 } else if (coex_dm->cur_ps_tdma == 3) { in btc8821a2ant_tdma_duration_adjust()
2393 coex_dm->ps_tdma_du_adj_type = 7; in btc8821a2ant_tdma_duration_adjust()
2394 } else if (coex_dm->cur_ps_tdma == 4) { in btc8821a2ant_tdma_duration_adjust()
2397 coex_dm->ps_tdma_du_adj_type = 8; in btc8821a2ant_tdma_duration_adjust()
2399 if (coex_dm->cur_ps_tdma == 9) { in btc8821a2ant_tdma_duration_adjust()
2402 coex_dm->ps_tdma_du_adj_type = 15; in btc8821a2ant_tdma_duration_adjust()
2403 } else if (coex_dm->cur_ps_tdma == 10) { in btc8821a2ant_tdma_duration_adjust()
2406 coex_dm->ps_tdma_du_adj_type = 15; in btc8821a2ant_tdma_duration_adjust()
2407 } else if (coex_dm->cur_ps_tdma == 11) { in btc8821a2ant_tdma_duration_adjust()
2410 coex_dm->ps_tdma_du_adj_type = 15; in btc8821a2ant_tdma_duration_adjust()
2411 } else if (coex_dm->cur_ps_tdma == 12) { in btc8821a2ant_tdma_duration_adjust()
2414 coex_dm->ps_tdma_du_adj_type = 16; in btc8821a2ant_tdma_duration_adjust()
2417 if (coex_dm->cur_ps_tdma == 5) { in btc8821a2ant_tdma_duration_adjust()
2421 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2423 } else if (coex_dm->cur_ps_tdma == 6) { in btc8821a2ant_tdma_duration_adjust()
2427 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2429 } else if (coex_dm->cur_ps_tdma == 7) { in btc8821a2ant_tdma_duration_adjust()
2433 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2435 } else if (coex_dm->cur_ps_tdma == 13) { in btc8821a2ant_tdma_duration_adjust()
2439 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2441 } else if (coex_dm->cur_ps_tdma == 14) { in btc8821a2ant_tdma_duration_adjust()
2445 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2447 } else if (coex_dm->cur_ps_tdma == 15) { in btc8821a2ant_tdma_duration_adjust()
2451 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2455 if (coex_dm->cur_ps_tdma == 8) { in btc8821a2ant_tdma_duration_adjust()
2459 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2461 } else if (coex_dm->cur_ps_tdma == 7) { in btc8821a2ant_tdma_duration_adjust()
2465 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2467 } else if (coex_dm->cur_ps_tdma == 6) { in btc8821a2ant_tdma_duration_adjust()
2471 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2473 } else if (coex_dm->cur_ps_tdma == 16) { in btc8821a2ant_tdma_duration_adjust()
2477 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2479 } else if (coex_dm->cur_ps_tdma == 15) { in btc8821a2ant_tdma_duration_adjust()
2483 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2485 } else if (coex_dm->cur_ps_tdma == 14) { in btc8821a2ant_tdma_duration_adjust()
2489 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2494 if (coex_dm->cur_ps_tdma == 5) { in btc8821a2ant_tdma_duration_adjust()
2497 coex_dm->ps_tdma_du_adj_type = 3; in btc8821a2ant_tdma_duration_adjust()
2498 } else if (coex_dm->cur_ps_tdma == 6) { in btc8821a2ant_tdma_duration_adjust()
2501 coex_dm->ps_tdma_du_adj_type = 3; in btc8821a2ant_tdma_duration_adjust()
2502 } else if (coex_dm->cur_ps_tdma == 7) { in btc8821a2ant_tdma_duration_adjust()
2505 coex_dm->ps_tdma_du_adj_type = 3; in btc8821a2ant_tdma_duration_adjust()
2506 } else if (coex_dm->cur_ps_tdma == 8) { in btc8821a2ant_tdma_duration_adjust()
2509 coex_dm->ps_tdma_du_adj_type = 4; in btc8821a2ant_tdma_duration_adjust()
2511 if (coex_dm->cur_ps_tdma == 13) { in btc8821a2ant_tdma_duration_adjust()
2514 coex_dm->ps_tdma_du_adj_type = 11; in btc8821a2ant_tdma_duration_adjust()
2515 } else if (coex_dm->cur_ps_tdma == 14) { in btc8821a2ant_tdma_duration_adjust()
2518 coex_dm->ps_tdma_du_adj_type = 11; in btc8821a2ant_tdma_duration_adjust()
2519 } else if (coex_dm->cur_ps_tdma == 15) { in btc8821a2ant_tdma_duration_adjust()
2522 coex_dm->ps_tdma_du_adj_type = 11; in btc8821a2ant_tdma_duration_adjust()
2523 } else if (coex_dm->cur_ps_tdma == 16) { in btc8821a2ant_tdma_duration_adjust()
2526 coex_dm->ps_tdma_du_adj_type = 12; in btc8821a2ant_tdma_duration_adjust()
2529 if (coex_dm->cur_ps_tdma == 1) { in btc8821a2ant_tdma_duration_adjust()
2533 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2535 } else if (coex_dm->cur_ps_tdma == 2) { in btc8821a2ant_tdma_duration_adjust()
2539 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2541 } else if (coex_dm->cur_ps_tdma == 3) { in btc8821a2ant_tdma_duration_adjust()
2545 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2547 } else if (coex_dm->cur_ps_tdma == 9) { in btc8821a2ant_tdma_duration_adjust()
2551 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2553 } else if (coex_dm->cur_ps_tdma == 10) { in btc8821a2ant_tdma_duration_adjust()
2557 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2559 } else if (coex_dm->cur_ps_tdma == 11) { in btc8821a2ant_tdma_duration_adjust()
2563 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2567 if (coex_dm->cur_ps_tdma == 4) { in btc8821a2ant_tdma_duration_adjust()
2571 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2573 } else if (coex_dm->cur_ps_tdma == 3) { in btc8821a2ant_tdma_duration_adjust()
2577 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2579 } else if (coex_dm->cur_ps_tdma == 2) { in btc8821a2ant_tdma_duration_adjust()
2583 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2585 } else if (coex_dm->cur_ps_tdma == 12) { in btc8821a2ant_tdma_duration_adjust()
2589 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2591 } else if (coex_dm->cur_ps_tdma == 11) { in btc8821a2ant_tdma_duration_adjust()
2595 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2597 } else if (coex_dm->cur_ps_tdma == 10) { in btc8821a2ant_tdma_duration_adjust()
2601 coex_dm->ps_tdma_du_adj_type = in btc8821a2ant_tdma_duration_adjust()
2613 if (coex_dm->cur_ps_tdma != coex_dm->ps_tdma_du_adj_type) { in btc8821a2ant_tdma_duration_adjust()
2618 coex_dm->cur_ps_tdma, coex_dm->ps_tdma_du_adj_type); in btc8821a2ant_tdma_duration_adjust()
2626 coex_dm->ps_tdma_du_adj_type); in btc8821a2ant_tdma_duration_adjust()
3481 coex_dm->cur_algorithm = algorithm; in btc8821a2ant_run_coexist_mechanism()
3483 "[BTCoex], Algorithm = %d\n", coex_dm->cur_algorithm); in btc8821a2ant_run_coexist_mechanism()
3488 coex_dm->auto_tdma_adjust = true; in btc8821a2ant_run_coexist_mechanism()
3490 if (coex_dm->cur_algorithm != coex_dm->pre_algorithm) { in btc8821a2ant_run_coexist_mechanism()
3493 coex_dm->pre_algorithm, in btc8821a2ant_run_coexist_mechanism()
3494 coex_dm->cur_algorithm); in btc8821a2ant_run_coexist_mechanism()
3495 coex_dm->auto_tdma_adjust = false; in btc8821a2ant_run_coexist_mechanism()
3497 switch (coex_dm->cur_algorithm) { in btc8821a2ant_run_coexist_mechanism()
3554 coex_dm->pre_algorithm = coex_dm->cur_algorithm; in btc8821a2ant_run_coexist_mechanism()
3590 coex_dm->bt_rf0x1e_backup = in ex_btc8821a2ant_init_hwconfig()
3706 coex_dm->wifi_chnl_info); in ex_btc8821a2ant_display_coex_info()
3770 coex_dm->cur_agc_table_en, coex_dm->cur_adc_back_off, in ex_btc8821a2ant_display_coex_info()
3771 coex_dm->cur_dac_swing_on, coex_dm->cur_dac_swing_lvl); in ex_btc8821a2ant_display_coex_info()
3778 ps_tdma_case = coex_dm->cur_ps_tdma; in ex_btc8821a2ant_display_coex_info()
3781 coex_dm->ps_tdma_para, ps_tdma_case); in ex_btc8821a2ant_display_coex_info()
3784 coex_dm->cur_dec_bt_pwr_lvl, in ex_btc8821a2ant_display_coex_info()
3785 coex_dm->cur_ignore_wlan_act); in ex_btc8821a2ant_display_coex_info()
3792 coex_dm->bt_rf0x1e_backup); in ex_btc8821a2ant_display_coex_info()
3958 coex_dm->wifi_chnl_info[0] = h2c_parameter[0]; in ex_btc8821a2ant_media_status_notify()
3959 coex_dm->wifi_chnl_info[1] = h2c_parameter[1]; in ex_btc8821a2ant_media_status_notify()
3960 coex_dm->wifi_chnl_info[2] = h2c_parameter[2]; in ex_btc8821a2ant_media_status_notify()
4141 coex_dm->bt_status = BT_8821A_2ANT_BT_STATUS_IDLE; in ex_btc8821a2ant_bt_info_notify()
4146 coex_dm->bt_status = BT_8821A_2ANT_BT_STATUS_CON_IDLE; in ex_btc8821a2ant_bt_info_notify()
4151 coex_dm->bt_status = BT_8821A_2ANT_BT_STATUS_SCO_BUSY; in ex_btc8821a2ant_bt_info_notify()
4155 coex_dm->bt_status = BT_8821A_2ANT_BT_STATUS_ACL_BUSY; in ex_btc8821a2ant_bt_info_notify()
4159 coex_dm->bt_status = BT_8821A_2ANT_BT_STATUS_MAX; in ex_btc8821a2ant_bt_info_notify()
4164 if ((coex_dm->bt_status == BT_8821A_2ANT_BT_STATUS_ACL_BUSY) || in ex_btc8821a2ant_bt_info_notify()
4165 (coex_dm->bt_status == BT_8821A_2ANT_BT_STATUS_SCO_BUSY) || in ex_btc8821a2ant_bt_info_notify()
4166 (coex_dm->bt_status == BT_8821A_2ANT_BT_STATUS_ACL_SCO_BUSY)) { in ex_btc8821a2ant_bt_info_notify()
4176 coex_dm->limited_dig = limited_dig; in ex_btc8821a2ant_bt_info_notify()
4239 coex_dm->auto_tdma_adjust) in ex_btc8821a2ant_periodical()