Lines Matching +full:0 +full:x770

35 static u32 glcoex_ver_8821a_1ant = 0x41;
47 long bt_rssi = 0; in btc8821a1ant_bt_rssi_state()
135 long wifi_rssi = 0; in btc8821a1ant_wifi_rssi_state()
245 case 0: /* normal mode */ in btc8821a1ant_auto_rate_fb_retry()
246 btcoexist->btc_write_4byte(btcoexist, 0x430, in btc8821a1ant_auto_rate_fb_retry()
248 btcoexist->btc_write_4byte(btcoexist, 0x434, in btc8821a1ant_auto_rate_fb_retry()
256 btcoexist->btc_write_4byte(btcoexist, 0x430, in btc8821a1ant_auto_rate_fb_retry()
257 0x0); in btc8821a1ant_auto_rate_fb_retry()
258 btcoexist->btc_write_4byte(btcoexist, 0x434, in btc8821a1ant_auto_rate_fb_retry()
259 0x01010101); in btc8821a1ant_auto_rate_fb_retry()
261 btcoexist->btc_write_4byte(btcoexist, 0x430, in btc8821a1ant_auto_rate_fb_retry()
262 0x0); in btc8821a1ant_auto_rate_fb_retry()
263 btcoexist->btc_write_4byte(btcoexist, 0x434, in btc8821a1ant_auto_rate_fb_retry()
264 0x04030201); in btc8821a1ant_auto_rate_fb_retry()
283 case 0: /* normal mode */ in btc8821a1ant_retry_limit()
284 btcoexist->btc_write_2byte(btcoexist, 0x42a, in btc8821a1ant_retry_limit()
288 btcoexist->btc_write_2byte(btcoexist, 0x42a, 0x0808); in btc8821a1ant_retry_limit()
305 case 0: /* normal mode */ in btc8821a1ant_ampdu_max_time()
306 btcoexist->btc_write_1byte(btcoexist, 0x456, in btc8821a1ant_ampdu_max_time()
309 case 1: /* AMPDU time = 0x38 * 32us */ in btc8821a1ant_ampdu_max_time()
310 btcoexist->btc_write_1byte(btcoexist, 0x456, 0x38); in btc8821a1ant_ampdu_max_time()
326 case 0: /* normal mode */ in btc8821a1ant_limited_tx()
327 btc8821a1ant_update_ra_mask(btcoexist, force_exec, 0x0); in btc8821a1ant_limited_tx()
331 0x00000003); in btc8821a1ant_limited_tx()
333 case 2: /* disable cck 1/2/5.5, ofdm 6/9/12/18/24, mcs 0/1/2/3/4 */ in btc8821a1ant_limited_tx()
335 0x0001f1f7); in btc8821a1ant_limited_tx()
369 u32 reg_hp_tx = 0, reg_hp_rx = 0, reg_lp_tx = 0, reg_lp_rx = 0; in btc8821a1ant_monitor_bt_ctr()
371 reg_hp_tx_rx = 0x770; in btc8821a1ant_monitor_bt_ctr()
372 reg_lp_tx_rx = 0x774; in btc8821a1ant_monitor_bt_ctr()
388 btcoexist->btc_write_1byte(btcoexist, 0x76e, 0xc); in btc8821a1ant_monitor_bt_ctr()
394 u8 h2c_parameter[1] = {0}; in btc8821a1ant_query_bt_info()
398 h2c_parameter[0] |= BIT0; /* trigger */ in btc8821a1ant_query_bt_info()
401 "[BTCoex], Query Bt Info, FW write 0x61 = 0x%x\n", in btc8821a1ant_query_bt_info()
402 h2c_parameter[0]); in btc8821a1ant_query_bt_info()
404 btcoexist->btc_fill_h2c(btcoexist, 0x61, 1, h2c_parameter); in btc8821a1ant_query_bt_info()
469 u8 num_of_diff_profile = 0; in btc8821a1ant_action_algorithm()
650 u8 h2c_parameter[6] = {0}; in btc8821a1ant_set_sw_penalty_tx_rate()
652 h2c_parameter[0] = 0x6; /* opCode, 0x6= Retry_Penalty*/ in btc8821a1ant_set_sw_penalty_tx_rate()
657 h2c_parameter[2] = 0x00; in btc8821a1ant_set_sw_penalty_tx_rate()
658 h2c_parameter[3] = 0xf7; /* MCS7 or OFDM54 */ in btc8821a1ant_set_sw_penalty_tx_rate()
659 h2c_parameter[4] = 0xf8; /* MCS6 or OFDM48 */ in btc8821a1ant_set_sw_penalty_tx_rate()
660 h2c_parameter[5] = 0xf9; /* MCS5 or OFDM36 */ in btc8821a1ant_set_sw_penalty_tx_rate()
667 btcoexist->btc_fill_h2c(btcoexist, 0x69, 6, h2c_parameter); in btc8821a1ant_set_sw_penalty_tx_rate()
692 "[BTCoex], set coex table, set 0x6c0 = 0x%x\n", val0x6c0); in btc8821a1ant_set_coex_table()
693 btcoexist->btc_write_4byte(btcoexist, 0x6c0, val0x6c0); in btc8821a1ant_set_coex_table()
696 "[BTCoex], set coex table, set 0x6c4 = 0x%x\n", val0x6c4); in btc8821a1ant_set_coex_table()
697 btcoexist->btc_write_4byte(btcoexist, 0x6c4, val0x6c4); in btc8821a1ant_set_coex_table()
700 "[BTCoex], set coex table, set 0x6c8 = 0x%x\n", val0x6c8); in btc8821a1ant_set_coex_table()
701 btcoexist->btc_write_4byte(btcoexist, 0x6c8, val0x6c8); in btc8821a1ant_set_coex_table()
704 "[BTCoex], set coex table, set 0x6cc = 0x%x\n", val0x6cc); in btc8821a1ant_set_coex_table()
705 btcoexist->btc_write_1byte(btcoexist, 0x6cc, val0x6cc); in btc8821a1ant_set_coex_table()
715 "[BTCoex], %s write Coex Table 0x6c0 = 0x%x, 0x6c4 = 0x%x, 0x6c8 = 0x%x, 0x6cc = 0x%x\n", in btc8821a1ant_coex_table()
743 case 0: in btc8821a1ant_coex_table_with_type()
744 btc8821a1ant_coex_table(btcoexist, force_exec, 0x55555555, in btc8821a1ant_coex_table_with_type()
745 0x55555555, 0xffffff, 0x3); in btc8821a1ant_coex_table_with_type()
748 btc8821a1ant_coex_table(btcoexist, force_exec, 0x55555555, in btc8821a1ant_coex_table_with_type()
749 0x5a5a5a5a, 0xffffff, 0x3); in btc8821a1ant_coex_table_with_type()
752 btc8821a1ant_coex_table(btcoexist, force_exec, 0x5a5a5a5a, in btc8821a1ant_coex_table_with_type()
753 0x5a5a5a5a, 0xffffff, 0x3); in btc8821a1ant_coex_table_with_type()
756 btc8821a1ant_coex_table(btcoexist, force_exec, 0x5a5a5a5a, in btc8821a1ant_coex_table_with_type()
757 0xaaaaaaaa, 0xffffff, 0x3); in btc8821a1ant_coex_table_with_type()
760 btc8821a1ant_coex_table(btcoexist, force_exec, 0x55555555, in btc8821a1ant_coex_table_with_type()
761 0x5a5a5a5a, 0xffffff, 0x3); in btc8821a1ant_coex_table_with_type()
764 btc8821a1ant_coex_table(btcoexist, force_exec, 0x5a5a5a5a, in btc8821a1ant_coex_table_with_type()
765 0xaaaa5a5a, 0xffffff, 0x3); in btc8821a1ant_coex_table_with_type()
768 btc8821a1ant_coex_table(btcoexist, force_exec, 0x55555555, in btc8821a1ant_coex_table_with_type()
769 0xaaaa5a5a, 0xffffff, 0x3); in btc8821a1ant_coex_table_with_type()
772 btc8821a1ant_coex_table(btcoexist, force_exec, 0xaaaaaaaa, in btc8821a1ant_coex_table_with_type()
773 0xaaaaaaaa, 0xffffff, 0x3); in btc8821a1ant_coex_table_with_type()
784 u8 h2c_parameter[1] = {0}; in btc8821a1ant_set_fw_ignore_wlan_act()
787 h2c_parameter[0] |= BIT0; /* function enable */ in btc8821a1ant_set_fw_ignore_wlan_act()
790 "[BTCoex], set FW for BT Ignore Wlan_Act, FW write 0x63 = 0x%x\n", in btc8821a1ant_set_fw_ignore_wlan_act()
791 h2c_parameter[0]); in btc8821a1ant_set_fw_ignore_wlan_act()
793 btcoexist->btc_fill_h2c(btcoexist, 0x63, 1, h2c_parameter); in btc8821a1ant_set_fw_ignore_wlan_act()
825 u8 h2c_parameter[5] = {0}; in btc8821a1ant_set_fw_ps_tdma()
844 h2c_parameter[0] = real_byte1; in btc8821a1ant_set_fw_ps_tdma()
850 coex_dm->ps_tdma_para[0] = real_byte1; in btc8821a1ant_set_fw_ps_tdma()
857 "[BTCoex], PS-TDMA H2C cmd =0x%x%08x\n", in btc8821a1ant_set_fw_ps_tdma()
858 h2c_parameter[0], in btc8821a1ant_set_fw_ps_tdma()
863 btcoexist->btc_fill_h2c(btcoexist, 0x60, 5, h2c_parameter); in btc8821a1ant_set_fw_ps_tdma()
882 "[BTCoex], %s set lps/rpwm = 0x%x/0x%x\n", in btc8821a1ant_lps_rpwm()
889 "[BTCoex], LPS-RxBeaconMode = 0x%x, LPS-RPWM = 0x%x!!\n", in btc8821a1ant_lps_rpwm()
895 "[BTCoex], LPS-RPWM_Last = 0x%x, LPS-RPWM_Now = 0x%x!!\n", in btc8821a1ant_lps_rpwm()
923 u32 u4_tmp = 0; in btc8821a1ant_set_ant_path()
924 u8 h2c_parameter[2] = {0}; in btc8821a1ant_set_ant_path()
927 /* 0x4c[23] = 0, 0x4c[24] = 1 Antenna control by WL/BT */ in btc8821a1ant_set_ant_path()
928 u4_tmp = btcoexist->btc_read_4byte(btcoexist, 0x4c); in btc8821a1ant_set_ant_path()
931 btcoexist->btc_write_4byte(btcoexist, 0x4c, u4_tmp); in btc8821a1ant_set_ant_path()
933 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x975, 0x3, 0x3); in btc8821a1ant_set_ant_path()
934 btcoexist->btc_write_1byte(btcoexist, 0xcb4, 0x77); in btc8821a1ant_set_ant_path()
940 h2c_parameter[0] = 1; in btc8821a1ant_set_ant_path()
942 btcoexist->btc_fill_h2c(btcoexist, 0x65, 2, in btc8821a1ant_set_ant_path()
948 h2c_parameter[0] = 0; in btc8821a1ant_set_ant_path()
950 btcoexist->btc_fill_h2c(btcoexist, 0x65, 2, in btc8821a1ant_set_ant_path()
954 /* 0x4c[24:23] = 00, Set Antenna control in btc8821a1ant_set_ant_path()
955 * by BT_RFE_CTRL BT Vendor 0xac = 0xf002 in btc8821a1ant_set_ant_path()
957 u4_tmp = btcoexist->btc_read_4byte(btcoexist, 0x4c); in btc8821a1ant_set_ant_path()
960 btcoexist->btc_write_4byte(btcoexist, 0x4c, u4_tmp); in btc8821a1ant_set_ant_path()
962 /* 0x765 = 0x18 */ in btc8821a1ant_set_ant_path()
963 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x765, 0x18, 0x3); in btc8821a1ant_set_ant_path()
965 /* 0x765 = 0x0 */ in btc8821a1ant_set_ant_path()
966 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x765, 0x18, 0x0); in btc8821a1ant_set_ant_path()
972 btcoexist->btc_write_1byte(btcoexist, 0xcb4, 0x77); in btc8821a1ant_set_ant_path()
974 btcoexist->btc_write_1byte_bitmask(btcoexist, 0xcb7, in btc8821a1ant_set_ant_path()
975 0x30, 0x1); in btc8821a1ant_set_ant_path()
977 btcoexist->btc_write_1byte_bitmask(btcoexist, 0xcb7, in btc8821a1ant_set_ant_path()
978 0x30, 0x2); in btc8821a1ant_set_ant_path()
981 btcoexist->btc_write_1byte(btcoexist, 0xcb4, 0x77); in btc8821a1ant_set_ant_path()
983 btcoexist->btc_write_1byte_bitmask(btcoexist, 0xcb7, in btc8821a1ant_set_ant_path()
984 0x30, 0x2); in btc8821a1ant_set_ant_path()
986 btcoexist->btc_write_1byte_bitmask(btcoexist, 0xcb7, in btc8821a1ant_set_ant_path()
987 0x30, 0x1); in btc8821a1ant_set_ant_path()
991 btcoexist->btc_write_1byte(btcoexist, 0xcb4, 0x66); in btc8821a1ant_set_ant_path()
993 btcoexist->btc_write_1byte_bitmask(btcoexist, 0xcb7, in btc8821a1ant_set_ant_path()
994 0x30, 0x1); in btc8821a1ant_set_ant_path()
996 btcoexist->btc_write_1byte_bitmask(btcoexist, 0xcb7, in btc8821a1ant_set_ant_path()
997 0x30, 0x2); in btc8821a1ant_set_ant_path()
1006 u8 rssi_adjust_val = 0; in btc8821a1ant_ps_tdma()
1028 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x1a, in btc8821a1ant_ps_tdma()
1029 0x1a, 0x0, 0x50); in btc8821a1ant_ps_tdma()
1032 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x3a, in btc8821a1ant_ps_tdma()
1033 0x03, 0x10, 0x50); in btc8821a1ant_ps_tdma()
1037 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x2b, in btc8821a1ant_ps_tdma()
1038 0x03, 0x10, 0x50); in btc8821a1ant_ps_tdma()
1042 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x1d, in btc8821a1ant_ps_tdma()
1043 0x1d, 0x0, 0x10); in btc8821a1ant_ps_tdma()
1046 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x93, 0x15, in btc8821a1ant_ps_tdma()
1047 0x3, 0x14, 0x0); in btc8821a1ant_ps_tdma()
1051 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x61, 0x15, in btc8821a1ant_ps_tdma()
1052 0x3, 0x11, 0x10); in btc8821a1ant_ps_tdma()
1055 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x61, 0x20, in btc8821a1ant_ps_tdma()
1056 0x3, 0x11, 0x13); in btc8821a1ant_ps_tdma()
1059 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x13, 0xc, in btc8821a1ant_ps_tdma()
1060 0x5, 0x0, 0x0); in btc8821a1ant_ps_tdma()
1063 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x93, 0x25, in btc8821a1ant_ps_tdma()
1064 0x3, 0x10, 0x0); in btc8821a1ant_ps_tdma()
1067 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x21, in btc8821a1ant_ps_tdma()
1068 0x3, 0x10, 0x50); in btc8821a1ant_ps_tdma()
1072 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x13, 0xa, in btc8821a1ant_ps_tdma()
1073 0xa, 0x0, 0x40); in btc8821a1ant_ps_tdma()
1076 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x15, in btc8821a1ant_ps_tdma()
1077 0x03, 0x10, 0x50); in btc8821a1ant_ps_tdma()
1081 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x0a, in btc8821a1ant_ps_tdma()
1082 0x0a, 0x0, 0x50); in btc8821a1ant_ps_tdma()
1085 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x12, in btc8821a1ant_ps_tdma()
1086 0x12, 0x0, 0x50); in btc8821a1ant_ps_tdma()
1089 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x1e, in btc8821a1ant_ps_tdma()
1090 0x3, 0x10, 0x14); in btc8821a1ant_ps_tdma()
1093 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x13, 0xa, in btc8821a1ant_ps_tdma()
1094 0x3, 0x8, 0x0); in btc8821a1ant_ps_tdma()
1097 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x93, 0x15, in btc8821a1ant_ps_tdma()
1098 0x3, 0x10, 0x0); in btc8821a1ant_ps_tdma()
1102 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x93, 0x25, in btc8821a1ant_ps_tdma()
1103 0x3, 0x10, 0x0); in btc8821a1ant_ps_tdma()
1107 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x61, 0x35, in btc8821a1ant_ps_tdma()
1108 0x03, 0x11, 0x10); in btc8821a1ant_ps_tdma()
1111 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x61, 0x25, in btc8821a1ant_ps_tdma()
1112 0x03, 0x11, 0x11); in btc8821a1ant_ps_tdma()
1115 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x61, 0x25, in btc8821a1ant_ps_tdma()
1116 0x03, 0x11, 0x10); in btc8821a1ant_ps_tdma()
1119 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x25, in btc8821a1ant_ps_tdma()
1120 0x3, 0x31, 0x18); in btc8821a1ant_ps_tdma()
1124 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x15, in btc8821a1ant_ps_tdma()
1125 0x3, 0x31, 0x18); in btc8821a1ant_ps_tdma()
1129 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0xe3, 0xa, in btc8821a1ant_ps_tdma()
1130 0x3, 0x31, 0x18); in btc8821a1ant_ps_tdma()
1134 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0xe3, 0xa, in btc8821a1ant_ps_tdma()
1135 0x3, 0x31, 0x18); in btc8821a1ant_ps_tdma()
1139 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0xe3, 0x25, in btc8821a1ant_ps_tdma()
1140 0x3, 0x31, 0x98); in btc8821a1ant_ps_tdma()
1144 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x69, 0x25, in btc8821a1ant_ps_tdma()
1145 0x3, 0x31, 0x0); in btc8821a1ant_ps_tdma()
1148 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0xab, 0x1a, in btc8821a1ant_ps_tdma()
1149 0x1a, 0x1, 0x10); in btc8821a1ant_ps_tdma()
1152 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x30, in btc8821a1ant_ps_tdma()
1153 0x3, 0x10, 0x10); in btc8821a1ant_ps_tdma()
1156 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0xd3, 0x1a, in btc8821a1ant_ps_tdma()
1157 0x1a, 0, 0x58); in btc8821a1ant_ps_tdma()
1160 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x61, 0x35, in btc8821a1ant_ps_tdma()
1161 0x3, 0x11, 0x11); in btc8821a1ant_ps_tdma()
1164 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0xa3, 0x25, in btc8821a1ant_ps_tdma()
1165 0x3, 0x30, 0x90); in btc8821a1ant_ps_tdma()
1168 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x53, 0x1a, in btc8821a1ant_ps_tdma()
1169 0x1a, 0x0, 0x10); in btc8821a1ant_ps_tdma()
1172 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x63, 0x1a, in btc8821a1ant_ps_tdma()
1173 0x1a, 0x0, 0x10); in btc8821a1ant_ps_tdma()
1176 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0xd3, 0x12, in btc8821a1ant_ps_tdma()
1177 0x3, 0x14, 0x50); in btc8821a1ant_ps_tdma()
1186 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x23, 0x18, in btc8821a1ant_ps_tdma()
1187 0x00, 0x10, 0x24); in btc8821a1ant_ps_tdma()
1190 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x15, in btc8821a1ant_ps_tdma()
1191 0x3, 0x11, 0x11); in btc8821a1ant_ps_tdma()
1194 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x20, in btc8821a1ant_ps_tdma()
1195 0x3, 0x11, 0x11); in btc8821a1ant_ps_tdma()
1198 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x51, 0x30, in btc8821a1ant_ps_tdma()
1199 0x3, 0x10, 0x11); in btc8821a1ant_ps_tdma()
1207 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x8, 0x0, 0x0, in btc8821a1ant_ps_tdma()
1208 0x0, 0x0); in btc8821a1ant_ps_tdma()
1212 case 0: in btc8821a1ant_ps_tdma()
1215 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x0, 0x0, 0x0, in btc8821a1ant_ps_tdma()
1216 0x0, 0x0); in btc8821a1ant_ps_tdma()
1222 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x0, 0x0, 0x0, in btc8821a1ant_ps_tdma()
1223 0x0, 0x0); in btc8821a1ant_ps_tdma()
1229 btc8821a1ant_set_fw_ps_tdma(btcoexist, 0x0, 0x0, 0x0, in btc8821a1ant_ps_tdma()
1230 0x8, 0x0); in btc8821a1ant_ps_tdma()
1236 rssi_adjust_val = 0; in btc8821a1ant_ps_tdma()
1312 u8 lps_mode = 0x0; in btc8821a1ant_ps_tdma_check_for_pwr_save()
1322 btc8821a1ant_ps_tdma(btcoex, NORMAL_EXEC, false, 0); in btc8821a1ant_ps_tdma_check_for_pwr_save()
1328 btc8821a1ant_ps_tdma(btcoex, NORMAL_EXEC, false, 0); in btc8821a1ant_ps_tdma_check_for_pwr_save()
1372 0x0, 0x0); in btc8821a1ant_coex_under_5g()
1377 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 0); in btc8821a1ant_coex_under_5g()
1379 btc8821a1ant_limited_tx(btcoexist, NORMAL_EXEC, 0, 0, 0, 0); in btc8821a1ant_coex_under_5g()
1455 btc8821a1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0); in btc8821a1ant_action_wifi_multi_port()
1489 btc8821a1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, 0x0, in btc8821a1ant_action_wifi_not_connected_asso_auth()
1490 0x0); in btc8821a1ant_action_wifi_not_connected_asso_auth()
1528 BTC_PS_WIFI_NATIVE, 0x0, 0x0); in btc8821a1ant_action_bt_inquiry()
1530 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 0); in btc8821a1ant_action_bt_inquiry()
1535 BTC_PS_WIFI_NATIVE, 0x0, 0x0); in btc8821a1ant_action_bt_inquiry()
1541 0x0, 0x0); in btc8821a1ant_action_bt_inquiry()
1547 0x0, 0x0); in btc8821a1ant_action_bt_inquiry()
1553 0x0, 0x0); in btc8821a1ant_action_bt_inquiry()
1575 bt_rssi_state = btc8821a1ant_bt_rssi_state(btcoexist, 2, 28, 0); in btc8821a1ant_act_wifi_con_bt_acl_busy()
1633 btc8821a1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0); in btc8821a1ant_action_wifi_not_connected()
1637 btc8821a1ant_coex_table_with_type(btcoexist, NORMAL_EXEC, 0); in btc8821a1ant_action_wifi_not_connected()
1644 btc8821a1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0); in btc8821a1ant_act_wifi_not_conn_scan()
1680 BTC_PS_WIFI_NATIVE, 0x0, 0x0); in btc8821a1ant_action_wifi_connected_scan()
1709 0x0, 0x0); in btc8821a1ant_act_wifi_conn_sp_pkt()
1774 BTC_PS_WIFI_NATIVE, 0x0, 0x0); in btc8821a1ant_action_wifi_connected()
1777 0x50, 0x4); in btc8821a1ant_action_wifi_connected()
1781 0x0, 0x0); in btc8821a1ant_action_wifi_connected()
1821 u8 algorithm = 0; in btc8821a1ant_run_sw_coex_mech()
1896 u32 wifi_link_status = 0; in btc8821a1ant_run_coexist_mechanism()
1897 u32 num_of_wifi_link = 0; in btc8821a1ant_run_coexist_mechanism()
1945 btc8821a1ant_limited_tx(btcoexist, NORMAL_EXEC, 0, 0, 0, 0); in btc8821a1ant_run_coexist_mechanism()
1953 btc8821a1ant_limited_tx(btcoexist, NORMAL_EXEC, 0, 0, 0, 0); in btc8821a1ant_run_coexist_mechanism()
1957 30, 0); in btc8821a1ant_run_coexist_mechanism()
1960 0, 1); in btc8821a1ant_run_coexist_mechanism()
1963 0, 0, 0, 0); in btc8821a1ant_run_coexist_mechanism()
1969 agg_buf_size = 0x3; in btc8821a1ant_run_coexist_mechanism()
1972 agg_buf_size = 0x5; in btc8821a1ant_run_coexist_mechanism()
1975 agg_buf_size = 0x8; in btc8821a1ant_run_coexist_mechanism()
2023 btc8821a1ant_coex_table_with_type(btcoexist, FORCE_EXEC, 0); in btc8821a1ant_init_coex_dm()
2030 u8 u1_tmp = 0; in btc8821a1ant_init_hw_config()
2041 0x430); in btc8821a1ant_init_hw_config()
2043 0x434); in btc8821a1ant_init_hw_config()
2045 btcoexist->btc_read_2byte(btcoexist, 0x42a); in btc8821a1ant_init_hw_config()
2047 btcoexist->btc_read_1byte(btcoexist, 0x456); in btc8821a1ant_init_hw_config()
2050 /* 0x790[5:0] = 0x5 */ in btc8821a1ant_init_hw_config()
2051 u1_tmp = btcoexist->btc_read_1byte(btcoexist, 0x790); in btc8821a1ant_init_hw_config()
2052 u1_tmp &= 0xc0; in btc8821a1ant_init_hw_config()
2053 u1_tmp |= 0x5; in btc8821a1ant_init_hw_config()
2054 btcoexist->btc_write_1byte(btcoexist, 0x790, u1_tmp); in btc8821a1ant_init_hw_config()
2066 btc8821a1ant_coex_table_with_type(btcoexist, FORCE_EXEC, 0); in btc8821a1ant_init_hw_config()
2069 * 0x76e[3] =1, WLAN_Act control by PTA in btc8821a1ant_init_hw_config()
2071 btcoexist->btc_write_1byte(btcoexist, 0x76e, 0xc); in btc8821a1ant_init_hw_config()
2072 btcoexist->btc_write_1byte(btcoexist, 0x778, 0x3); in btc8821a1ant_init_hw_config()
2073 btcoexist->btc_write_1byte_bitmask(btcoexist, 0x40, 0x20, 0x1); in btc8821a1ant_init_hw_config()
2105 u8 u1_tmp[4], i, bt_info_ext, ps_tdma_case = 0; in ex_btc8821a1ant_display_coex_info()
2110 long wifi_rssi = 0, bt_hs_rssi = 0; in ex_btc8821a1ant_display_coex_info()
2113 u32 fw_ver = 0, bt_patch_ver = 0; in ex_btc8821a1ant_display_coex_info()
2139 seq_printf(m, "\n %-35s = %d_%x/ 0x%x/ 0x%x(%d)", in ex_btc8821a1ant_display_coex_info()
2211 for (i = 0; i < BT_INFO_SRC_8821A_1ANT_MAX; i++) { in ex_btc8821a1ant_display_coex_info()
2219 seq_printf(m, "\n %-35s = %s/%s, (0x%x/0x%x)", in ex_btc8821a1ant_display_coex_info()
2240 seq_printf(m, "\n %-35s = 0x%x ", "Rate Mask", in ex_btc8821a1ant_display_coex_info()
2254 seq_printf(m, "\n %-35s = 0x%x ", in ex_btc8821a1ant_display_coex_info()
2255 "Latest error condition(should be 0)", in ex_btc8821a1ant_display_coex_info()
2265 seq_printf(m, "\n %-35s = 0x%x/0x%x/0x%x/0x%x", in ex_btc8821a1ant_display_coex_info()
2272 u4_tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x430); in ex_btc8821a1ant_display_coex_info()
2273 u4_tmp[1] = btcoexist->btc_read_4byte(btcoexist, 0x434); in ex_btc8821a1ant_display_coex_info()
2274 u2_tmp[0] = btcoexist->btc_read_2byte(btcoexist, 0x42a); in ex_btc8821a1ant_display_coex_info()
2275 u1_tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x456); in ex_btc8821a1ant_display_coex_info()
2276 seq_printf(m, "\n %-35s = 0x%x/0x%x/0x%x/0x%x", in ex_btc8821a1ant_display_coex_info()
2277 "0x430/0x434/0x42a/0x456", in ex_btc8821a1ant_display_coex_info()
2278 u4_tmp[0], u4_tmp[1], u2_tmp[0], u1_tmp[0]); in ex_btc8821a1ant_display_coex_info()
2280 u1_tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x778); in ex_btc8821a1ant_display_coex_info()
2281 u4_tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0xc58); in ex_btc8821a1ant_display_coex_info()
2282 seq_printf(m, "\n %-35s = 0x%x/ 0x%x", "0x778/ 0xc58[29:25]", in ex_btc8821a1ant_display_coex_info()
2283 u1_tmp[0], (u4_tmp[0] & 0x3e000000) >> 25); in ex_btc8821a1ant_display_coex_info()
2285 u1_tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x8db); in ex_btc8821a1ant_display_coex_info()
2286 seq_printf(m, "\n %-35s = 0x%x", "0x8db[6:5]", in ex_btc8821a1ant_display_coex_info()
2287 ((u1_tmp[0] & 0x60) >> 5)); in ex_btc8821a1ant_display_coex_info()
2289 u1_tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x975); in ex_btc8821a1ant_display_coex_info()
2290 u4_tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0xcb4); in ex_btc8821a1ant_display_coex_info()
2291 seq_printf(m, "\n %-35s = 0x%x/ 0x%x/ 0x%x", in ex_btc8821a1ant_display_coex_info()
2292 "0xcb4[29:28]/0xcb4[7:0]/0x974[9:8]", in ex_btc8821a1ant_display_coex_info()
2293 (u4_tmp[0] & 0x30000000) >> 28, in ex_btc8821a1ant_display_coex_info()
2294 u4_tmp[0] & 0xff, in ex_btc8821a1ant_display_coex_info()
2295 u1_tmp[0] & 0x3); in ex_btc8821a1ant_display_coex_info()
2297 u1_tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x40); in ex_btc8821a1ant_display_coex_info()
2298 u4_tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x4c); in ex_btc8821a1ant_display_coex_info()
2299 u1_tmp[1] = btcoexist->btc_read_1byte(btcoexist, 0x64); in ex_btc8821a1ant_display_coex_info()
2300 seq_printf(m, "\n %-35s = 0x%x/ 0x%x/ 0x%x", in ex_btc8821a1ant_display_coex_info()
2301 "0x40/0x4c[24:23]/0x64[0]", in ex_btc8821a1ant_display_coex_info()
2302 u1_tmp[0], ((u4_tmp[0] & 0x01800000) >> 23), in ex_btc8821a1ant_display_coex_info()
2303 u1_tmp[1] & 0x1); in ex_btc8821a1ant_display_coex_info()
2305 u4_tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x550); in ex_btc8821a1ant_display_coex_info()
2306 u1_tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x522); in ex_btc8821a1ant_display_coex_info()
2307 seq_printf(m, "\n %-35s = 0x%x/ 0x%x", "0x550(bcn ctrl)/0x522", in ex_btc8821a1ant_display_coex_info()
2308 u4_tmp[0], u1_tmp[0]); in ex_btc8821a1ant_display_coex_info()
2310 u4_tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0xc50); in ex_btc8821a1ant_display_coex_info()
2311 seq_printf(m, "\n %-35s = 0x%x", "0xc50(dig)", in ex_btc8821a1ant_display_coex_info()
2312 u4_tmp[0] & 0xff); in ex_btc8821a1ant_display_coex_info()
2314 u4_tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0xf48); in ex_btc8821a1ant_display_coex_info()
2315 u1_tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0xa5d); in ex_btc8821a1ant_display_coex_info()
2316 u1_tmp[1] = btcoexist->btc_read_1byte(btcoexist, 0xa5c); in ex_btc8821a1ant_display_coex_info()
2317 seq_printf(m, "\n %-35s = 0x%x/ 0x%x", "OFDM-FA/ CCK-FA", in ex_btc8821a1ant_display_coex_info()
2318 u4_tmp[0], (u1_tmp[0] << 8) + u1_tmp[1]); in ex_btc8821a1ant_display_coex_info()
2320 u4_tmp[0] = btcoexist->btc_read_4byte(btcoexist, 0x6c0); in ex_btc8821a1ant_display_coex_info()
2321 u4_tmp[1] = btcoexist->btc_read_4byte(btcoexist, 0x6c4); in ex_btc8821a1ant_display_coex_info()
2322 u4_tmp[2] = btcoexist->btc_read_4byte(btcoexist, 0x6c8); in ex_btc8821a1ant_display_coex_info()
2323 u1_tmp[0] = btcoexist->btc_read_1byte(btcoexist, 0x6cc); in ex_btc8821a1ant_display_coex_info()
2324 seq_printf(m, "\n %-35s = 0x%x/ 0x%x/ 0x%x/ 0x%x", in ex_btc8821a1ant_display_coex_info()
2325 "0x6c0/0x6c4/0x6c8/0x6cc(coexTable)", in ex_btc8821a1ant_display_coex_info()
2326 u4_tmp[0], u4_tmp[1], u4_tmp[2], u1_tmp[0]); in ex_btc8821a1ant_display_coex_info()
2328 seq_printf(m, "\n %-35s = %d/ %d", "0x770(high-pri rx/tx)", in ex_btc8821a1ant_display_coex_info()
2330 seq_printf(m, "\n %-35s = %d/ %d", "0x774(low-pri rx/tx)", in ex_btc8821a1ant_display_coex_info()
2359 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 0); in ex_btc8821a1ant_ips_notify()
2361 NORMAL_EXEC, 0); in ex_btc8821a1ant_ips_notify()
2397 u32 wifi_link_status = 0; in ex_btc8821a1ant_scan_notify()
2398 u32 num_of_wifi_link = 0; in ex_btc8821a1ant_scan_notify()
2438 btc8821a1ant_limited_tx(btcoexist, NORMAL_EXEC, 0, 0, 0, 0); in ex_btc8821a1ant_scan_notify()
2479 u32 wifi_link_status = 0; in ex_btc8821a1ant_connect_notify()
2480 u32 num_of_wifi_link = 0; in ex_btc8821a1ant_connect_notify()
2500 coex_dm->arp_cnt = 0; in ex_btc8821a1ant_connect_notify()
2505 coex_dm->arp_cnt = 0; in ex_btc8821a1ant_connect_notify()
2512 btc8821a1ant_limited_tx(btcoexist, NORMAL_EXEC, 0, 0, 0, 0); in ex_btc8821a1ant_connect_notify()
2551 u8 h2c_parameter[3] = {0}; in ex_btc8821a1ant_media_status_notify()
2573 coex_dm->arp_cnt = 0; in ex_btc8821a1ant_media_status_notify()
2582 h2c_parameter[0] = 0x0; in ex_btc8821a1ant_media_status_notify()
2586 h2c_parameter[2] = 0x30; in ex_btc8821a1ant_media_status_notify()
2588 h2c_parameter[2] = 0x20; in ex_btc8821a1ant_media_status_notify()
2591 coex_dm->wifi_chnl_info[0] = h2c_parameter[0]; in ex_btc8821a1ant_media_status_notify()
2596 "[BTCoex], FW write 0x66 = 0x%x\n", in ex_btc8821a1ant_media_status_notify()
2597 h2c_parameter[0] << 16 | in ex_btc8821a1ant_media_status_notify()
2601 btcoexist->btc_fill_h2c(btcoexist, 0x66, 3, h2c_parameter); in ex_btc8821a1ant_media_status_notify()
2611 u32 wifi_link_status = 0; in ex_btc8821a1ant_special_packet_notify()
2612 u32 num_of_wifi_link = 0; in ex_btc8821a1ant_special_packet_notify()
2645 coex_sta->special_pkt_period_cnt = 0; in ex_btc8821a1ant_special_packet_notify()
2651 btc8821a1ant_limited_tx(btcoexist, NORMAL_EXEC, 0, 0, 0, 0); in ex_btc8821a1ant_special_packet_notify()
2692 u8 bt_info = 0; in ex_btc8821a1ant_bt_info_notify()
2693 u8 rsp_source = 0; in ex_btc8821a1ant_bt_info_notify()
2703 rsp_source = tmp_buf[0] & 0xf; in ex_btc8821a1ant_bt_info_notify()
2711 for (i = 0; i < length; i++) { in ex_btc8821a1ant_bt_info_notify()
2717 "0x%02x]\n", tmp_buf[i]); in ex_btc8821a1ant_bt_info_notify()
2720 "0x%02x, ", tmp_buf[i]); in ex_btc8821a1ant_bt_info_notify()
2725 /* [3:0] */ in ex_btc8821a1ant_bt_info_notify()
2727 coex_sta->bt_info_c2h[rsp_source][2] & 0xf; in ex_btc8821a1ant_bt_info_notify()
2735 (coex_sta->bt_info_c2h[rsp_source][2] & 0x40); in ex_btc8821a1ant_bt_info_notify()
2739 /* BT into is responded by BT FW and BT RF REG 0x3C != in ex_btc8821a1ant_bt_info_notify()
2740 * 0x15 => Need to switch BT TRx Mask in ex_btc8821a1ant_bt_info_notify()
2743 "[BTCoex], Switch BT TRx Mask since BT RF REG 0x3C != 0x15\n"); in ex_btc8821a1ant_bt_info_notify()
2745 0x3c, 0x15); in ex_btc8821a1ant_bt_info_notify()
2814 * (for CSR case: A2DP idle --> 0x41) in ex_btc8821a1ant_bt_info_notify()
2816 bt_info = bt_info & 0x1f; in ex_btc8821a1ant_bt_info_notify()
2877 btc8821a1ant_power_save_state(btcoexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0); in ex_btc8821a1ant_halt_notify()
2878 btc8821a1ant_ps_tdma(btcoexist, FORCE_EXEC, false, 0); in ex_btc8821a1ant_halt_notify()
2909 0x0, 0x0); in ex_btc8821a1ant_pnp_notify()
2910 btc8821a1ant_ps_tdma(btcoexist, NORMAL_EXEC, false, 0); in ex_btc8821a1ant_pnp_notify()
2928 u32 fw_ver = 0, bt_patch_ver = 0; in ex_btc8821a1ant_periodical()
2952 "[BTCoex], CoexVer/ FwVer/ PatchVer = %d_%x/ 0x%x/ 0x%x(%d)\n", in ex_btc8821a1ant_periodical()