Lines Matching defs:rtwdev

135 static u8 _kpath(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx)  in _kpath()
140 static void _adc_fifo_rst(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, in _adc_fifo_rst()
148 static void _rfk_rf_direct_cntrl(struct rtw89_dev *rtwdev, in _rfk_rf_direct_cntrl()
157 static void _rfk_drf_direct_cntrl(struct rtw89_dev *rtwdev, in _rfk_drf_direct_cntrl()
166 static void _wait_rx_mode(struct rtw89_dev *rtwdev, u8 kpath) in _wait_rx_mode()
185 static void _dack_reset(struct rtw89_dev *rtwdev, enum rtw89_rf_path path) in _dack_reset()
191 static void _drck(struct rtw89_dev *rtwdev) in _drck()
221 static void _addck_backup(struct rtw89_dev *rtwdev) in _addck_backup()
231 static void _addck_reload(struct rtw89_dev *rtwdev) in _addck_reload()
240 static void _dack_backup_s0(struct rtw89_dev *rtwdev) in _dack_backup_s0()
267 static void _dack_reload_by_path(struct rtw89_dev *rtwdev, in _dack_reload_by_path()
339 static void _dack_reload(struct rtw89_dev *rtwdev, enum rtw89_rf_path path) in _dack_reload()
347 static void _addck(struct rtw89_dev *rtwdev) in _addck()
372 static void _new_dadck(struct rtw89_dev *rtwdev) in _new_dadck()
415 static bool _dack_s0_poll(struct rtw89_dev *rtwdev) in _dack_s0_poll()
426 static void _dack_s0(struct rtw89_dev *rtwdev) in _dack_s0()
455 static void _dack(struct rtw89_dev *rtwdev) in _dack()
460 static void _dack_dump(struct rtw89_dev *rtwdev) in _dack_dump()
486 static void _dack_manual_off(struct rtw89_dev *rtwdev) in _dack_manual_off()
491 static void _dac_cal(struct rtw89_dev *rtwdev, bool force) in _dac_cal()
523 static void _rx_dck_info(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _rx_dck_info()
538 static void _rxbb_ofst_swap(struct rtw89_dev *rtwdev, enum rtw89_rf_path path, u8 rf_mode) in _rxbb_ofst_swap()
557 static void _set_rx_dck(struct rtw89_dev *rtwdev, enum rtw89_rf_path path, u8 rf_mode) in _set_rx_dck()
577 static void _rx_dck(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, bool is_afe) in _rx_dck()
608 static void _iqk_sram(struct rtw89_dev *rtwdev, u8 path) in _iqk_sram()
638 static void _iqk_rxk_setting(struct rtw89_dev *rtwdev, u8 path) in _iqk_rxk_setting()
645 static bool _iqk_check_cal(struct rtw89_dev *rtwdev, u8 path) in _iqk_check_cal()
681 static bool _iqk_one_shot(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, in _iqk_one_shot()
767 static bool _rxk_2g_group_sel(struct rtw89_dev *rtwdev, in _rxk_2g_group_sel()
836 static bool _rxk_5g_group_sel(struct rtw89_dev *rtwdev, in _rxk_5g_group_sel()
912 static bool _iqk_5g_nbrxk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, in _iqk_5g_nbrxk()
978 static bool _iqk_2g_nbrxk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, in _iqk_2g_nbrxk()
1039 static void _iqk_rxclk_setting(struct rtw89_dev *rtwdev, u8 path) in _iqk_rxclk_setting()
1051 static bool _txk_5g_group_sel(struct rtw89_dev *rtwdev, in _txk_5g_group_sel()
1101 static bool _txk_2g_group_sel(struct rtw89_dev *rtwdev, in _txk_2g_group_sel()
1151 static bool _iqk_5g_nbtxk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, in _iqk_5g_nbtxk()
1195 static bool _iqk_2g_nbtxk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, in _iqk_2g_nbtxk()
1240 static bool _iqk_2g_lok(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, in _iqk_2g_lok()
1293 static bool _iqk_5g_lok(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, in _iqk_5g_lok()
1347 static void _iqk_txk_setting(struct rtw89_dev *rtwdev, u8 path) in _iqk_txk_setting()
1367 static void _iqk_by_path(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, in _iqk_by_path()
1424 static void _rfk_backup_bb_reg(struct rtw89_dev *rtwdev, in _rfk_backup_bb_reg()
1439 static void _rfk_backup_rf_reg(struct rtw89_dev *rtwdev, in _rfk_backup_rf_reg()
1454 static void _rfk_restore_bb_reg(struct rtw89_dev *rtwdev, in _rfk_restore_bb_reg()
1468 static void _rfk_restore_rf_reg(struct rtw89_dev *rtwdev, in _rfk_restore_rf_reg()
1483 static void _iqk_get_ch_info(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _iqk_get_ch_info()
1508 static void _iqk_start_iqk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, in _iqk_start_iqk()
1514 static void _iqk_restore(struct rtw89_dev *rtwdev, u8 path) in _iqk_restore()
1533 static void _iqk_afebb_restore(struct rtw89_dev *rtwdev, in _iqk_afebb_restore()
1539 static void _iqk_preset(struct rtw89_dev *rtwdev, u8 path) in _iqk_preset()
1548 static void _iqk_macbb_setting(struct rtw89_dev *rtwdev, in _iqk_macbb_setting()
1556 static void _iqk_init(struct rtw89_dev *rtwdev) in _iqk_init()
1588 static void _doiqk(struct rtw89_dev *rtwdev, bool force, in _doiqk()
1621 static void _iqk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, bool force) in _iqk()
1626 static void _dpk_bkup_kip(struct rtw89_dev *rtwdev, const u32 *reg, in _dpk_bkup_kip()
1640 static void _dpk_bkup_rf(struct rtw89_dev *rtwdev, const u32 *rf_reg, in _dpk_bkup_rf()
1653 static void _dpk_reload_kip(struct rtw89_dev *rtwdev, const u32 *reg, in _dpk_reload_kip()
1668 static void _dpk_reload_rf(struct rtw89_dev *rtwdev, const u32 *rf_reg, in _dpk_reload_rf()
1682 static void _dpk_one_shot(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_one_shot()
1722 static void _dpk_onoff(struct rtw89_dev *rtwdev, enum rtw89_rf_path path, in _dpk_onoff()
1739 static void _dpk_init(struct rtw89_dev *rtwdev, enum rtw89_rf_path path) in _dpk_init()
1748 static void _dpk_information(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_information()
1773 static void _dpk_rxagc_onoff(struct rtw89_dev *rtwdev, enum rtw89_rf_path path, in _dpk_rxagc_onoff()
1785 static void _dpk_bb_afe_setting(struct rtw89_dev *rtwdev, enum rtw89_rf_path path) in _dpk_bb_afe_setting()
1801 static void _dpk_bb_afe_restore(struct rtw89_dev *rtwdev, enum rtw89_rf_path path) in _dpk_bb_afe_restore()
1816 static void _dpk_tssi_pause(struct rtw89_dev *rtwdev, enum rtw89_rf_path path, in _dpk_tssi_pause()
1826 static void _dpk_tpg_sel(struct rtw89_dev *rtwdev, enum rtw89_rf_path path, u8 kidx) in _dpk_tpg_sel()
1846 static void _dpk_txpwr_bb_force(struct rtw89_dev *rtwdev, in _dpk_txpwr_bb_force()
1856 static void _dpk_kip_pwr_clk_onoff(struct rtw89_dev *rtwdev, bool turn_on) in _dpk_kip_pwr_clk_onoff()
1868 static void _dpk_kip_control_rfc(struct rtw89_dev *rtwdev, in _dpk_kip_control_rfc()
1878 static void _dpk_kip_preset(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_kip_preset()
1890 static void _dpk_kip_restore(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_kip_restore()
1900 static void _dpk_kset_query(struct rtw89_dev *rtwdev, enum rtw89_rf_path path) in _dpk_kset_query()
1910 static void _dpk_para_query(struct rtw89_dev *rtwdev, enum rtw89_rf_path path, u8 kidx) in _dpk_para_query()
1937 static bool _dpk_sync_check(struct rtw89_dev *rtwdev, enum rtw89_rf_path path, u8 kidx) in _dpk_sync_check()
1984 static void _dpk_kip_set_txagc(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_kip_set_txagc()
2001 static bool _dpk_kip_set_rxagc(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_kip_set_rxagc()
2013 static void _dpk_lbk_rxiqk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_lbk_rxiqk()
2059 static void _dpk_rf_setting(struct rtw89_dev *rtwdev, enum rtw89_rf_path path, u8 kidx) in _dpk_rf_setting()
2081 static void _dpk_bypass_rxiqc(struct rtw89_dev *rtwdev, enum rtw89_rf_path path) in _dpk_bypass_rxiqc()
2089 static u16 _dpk_dgain_read(struct rtw89_dev *rtwdev) in _dpk_dgain_read()
2101 static u8 _dpk_gainloss_read(struct rtw89_dev *rtwdev) in _dpk_gainloss_read()
2114 static u8 _dpk_gainloss(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_gainloss()
2126 static u8 _dpk_pas_read(struct rtw89_dev *rtwdev, u8 is_check) in _dpk_pas_read()
2172 static u8 _dpk_agc(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_agc()
2272 static void _dpk_set_mdpd_para(struct rtw89_dev *rtwdev, u8 order) in _dpk_set_mdpd_para()
2311 static void _dpk_idl_mpa(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_idl_mpa()
2329 static u8 _dpk_order_convert(struct rtw89_dev *rtwdev) in _dpk_order_convert()
2356 static void _dpk_gain_normalize(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_gain_normalize()
2388 static void _dpk_on(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_on()
2410 static bool _dpk_main(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _dpk_main()
2451 static void _dpk_cal_select(struct rtw89_dev *rtwdev, bool force, in _dpk_cal_select()
2508 static void _dpk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, bool force) in _dpk()
2517 static void _dpk_track(struct rtw89_dev *rtwdev) in _dpk_track()
2584 static void _rck(struct rtw89_dev *rtwdev, enum rtw89_rf_path path) in _rck()
2619 static void _tssi_set_sys(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _tssi_set_sys()
2632 static void _tssi_ini_txpwr_ctrl_bb(struct rtw89_dev *rtwdev, in _tssi_ini_txpwr_ctrl_bb()
2639 static void _tssi_ini_txpwr_ctrl_bb_he_tb(struct rtw89_dev *rtwdev, in _tssi_ini_txpwr_ctrl_bb_he_tb()
2646 static void _tssi_set_dck(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _tssi_set_dck()
2652 static void _tssi_set_tmeter_tbl(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _tssi_set_tmeter_tbl()
2751 static void _tssi_set_dac_gain_tbl(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _tssi_set_dac_gain_tbl()
2757 static void _tssi_slope_cal_org(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _tssi_slope_cal_org()
2768 static void _tssi_alignment_default(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _tssi_alignment_default()
2779 static void _tssi_set_tssi_slope(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _tssi_set_tssi_slope()
2785 static void _tssi_set_tssi_track(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _tssi_set_tssi_track()
2791 static void _tssi_set_txagc_offset_mv_avg(struct rtw89_dev *rtwdev, in _tssi_set_txagc_offset_mv_avg()
2798 static void _tssi_enable(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy) in _tssi_enable()
2817 static void _tssi_disable(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy) in _tssi_disable()
2828 static u32 _tssi_get_cck_group(struct rtw89_dev *rtwdev, u8 ch) in _tssi_get_cck_group()
2854 static u32 _tssi_get_ofdm_group(struct rtw89_dev *rtwdev, u8 ch) in _tssi_get_ofdm_group()
2922 static u32 _tssi_get_trim_group(struct rtw89_dev *rtwdev, u8 ch) in _tssi_get_trim_group()
2946 static s8 _tssi_get_ofdm_de(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _tssi_get_ofdm_de()
2982 static s8 _tssi_get_ofdm_trim_de(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _tssi_get_ofdm_trim_de()
3020 static void _tssi_set_efuse_to_de(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy) in _tssi_set_efuse_to_de()
3075 static void _tssi_alimentk_dump_result(struct rtw89_dev *rtwdev, enum rtw89_rf_path path) in _tssi_alimentk_dump_result()
3098 static void _tssi_alimentk_done(struct rtw89_dev *rtwdev, in _tssi_alimentk_done()
3134 static void rtw8851b_by_rate_dpd(struct rtw89_dev *rtwdev) in rtw8851b_by_rate_dpd()
3140 void rtw8851b_dpk_init(struct rtw89_dev *rtwdev) in rtw8851b_dpk_init()
3145 void rtw8851b_aack(struct rtw89_dev *rtwdev) in rtw8851b_aack()
3190 static void _lck_keep_thermal(struct rtw89_dev *rtwdev) in _lck_keep_thermal()
3200 static void rtw8851b_lck(struct rtw89_dev *rtwdev) in rtw8851b_lck()
3223 void rtw8851b_lck_track(struct rtw89_dev *rtwdev) in rtw8851b_lck_track()
3243 void rtw8851b_lck_init(struct rtw89_dev *rtwdev) in rtw8851b_lck_init()
3248 void rtw8851b_rck(struct rtw89_dev *rtwdev) in rtw8851b_rck()
3253 void rtw8851b_dack(struct rtw89_dev *rtwdev) in rtw8851b_dack()
3258 void rtw8851b_iqk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx) in rtw8851b_iqk()
3274 void rtw8851b_rx_dck(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx) in rtw8851b_rx_dck()
3289 void rtw8851b_dpk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx) in rtw8851b_dpk()
3306 void rtw8851b_dpk_track(struct rtw89_dev *rtwdev) in rtw8851b_dpk_track()
3311 void rtw8851b_tssi(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, bool hwtx_en) in rtw8851b_tssi()
3339 void rtw8851b_tssi_scan(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy) in rtw8851b_tssi_scan()
3361 static void rtw8851b_tssi_default_txagc(struct rtw89_dev *rtwdev, in rtw8851b_tssi_default_txagc()
3393 void rtw8851b_wifi_scan_notify(struct rtw89_dev *rtwdev, bool scan_start, in rtw8851b_wifi_scan_notify()
3402 static void _bw_setting(struct rtw89_dev *rtwdev, enum rtw89_rf_path path, in _bw_setting()
3444 static void _ctrl_bw(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _ctrl_bw()
3451 static bool _set_s0_arfc18(struct rtw89_dev *rtwdev, u32 val) in _set_s0_arfc18()
3471 static void _lck_check(struct rtw89_dev *rtwdev) in _lck_check()
3519 static void _set_ch(struct rtw89_dev *rtwdev, u32 val) in _set_ch()
3528 static void _ch_setting(struct rtw89_dev *rtwdev, enum rtw89_rf_path path, in _ch_setting()
3564 static void _ctrl_ch(struct rtw89_dev *rtwdev, u8 central_ch) in _ctrl_ch()
3570 static void _set_rxbb_bw(struct rtw89_dev *rtwdev, enum rtw89_bandwidth bw, in _set_rxbb_bw()
3591 static void _rxbb_bw(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy, in _rxbb_bw()
3606 static void rtw8851b_ctrl_bw_ch(struct rtw89_dev *rtwdev, in rtw8851b_ctrl_bw_ch()
3615 void rtw8851b_set_channel_rf(struct rtw89_dev *rtwdev, in rtw8851b_set_channel_rf()