Lines Matching defs:rtwdev

175 static void _rfk_backup_bb_reg(struct rtw89_dev *rtwdev, u32 backup_bb_reg_val[])  in _rfk_backup_bb_reg()
189 static void _rfk_backup_rf_reg(struct rtw89_dev *rtwdev, u32 backup_rf_reg_val[], in _rfk_backup_rf_reg()
204 static void _rfk_restore_bb_reg(struct rtw89_dev *rtwdev, in _rfk_restore_bb_reg()
218 static void _rfk_restore_rf_reg(struct rtw89_dev *rtwdev, in _rfk_restore_rf_reg()
233 static void _rfk_rf_direct_cntrl(struct rtw89_dev *rtwdev, in _rfk_rf_direct_cntrl()
242 static void _rfk_drf_direct_cntrl(struct rtw89_dev *rtwdev, in _rfk_drf_direct_cntrl()
251 static bool _iqk_check_cal(struct rtw89_dev *rtwdev, u8 path) in _iqk_check_cal()
275 static u8 _kpath(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx) in _kpath()
293 static void _set_rx_dck(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _set_rx_dck()
302 static void _rx_dck(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy) in _rx_dck()
334 static void _rck(struct rtw89_dev *rtwdev, enum rtw89_rf_path path) in _rck()
369 static void _afe_init(struct rtw89_dev *rtwdev) in _afe_init()
376 static void _drck(struct rtw89_dev *rtwdev) in _drck()
402 static void _addck_backup(struct rtw89_dev *rtwdev) in _addck_backup()
415 static void _addck_reload(struct rtw89_dev *rtwdev) in _addck_reload()
432 static void _dack_backup_s0(struct rtw89_dev *rtwdev) in _dack_backup_s0()
459 static void _dack_backup_s1(struct rtw89_dev *rtwdev) in _dack_backup_s1()
486 static void _check_addc(struct rtw89_dev *rtwdev, enum rtw89_rf_path path) in _check_addc()
509 static void _addck(struct rtw89_dev *rtwdev) in _addck()
586 static void _check_dadc(struct rtw89_dev *rtwdev, enum rtw89_rf_path path) in _check_dadc()
599 static bool _dack_s0_check_done(struct rtw89_dev *rtwdev, bool part1) in _dack_s0_check_done()
614 static void _dack_s0(struct rtw89_dev *rtwdev) in _dack_s0()
648 static bool _dack_s1_check_done(struct rtw89_dev *rtwdev, bool part1) in _dack_s1_check_done()
663 static void _dack_s1(struct rtw89_dev *rtwdev) in _dack_s1()
698 static void _dack(struct rtw89_dev *rtwdev) in _dack()
704 static void _dack_dump(struct rtw89_dev *rtwdev) in _dack_dump()
754 static void _dac_cal(struct rtw89_dev *rtwdev, bool force) in _dac_cal()
790 static void _iqk_rxk_setting(struct rtw89_dev *rtwdev, u8 path) in _iqk_rxk_setting()
813 static bool _iqk_one_shot(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, in _iqk_one_shot()
868 static bool _rxk_group_sel(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, in _rxk_group_sel()
926 static bool _iqk_nbrxk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, in _iqk_nbrxk()
975 static void _iqk_rxclk_setting(struct rtw89_dev *rtwdev, u8 path) in _iqk_rxclk_setting()
1014 static bool _txk_group_sel(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, u8 path) in _txk_group_sel()
1077 static bool _iqk_nbtxk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, u8 path) in _iqk_nbtxk()
1125 static void _lok_res_table(struct rtw89_dev *rtwdev, u8 path, u8 ibias) in _lok_res_table()
1145 static bool _lok_finetune_check(struct rtw89_dev *rtwdev, u8 path) in _lok_finetune_check()
1189 static bool _iqk_lok(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, u8 path) in _iqk_lok()
1271 static void _iqk_txk_setting(struct rtw89_dev *rtwdev, u8 path) in _iqk_txk_setting()
1301 static void _iqk_txclk_setting(struct rtw89_dev *rtwdev, u8 path) in _iqk_txclk_setting()
1314 static void _iqk_info_iqk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, u8 path) in _iqk_info_iqk()
1345 static void _iqk_by_path(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, u8 path) in _iqk_by_path()
1384 static void _iqk_get_ch_info(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, u8 path) in _iqk_get_ch_info()
1446 static void _iqk_start_iqk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, u8 path) in _iqk_start_iqk()
1451 static void _iqk_restore(struct rtw89_dev *rtwdev, u8 path) in _iqk_restore()
1479 static void _iqk_afebb_restore(struct rtw89_dev *rtwdev, in _iqk_afebb_restore()
1505 static void _iqk_preset(struct rtw89_dev *rtwdev, u8 path) in _iqk_preset()
1527 static void _iqk_macbb_setting(struct rtw89_dev *rtwdev, in _iqk_macbb_setting()
1551 static void _iqk_init(struct rtw89_dev *rtwdev) in _iqk_init()
1582 static void _wait_rx_mode(struct rtw89_dev *rtwdev, u8 kpath) in _wait_rx_mode()
1600 static void _tmac_tx_pause(struct rtw89_dev *rtwdev, enum rtw89_phy_idx band_idx, in _tmac_tx_pause()
1609 static void _doiqk(struct rtw89_dev *rtwdev, bool force, in _doiqk()
1640 static void _iqk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, bool force) in _iqk()
1660 static void _dpk_bkup_kip(struct rtw89_dev *rtwdev, const u32 reg[], in _dpk_bkup_kip()
1673 static void _dpk_reload_kip(struct rtw89_dev *rtwdev, const u32 reg[], in _dpk_reload_kip()
1686 static u8 _dpk_order_convert(struct rtw89_dev *rtwdev) in _dpk_order_convert()
1699 static void _dpk_onoff(struct rtw89_dev *rtwdev, enum rtw89_rf_path path, bool off) in _dpk_onoff()
1713 static void _dpk_one_shot(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_one_shot()
1755 static void _dpk_rx_dck(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_rx_dck()
1762 static void _dpk_information(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_information()
1786 static void _dpk_bb_afe_setting(struct rtw89_dev *rtwdev, in _dpk_bb_afe_setting()
1803 static void _dpk_bb_afe_restore(struct rtw89_dev *rtwdev, in _dpk_bb_afe_restore()
1820 static void _dpk_tssi_pause(struct rtw89_dev *rtwdev, in _dpk_tssi_pause()
1830 static void _dpk_kip_restore(struct rtw89_dev *rtwdev, in _dpk_kip_restore()
1841 static void _dpk_lbk_rxiqk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_lbk_rxiqk()
1885 static void _dpk_get_thermal(struct rtw89_dev *rtwdev, u8 kidx, enum rtw89_rf_path path) in _dpk_get_thermal()
1901 static void _dpk_rf_setting(struct rtw89_dev *rtwdev, u8 gain, in _dpk_rf_setting()
1932 static void _dpk_bypass_rxcfir(struct rtw89_dev *rtwdev, in _dpk_bypass_rxcfir()
1955 void _dpk_tpg_sel(struct rtw89_dev *rtwdev, enum rtw89_rf_path path, u8 kidx) in _dpk_tpg_sel()
1971 static void _dpk_table_select(struct rtw89_dev *rtwdev, in _dpk_table_select()
1983 static bool _dpk_sync_check(struct rtw89_dev *rtwdev, enum rtw89_rf_path path, u8 kidx) in _dpk_sync_check()
2025 static bool _dpk_sync(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_sync()
2033 static u16 _dpk_dgain_read(struct rtw89_dev *rtwdev) in _dpk_dgain_read()
2046 static s8 _dpk_dgain_mapping(struct rtw89_dev *rtwdev, u16 dgain) in _dpk_dgain_mapping()
2094 static u8 _dpk_gainloss_read(struct rtw89_dev *rtwdev) in _dpk_gainloss_read()
2102 static void _dpk_gainloss(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_gainloss()
2109 static void _dpk_kip_preset(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_kip_preset()
2116 static void _dpk_kip_pwr_clk_on(struct rtw89_dev *rtwdev, in _dpk_kip_pwr_clk_on()
2126 static void _dpk_kip_set_txagc(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_kip_set_txagc()
2137 static void _dpk_kip_set_rxagc(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_kip_set_rxagc()
2155 static u8 _dpk_set_offset(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_set_offset()
2176 static bool _dpk_pas_read(struct rtw89_dev *rtwdev, bool is_check) in _dpk_pas_read()
2217 static u8 _dpk_agc(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_agc()
2336 static void _dpk_set_mdpd_para(struct rtw89_dev *rtwdev, u8 order) in _dpk_set_mdpd_para()
2364 static void _dpk_idl_mpa(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_idl_mpa()
2378 static void _dpk_fill_result(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_fill_result()
2417 static bool _dpk_reload_check(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_reload_check()
2444 static bool _dpk_main(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_main()
2492 static void _dpk_cal_select(struct rtw89_dev *rtwdev, bool force, in _dpk_cal_select()
2545 static bool _dpk_bypass_check(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy) in _dpk_bypass_check()
2567 static void _dpk_force_bypass(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy) in _dpk_force_bypass()
2579 static void _dpk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, bool force) in _dpk()
2592 static void _dpk_track(struct rtw89_dev *rtwdev) in _dpk_track()
2696 static void _set_dpd_backoff(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy) in _set_dpd_backoff()
2723 static void _tssi_rf_setting(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _tssi_rf_setting()
2735 static void _tssi_set_sys(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _tssi_set_sys()
2753 static void _tssi_ini_txpwr_ctrl_bb(struct rtw89_dev *rtwdev, in _tssi_ini_txpwr_ctrl_bb()
2762 static void _tssi_ini_txpwr_ctrl_bb_he_tb(struct rtw89_dev *rtwdev, in _tssi_ini_txpwr_ctrl_bb_he_tb()
2771 static void _tssi_set_dck(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _tssi_set_dck()
2779 static void _tssi_set_tmeter_tbl(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _tssi_set_tmeter_tbl()
2937 static void _tssi_set_dac_gain_tbl(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _tssi_set_dac_gain_tbl()
2945 static void _tssi_slope_cal_org(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _tssi_slope_cal_org()
2961 static void _tssi_alignment_default(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _tssi_alignment_default()
3019 static void _tssi_set_tssi_slope(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _tssi_set_tssi_slope()
3027 static void _tssi_set_tssi_track(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _tssi_set_tssi_track()
3036 static void _tssi_set_txagc_offset_mv_avg(struct rtw89_dev *rtwdev, in _tssi_set_txagc_offset_mv_avg()
3049 static void _tssi_enable(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy) in _tssi_enable()
3101 static void _tssi_disable(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy) in _tssi_disable()
3114 static u32 _tssi_get_cck_group(struct rtw89_dev *rtwdev, u8 ch) in _tssi_get_cck_group()
3140 static u32 _tssi_get_ofdm_group(struct rtw89_dev *rtwdev, u8 ch) in _tssi_get_ofdm_group()
3208 static u32 _tssi_get_trim_group(struct rtw89_dev *rtwdev, u8 ch) in _tssi_get_trim_group()
3232 static s8 _tssi_get_ofdm_de(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _tssi_get_ofdm_de()
3268 static s8 _tssi_get_ofdm_trim_de(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _tssi_get_ofdm_trim_de()
3306 static void _tssi_set_efuse_to_de(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy) in _tssi_set_efuse_to_de()
3361 static void _tssi_alimentk_dump_result(struct rtw89_dev *rtwdev, enum rtw89_rf_path path) in _tssi_alimentk_dump_result()
3384 static void _tssi_alimentk_done(struct rtw89_dev *rtwdev, in _tssi_alimentk_done()
3420 static void _tssi_hw_tx(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _tssi_hw_tx()
3445 static void _tssi_backup_bb_registers(struct rtw89_dev *rtwdev, in _tssi_backup_bb_registers()
3460 static void _tssi_reload_bb_registers(struct rtw89_dev *rtwdev, in _tssi_reload_bb_registers()
3476 static u8 _tssi_ch_to_idx(struct rtw89_dev *rtwdev, u8 channel) in _tssi_ch_to_idx()
3494 static bool _tssi_get_cw_report(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _tssi_get_cw_report()
3568 static void _tssi_alimentk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _tssi_alimentk()
3744 void rtw8852b_dpk_init(struct rtw89_dev *rtwdev) in rtw8852b_dpk_init()
3749 void rtw8852b_rck(struct rtw89_dev *rtwdev) in rtw8852b_rck()
3757 void rtw8852b_dack(struct rtw89_dev *rtwdev) in rtw8852b_dack()
3766 void rtw8852b_iqk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx) in rtw8852b_iqk()
3782 void rtw8852b_rx_dck(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx) in rtw8852b_rx_dck()
3797 void rtw8852b_dpk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx) in rtw8852b_dpk()
3814 void rtw8852b_dpk_track(struct rtw89_dev *rtwdev) in rtw8852b_dpk_track()
3819 void rtw8852b_tssi(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, bool hwtx_en) in rtw8852b_tssi()
3856 void rtw8852b_tssi_scan(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy) in rtw8852b_tssi_scan()
3895 static void rtw8852b_tssi_default_txagc(struct rtw89_dev *rtwdev, in rtw8852b_tssi_default_txagc()
3936 void rtw8852b_wifi_scan_notify(struct rtw89_dev *rtwdev, bool scan_start, in rtw8852b_wifi_scan_notify()
3945 static void _bw_setting(struct rtw89_dev *rtwdev, enum rtw89_rf_path path, in _bw_setting()
3987 static void _ctrl_bw(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _ctrl_bw()
3996 static bool _set_s0_arfc18(struct rtw89_dev *rtwdev, u32 val) in _set_s0_arfc18()
4016 static void _lck_check(struct rtw89_dev *rtwdev) in _lck_check()
4064 static void _set_ch(struct rtw89_dev *rtwdev, u32 val) in _set_ch()
4073 static void _ch_setting(struct rtw89_dev *rtwdev, enum rtw89_rf_path path, in _ch_setting()
4109 static void _ctrl_ch(struct rtw89_dev *rtwdev, u8 central_ch) in _ctrl_ch()
4117 static void _set_rxbb_bw(struct rtw89_dev *rtwdev, enum rtw89_bandwidth bw, in _set_rxbb_bw()
4138 static void _rxbb_bw(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _rxbb_bw()
4153 static void rtw8852b_ctrl_bw_ch(struct rtw89_dev *rtwdev, in rtw8852b_ctrl_bw_ch()
4162 void rtw8852b_set_channel_rf(struct rtw89_dev *rtwdev, in rtw8852b_set_channel_rf()