Lines Matching defs:rtwdev
78 static u8 _kpath(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx) in _kpath()
92 static void _rfk_backup_bb_reg(struct rtw89_dev *rtwdev, u32 backup_bb_reg_val[]) in _rfk_backup_bb_reg()
106 static void _rfk_backup_rf_reg(struct rtw89_dev *rtwdev, u32 backup_rf_reg_val[], in _rfk_backup_rf_reg()
121 static void _rfk_restore_bb_reg(struct rtw89_dev *rtwdev, u32 backup_bb_reg_val[]) in _rfk_restore_bb_reg()
134 static void _rfk_restore_rf_reg(struct rtw89_dev *rtwdev, u32 backup_rf_reg_val[], in _rfk_restore_rf_reg()
149 static void _wait_rx_mode(struct rtw89_dev *rtwdev, u8 kpath) in _wait_rx_mode()
168 static void _dack_dump(struct rtw89_dev *rtwdev) in _dack_dump()
216 static void _addck_backup(struct rtw89_dev *rtwdev) in _addck_backup()
233 static void _addck_reload(struct rtw89_dev *rtwdev) in _addck_reload()
249 static void _dack_backup_s0(struct rtw89_dev *rtwdev) in _dack_backup_s0()
275 static void _dack_backup_s1(struct rtw89_dev *rtwdev) in _dack_backup_s1()
301 static void _dack_reload_by_path(struct rtw89_dev *rtwdev, in _dack_reload_by_path()
359 static void _dack_reload(struct rtw89_dev *rtwdev, enum rtw89_rf_path path) in _dack_reload()
367 static void _addck(struct rtw89_dev *rtwdev) in _addck()
405 static void _dack_reset(struct rtw89_dev *rtwdev, u8 path) in _dack_reset()
441 static void rtw8852c_txck_force(struct rtw89_dev *rtwdev, u8 path, bool force, in rtw8852c_txck_force()
453 static void rtw8852c_rxck_force(struct rtw89_dev *rtwdev, u8 path, bool force, in rtw8852c_rxck_force()
487 static bool _check_dack_done(struct rtw89_dev *rtwdev, bool s0) in _check_dack_done()
506 static void _dack_s0(struct rtw89_dev *rtwdev) in _dack_s0()
533 static void _dack_s1(struct rtw89_dev *rtwdev) in _dack_s1()
560 static void _dack(struct rtw89_dev *rtwdev) in _dack()
566 static void _drck(struct rtw89_dev *rtwdev) in _drck()
586 static void _dac_cal(struct rtw89_dev *rtwdev, bool force) in _dac_cal()
645 static void rtw8852c_disable_rxagc(struct rtw89_dev *rtwdev, u8 path, u8 en_rxgac) in rtw8852c_disable_rxagc()
653 static void _iqk_rxk_setting(struct rtw89_dev *rtwdev, u8 path) in _iqk_rxk_setting()
697 static bool _iqk_check_cal(struct rtw89_dev *rtwdev, u8 path, u8 ktype) in _iqk_check_cal()
717 static bool _iqk_one_shot(struct rtw89_dev *rtwdev, in _iqk_one_shot()
780 static bool _rxk_group_sel(struct rtw89_dev *rtwdev, in _rxk_group_sel()
865 static bool _iqk_nbrxk(struct rtw89_dev *rtwdev, in _iqk_nbrxk()
941 static bool _txk_group_sel(struct rtw89_dev *rtwdev, in _txk_group_sel()
1010 static bool _iqk_nbtxk(struct rtw89_dev *rtwdev, in _iqk_nbtxk()
1063 static bool _lok_finetune_check(struct rtw89_dev *rtwdev, u8 path) in _lok_finetune_check()
1101 static bool _iqk_lok(struct rtw89_dev *rtwdev, in _iqk_lok()
1211 static void _iqk_txk_setting(struct rtw89_dev *rtwdev, u8 path) in _iqk_txk_setting()
1257 static void _iqk_info_iqk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, in _iqk_info_iqk()
1301 static void _iqk_by_path(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, u8 path) in _iqk_by_path()
1322 static void _iqk_get_ch_info(struct rtw89_dev *rtwdev, in _iqk_get_ch_info()
1365 static void _iqk_start_iqk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, in _iqk_start_iqk()
1371 static void _iqk_restore(struct rtw89_dev *rtwdev, u8 path) in _iqk_restore()
1395 static void _iqk_afebb_restore(struct rtw89_dev *rtwdev, in _iqk_afebb_restore()
1405 static void _iqk_preset(struct rtw89_dev *rtwdev, u8 path) in _iqk_preset()
1418 static void _iqk_macbb_setting(struct rtw89_dev *rtwdev, in _iqk_macbb_setting()
1451 static void _rck(struct rtw89_dev *rtwdev, enum rtw89_rf_path path) in _rck()
1486 static void _iqk_init(struct rtw89_dev *rtwdev) in _iqk_init()
1517 static void _doiqk(struct rtw89_dev *rtwdev, bool force, in _doiqk()
1546 static void _iqk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, bool force) in _iqk()
1564 static void _rx_dck_value_rewrite(struct rtw89_dev *rtwdev, u8 path, u8 addr, in _rx_dck_value_rewrite()
1591 static bool _rx_dck_rek_check(struct rtw89_dev *rtwdev, u8 path) in _rx_dck_rek_check()
1639 static void _rx_dck_fix_if_need(struct rtw89_dev *rtwdev, u8 path, u8 addr, in _rx_dck_fix_if_need()
1664 static void _rx_dck_recover(struct rtw89_dev *rtwdev, u8 path) in _rx_dck_recover()
1713 static void _rx_dck_toggle(struct rtw89_dev *rtwdev, u8 path) in _rx_dck_toggle()
1732 static void _set_rx_dck(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, u8 path, in _set_rx_dck()
1751 u8 _rx_dck_channel_calc(struct rtw89_dev *rtwdev, const struct rtw89_chan *chan) in _rx_dck_channel_calc()
1828 static void _rf_direct_cntrl(struct rtw89_dev *rtwdev, in _rf_direct_cntrl()
1840 static void _dpk_bkup_kip(struct rtw89_dev *rtwdev, const u32 reg[], in _dpk_bkup_kip()
1854 static void _dpk_reload_kip(struct rtw89_dev *rtwdev, const u32 reg[], in _dpk_reload_kip()
1867 static u8 _dpk_one_shot(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_one_shot()
1901 static void _dpk_information(struct rtw89_dev *rtwdev, in _dpk_information()
1926 static void _dpk_bb_afe_setting(struct rtw89_dev *rtwdev, in _dpk_bb_afe_setting()
1958 static void _dpk_bb_afe_restore(struct rtw89_dev *rtwdev, u8 path) in _dpk_bb_afe_restore()
1974 static void _dpk_tssi_pause(struct rtw89_dev *rtwdev, in _dpk_tssi_pause()
1984 static void _dpk_kip_control_rfc(struct rtw89_dev *rtwdev, u8 path, bool ctrl_by_kip) in _dpk_kip_control_rfc()
1991 static void _dpk_txpwr_bb_force(struct rtw89_dev *rtwdev, u8 path, bool force) in _dpk_txpwr_bb_force()
2000 static void _dpk_kip_restore(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_kip_restore()
2009 static void _dpk_lbk_rxiqk(struct rtw89_dev *rtwdev, in _dpk_lbk_rxiqk()
2057 static void _dpk_rf_setting(struct rtw89_dev *rtwdev, u8 gain, in _dpk_rf_setting()
2100 static void _dpk_tpg_sel(struct rtw89_dev *rtwdev, enum rtw89_rf_path path, u8 kidx) in _dpk_tpg_sel()
2123 static bool _dpk_sync_check(struct rtw89_dev *rtwdev, enum rtw89_rf_path path, u8 kidx) in _dpk_sync_check()
2175 static u16 _dpk_dgain_read(struct rtw89_dev *rtwdev) in _dpk_dgain_read()
2188 static u8 _dpk_gainloss_read(struct rtw89_dev *rtwdev) in _dpk_gainloss_read()
2202 static void _dpk_kset_query(struct rtw89_dev *rtwdev, enum rtw89_rf_path path) in _dpk_kset_query()
2211 static void _dpk_kip_set_txagc(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_kip_set_txagc()
2223 static u8 _dpk_gainloss(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_gainloss()
2235 static enum dpk_pas_result _dpk_pas_read(struct rtw89_dev *rtwdev, bool is_check) in _dpk_pas_read()
2280 static bool _dpk_kip_set_rxagc(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_kip_set_rxagc()
2293 static void _dpk_read_rxsram(struct rtw89_dev *rtwdev) in _dpk_read_rxsram()
2309 static void _dpk_bypass_rxiqc(struct rtw89_dev *rtwdev, enum rtw89_rf_path path) in _dpk_bypass_rxiqc()
2317 static u8 _dpk_agc(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_agc()
2425 static void _dpk_set_mdpd_para(struct rtw89_dev *rtwdev, u8 order) in _dpk_set_mdpd_para()
2447 static void _dpk_idl_mpa(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_idl_mpa()
2496 static bool _dpk_reload_check(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_reload_check()
2523 static void _dpk_kip_pwr_clk_onoff(struct rtw89_dev *rtwdev, bool turn_on) in _dpk_kip_pwr_clk_onoff()
2529 static void _dpk_kip_preset_8852c(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_kip_preset_8852c()
2550 static void _dpk_para_query(struct rtw89_dev *rtwdev, enum rtw89_rf_path path, u8 kidx) in _dpk_para_query()
2567 static void _dpk_gain_normalize_8852c(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_gain_normalize_8852c()
2586 static u8 _dpk_order_convert(struct rtw89_dev *rtwdev) in _dpk_order_convert()
2614 static void _dpk_on(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_on()
2636 static bool _dpk_main(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_main()
2674 static void _dpk_init(struct rtw89_dev *rtwdev, u8 path) in _dpk_init()
2682 static void _dpk_drf_direct_cntrl(struct rtw89_dev *rtwdev, u8 path, bool is_bybb) in _dpk_drf_direct_cntrl()
2690 static void _dpk_cal_select(struct rtw89_dev *rtwdev, bool force, in _dpk_cal_select()
2757 static bool _dpk_bypass_check(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy) in _dpk_bypass_check()
2780 static void _dpk_force_bypass(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy) in _dpk_force_bypass()
2792 static void _dpk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, bool force) in _dpk()
2808 static void _dpk_onoff(struct rtw89_dev *rtwdev, in _dpk_onoff()
2824 static void _dpk_track(struct rtw89_dev *rtwdev) in _dpk_track()
2892 static void _tssi_set_sys(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _tssi_set_sys()
2910 static void _tssi_ini_txpwr_ctrl_bb(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _tssi_ini_txpwr_ctrl_bb()
2918 static void _tssi_ini_txpwr_ctrl_bb_he_tb(struct rtw89_dev *rtwdev, in _tssi_ini_txpwr_ctrl_bb_he_tb()
2927 static void _tssi_set_dck(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _tssi_set_dck()
2946 static void _tssi_set_bbgain_split(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _tssi_set_bbgain_split()
2954 static void _tssi_set_tmeter_tbl(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _tssi_set_tmeter_tbl()
3140 static void _tssi_slope_cal_org(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _tssi_slope_cal_org()
3157 static void _tssi_set_aligk_default(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _tssi_set_aligk_default()
3183 static void _tssi_set_slope(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _tssi_set_slope()
3191 static void _tssi_run_slope(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _tssi_run_slope()
3199 static void _tssi_set_track(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _tssi_set_track()
3207 static void _tssi_set_txagc_offset_mv_avg(struct rtw89_dev *rtwdev, in _tssi_set_txagc_offset_mv_avg()
3216 static void _tssi_enable(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy) in _tssi_enable()
3245 static void _tssi_disable(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy) in _tssi_disable()
3270 static u32 _tssi_get_cck_group(struct rtw89_dev *rtwdev, u8 ch) in _tssi_get_cck_group()
3296 static u32 _tssi_get_ofdm_group(struct rtw89_dev *rtwdev, u8 ch) in _tssi_get_ofdm_group()
3364 static u32 _tssi_get_6g_ofdm_group(struct rtw89_dev *rtwdev, u8 ch) in _tssi_get_6g_ofdm_group()
3484 static u32 _tssi_get_trim_group(struct rtw89_dev *rtwdev, u8 ch) in _tssi_get_trim_group()
3512 static u32 _tssi_get_6g_trim_group(struct rtw89_dev *rtwdev, u8 ch) in _tssi_get_6g_trim_group()
3568 static s8 _tssi_get_ofdm_de(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _tssi_get_ofdm_de()
3631 static s8 _tssi_get_ofdm_trim_de(struct rtw89_dev *rtwdev, in _tssi_get_ofdm_trim_de()
3697 static void _tssi_set_efuse_to_de(struct rtw89_dev *rtwdev, in _tssi_set_efuse_to_de()
3763 static void rtw8852c_tssi_cont_en(struct rtw89_dev *rtwdev, bool en, in rtw8852c_tssi_cont_en()
3782 void rtw8852c_tssi_cont_en_phyidx(struct rtw89_dev *rtwdev, bool en, u8 phy_idx) in rtw8852c_tssi_cont_en_phyidx()
3795 static void _bw_setting(struct rtw89_dev *rtwdev, enum rtw89_rf_path path, in _bw_setting()
3840 static void _ctrl_bw(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _ctrl_bw()
3872 static void _ch_setting(struct rtw89_dev *rtwdev, enum rtw89_rf_path path, in _ch_setting()
3908 static void _ctrl_ch(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _ctrl_ch()
3934 static void _rxbb_bw(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _rxbb_bw()
3968 static void _lck_keep_thermal(struct rtw89_dev *rtwdev) in _lck_keep_thermal()
3981 static void _lck(struct rtw89_dev *rtwdev) in _lck()
4003 void rtw8852c_lck_track(struct rtw89_dev *rtwdev) in rtw8852c_lck_track()
4026 void rtw8852c_lck_init(struct rtw89_dev *rtwdev) in rtw8852c_lck_init()
4032 void rtw8852c_ctrl_bw_ch(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in rtw8852c_ctrl_bw_ch()
4041 void rtw8852c_set_channel_rf(struct rtw89_dev *rtwdev, in rtw8852c_set_channel_rf()
4050 void rtw8852c_mcc_get_ch_info(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx) in rtw8852c_mcc_get_ch_info()
4069 void rtw8852c_rck(struct rtw89_dev *rtwdev) in rtw8852c_rck()
4077 void rtw8852c_dack(struct rtw89_dev *rtwdev) in rtw8852c_dack()
4086 void rtw8852c_iqk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx) in rtw8852c_iqk()
4104 static void _rx_dck(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _rx_dck()
4158 void rtw8852c_rx_dck(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, bool is_afe) in rtw8852c_rx_dck()
4165 void rtw8852c_rx_dck_track(struct rtw89_dev *rtwdev) in rtw8852c_rx_dck_track()
4216 void rtw8852c_dpk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx) in rtw8852c_dpk()
4233 void rtw8852c_dpk_track(struct rtw89_dev *rtwdev) in rtw8852c_dpk_track()
4238 void rtw8852c_tssi(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy) in rtw8852c_tssi()
4273 void rtw8852c_tssi_scan(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy) in rtw8852c_tssi_scan()
4309 static void rtw8852c_tssi_default_txagc(struct rtw89_dev *rtwdev, in rtw8852c_tssi_default_txagc()
4356 void rtw8852c_wifi_scan_notify(struct rtw89_dev *rtwdev, in rtw8852c_wifi_scan_notify()