Lines Matching defs:rtwdev
16 static u16 get_max_amsdu_len(struct rtw89_dev *rtwdev, in get_max_amsdu_len()
93 static u64 rtw89_phy_ra_mask_rssi(struct rtw89_dev *rtwdev, u8 rssi, in rtw89_phy_ra_mask_rssi()
136 static u64 rtw89_phy_ra_mask_cfg(struct rtw89_dev *rtwdev, struct rtw89_sta *rtwsta, in rtw89_phy_ra_mask_cfg()
198 static void rtw89_phy_ra_gi_ltf(struct rtw89_dev *rtwdev, in rtw89_phy_ra_gi_ltf()
232 static void rtw89_phy_ra_sta_update(struct rtw89_dev *rtwdev, in rtw89_phy_ra_sta_update()
396 void rtw89_phy_ra_updata_sta(struct rtw89_dev *rtwdev, struct ieee80211_sta *sta, in rtw89_phy_ra_updata_sta()
454 void rtw89_phy_rate_pattern_vif(struct rtw89_dev *rtwdev, in rtw89_phy_rate_pattern_vif()
546 struct rtw89_dev *rtwdev = (struct rtw89_dev *)data; in rtw89_phy_ra_updata_sta_iter() local
551 void rtw89_phy_ra_update(struct rtw89_dev *rtwdev) in rtw89_phy_ra_update()
558 void rtw89_phy_ra_assoc(struct rtw89_dev *rtwdev, struct ieee80211_sta *sta) in rtw89_phy_ra_assoc()
595 u8 rtw89_phy_get_txsc(struct rtw89_dev *rtwdev, in rtw89_phy_get_txsc()
665 static bool rtw89_phy_check_swsi_busy(struct rtw89_dev *rtwdev) in rtw89_phy_check_swsi_busy()
671 u32 rtw89_phy_read_rf(struct rtw89_dev *rtwdev, enum rtw89_rf_path rf_path, in rtw89_phy_read_rf()
693 static u32 rtw89_phy_read_rf_a(struct rtw89_dev *rtwdev, in rtw89_phy_read_rf_a()
726 u32 rtw89_phy_read_rf_v1(struct rtw89_dev *rtwdev, enum rtw89_rf_path rf_path, in rtw89_phy_read_rf_v1()
743 bool rtw89_phy_write_rf(struct rtw89_dev *rtwdev, enum rtw89_rf_path rf_path, in rtw89_phy_write_rf()
768 static bool rtw89_phy_write_rf_a(struct rtw89_dev *rtwdev, in rtw89_phy_write_rf_a()
805 bool rtw89_phy_write_rf_v1(struct rtw89_dev *rtwdev, enum rtw89_rf_path rf_path, in rtw89_phy_write_rf_v1()
822 static bool rtw89_chip_rf_v1(struct rtw89_dev *rtwdev) in rtw89_chip_rf_v1()
827 static void rtw89_phy_bb_reset(struct rtw89_dev *rtwdev, in rtw89_phy_bb_reset()
835 static void rtw89_phy_config_bb_reg(struct rtw89_dev *rtwdev, in rtw89_phy_config_bb_reg()
873 rtw89_phy_cfg_bb_gain_error(struct rtw89_dev *rtwdev, in rtw89_phy_cfg_bb_gain_error()
912 rtw89_phy_cfg_bb_rpl_ofst(struct rtw89_dev *rtwdev, in rtw89_phy_cfg_bb_rpl_ofst()
994 rtw89_phy_cfg_bb_gain_bypass(struct rtw89_dev *rtwdev, in rtw89_phy_cfg_bb_gain_bypass()
1021 rtw89_phy_cfg_bb_gain_op1db(struct rtw89_dev *rtwdev, in rtw89_phy_cfg_bb_gain_op1db()
1055 static void rtw89_phy_config_bb_gain(struct rtw89_dev *rtwdev, in rtw89_phy_config_bb_gain()
1102 rtw89_phy_cofig_rf_reg_store(struct rtw89_dev *rtwdev, in rtw89_phy_cofig_rf_reg_store()
1121 static int rtw89_phy_config_rf_reg_fw(struct rtw89_dev *rtwdev, in rtw89_phy_config_rf_reg_fw()
1149 static void rtw89_phy_config_rf_reg_noio(struct rtw89_dev *rtwdev, in rtw89_phy_config_rf_reg_noio()
1167 static void rtw89_phy_config_rf_reg(struct rtw89_dev *rtwdev, in rtw89_phy_config_rf_reg()
1191 void rtw89_phy_config_rf_reg_v1(struct rtw89_dev *rtwdev, in rtw89_phy_config_rf_reg_v1()
1206 static int rtw89_phy_sel_headline(struct rtw89_dev *rtwdev, in rtw89_phy_sel_headline()
1288 static void rtw89_phy_init_reg(struct rtw89_dev *rtwdev, in rtw89_phy_init_reg()
1290 void (*config)(struct rtw89_dev *rtwdev, in rtw89_phy_init_reg()
1358 void rtw89_phy_init_bb_reg(struct rtw89_dev *rtwdev) in rtw89_phy_init_bb_reg()
1376 static u32 rtw89_phy_nctl_poll(struct rtw89_dev *rtwdev) in rtw89_phy_nctl_poll()
1383 void rtw89_phy_init_rf_reg(struct rtw89_dev *rtwdev, bool noio) in rtw89_phy_init_rf_reg()
1414 static void rtw89_phy_init_rf_nctl(struct rtw89_dev *rtwdev) in rtw89_phy_init_rf_nctl()
1446 static u32 rtw89_phy0_phy1_offset(struct rtw89_dev *rtwdev, u32 addr) in rtw89_phy0_phy1_offset()
1480 void rtw89_phy_write32_idx(struct rtw89_dev *rtwdev, u32 addr, u32 mask, in rtw89_phy_write32_idx()
1489 u32 rtw89_phy_read32_idx(struct rtw89_dev *rtwdev, u32 addr, u32 mask, in rtw89_phy_read32_idx()
1498 void rtw89_phy_set_phy_regs(struct rtw89_dev *rtwdev, u32 addr, u32 mask, in rtw89_phy_set_phy_regs()
1509 void rtw89_phy_write_reg3_tbl(struct rtw89_dev *rtwdev, in rtw89_phy_write_reg3_tbl()
1551 void rtw89_phy_load_txpwr_byrate(struct rtw89_dev *rtwdev, in rtw89_phy_load_txpwr_byrate()
1572 #define _phy_txpwr_rf_to_mac(rtwdev, txpwr_rf) \ argument
1579 s8 rtw89_phy_read_txpwr_byrate(struct rtw89_dev *rtwdev, u8 band, in rtw89_phy_read_txpwr_byrate()
1602 static u8 rtw89_channel_6g_to_idx(struct rtw89_dev *rtwdev, u8 channel_6g) in rtw89_channel_6g_to_idx()
1627 static u8 rtw89_channel_to_idx(struct rtw89_dev *rtwdev, u8 band, u8 channel) in rtw89_channel_to_idx()
1647 s8 rtw89_phy_read_txpwr_limit(struct rtw89_dev *rtwdev, u8 band, in rtw89_phy_read_txpwr_limit()
1709 static void rtw89_phy_fill_txpwr_limit_20m(struct rtw89_dev *rtwdev, in rtw89_phy_fill_txpwr_limit_20m()
1724 static void rtw89_phy_fill_txpwr_limit_40m(struct rtw89_dev *rtwdev, in rtw89_phy_fill_txpwr_limit_40m()
1745 static void rtw89_phy_fill_txpwr_limit_80m(struct rtw89_dev *rtwdev, in rtw89_phy_fill_txpwr_limit_80m()
1786 static void rtw89_phy_fill_txpwr_limit_160m(struct rtw89_dev *rtwdev, in rtw89_phy_fill_txpwr_limit_160m()
1873 void rtw89_phy_fill_txpwr_limit(struct rtw89_dev *rtwdev, in rtw89_phy_fill_txpwr_limit()
1904 static s8 rtw89_phy_read_txpwr_limit_ru(struct rtw89_dev *rtwdev, u8 band, in rtw89_phy_read_txpwr_limit_ru()
1955 rtw89_phy_fill_txpwr_limit_ru_20m(struct rtw89_dev *rtwdev, in rtw89_phy_fill_txpwr_limit_ru_20m()
1971 rtw89_phy_fill_txpwr_limit_ru_40m(struct rtw89_dev *rtwdev, in rtw89_phy_fill_txpwr_limit_ru_40m()
1996 rtw89_phy_fill_txpwr_limit_ru_80m(struct rtw89_dev *rtwdev, in rtw89_phy_fill_txpwr_limit_ru_80m()
2039 rtw89_phy_fill_txpwr_limit_ru_160m(struct rtw89_dev *rtwdev, in rtw89_phy_fill_txpwr_limit_ru_160m()
2064 void rtw89_phy_fill_txpwr_limit_ru(struct rtw89_dev *rtwdev, in rtw89_phy_fill_txpwr_limit_ru()
2095 void rtw89_phy_set_txpwr_byrate(struct rtw89_dev *rtwdev, in rtw89_phy_set_txpwr_byrate()
2152 void rtw89_phy_set_txpwr_offset(struct rtw89_dev *rtwdev, in rtw89_phy_set_txpwr_offset()
2181 void rtw89_phy_set_txpwr_limit(struct rtw89_dev *rtwdev, in rtw89_phy_set_txpwr_limit()
2217 void rtw89_phy_set_txpwr_limit_ru(struct rtw89_dev *rtwdev, in rtw89_phy_set_txpwr_limit_ru()
2254 struct rtw89_dev *rtwdev; member
2261 struct rtw89_dev *rtwdev = ra_data->rtwdev; in rtw89_phy_c2h_ra_rpt_iter() local
2359 rtw89_phy_c2h_ra_rpt(struct rtw89_dev *rtwdev, struct sk_buff *c2h, u32 len) in rtw89_phy_c2h_ra_rpt()
2378 void rtw89_phy_c2h_handle(struct rtw89_dev *rtwdev, struct sk_buff *skb, in rtw89_phy_c2h_handle()
2405 static u8 rtw89_phy_cfo_get_xcap_reg(struct rtw89_dev *rtwdev, bool sc_xo) in rtw89_phy_cfo_get_xcap_reg()
2418 static void rtw89_phy_cfo_set_xcap_reg(struct rtw89_dev *rtwdev, bool sc_xo, in rtw89_phy_cfo_set_xcap_reg()
2432 static void rtw89_phy_cfo_set_crystal_cap(struct rtw89_dev *rtwdev, in rtw89_phy_cfo_set_crystal_cap()
2465 static void rtw89_phy_cfo_reset(struct rtw89_dev *rtwdev) in rtw89_phy_cfo_reset()
2482 static void rtw89_dcfo_comp(struct rtw89_dev *rtwdev, s32 curr_cfo) in rtw89_dcfo_comp()
2508 static void rtw89_dcfo_comp_init(struct rtw89_dev *rtwdev) in rtw89_dcfo_comp_init()
2522 static void rtw89_phy_cfo_init(struct rtw89_dev *rtwdev) in rtw89_phy_cfo_init()
2551 static void rtw89_phy_cfo_crystal_cap_adjust(struct rtw89_dev *rtwdev, in rtw89_phy_cfo_crystal_cap_adjust()
2587 static s32 rtw89_phy_average_cfo_calc(struct rtw89_dev *rtwdev) in rtw89_phy_average_cfo_calc()
2617 static s32 rtw89_phy_multi_sta_cfo_calc(struct rtw89_dev *rtwdev) in rtw89_phy_multi_sta_cfo_calc()
2717 static void rtw89_phy_cfo_statistics_reset(struct rtw89_dev *rtwdev) in rtw89_phy_cfo_statistics_reset()
2728 static void rtw89_phy_cfo_dm(struct rtw89_dev *rtwdev) in rtw89_phy_cfo_dm()
2796 struct rtw89_dev *rtwdev = container_of(work, struct rtw89_dev, in rtw89_phy_cfo_track_work() local
2811 static void rtw89_phy_cfo_start_work(struct rtw89_dev *rtwdev) in rtw89_phy_cfo_start_work()
2819 void rtw89_phy_cfo_track(struct rtw89_dev *rtwdev) in rtw89_phy_cfo_track()
2878 void rtw89_phy_cfo_parse(struct rtw89_dev *rtwdev, s16 cfo_val, in rtw89_phy_cfo_parse()
2894 void rtw89_phy_ul_tb_assoc(struct rtw89_dev *rtwdev, struct rtw89_vif *rtwvif) in rtw89_phy_ul_tb_assoc()
2932 void rtw89_phy_ul_tb_ctrl_check(struct rtw89_dev *rtwdev, in rtw89_phy_ul_tb_ctrl_check()
2955 void rtw89_phy_ul_tb_ctrl_track(struct rtw89_dev *rtwdev) in rtw89_phy_ul_tb_ctrl_track()
3005 static void rtw89_phy_ul_tb_info_init(struct rtw89_dev *rtwdev) in rtw89_phy_ul_tb_info_init()
3030 static void rtw89_phy_antdiv_sts_instance_add(struct rtw89_dev *rtwdev, in rtw89_phy_antdiv_sts_instance_add()
3067 void rtw89_phy_antdiv_parse(struct rtw89_dev *rtwdev, in rtw89_phy_antdiv_parse()
3087 static void rtw89_phy_antdiv_reg_init(struct rtw89_dev *rtwdev) in rtw89_phy_antdiv_reg_init()
3115 static void rtw89_phy_antdiv_sts_reset(struct rtw89_dev *rtwdev) in rtw89_phy_antdiv_sts_reset()
3124 static void rtw89_phy_antdiv_init(struct rtw89_dev *rtwdev) in rtw89_phy_antdiv_init()
3138 static void rtw89_phy_stat_thermal_update(struct rtw89_dev *rtwdev) in rtw89_phy_stat_thermal_update()
3156 struct rtw89_dev *rtwdev; member
3185 static void rtw89_phy_stat_rssi_update(struct rtw89_dev *rtwdev) in rtw89_phy_stat_rssi_update()
3199 static void rtw89_phy_stat_init(struct rtw89_dev *rtwdev) in rtw89_phy_stat_init()
3213 void rtw89_phy_stat_track(struct rtw89_dev *rtwdev) in rtw89_phy_stat_track()
3224 static u16 rtw89_phy_ccx_us_to_idx(struct rtw89_dev *rtwdev, u32 time_us) in rtw89_phy_ccx_us_to_idx()
3231 static u32 rtw89_phy_ccx_idx_to_us(struct rtw89_dev *rtwdev, u16 idx) in rtw89_phy_ccx_idx_to_us()
3238 static void rtw89_phy_ccx_top_setting_init(struct rtw89_dev *rtwdev) in rtw89_phy_ccx_top_setting_init()
3257 static u16 rtw89_phy_ccx_get_report(struct rtw89_dev *rtwdev, u16 report, in rtw89_phy_ccx_get_report()
3271 static void rtw89_phy_ccx_ms_to_period_unit(struct rtw89_dev *rtwdev, in rtw89_phy_ccx_ms_to_period_unit()
3300 static void rtw89_phy_ccx_racing_release(struct rtw89_dev *rtwdev) in rtw89_phy_ccx_racing_release()
3312 static bool rtw89_phy_ifs_clm_th_update_check(struct rtw89_dev *rtwdev, in rtw89_phy_ifs_clm_th_update_check()
3366 static void rtw89_phy_ifs_clm_set_th_reg(struct rtw89_dev *rtwdev) in rtw89_phy_ifs_clm_set_th_reg()
3397 static void rtw89_phy_ifs_clm_setting_init(struct rtw89_dev *rtwdev) in rtw89_phy_ifs_clm_setting_init()
3418 static int rtw89_phy_ccx_racing_ctrl(struct rtw89_dev *rtwdev, in rtw89_phy_ccx_racing_ctrl()
3450 static void rtw89_phy_ccx_trigger(struct rtw89_dev *rtwdev) in rtw89_phy_ccx_trigger()
3464 static void rtw89_phy_ifs_clm_get_utility(struct rtw89_dev *rtwdev) in rtw89_phy_ifs_clm_get_utility()
3529 static bool rtw89_phy_ifs_clm_get_result(struct rtw89_dev *rtwdev) in rtw89_phy_ifs_clm_get_result()
3628 static int rtw89_phy_ifs_clm_set(struct rtw89_dev *rtwdev, in rtw89_phy_ifs_clm_set()
3672 void rtw89_phy_env_monitor_track(struct rtw89_dev *rtwdev) in rtw89_phy_env_monitor_track()
3722 static u32 rtw89_physts_get_ie_bitmap(struct rtw89_dev *rtwdev, in rtw89_physts_get_ie_bitmap()
3735 static void rtw89_physts_set_ie_bitmap(struct rtw89_dev *rtwdev, in rtw89_physts_set_ie_bitmap()
3752 static void rtw89_physts_enable_ie_bitmap(struct rtw89_dev *rtwdev, in rtw89_physts_enable_ie_bitmap()
3767 static void rtw89_physts_enable_fail_report(struct rtw89_dev *rtwdev, in rtw89_physts_enable_fail_report()
3787 static void rtw89_physts_parsing_init(struct rtw89_dev *rtwdev) in rtw89_physts_parsing_init()
3815 static void rtw89_phy_dig_read_gain_table(struct rtw89_dev *rtwdev, int type) in rtw89_phy_dig_read_gain_table()
3867 static void rtw89_phy_dig_update_gain_para(struct rtw89_dev *rtwdev) in rtw89_phy_dig_update_gain_para()
3894 static void rtw89_phy_dig_update_rssi_info(struct rtw89_dev *rtwdev) in rtw89_phy_dig_update_rssi_info()
3908 static void rtw89_phy_dig_update_para(struct rtw89_dev *rtwdev) in rtw89_phy_dig_update_para()
3940 static void rtw89_phy_dig_para_reset(struct rtw89_dev *rtwdev) in rtw89_phy_dig_para_reset()
3958 static void rtw89_phy_dig_init(struct rtw89_dev *rtwdev) in rtw89_phy_dig_init()
3964 static u8 rtw89_phy_dig_lna_idx_by_rssi(struct rtw89_dev *rtwdev, u8 rssi) in rtw89_phy_dig_lna_idx_by_rssi()
3985 static u8 rtw89_phy_dig_tia_idx_by_rssi(struct rtw89_dev *rtwdev, u8 rssi) in rtw89_phy_dig_tia_idx_by_rssi()
4000 static u8 rtw89_phy_dig_rxb_idx_by_rssi(struct rtw89_dev *rtwdev, u8 rssi, in rtw89_phy_dig_rxb_idx_by_rssi()
4019 static void rtw89_phy_dig_gaincode_by_rssi(struct rtw89_dev *rtwdev, u8 rssi, in rtw89_phy_dig_gaincode_by_rssi()
4033 static void rtw89_phy_dig_igi_offset_by_env(struct rtw89_dev *rtwdev) in rtw89_phy_dig_igi_offset_by_env()
4073 static void rtw89_phy_dig_set_lna_idx(struct rtw89_dev *rtwdev, u8 lna_idx) in rtw89_phy_dig_set_lna_idx()
4083 static void rtw89_phy_dig_set_tia_idx(struct rtw89_dev *rtwdev, u8 tia_idx) in rtw89_phy_dig_set_tia_idx()
4093 static void rtw89_phy_dig_set_rxb_idx(struct rtw89_dev *rtwdev, u8 rxb_idx) in rtw89_phy_dig_set_rxb_idx()
4103 static void rtw89_phy_dig_set_igi_cr(struct rtw89_dev *rtwdev, in rtw89_phy_dig_set_igi_cr()
4114 static void rtw89_phy_dig_sdagc_follow_pagc_config(struct rtw89_dev *rtwdev, in rtw89_phy_dig_sdagc_follow_pagc_config()
4131 static void rtw89_phy_dig_config_igi(struct rtw89_dev *rtwdev) in rtw89_phy_dig_config_igi()
4149 static void rtw89_phy_dig_dyn_pd_th(struct rtw89_dev *rtwdev, u8 rssi, in rtw89_phy_dig_dyn_pd_th()
4217 void rtw89_phy_dig_reset(struct rtw89_dev *rtwdev) in rtw89_phy_dig_reset()
4230 void rtw89_phy_dig(struct rtw89_dev *rtwdev) in rtw89_phy_dig()
4278 struct rtw89_dev *rtwdev = rtwsta->rtwdev; in rtw89_phy_tx_path_div_sta_iter() local
4318 void rtw89_phy_tx_path_div_track(struct rtw89_dev *rtwdev) in rtw89_phy_tx_path_div_track()
4334 static void rtw89_phy_antdiv_set_ant(struct rtw89_dev *rtwdev) in rtw89_phy_antdiv_set_ant()
4360 static void rtw89_phy_swap_hal_antenna(struct rtw89_dev *rtwdev) in rtw89_phy_swap_hal_antenna()
4368 static void rtw89_phy_antdiv_decision_state(struct rtw89_dev *rtwdev) in rtw89_phy_antdiv_decision_state()
4406 static void rtw89_phy_antdiv_training_state(struct rtw89_dev *rtwdev) in rtw89_phy_antdiv_training_state()
4432 struct rtw89_dev *rtwdev = container_of(work, struct rtw89_dev, in rtw89_phy_antdiv_work() local
4448 void rtw89_phy_antdiv_track(struct rtw89_dev *rtwdev) in rtw89_phy_antdiv_track()
4469 static void rtw89_phy_env_monitor_init(struct rtw89_dev *rtwdev) in rtw89_phy_env_monitor_init()
4475 void rtw89_phy_dm_init(struct rtw89_dev *rtwdev) in rtw89_phy_dm_init()
4500 void rtw89_phy_set_bss_color(struct rtw89_dev *rtwdev, struct ieee80211_vif *vif) in rtw89_phy_set_bss_color()
4520 _rfk_write_rf(struct rtw89_dev *rtwdev, const struct rtw89_reg5_def *def) in _rfk_write_rf()
4526 _rfk_write32_mask(struct rtw89_dev *rtwdev, const struct rtw89_reg5_def *def) in _rfk_write32_mask()
4532 _rfk_write32_set(struct rtw89_dev *rtwdev, const struct rtw89_reg5_def *def) in _rfk_write32_set()
4538 _rfk_write32_clr(struct rtw89_dev *rtwdev, const struct rtw89_reg5_def *def) in _rfk_write32_clr()
4544 _rfk_delay(struct rtw89_dev *rtwdev, const struct rtw89_reg5_def *def) in _rfk_delay()
4561 rtw89_rfk_parser(struct rtw89_dev *rtwdev, const struct rtw89_rfk_tbl *tbl) in rtw89_rfk_parser()
4588 void rtw89_phy_tssi_ctrl_set_fast_mode_cfg(struct rtw89_dev *rtwdev, in rtw89_phy_tssi_ctrl_set_fast_mode_cfg()
4644 void rtw89_phy_tssi_ctrl_set_bandedge_cfg(struct rtw89_dev *rtwdev, in rtw89_phy_tssi_ctrl_set_bandedge_cfg()
4690 u8 rtw89_encode_chan_idx(struct rtw89_dev *rtwdev, u8 central_ch, u8 band) in rtw89_encode_chan_idx()
4730 void rtw89_decode_chan_idx(struct rtw89_dev *rtwdev, u8 chan_idx, in rtw89_decode_chan_idx()
4750 void rtw89_phy_config_edcca(struct rtw89_dev *rtwdev, bool scan) in rtw89_phy_config_edcca()