Lines Matching defs:rtwdev
44 static int rtw8822c_read_efuse(struct rtw_dev *rtwdev, u8 *log_map) in rtw8822c_read_efuse()
87 static void rtw8822c_header_file_init(struct rtw_dev *rtwdev, bool pre) in rtw8822c_header_file_init()
100 static void rtw8822c_bb_reset(struct rtw_dev *rtwdev) in rtw8822c_bb_reset()
107 static void rtw8822c_dac_backup_reg(struct rtw_dev *rtwdev, in rtw8822c_dac_backup_reg()
136 static void rtw8822c_dac_restore_reg(struct rtw_dev *rtwdev, in rtw8822c_dac_restore_reg()
155 static void rtw8822c_rf_minmax_cmp(struct rtw_dev *rtwdev, u32 value, in rtw8822c_rf_minmax_cmp()
184 static void __rtw8822c_dac_iq_sort(struct rtw_dev *rtwdev, u32 *v1, u32 *v2) in __rtw8822c_dac_iq_sort()
197 static void rtw8822c_dac_iq_sort(struct rtw_dev *rtwdev, u32 *iv, u32 *qv) in rtw8822c_dac_iq_sort()
209 static void rtw8822c_dac_iq_offset(struct rtw_dev *rtwdev, u32 *vec, u32 *val) in rtw8822c_dac_iq_offset()
273 static bool rtw8822c_dac_iq_check(struct rtw_dev *rtwdev, u32 value) in rtw8822c_dac_iq_check()
286 static void rtw8822c_dac_cal_iq_sample(struct rtw_dev *rtwdev, u32 *iv, u32 *qv) in rtw8822c_dac_cal_iq_sample()
303 static void rtw8822c_dac_cal_iq_search(struct rtw_dev *rtwdev, in rtw8822c_dac_cal_iq_search()
361 static void rtw8822c_dac_cal_rf_mode(struct rtw_dev *rtwdev, in rtw8822c_dac_cal_rf_mode()
377 static void rtw8822c_dac_bb_setting(struct rtw_dev *rtwdev) in rtw8822c_dac_bb_setting()
393 static void rtw8822c_dac_cal_adc(struct rtw_dev *rtwdev, in rtw8822c_dac_cal_adc()
471 static void rtw8822c_dac_cal_step1(struct rtw_dev *rtwdev, u8 path) in rtw8822c_dac_cal_step1()
516 static void rtw8822c_dac_cal_step2(struct rtw_dev *rtwdev, in rtw8822c_dac_cal_step2()
565 static void rtw8822c_dac_cal_step3(struct rtw_dev *rtwdev, u8 path, in rtw8822c_dac_cal_step3()
642 static void rtw8822c_dac_cal_step4(struct rtw_dev *rtwdev, u8 path) in rtw8822c_dac_cal_step4()
652 static void rtw8822c_dac_cal_backup_vec(struct rtw_dev *rtwdev, in rtw8822c_dac_cal_backup_vec()
669 static void rtw8822c_dac_cal_backup_path(struct rtw_dev *rtwdev, u8 path) in rtw8822c_dac_cal_backup_path()
689 static void rtw8822c_dac_cal_backup_dck(struct rtw_dev *rtwdev) in rtw8822c_dac_cal_backup_dck()
713 static void rtw8822c_dac_cal_backup(struct rtw_dev *rtwdev) in rtw8822c_dac_cal_backup()
743 static void rtw8822c_dac_cal_restore_dck(struct rtw_dev *rtwdev) in rtw8822c_dac_cal_restore_dck()
773 static void rtw8822c_dac_cal_restore_prepare(struct rtw_dev *rtwdev) in rtw8822c_dac_cal_restore_prepare()
826 static bool rtw8822c_dac_cal_restore_wait(struct rtw_dev *rtwdev, in rtw8822c_dac_cal_restore_wait()
843 static bool rtw8822c_dac_cal_restore_path(struct rtw_dev *rtwdev, u8 path) in rtw8822c_dac_cal_restore_path()
890 static bool __rtw8822c_dac_cal_restore(struct rtw_dev *rtwdev) in __rtw8822c_dac_cal_restore()
901 static bool rtw8822c_dac_cal_restore(struct rtw_dev *rtwdev) in rtw8822c_dac_cal_restore()
942 static void rtw8822c_rf_dac_cal(struct rtw_dev *rtwdev) in rtw8822c_rf_dac_cal()
1009 static void rtw8822c_rf_x2_check(struct rtw_dev *rtwdev) in rtw8822c_rf_x2_check()
1023 static void rtw8822c_set_power_trim(struct rtw_dev *rtwdev, s8 bb_gain[2][8]) in rtw8822c_set_power_trim()
1055 static void rtw8822c_power_trim(struct rtw_dev *rtwdev) in rtw8822c_power_trim()
1092 static void rtw8822c_thermal_trim(struct rtw_dev *rtwdev) in rtw8822c_thermal_trim()
1110 static void rtw8822c_pa_bias(struct rtw_dev *rtwdev) in rtw8822c_pa_bias()
1132 static void rtw8822c_rfk_handshake(struct rtw_dev *rtwdev, bool is_before_k) in rtw8822c_rfk_handshake()
1178 static void rtw8822c_rfk_power_save(struct rtw_dev *rtwdev, in rtw8822c_rfk_power_save()
1190 static void rtw8822c_txgapk_backup_bb_reg(struct rtw_dev *rtwdev, const u32 reg[], in rtw8822c_txgapk_backup_bb_reg()
1203 static void rtw8822c_txgapk_reload_bb_reg(struct rtw_dev *rtwdev, in rtw8822c_txgapk_reload_bb_reg()
1216 static bool check_rf_status(struct rtw_dev *rtwdev, u8 status) in check_rf_status()
1231 static void rtw8822c_txgapk_tx_pause(struct rtw_dev *rtwdev) in rtw8822c_txgapk_tx_pause()
1247 static void rtw8822c_txgapk_bb_dpk(struct rtw_dev *rtwdev, u8 path) in rtw8822c_txgapk_bb_dpk()
1279 static void rtw8822c_txgapk_afe_dpk(struct rtw_dev *rtwdev, u8 path) in rtw8822c_txgapk_afe_dpk()
1315 static void rtw8822c_txgapk_afe_dpk_restore(struct rtw_dev *rtwdev, u8 path) in rtw8822c_txgapk_afe_dpk_restore()
1348 static void rtw8822c_txgapk_bb_dpk_restore(struct rtw_dev *rtwdev, u8 path) in rtw8822c_txgapk_bb_dpk_restore()
1388 static bool _rtw8822c_txgapk_gain_valid(struct rtw_dev *rtwdev, u32 gain) in _rtw8822c_txgapk_gain_valid()
1397 static void _rtw8822c_txgapk_write_gain_bb_table(struct rtw_dev *rtwdev, in _rtw8822c_txgapk_write_gain_bb_table()
1451 static void rtw8822c_txgapk_write_gain_bb_table(struct rtw_dev *rtwdev) in rtw8822c_txgapk_write_gain_bb_table()
1466 static void rtw8822c_txgapk_read_offset(struct rtw_dev *rtwdev, u8 path) in rtw8822c_txgapk_read_offset()
1543 static void rtw8822c_txgapk_calculate_offset(struct rtw_dev *rtwdev, u8 path) in rtw8822c_txgapk_calculate_offset()
1617 static void rtw8822c_txgapk_rf_restore(struct rtw_dev *rtwdev, u8 path) in rtw8822c_txgapk_rf_restore()
1629 static u32 rtw8822c_txgapk_cal_gain(struct rtw_dev *rtwdev, u32 gain, s8 offset) in rtw8822c_txgapk_cal_gain()
1653 static void rtw8822c_txgapk_write_tx_gain(struct rtw_dev *rtwdev) in rtw8822c_txgapk_write_tx_gain()
1723 static void rtw8822c_txgapk_save_all_tx_gain_table(struct rtw_dev *rtwdev) in rtw8822c_txgapk_save_all_tx_gain_table()
1782 static void rtw8822c_txgapk(struct rtw_dev *rtwdev) in rtw8822c_txgapk()
1824 static void rtw8822c_do_gapk(struct rtw_dev *rtwdev) in rtw8822c_do_gapk()
1837 static void rtw8822c_rf_init(struct rtw_dev *rtwdev) in rtw8822c_rf_init()
1846 static void rtw8822c_pwrtrack_init(struct rtw_dev *rtwdev) in rtw8822c_pwrtrack_init()
1862 static void rtw8822c_phy_set_param(struct rtw_dev *rtwdev) in rtw8822c_phy_set_param()
2003 static int rtw8822c_mac_init(struct rtw_dev *rtwdev) in rtw8822c_mac_init()
2151 static int rtw8822c_dump_fw_crash(struct rtw_dev *rtwdev) in rtw8822c_dump_fw_crash()
2179 static void rtw8822c_rstb_3wire(struct rtw_dev *rtwdev, bool enable) in rtw8822c_rstb_3wire()
2190 static void rtw8822c_set_channel_rf(struct rtw_dev *rtwdev, u8 channel, u8 bw) in rtw8822c_set_channel_rf()
2256 static void rtw8822c_toggle_igi(struct rtw_dev *rtwdev) in rtw8822c_toggle_igi()
2267 static void rtw8822c_set_channel_bb(struct rtw_dev *rtwdev, u8 channel, u8 bw, in rtw8822c_set_channel_bb()
2425 static void rtw8822c_set_channel(struct rtw_dev *rtwdev, u8 channel, u8 bw, in rtw8822c_set_channel()
2434 static void rtw8822c_config_cck_rx_path(struct rtw_dev *rtwdev, u8 rx_path) in rtw8822c_config_cck_rx_path()
2452 static void rtw8822c_config_ofdm_rx_path(struct rtw_dev *rtwdev, u8 rx_path) in rtw8822c_config_ofdm_rx_path()
2472 static void rtw8822c_config_rx_path(struct rtw_dev *rtwdev, u8 rx_path) in rtw8822c_config_rx_path()
2478 static void rtw8822c_config_cck_tx_path(struct rtw_dev *rtwdev, u8 tx_path, in rtw8822c_config_cck_tx_path()
2494 static void rtw8822c_config_ofdm_tx_path(struct rtw_dev *rtwdev, u8 tx_path, in rtw8822c_config_ofdm_tx_path()
2518 static void rtw8822c_config_tx_path(struct rtw_dev *rtwdev, u8 tx_path, in rtw8822c_config_tx_path()
2528 static void rtw8822c_config_trx_mode(struct rtw_dev *rtwdev, u8 tx_path, in rtw8822c_config_trx_mode()
2547 static void query_phy_status_page0(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page0()
2596 static void query_phy_status_page1(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status_page1()
2671 static void query_phy_status(struct rtw_dev *rtwdev, u8 *phy_status, in query_phy_status()
2691 static void rtw8822c_query_rx_desc(struct rtw_dev *rtwdev, u8 *rx_desc, in rtw8822c_query_rx_desc()
2734 rtw8822c_set_write_tx_power_ref(struct rtw_dev *rtwdev, u8 *tx_pwr_ref_cck, in rtw8822c_set_write_tx_power_ref()
2754 static void rtw8822c_set_tx_power_diff(struct rtw_dev *rtwdev, u8 rate, in rtw8822c_set_tx_power_diff()
2776 static void rtw8822c_set_tx_power_index(struct rtw_dev *rtwdev) in rtw8822c_set_tx_power_index()
2809 static int rtw8822c_set_antenna(struct rtw_dev *rtwdev, in rtw8822c_set_antenna()
2843 static void rtw8822c_cfg_ldo25(struct rtw_dev *rtwdev, bool enable) in rtw8822c_cfg_ldo25()
2852 static void rtw8822c_false_alarm_statistics(struct rtw_dev *rtwdev) in rtw8822c_false_alarm_statistics()
2922 static void rtw8822c_do_lck(struct rtw_dev *rtwdev) in rtw8822c_do_lck()
2942 static void rtw8822c_do_iqk(struct rtw_dev *rtwdev) in rtw8822c_do_iqk()
2960 static void rtw8822c_coex_cfg_init(struct rtw_dev *rtwdev) in rtw8822c_coex_cfg_init()
2989 static void rtw8822c_coex_cfg_gnt_fix(struct rtw_dev *rtwdev) in rtw8822c_coex_cfg_gnt_fix()
3068 static void rtw8822c_coex_cfg_gnt_debug(struct rtw_dev *rtwdev) in rtw8822c_coex_cfg_gnt_debug()
3077 static void rtw8822c_coex_cfg_rfe_type(struct rtw_dev *rtwdev) in rtw8822c_coex_cfg_rfe_type()
3100 static void rtw8822c_coex_cfg_wl_tx_power(struct rtw_dev *rtwdev, u8 wl_pwr) in rtw8822c_coex_cfg_wl_tx_power()
3111 static void rtw8822c_coex_cfg_wl_rx_gain(struct rtw_dev *rtwdev, bool low_gain) in rtw8822c_coex_cfg_wl_rx_gain()
3141 static void rtw8822c_bf_enable_bfee_su(struct rtw_dev *rtwdev, in rtw8822c_bf_enable_bfee_su()
3161 static void rtw8822c_bf_config_bfee_su(struct rtw_dev *rtwdev, in rtw8822c_bf_config_bfee_su()
3171 static void rtw8822c_bf_config_bfee_mu(struct rtw_dev *rtwdev, in rtw8822c_bf_config_bfee_mu()
3181 static void rtw8822c_bf_config_bfee(struct rtw_dev *rtwdev, struct rtw_vif *vif, in rtw8822c_bf_config_bfee()
3198 void rtw8822c_parse_tbl_dpk(struct rtw_dev *rtwdev, in rtw8822c_parse_tbl_dpk()
3210 static void rtw8822c_dpk_set_gnt_wl(struct rtw_dev *rtwdev, bool is_before_k) in rtw8822c_dpk_set_gnt_wl()
3227 rtw8822c_dpk_restore_registers(struct rtw_dev *rtwdev, u32 reg_num, in rtw8822c_dpk_restore_registers()
3236 rtw8822c_dpk_backup_registers(struct rtw_dev *rtwdev, u32 *reg, in rtw8822c_dpk_backup_registers()
3248 static void rtw8822c_dpk_backup_rf_registers(struct rtw_dev *rtwdev, in rtw8822c_dpk_backup_rf_registers()
3262 static void rtw8822c_dpk_reload_rf_registers(struct rtw_dev *rtwdev, in rtw8822c_dpk_reload_rf_registers()
3276 static void rtw8822c_dpk_information(struct rtw_dev *rtwdev) in rtw8822c_dpk_information()
3290 static void rtw8822c_dpk_rxbb_dc_cal(struct rtw_dev *rtwdev, u8 path) in rtw8822c_dpk_rxbb_dc_cal()
3299 static u8 rtw8822c_dpk_dc_corr_check(struct rtw_dev *rtwdev, u8 path) in rtw8822c_dpk_dc_corr_check()
3324 static void rtw8822c_dpk_tx_pause(struct rtw_dev *rtwdev) in rtw8822c_dpk_tx_pause()
3340 static void rtw8822c_dpk_mac_bb_setting(struct rtw_dev *rtwdev) in rtw8822c_dpk_mac_bb_setting()
3346 static void rtw8822c_dpk_afe_setting(struct rtw_dev *rtwdev, bool is_do_dpk) in rtw8822c_dpk_afe_setting()
3354 static void rtw8822c_dpk_pre_setting(struct rtw_dev *rtwdev) in rtw8822c_dpk_pre_setting()
3373 static u32 rtw8822c_dpk_rf_setting(struct rtw_dev *rtwdev, u8 path) in rtw8822c_dpk_rf_setting()
3411 static u16 rtw8822c_dpk_get_cmd(struct rtw_dev *rtwdev, u8 action, u8 path) in rtw8822c_dpk_get_cmd()
3436 static u8 rtw8822c_dpk_one_shot(struct rtw_dev *rtwdev, u8 path, u8 action) in rtw8822c_dpk_one_shot()
3477 static u16 rtw8822c_dpk_dgain_read(struct rtw_dev *rtwdev, u8 path) in rtw8822c_dpk_dgain_read()
3489 static u8 rtw8822c_dpk_thermal_read(struct rtw_dev *rtwdev, u8 path) in rtw8822c_dpk_thermal_read()
3499 static u32 rtw8822c_dpk_pas_read(struct rtw_dev *rtwdev, u8 path) in rtw8822c_dpk_pas_read()
3548 static u8 rtw8822c_dpk_gainloss_result(struct rtw_dev *rtwdev, u8 path) in rtw8822c_dpk_gainloss_result()
3563 static u8 rtw8822c_dpk_agc_gain_chk(struct rtw_dev *rtwdev, u8 path, in rtw8822c_dpk_agc_gain_chk()
3580 static u8 rtw8822c_dpk_agc_loss_chk(struct rtw_dev *rtwdev, u8 path) in rtw8822c_dpk_agc_loss_chk()
3607 static u8 rtw8822c_gain_check_state(struct rtw_dev *rtwdev, in rtw8822c_gain_check_state()
3637 static u8 rtw8822c_gain_large_state(struct rtw_dev *rtwdev, in rtw8822c_gain_large_state()
3652 static u8 rtw8822c_gain_less_state(struct rtw_dev *rtwdev, in rtw8822c_gain_less_state()
3667 static u8 rtw8822c_gl_state(struct rtw_dev *rtwdev, in rtw8822c_gl_state()
3686 static u8 rtw8822c_gl_large_state(struct rtw_dev *rtwdev, in rtw8822c_gl_large_state()
3692 static u8 rtw8822c_gl_less_state(struct rtw_dev *rtwdev, in rtw8822c_gl_less_state()
3698 static u8 rtw8822c_loss_check_state(struct rtw_dev *rtwdev, in rtw8822c_loss_check_state()
3716 static u8 rtw8822c_dpk_pas_agc(struct rtw_dev *rtwdev, u8 path, in rtw8822c_dpk_pas_agc()
3737 static bool rtw8822c_dpk_coef_iq_check(struct rtw_dev *rtwdev, in rtw8822c_dpk_coef_iq_check()
3747 static u32 rtw8822c_dpk_coef_transfer(struct rtw_dev *rtwdev) in rtw8822c_dpk_coef_transfer()
3771 static void rtw8822c_dpk_coef_tbl_apply(struct rtw_dev *rtwdev, u8 path) in rtw8822c_dpk_coef_tbl_apply()
3783 static void rtw8822c_dpk_get_coef(struct rtw_dev *rtwdev, u8 path) in rtw8822c_dpk_get_coef()
3798 static u8 rtw8822c_dpk_coef_read(struct rtw_dev *rtwdev, u8 path) in rtw8822c_dpk_coef_read()
3816 static void rtw8822c_dpk_coef_write(struct rtw_dev *rtwdev, u8 path, u8 result) in rtw8822c_dpk_coef_write()
3839 static void rtw8822c_dpk_fill_result(struct rtw_dev *rtwdev, u32 dpk_txagc, in rtw8822c_dpk_fill_result()
3857 static u32 rtw8822c_dpk_gainloss(struct rtw_dev *rtwdev, u8 path) in rtw8822c_dpk_gainloss()
3895 static u8 rtw8822c_dpk_by_path(struct rtw_dev *rtwdev, u32 tx_agc, u8 path) in rtw8822c_dpk_by_path()
3912 static void rtw8822c_dpk_cal_gs(struct rtw_dev *rtwdev, u8 path) in rtw8822c_dpk_cal_gs()
3982 static void rtw8822c_dpk_cal_coef1(struct rtw_dev *rtwdev) in rtw8822c_dpk_cal_coef1()
4015 static void rtw8822c_dpk_on(struct rtw_dev *rtwdev, u8 path) in rtw8822c_dpk_on()
4028 static bool rtw8822c_dpk_check_pass(struct rtw_dev *rtwdev, bool is_fail, in rtw8822c_dpk_check_pass()
4047 static void rtw8822c_dpk_result_reset(struct rtw_dev *rtwdev) in rtw8822c_dpk_result_reset()
4067 static void rtw8822c_dpk_calibrate(struct rtw_dev *rtwdev, u8 path) in rtw8822c_dpk_calibrate()
4088 static void rtw8822c_dpk_path_select(struct rtw_dev *rtwdev) in rtw8822c_dpk_path_select()
4097 static void rtw8822c_dpk_enable_disable(struct rtw_dev *rtwdev) in rtw8822c_dpk_enable_disable()
4119 static void rtw8822c_dpk_reload_data(struct rtw_dev *rtwdev) in rtw8822c_dpk_reload_data()
4156 static bool rtw8822c_dpk_reload(struct rtw_dev *rtwdev) in rtw8822c_dpk_reload()
4175 static void rtw8822c_do_dpk(struct rtw_dev *rtwdev) in rtw8822c_do_dpk()
4217 static void rtw8822c_phy_calibration(struct rtw_dev *rtwdev) in rtw8822c_phy_calibration()
4226 static void rtw8822c_dpk_track(struct rtw_dev *rtwdev) in rtw8822c_dpk_track()
4259 static void rtw8822c_set_crystal_cap_reg(struct rtw_dev *rtwdev, u8 crystal_cap) in rtw8822c_set_crystal_cap_reg()
4270 static void rtw8822c_set_crystal_cap(struct rtw_dev *rtwdev, u8 crystal_cap) in rtw8822c_set_crystal_cap()
4281 static void rtw8822c_cfo_tracking_reset(struct rtw_dev *rtwdev) in rtw8822c_cfo_tracking_reset()
4294 static void rtw8822c_cfo_init(struct rtw_dev *rtwdev) in rtw8822c_cfo_init()
4304 static s32 rtw8822c_cfo_calc_avg(struct rtw_dev *rtwdev, u8 path_num) in rtw8822c_cfo_calc_avg()
4330 static void rtw8822c_cfo_need_adjust(struct rtw_dev *rtwdev, s32 cfo_avg) in rtw8822c_cfo_need_adjust()
4349 static void rtw8822c_cfo_track(struct rtw_dev *rtwdev) in rtw8822c_cfo_track()
4397 rtw8822c_phy_cck_pd_set_reg(struct rtw_dev *rtwdev, in rtw8822c_phy_cck_pd_set_reg()
4433 static void rtw8822c_phy_cck_pd_set(struct rtw_dev *rtwdev, u8 new_lvl) in rtw8822c_phy_cck_pd_set()
4464 static void rtw8822c_pwrtrack_set(struct rtw_dev *rtwdev, u8 rf_path) in rtw8822c_pwrtrack_set()
4482 static void rtw8822c_pwr_track_stats(struct rtw_dev *rtwdev, u8 path) in rtw8822c_pwr_track_stats()
4493 static void rtw8822c_pwr_track_path(struct rtw_dev *rtwdev, in rtw8822c_pwr_track_path()
4507 static void __rtw8822c_pwr_track(struct rtw_dev *rtwdev) in __rtw8822c_pwr_track()
4522 static void rtw8822c_pwr_track(struct rtw_dev *rtwdev) in rtw8822c_pwr_track()
4547 static void rtw8822c_adaptivity_init(struct rtw_dev *rtwdev) in rtw8822c_adaptivity_init()
4559 static void rtw8822c_adaptivity(struct rtw_dev *rtwdev) in rtw8822c_adaptivity()
4580 static void rtw8822c_fill_txdesc_checksum(struct rtw_dev *rtwdev, in rtw8822c_fill_txdesc_checksum()