Lines Matching defs:chip
19 const struct rtw89_phy_gen_def *phy = rtwdev->chip->phy_def;
49 return rtwdev->chip->max_amsdu_limit;
552 enum rtw89_chip_gen chip_gen = rtwdev->chip->chip_gen;
797 const struct rtw89_chip_info *chip = rtwdev->chip;
798 const u32 *base_addr = chip->rf_base_addr;
801 if (rf_path >= rtwdev->chip->rf_path_num) {
854 if (rf_path >= rtwdev->chip->rf_path_num) {
919 if (rf_path >= rtwdev->chip->rf_path_num) {
934 const struct rtw89_chip_info *chip = rtwdev->chip;
935 const u32 *base_addr = chip->rf_base_addr;
938 if (rf_path >= rtwdev->chip->rf_path_num) {
998 if (rf_path >= rtwdev->chip->rf_path_num) {
1058 if (rf_path >= rtwdev->chip->rf_path_num) {
1072 return rtwdev->chip->ops->write_rf == rtw89_phy_write_rf_v1;
1078 const struct rtw89_chip_info *chip = rtwdev->chip;
1080 chip->ops->bb_reset(rtwdev, phy_idx);
1318 const struct rtw89_chip_info *chip = rtwdev->chip;
1325 if (arg.path >= chip->rf_path_num)
1619 const struct rtw89_chip_info *chip = rtwdev->chip;
1623 bb_table = elm_info->bb_tbl ? elm_info->bb_tbl : chip->bb_table;
1630 bb_gain_table = elm_info->bb_gain ? elm_info->bb_gain : chip->bb_gain_table;
1633 chip->phy_def->config_bb_gain, NULL);
1649 const struct rtw89_chip_info *chip = rtwdev->chip;
1658 for (path = RF_PATH_A; path < chip->rf_path_num; path++) {
1660 elm_info->rf_radio[path] : chip->rf_table[path];
1677 const struct rtw89_chip_info *chip = rtwdev->chip;
1685 if (chip->chip_id != RTL8851B)
1687 if (chip->chip_id == RTL8852B || chip->chip_id == RTL8852BT)
1706 const struct rtw89_chip_info *chip = rtwdev->chip;
1711 nctl_table = elm_info->rf_nctl ? elm_info->rf_nctl : chip->nctl_table;
1714 if (chip->nctl_post_table)
1715 rtw89_rfk_parser(rtwdev, chip->nctl_post_table);
1857 const struct rtw89_chip_info *chip = rtwdev->chip;
1859 return txpwr_rf >> (chip->txpwr_factor_rf - chip->txpwr_factor_mac);
1864 const struct rtw89_chip_info *chip = rtwdev->chip;
1866 return clamp_t(s16, dbm << chip->txpwr_factor_mac, -64, 63);
2412 u8 max_nss_num = rtwdev->chip->rf_path_num;
2497 u8 max_ntx_num = rtwdev->chip->rf_path_num;
2532 u8 max_ntx_num = rtwdev->chip->rf_path_num;
2576 const struct rtw89_chip_info *chip = rtwdev->chip;
2577 bool format_v1 = chip->chip_gen == RTW89_CHIP_BE;
3816 const struct rtw89_xtal_info *xtal = rtwdev->chip->xtal_info;
3830 const struct rtw89_xtal_info *xtal = rtwdev->chip->xtal_info;
3845 const struct rtw89_chip_info *chip = rtwdev->chip;
3851 if (chip->chip_id == RTL8852A || chip->chip_id == RTL8851B) {
3893 const struct rtw89_reg_def *dcfo_comp = rtwdev->chip->dcfo_comp;
3899 if (rtwdev->chip->chip_id == RTL8922A)
3914 if (rtwdev->chip->chip_id == RTL8852A && rtwdev->hal.cv == CHIP_CBV)
3922 const struct rtw89_phy_gen_def *phy = rtwdev->chip->phy_def;
3923 const struct rtw89_chip_info *chip = rtwdev->chip;
3929 if (chip->chip_gen == RTW89_CHIP_AX) {
3930 if (chip->cfo_hw_comp) {
4011 const struct rtw89_chip_info *chip = rtwdev->chip;
4028 cfo->dcfo_avg = phy_div(cfo_khz_all << chip->dcfo_comp_sft,
4156 u8 dcfo_comp_sft = rtwdev->chip->dcfo_comp_sft;
4314 const struct rtw89_chip_info *chip = rtwdev->chip;
4319 if (!chip->ul_tb_waveform_ctrl)
4325 if (chip->chip_id == RTL8852B && rtwdev->hal.cv > CHIP_CBV)
4369 if (!rtwdev->chip->ul_tb_pwr_diff)
4418 if (rtwdev->chip->ul_tb_waveform_ctrl) {
4437 if (!rtwdev->chip->ul_tb_waveform_ctrl)
4473 const struct rtw89_chip_info *chip = rtwdev->chip;
4477 if (!chip->ul_tb_waveform_ctrl && !chip->ul_tb_pwr_diff)
4494 const struct rtw89_chip_info *chip = rtwdev->chip;
4497 if (!chip->ul_tb_waveform_ctrl)
4631 for (i = 0; i < rtwdev->chip->rf_path_num; i++) {
4691 for (i = 0; i < rtwdev->chip->rf_path_num; i++)
4727 const struct rtw89_phy_gen_def *phy = rtwdev->chip->phy_def;
4855 const struct rtw89_phy_gen_def *phy = rtwdev->chip->phy_def;
4886 const struct rtw89_phy_gen_def *phy = rtwdev->chip->phy_def;
4939 const struct rtw89_phy_gen_def *phy = rtwdev->chip->phy_def;
5018 const struct rtw89_phy_gen_def *phy = rtwdev->chip->phy_def;
5118 const struct rtw89_phy_gen_def *phy = rtwdev->chip->phy_def;
5226 const struct rtw89_chip_info *chip = rtwdev->chip;
5232 if (chip->chip_id == RTL8852A)
5258 const struct rtw89_phy_gen_def *phy = rtwdev->chip->phy_def;
5304 const struct rtw89_chip_info *chip = rtwdev->chip;
5317 cfg = chip->dig_table->cfg_lna_g;
5323 cfg = chip->dig_table->cfg_tia_g;
5329 cfg = chip->dig_table->cfg_lna_a;
5335 cfg = chip->dig_table->cfg_tia_a;
5562 const struct rtw89_dig_regs *dig_regs = rtwdev->chip->dig_regs;
5572 const struct rtw89_dig_regs *dig_regs = rtwdev->chip->dig_regs;
5582 const struct rtw89_dig_regs *dig_regs = rtwdev->chip->dig_regs;
5607 const struct rtw89_dig_regs *dig_regs = rtwdev->chip->dig_regs;
5643 const struct rtw89_dig_regs *dig_regs = rtwdev->chip->dig_regs;
5651 if (rtwdev->chip->chip_gen == RTW89_CHIP_AX)
5968 const struct rtw89_edcca_regs *edcca_regs = rtwdev->chip->edcca_regs;
5973 if (rtwdev->chip->chip_id == RTL8922A && rtwdev->hal.cv == CHIP_CAV) {
6017 const struct rtw89_chip_info *chip = rtwdev->chip;
6018 const struct rtw89_reg_def *bss_clr_vld = &chip->bss_clr_vld;
6029 rtw89_phy_write32_idx(rtwdev, chip->bss_clr_map_reg, B_BSS_CLR_MAP_TGT,
6031 rtw89_phy_write32_idx(rtwdev, chip->bss_clr_map_reg, B_BSS_CLR_MAP_STAID,
6236 const struct rtw89_chip_info *chip = rtwdev->chip;
6250 data = chip->tssi_dbw_table->data[bandedge_cfg];
6339 const struct rtw89_edcca_regs *edcca_regs = rtwdev->chip->edcca_regs;
6374 const struct rtw89_edcca_regs *edcca_regs = rtwdev->chip->edcca_regs;
6384 if (rtwdev->chip->chip_id == RTL8922A)
6410 if (rtwdev->chip->chip_id == RTL8922A) {
6489 const struct rtw89_edcca_regs *edcca_regs = rtwdev->chip->edcca_regs;