Lines Matching refs:btdm
222 struct btdm_8723 *btdm) in rtl8723e_dm_bt_btdm_structure_reload() argument
224 btdm->all_off = false; in rtl8723e_dm_bt_btdm_structure_reload()
225 btdm->agc_table_en = false; in rtl8723e_dm_bt_btdm_structure_reload()
226 btdm->adc_back_off_on = false; in rtl8723e_dm_bt_btdm_structure_reload()
227 btdm->b2_ant_hid_en = false; in rtl8723e_dm_bt_btdm_structure_reload()
228 btdm->low_penalty_rate_adaptive = false; in rtl8723e_dm_bt_btdm_structure_reload()
229 btdm->rf_rx_lpf_shrink = false; in rtl8723e_dm_bt_btdm_structure_reload()
230 btdm->reject_aggre_pkt = false; in rtl8723e_dm_bt_btdm_structure_reload()
232 btdm->tdma_on = false; in rtl8723e_dm_bt_btdm_structure_reload()
233 btdm->tdma_ant = TDMA_2ANT; in rtl8723e_dm_bt_btdm_structure_reload()
234 btdm->tdma_nav = TDMA_NAV_OFF; in rtl8723e_dm_bt_btdm_structure_reload()
235 btdm->tdma_dac_swing = TDMA_DAC_SWING_OFF; in rtl8723e_dm_bt_btdm_structure_reload()
236 btdm->fw_dac_swing_lvl = 0x20; in rtl8723e_dm_bt_btdm_structure_reload()
238 btdm->tra_tdma_on = false; in rtl8723e_dm_bt_btdm_structure_reload()
239 btdm->tra_tdma_ant = TDMA_2ANT; in rtl8723e_dm_bt_btdm_structure_reload()
240 btdm->tra_tdma_nav = TDMA_NAV_OFF; in rtl8723e_dm_bt_btdm_structure_reload()
241 btdm->ignore_wlan_act = false; in rtl8723e_dm_bt_btdm_structure_reload()
243 btdm->ps_tdma_on = false; in rtl8723e_dm_bt_btdm_structure_reload()
244 btdm->ps_tdma_byte[0] = 0x0; in rtl8723e_dm_bt_btdm_structure_reload()
245 btdm->ps_tdma_byte[1] = 0x0; in rtl8723e_dm_bt_btdm_structure_reload()
246 btdm->ps_tdma_byte[2] = 0x0; in rtl8723e_dm_bt_btdm_structure_reload()
247 btdm->ps_tdma_byte[3] = 0x8; in rtl8723e_dm_bt_btdm_structure_reload()
248 btdm->ps_tdma_byte[4] = 0x0; in rtl8723e_dm_bt_btdm_structure_reload()
250 btdm->pta_on = true; in rtl8723e_dm_bt_btdm_structure_reload()
251 btdm->val_0x6c0 = 0x5a5aaaaa; in rtl8723e_dm_bt_btdm_structure_reload()
252 btdm->val_0x6c8 = 0xcc; in rtl8723e_dm_bt_btdm_structure_reload()
253 btdm->val_0x6cc = 0x3; in rtl8723e_dm_bt_btdm_structure_reload()
255 btdm->sw_dac_swing_on = false; in rtl8723e_dm_bt_btdm_structure_reload()
256 btdm->sw_dac_swing_lvl = 0xc0; in rtl8723e_dm_bt_btdm_structure_reload()
257 btdm->wlan_act_hi = 0x20; in rtl8723e_dm_bt_btdm_structure_reload()
258 btdm->wlan_act_lo = 0x10; in rtl8723e_dm_bt_btdm_structure_reload()
259 btdm->bt_retry_index = 2; in rtl8723e_dm_bt_btdm_structure_reload()
261 btdm->dec_bt_pwr = false; in rtl8723e_dm_bt_btdm_structure_reload()
265 struct btdm_8723 *btdm) in rtl8723e_dm_bt_btdm_structure_reload_all_off() argument
267 rtl8723e_dm_bt_btdm_structure_reload(hw, btdm); in rtl8723e_dm_bt_btdm_structure_reload_all_off()
268 btdm->all_off = true; in rtl8723e_dm_bt_btdm_structure_reload_all_off()
269 btdm->pta_on = false; in rtl8723e_dm_bt_btdm_structure_reload_all_off()
270 btdm->wlan_act_hi = 0x10; in rtl8723e_dm_bt_btdm_structure_reload_all_off()
633 struct btdm_8723 *btdm) in rtl8723e_dm_bt_set_bt_dm() argument
636 struct btdm_8723 *btdm_8723 = &hal_coex_8723.btdm; in rtl8723e_dm_bt_set_bt_dm()
649 if (memcmp(btdm_8723, btdm, sizeof(struct btdm_8723)) == 0) { in rtl8723e_dm_bt_set_bt_dm()
658 btdm_8723->all_off, btdm->all_off); in rtl8723e_dm_bt_set_bt_dm()
661 btdm_8723->agc_table_en, btdm->agc_table_en); in rtl8723e_dm_bt_set_bt_dm()
665 btdm->adc_back_off_on); in rtl8723e_dm_bt_set_bt_dm()
668 btdm_8723->b2_ant_hid_en, btdm->b2_ant_hid_en); in rtl8723e_dm_bt_set_bt_dm()
672 btdm->low_penalty_rate_adaptive); in rtl8723e_dm_bt_set_bt_dm()
676 btdm->rf_rx_lpf_shrink); in rtl8723e_dm_bt_set_bt_dm()
680 btdm->reject_aggre_pkt); in rtl8723e_dm_bt_set_bt_dm()
683 btdm_8723->tdma_on, btdm->tdma_on); in rtl8723e_dm_bt_set_bt_dm()
686 btdm_8723->tdma_ant, btdm->tdma_ant); in rtl8723e_dm_bt_set_bt_dm()
689 btdm_8723->tdma_nav, btdm->tdma_nav); in rtl8723e_dm_bt_set_bt_dm()
692 btdm_8723->tdma_dac_swing, btdm->tdma_dac_swing); in rtl8723e_dm_bt_set_bt_dm()
696 btdm->fw_dac_swing_lvl); in rtl8723e_dm_bt_set_bt_dm()
700 btdm_8723->tra_tdma_on, btdm->tra_tdma_on); in rtl8723e_dm_bt_set_bt_dm()
703 btdm_8723->tra_tdma_ant, btdm->tra_tdma_ant); in rtl8723e_dm_bt_set_bt_dm()
706 btdm_8723->tra_tdma_nav, btdm->tra_tdma_nav); in rtl8723e_dm_bt_set_bt_dm()
709 btdm_8723->ps_tdma_on, btdm->ps_tdma_on); in rtl8723e_dm_bt_set_bt_dm()
714 btdm->ps_tdma_byte[i]); in rtl8723e_dm_bt_set_bt_dm()
719 btdm->ignore_wlan_act); in rtl8723e_dm_bt_set_bt_dm()
724 btdm_8723->pta_on, btdm->pta_on); in rtl8723e_dm_bt_set_bt_dm()
727 btdm_8723->val_0x6c0, btdm->val_0x6c0); in rtl8723e_dm_bt_set_bt_dm()
730 btdm_8723->val_0x6c8, btdm->val_0x6c8); in rtl8723e_dm_bt_set_bt_dm()
733 btdm_8723->val_0x6cc, btdm->val_0x6cc); in rtl8723e_dm_bt_set_bt_dm()
737 btdm->sw_dac_swing_on); in rtl8723e_dm_bt_set_bt_dm()
741 btdm->sw_dac_swing_lvl); in rtl8723e_dm_bt_set_bt_dm()
744 btdm_8723->wlan_act_hi, btdm->wlan_act_hi); in rtl8723e_dm_bt_set_bt_dm()
747 btdm_8723->wlan_act_lo, btdm->wlan_act_lo); in rtl8723e_dm_bt_set_bt_dm()
750 btdm_8723->bt_retry_index, btdm->bt_retry_index); in rtl8723e_dm_bt_set_bt_dm()
752 memcpy(btdm_8723, btdm, sizeof(struct btdm_8723)); in rtl8723e_dm_bt_set_bt_dm()
766 if (btdm->all_off) { in rtl8723e_dm_bt_set_bt_dm()
773 rtl8723e_dm_bt_reject_ap_aggregated_packet(hw, btdm->reject_aggre_pkt); in rtl8723e_dm_bt_set_bt_dm()
775 if (btdm->low_penalty_rate_adaptive) in rtl8723e_dm_bt_set_bt_dm()
781 if (btdm->rf_rx_lpf_shrink) in rtl8723e_dm_bt_set_bt_dm()
788 if (btdm->agc_table_en) in rtl8723e_dm_bt_set_bt_dm()
793 if (btdm->adc_back_off_on) in rtl8723e_dm_bt_set_bt_dm()
798 rtl8723e_dm_bt_set_fw_bt_retry_index(hw, btdm->bt_retry_index); in rtl8723e_dm_bt_set_bt_dm()
800 rtl8723e_dm_bt_set_fw_dac_swing_level(hw, btdm->fw_dac_swing_lvl); in rtl8723e_dm_bt_set_bt_dm()
801 rtl8723e_dm_bt_set_fw_wlan_act(hw, btdm->wlan_act_hi, in rtl8723e_dm_bt_set_bt_dm()
802 btdm->wlan_act_lo); in rtl8723e_dm_bt_set_bt_dm()
804 rtl8723e_dm_bt_set_coex_table(hw, btdm->val_0x6c0, in rtl8723e_dm_bt_set_bt_dm()
805 btdm->val_0x6c8, btdm->val_0x6cc); in rtl8723e_dm_bt_set_bt_dm()
806 rtl8723e_dm_bt_set_hw_pta_mode(hw, btdm->pta_on); in rtl8723e_dm_bt_set_bt_dm()
813 if (btdm->b2_ant_hid_en) { in rtl8723e_dm_bt_set_bt_dm()
815 rtl8723e_dm_bt_set_fw_tra_tdma_ctrl(hw, btdm->tra_tdma_on, in rtl8723e_dm_bt_set_bt_dm()
816 btdm->tra_tdma_ant, in rtl8723e_dm_bt_set_bt_dm()
817 btdm->tra_tdma_nav); in rtl8723e_dm_bt_set_bt_dm()
818 rtl8723e_dm_bt_set_fw_tdma_ctrl(hw, false, btdm->tdma_ant, in rtl8723e_dm_bt_set_bt_dm()
819 btdm->tdma_nav, in rtl8723e_dm_bt_set_bt_dm()
820 btdm->tdma_dac_swing); in rtl8723e_dm_bt_set_bt_dm()
824 btdm->ignore_wlan_act); in rtl8723e_dm_bt_set_bt_dm()
831 } else if (btdm->tdma_on) { in rtl8723e_dm_bt_set_bt_dm()
838 btdm->ignore_wlan_act); in rtl8723e_dm_bt_set_bt_dm()
843 rtl8723e_dm_bt_set_fw_tra_tdma_ctrl(hw, btdm->tra_tdma_on, in rtl8723e_dm_bt_set_bt_dm()
844 btdm->tra_tdma_ant, in rtl8723e_dm_bt_set_bt_dm()
845 btdm->tra_tdma_nav); in rtl8723e_dm_bt_set_bt_dm()
846 rtl8723e_dm_bt_set_fw_tdma_ctrl(hw, true, btdm->tdma_ant, in rtl8723e_dm_bt_set_bt_dm()
847 btdm->tdma_nav, in rtl8723e_dm_bt_set_bt_dm()
848 btdm->tdma_dac_swing); in rtl8723e_dm_bt_set_bt_dm()
849 } else if (btdm->ps_tdma_on) { in rtl8723e_dm_bt_set_bt_dm()
855 rtl8723e_dm_bt_set_fw_tra_tdma_ctrl(hw, btdm->tra_tdma_on, in rtl8723e_dm_bt_set_bt_dm()
856 btdm->tra_tdma_ant, in rtl8723e_dm_bt_set_bt_dm()
857 btdm->tra_tdma_nav); in rtl8723e_dm_bt_set_bt_dm()
858 rtl8723e_dm_bt_set_fw_tdma_ctrl(hw, false, btdm->tdma_ant, in rtl8723e_dm_bt_set_bt_dm()
859 btdm->tdma_nav, in rtl8723e_dm_bt_set_bt_dm()
860 btdm->tdma_dac_swing); in rtl8723e_dm_bt_set_bt_dm()
864 btdm->ignore_wlan_act); in rtl8723e_dm_bt_set_bt_dm()
865 rtl8723e_dm_bt_set_fw_3a(hw, btdm->ps_tdma_byte[0], in rtl8723e_dm_bt_set_bt_dm()
866 btdm->ps_tdma_byte[1], in rtl8723e_dm_bt_set_bt_dm()
867 btdm->ps_tdma_byte[2], in rtl8723e_dm_bt_set_bt_dm()
868 btdm->ps_tdma_byte[3], in rtl8723e_dm_bt_set_bt_dm()
869 btdm->ps_tdma_byte[4]); in rtl8723e_dm_bt_set_bt_dm()
876 rtl8723e_dm_bt_set_fw_tra_tdma_ctrl(hw, btdm->tra_tdma_on, in rtl8723e_dm_bt_set_bt_dm()
877 btdm->tra_tdma_ant, in rtl8723e_dm_bt_set_bt_dm()
878 btdm->tra_tdma_nav); in rtl8723e_dm_bt_set_bt_dm()
879 rtl8723e_dm_bt_set_fw_tdma_ctrl(hw, false, btdm->tdma_ant, in rtl8723e_dm_bt_set_bt_dm()
880 btdm->tdma_nav, in rtl8723e_dm_bt_set_bt_dm()
881 btdm->tdma_dac_swing); in rtl8723e_dm_bt_set_bt_dm()
885 btdm->ignore_wlan_act); in rtl8723e_dm_bt_set_bt_dm()
898 rtl8723e_dm_bt_set_sw_full_time_dac_swing(hw, btdm->sw_dac_swing_on, in rtl8723e_dm_bt_set_bt_dm()
899 btdm->sw_dac_swing_lvl); in rtl8723e_dm_bt_set_bt_dm()
900 rtl8723e_dm_bt_set_fw_dec_bt_pwr(hw, btdm->dec_bt_pwr); in rtl8723e_dm_bt_set_bt_dm()