Lines Matching +full:4 +full:- +full:ch

1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
104 #define BB_GAIN_TYPE_SUB1_BE GENMASK(7, 4)
107 #define BB_GAIN_BW_BE GENMASK(7, 4)
117 struct rtw89_phy_bb_gain_info_be *gain = &rtwdev->bb_gain.be; in rtw89_phy_cfg_bb_gain_error_be()
126 for (i = 0; i < 4; i++, data >>= 8) in rtw89_phy_cfg_bb_gain_error_be()
127 gain->lna_gain[gband][bw_type][path][i] = data & 0xff; in rtw89_phy_cfg_bb_gain_error_be()
130 for (i = 4; i < 7; i++, data >>= 8) in rtw89_phy_cfg_bb_gain_error_be()
131 gain->lna_gain[gband][bw_type][path][i] = data & 0xff; in rtw89_phy_cfg_bb_gain_error_be()
135 gain->tia_gain[gband][bw_type][path][i] = data & 0xff; in rtw89_phy_cfg_bb_gain_error_be()
149 struct rtw89_phy_bb_gain_info_be *gain = &rtwdev->bb_gain.be; in rtw89_phy_cfg_bb_rpl_ofst_be()
159 gain->rpl_ofst_20[gband][path][0] = (s8)data; in rtw89_phy_cfg_bb_rpl_ofst_be()
163 gain->rpl_ofst_40[gband][path][i] = data & 0xff; in rtw89_phy_cfg_bb_rpl_ofst_be()
167 gain->rpl_ofst_80[gband][path][i] = data & 0xff; in rtw89_phy_cfg_bb_rpl_ofst_be()
176 gain->rpl_ofst_160[gband][path][i + ofst] = data & 0xff; in rtw89_phy_cfg_bb_rpl_ofst_be()
190 struct rtw89_phy_bb_gain_info_be *gain = &rtwdev->bb_gain.be; in rtw89_phy_cfg_bb_gain_op1db_be()
199 for (i = 0; i < 4; i++, data >>= 8) in rtw89_phy_cfg_bb_gain_op1db_be()
200 gain->lna_op1db[gband][bw_type][path][i] = data & 0xff; in rtw89_phy_cfg_bb_gain_op1db_be()
203 for (i = 4; i < 7; i++, data >>= 8) in rtw89_phy_cfg_bb_gain_op1db_be()
204 gain->lna_op1db[gband][bw_type][path][i] = data & 0xff; in rtw89_phy_cfg_bb_gain_op1db_be()
207 for (i = 0; i < 4; i++, data >>= 8) in rtw89_phy_cfg_bb_gain_op1db_be()
208 gain->tia_lna_op1db[gband][bw_type][path][i] = data & 0xff; in rtw89_phy_cfg_bb_gain_op1db_be()
211 for (i = 4; i < 8; i++, data >>= 8) in rtw89_phy_cfg_bb_gain_op1db_be()
212 gain->tia_lna_op1db[gband][bw_type][path][i] = data & 0xff; in rtw89_phy_cfg_bb_gain_op1db_be()
227 const struct rtw89_chip_info *chip = rtwdev->chip; in rtw89_phy_config_bb_gain_be()
228 union rtw89_phy_bb_gain_arg_be arg = { .addr = reg->addr }; in rtw89_phy_config_bb_gain_be()
229 struct rtw89_efuse *efuse = &rtwdev->efuse; in rtw89_phy_config_bb_gain_be()
239 if (path >= chip->rf_path_num) in rtw89_phy_config_bb_gain_be()
249 rtw89_phy_cfg_bb_gain_error_be(rtwdev, arg, reg->data); in rtw89_phy_config_bb_gain_be()
252 rtw89_phy_cfg_bb_rpl_ofst_be(rtwdev, arg, reg->data); in rtw89_phy_config_bb_gain_be()
258 rtw89_phy_cfg_bb_gain_op1db_be(rtwdev, arg, reg->data); in rtw89_phy_config_bb_gain_be()
260 case 4: in rtw89_phy_config_bb_gain_be()
262 if (efuse->rfe_type < 50) in rtw89_phy_config_bb_gain_be()
268 arg.addr, reg->data, arg.cfg_type); in rtw89_phy_config_bb_gain_be()
285 if (rtwdev->dbcc_en) { in rtw89_phy_preinit_rf_nctl_be()
298 for (macid_idx = 0; macid_idx < 4 * max_macid; macid_idx += 4) { in rtw89_phy_bb_wrap_pwr_by_macid_init()
310 for (i = 0; i < max_macid; i++, cr += 4) in rtw89_phy_bb_wrap_tx_path_by_macid_init()
319 for (addr = R_BE_PWR_BY_RATE; addr <= R_BE_PWR_BY_RATE_END; addr += 4) in rtw89_phy_bb_wrap_tpu_set_all()
321 for (addr = R_BE_PWR_RULMT_START; addr <= R_BE_PWR_RULMT_END; addr += 4) in rtw89_phy_bb_wrap_tpu_set_all()
323 for (addr = R_BE_PWR_RATE_OFST_CTRL; addr <= R_BE_PWR_RATE_OFST_END; addr += 4) in rtw89_phy_bb_wrap_tpu_set_all()
386 enum rtw89_core_chip_id chip_id = rtwdev->chip->chip_id; in rtw89_phy_bb_wrap_ul_pwr()
416 if (rtwdev->dbcc_en) in rtw89_phy_bb_wrap_init_be()
487 s8 v[4]; in __phy_set_txpwr_byrate_be()
492 if (bw > RTW89_CHANNEL_WIDTH_40 && ent->no_over_bw40) in __phy_set_txpwr_byrate_be()
494 if (nss > RTW89_NSS_1 && ent->no_multi_nss) in __phy_set_txpwr_byrate_be()
497 desc = ent->init; in __phy_set_txpwr_byrate_be()
499 for (j = 0; j < ent->num_of_idx; j++, desc.idx++) { in __phy_set_txpwr_byrate_be()
502 pos = (pos + 1) % 4; in __phy_set_txpwr_byrate_be()
512 *addr += 4; in __phy_set_txpwr_byrate_be()
522 u8 band = chan->band_type; in rtw89_phy_set_txpwr_byrate_be()
542 u8 band = chan->band_type; in rtw89_phy_set_txpwr_offset_be()
553 u32_encode_bits(v[RTW89_RATE_OFFSET_OFDM], GENMASK(7, 4)) | in rtw89_phy_set_txpwr_offset_be()
566 u8 band, u8 bw, u8 ntx, u8 rs, u8 ch) in fill_limit_nonbf_bf() argument
572 rs, bf, ch); in fill_limit_nonbf_bf()
592 u8 band, u8 ntx, u8 ch) in phy_fill_limit_20m_be() argument
594 fill_limit_nonbf_bf(rtwdev, &lmt->cck_20m, band, in phy_fill_limit_20m_be()
595 RTW89_CHANNEL_WIDTH_20, ntx, RTW89_RS_CCK, ch); in phy_fill_limit_20m_be()
596 fill_limit_nonbf_bf(rtwdev, &lmt->cck_40m, band, in phy_fill_limit_20m_be()
597 RTW89_CHANNEL_WIDTH_40, ntx, RTW89_RS_CCK, ch); in phy_fill_limit_20m_be()
598 fill_limit_nonbf_bf(rtwdev, &lmt->ofdm, band, in phy_fill_limit_20m_be()
599 RTW89_CHANNEL_WIDTH_20, ntx, RTW89_RS_OFDM, ch); in phy_fill_limit_20m_be()
600 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_20m[0], band, in phy_fill_limit_20m_be()
601 RTW89_CHANNEL_WIDTH_20, ntx, RTW89_RS_MCS, ch); in phy_fill_limit_20m_be()
606 u8 band, u8 ntx, u8 ch, u8 pri_ch) in phy_fill_limit_40m_be() argument
608 fill_limit_nonbf_bf(rtwdev, &lmt->cck_20m, band, in phy_fill_limit_40m_be()
609 RTW89_CHANNEL_WIDTH_20, ntx, RTW89_RS_CCK, ch - 2); in phy_fill_limit_40m_be()
610 fill_limit_nonbf_bf(rtwdev, &lmt->cck_40m, band, in phy_fill_limit_40m_be()
611 RTW89_CHANNEL_WIDTH_40, ntx, RTW89_RS_CCK, ch); in phy_fill_limit_40m_be()
613 fill_limit_nonbf_bf(rtwdev, &lmt->ofdm, band, in phy_fill_limit_40m_be()
616 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_20m[0], band, in phy_fill_limit_40m_be()
617 RTW89_CHANNEL_WIDTH_20, ntx, RTW89_RS_MCS, ch - 2); in phy_fill_limit_40m_be()
618 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_20m[1], band, in phy_fill_limit_40m_be()
619 RTW89_CHANNEL_WIDTH_20, ntx, RTW89_RS_MCS, ch + 2); in phy_fill_limit_40m_be()
620 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_40m[0], band, in phy_fill_limit_40m_be()
621 RTW89_CHANNEL_WIDTH_40, ntx, RTW89_RS_MCS, ch); in phy_fill_limit_40m_be()
626 u8 band, u8 ntx, u8 ch, u8 pri_ch) in phy_fill_limit_80m_be() argument
628 fill_limit_nonbf_bf(rtwdev, &lmt->ofdm, band, in phy_fill_limit_80m_be()
631 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_20m[0], band, in phy_fill_limit_80m_be()
632 RTW89_CHANNEL_WIDTH_20, ntx, RTW89_RS_MCS, ch - 6); in phy_fill_limit_80m_be()
633 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_20m[1], band, in phy_fill_limit_80m_be()
634 RTW89_CHANNEL_WIDTH_20, ntx, RTW89_RS_MCS, ch - 2); in phy_fill_limit_80m_be()
635 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_20m[2], band, in phy_fill_limit_80m_be()
636 RTW89_CHANNEL_WIDTH_20, ntx, RTW89_RS_MCS, ch + 2); in phy_fill_limit_80m_be()
637 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_20m[3], band, in phy_fill_limit_80m_be()
638 RTW89_CHANNEL_WIDTH_20, ntx, RTW89_RS_MCS, ch + 6); in phy_fill_limit_80m_be()
639 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_40m[0], band, in phy_fill_limit_80m_be()
640 RTW89_CHANNEL_WIDTH_40, ntx, RTW89_RS_MCS, ch - 4); in phy_fill_limit_80m_be()
641 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_40m[1], band, in phy_fill_limit_80m_be()
642 RTW89_CHANNEL_WIDTH_40, ntx, RTW89_RS_MCS, ch + 4); in phy_fill_limit_80m_be()
643 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_80m[0], band, in phy_fill_limit_80m_be()
644 RTW89_CHANNEL_WIDTH_80, ntx, RTW89_RS_MCS, ch); in phy_fill_limit_80m_be()
646 fill_limit_nonbf_bf_min(rtwdev, &lmt->mcs_40m_0p5, band, in phy_fill_limit_80m_be()
648 ch - 4, ch + 4); in phy_fill_limit_80m_be()
653 u8 band, u8 ntx, u8 ch, u8 pri_ch) in phy_fill_limit_160m_be() argument
655 fill_limit_nonbf_bf(rtwdev, &lmt->ofdm, band, in phy_fill_limit_160m_be()
658 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_20m[0], band, in phy_fill_limit_160m_be()
659 RTW89_CHANNEL_WIDTH_20, ntx, RTW89_RS_MCS, ch - 14); in phy_fill_limit_160m_be()
660 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_20m[1], band, in phy_fill_limit_160m_be()
661 RTW89_CHANNEL_WIDTH_20, ntx, RTW89_RS_MCS, ch - 10); in phy_fill_limit_160m_be()
662 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_20m[2], band, in phy_fill_limit_160m_be()
663 RTW89_CHANNEL_WIDTH_20, ntx, RTW89_RS_MCS, ch - 6); in phy_fill_limit_160m_be()
664 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_20m[3], band, in phy_fill_limit_160m_be()
665 RTW89_CHANNEL_WIDTH_20, ntx, RTW89_RS_MCS, ch - 2); in phy_fill_limit_160m_be()
666 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_20m[4], band, in phy_fill_limit_160m_be()
667 RTW89_CHANNEL_WIDTH_20, ntx, RTW89_RS_MCS, ch + 2); in phy_fill_limit_160m_be()
668 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_20m[5], band, in phy_fill_limit_160m_be()
669 RTW89_CHANNEL_WIDTH_20, ntx, RTW89_RS_MCS, ch + 6); in phy_fill_limit_160m_be()
670 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_20m[6], band, in phy_fill_limit_160m_be()
671 RTW89_CHANNEL_WIDTH_20, ntx, RTW89_RS_MCS, ch + 10); in phy_fill_limit_160m_be()
672 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_20m[7], band, in phy_fill_limit_160m_be()
673 RTW89_CHANNEL_WIDTH_20, ntx, RTW89_RS_MCS, ch + 14); in phy_fill_limit_160m_be()
675 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_40m[0], band, in phy_fill_limit_160m_be()
676 RTW89_CHANNEL_WIDTH_40, ntx, RTW89_RS_MCS, ch - 12); in phy_fill_limit_160m_be()
677 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_40m[1], band, in phy_fill_limit_160m_be()
678 RTW89_CHANNEL_WIDTH_40, ntx, RTW89_RS_MCS, ch - 4); in phy_fill_limit_160m_be()
679 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_40m[2], band, in phy_fill_limit_160m_be()
680 RTW89_CHANNEL_WIDTH_40, ntx, RTW89_RS_MCS, ch + 4); in phy_fill_limit_160m_be()
681 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_40m[3], band, in phy_fill_limit_160m_be()
682 RTW89_CHANNEL_WIDTH_40, ntx, RTW89_RS_MCS, ch + 12); in phy_fill_limit_160m_be()
684 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_80m[0], band, in phy_fill_limit_160m_be()
685 RTW89_CHANNEL_WIDTH_80, ntx, RTW89_RS_MCS, ch - 8); in phy_fill_limit_160m_be()
686 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_80m[1], band, in phy_fill_limit_160m_be()
687 RTW89_CHANNEL_WIDTH_80, ntx, RTW89_RS_MCS, ch + 8); in phy_fill_limit_160m_be()
689 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_160m[0], band, in phy_fill_limit_160m_be()
690 RTW89_CHANNEL_WIDTH_160, ntx, RTW89_RS_MCS, ch); in phy_fill_limit_160m_be()
692 fill_limit_nonbf_bf_min(rtwdev, &lmt->mcs_40m_0p5, band, in phy_fill_limit_160m_be()
694 ch - 12, ch - 4); in phy_fill_limit_160m_be()
695 fill_limit_nonbf_bf_min(rtwdev, &lmt->mcs_40m_2p5, band, in phy_fill_limit_160m_be()
697 ch + 4, ch + 12); in phy_fill_limit_160m_be()
702 u8 band, u8 ntx, u8 ch, u8 pri_ch) in phy_fill_limit_320m_be() argument
704 fill_limit_nonbf_bf(rtwdev, &lmt->ofdm, band, in phy_fill_limit_320m_be()
707 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_20m[0], band, in phy_fill_limit_320m_be()
708 RTW89_CHANNEL_WIDTH_20, ntx, RTW89_RS_MCS, ch - 30); in phy_fill_limit_320m_be()
709 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_20m[1], band, in phy_fill_limit_320m_be()
710 RTW89_CHANNEL_WIDTH_20, ntx, RTW89_RS_MCS, ch - 26); in phy_fill_limit_320m_be()
711 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_20m[2], band, in phy_fill_limit_320m_be()
712 RTW89_CHANNEL_WIDTH_20, ntx, RTW89_RS_MCS, ch - 22); in phy_fill_limit_320m_be()
713 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_20m[3], band, in phy_fill_limit_320m_be()
714 RTW89_CHANNEL_WIDTH_20, ntx, RTW89_RS_MCS, ch - 18); in phy_fill_limit_320m_be()
715 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_20m[4], band, in phy_fill_limit_320m_be()
716 RTW89_CHANNEL_WIDTH_20, ntx, RTW89_RS_MCS, ch - 14); in phy_fill_limit_320m_be()
717 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_20m[5], band, in phy_fill_limit_320m_be()
718 RTW89_CHANNEL_WIDTH_20, ntx, RTW89_RS_MCS, ch - 10); in phy_fill_limit_320m_be()
719 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_20m[6], band, in phy_fill_limit_320m_be()
720 RTW89_CHANNEL_WIDTH_20, ntx, RTW89_RS_MCS, ch - 6); in phy_fill_limit_320m_be()
721 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_20m[7], band, in phy_fill_limit_320m_be()
722 RTW89_CHANNEL_WIDTH_20, ntx, RTW89_RS_MCS, ch - 2); in phy_fill_limit_320m_be()
723 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_20m[8], band, in phy_fill_limit_320m_be()
724 RTW89_CHANNEL_WIDTH_20, ntx, RTW89_RS_MCS, ch + 2); in phy_fill_limit_320m_be()
725 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_20m[9], band, in phy_fill_limit_320m_be()
726 RTW89_CHANNEL_WIDTH_20, ntx, RTW89_RS_MCS, ch + 6); in phy_fill_limit_320m_be()
727 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_20m[10], band, in phy_fill_limit_320m_be()
728 RTW89_CHANNEL_WIDTH_20, ntx, RTW89_RS_MCS, ch + 10); in phy_fill_limit_320m_be()
729 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_20m[11], band, in phy_fill_limit_320m_be()
730 RTW89_CHANNEL_WIDTH_20, ntx, RTW89_RS_MCS, ch + 14); in phy_fill_limit_320m_be()
731 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_20m[12], band, in phy_fill_limit_320m_be()
732 RTW89_CHANNEL_WIDTH_20, ntx, RTW89_RS_MCS, ch + 18); in phy_fill_limit_320m_be()
733 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_20m[13], band, in phy_fill_limit_320m_be()
734 RTW89_CHANNEL_WIDTH_20, ntx, RTW89_RS_MCS, ch + 22); in phy_fill_limit_320m_be()
735 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_20m[14], band, in phy_fill_limit_320m_be()
736 RTW89_CHANNEL_WIDTH_20, ntx, RTW89_RS_MCS, ch + 26); in phy_fill_limit_320m_be()
737 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_20m[15], band, in phy_fill_limit_320m_be()
738 RTW89_CHANNEL_WIDTH_20, ntx, RTW89_RS_MCS, ch + 30); in phy_fill_limit_320m_be()
740 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_40m[0], band, in phy_fill_limit_320m_be()
741 RTW89_CHANNEL_WIDTH_40, ntx, RTW89_RS_MCS, ch - 28); in phy_fill_limit_320m_be()
742 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_40m[1], band, in phy_fill_limit_320m_be()
743 RTW89_CHANNEL_WIDTH_40, ntx, RTW89_RS_MCS, ch - 20); in phy_fill_limit_320m_be()
744 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_40m[2], band, in phy_fill_limit_320m_be()
745 RTW89_CHANNEL_WIDTH_40, ntx, RTW89_RS_MCS, ch - 12); in phy_fill_limit_320m_be()
746 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_40m[3], band, in phy_fill_limit_320m_be()
747 RTW89_CHANNEL_WIDTH_40, ntx, RTW89_RS_MCS, ch - 4); in phy_fill_limit_320m_be()
748 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_40m[4], band, in phy_fill_limit_320m_be()
749 RTW89_CHANNEL_WIDTH_40, ntx, RTW89_RS_MCS, ch + 4); in phy_fill_limit_320m_be()
750 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_40m[5], band, in phy_fill_limit_320m_be()
751 RTW89_CHANNEL_WIDTH_40, ntx, RTW89_RS_MCS, ch + 12); in phy_fill_limit_320m_be()
752 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_40m[6], band, in phy_fill_limit_320m_be()
753 RTW89_CHANNEL_WIDTH_40, ntx, RTW89_RS_MCS, ch + 20); in phy_fill_limit_320m_be()
754 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_40m[7], band, in phy_fill_limit_320m_be()
755 RTW89_CHANNEL_WIDTH_40, ntx, RTW89_RS_MCS, ch + 28); in phy_fill_limit_320m_be()
757 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_80m[0], band, in phy_fill_limit_320m_be()
758 RTW89_CHANNEL_WIDTH_80, ntx, RTW89_RS_MCS, ch - 24); in phy_fill_limit_320m_be()
759 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_80m[1], band, in phy_fill_limit_320m_be()
760 RTW89_CHANNEL_WIDTH_80, ntx, RTW89_RS_MCS, ch - 8); in phy_fill_limit_320m_be()
761 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_80m[2], band, in phy_fill_limit_320m_be()
762 RTW89_CHANNEL_WIDTH_80, ntx, RTW89_RS_MCS, ch + 8); in phy_fill_limit_320m_be()
763 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_80m[3], band, in phy_fill_limit_320m_be()
764 RTW89_CHANNEL_WIDTH_80, ntx, RTW89_RS_MCS, ch + 24); in phy_fill_limit_320m_be()
766 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_160m[0], band, in phy_fill_limit_320m_be()
767 RTW89_CHANNEL_WIDTH_160, ntx, RTW89_RS_MCS, ch - 16); in phy_fill_limit_320m_be()
768 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_160m[1], band, in phy_fill_limit_320m_be()
769 RTW89_CHANNEL_WIDTH_160, ntx, RTW89_RS_MCS, ch + 16); in phy_fill_limit_320m_be()
771 fill_limit_nonbf_bf(rtwdev, &lmt->mcs_320m, band, in phy_fill_limit_320m_be()
772 RTW89_CHANNEL_WIDTH_320, ntx, RTW89_RS_MCS, ch); in phy_fill_limit_320m_be()
774 fill_limit_nonbf_bf_min(rtwdev, &lmt->mcs_40m_0p5, band, in phy_fill_limit_320m_be()
776 ch - 28, ch - 20); in phy_fill_limit_320m_be()
777 fill_limit_nonbf_bf_min(rtwdev, &lmt->mcs_40m_2p5, band, in phy_fill_limit_320m_be()
779 ch - 12, ch - 4); in phy_fill_limit_320m_be()
780 fill_limit_nonbf_bf_min(rtwdev, &lmt->mcs_40m_4p5, band, in phy_fill_limit_320m_be()
782 ch + 4, ch + 12); in phy_fill_limit_320m_be()
783 fill_limit_nonbf_bf_min(rtwdev, &lmt->mcs_40m_6p5, band, in phy_fill_limit_320m_be()
785 ch + 20, ch + 28); in phy_fill_limit_320m_be()
793 u8 band = chan->band_type; in rtw89_phy_fill_limit_be()
794 u8 pri_ch = chan->primary_channel; in rtw89_phy_fill_limit_be()
795 u8 ch = chan->channel; in rtw89_phy_fill_limit_be() local
796 u8 bw = chan->band_width; in rtw89_phy_fill_limit_be()
802 phy_fill_limit_20m_be(rtwdev, lmt, band, ntx, ch); in rtw89_phy_fill_limit_be()
805 phy_fill_limit_40m_be(rtwdev, lmt, band, ntx, ch, pri_ch); in rtw89_phy_fill_limit_be()
808 phy_fill_limit_80m_be(rtwdev, lmt, band, ntx, ch, pri_ch); in rtw89_phy_fill_limit_be()
811 phy_fill_limit_160m_be(rtwdev, lmt, band, ntx, ch, pri_ch); in rtw89_phy_fill_limit_be()
814 phy_fill_limit_320m_be(rtwdev, lmt, band, ntx, ch, pri_ch); in rtw89_phy_fill_limit_be()
833 chan->band_type, chan->band_width); in rtw89_phy_set_txpwr_limit_be()
841 j += 4, addr += 4, ptr += 4) { in rtw89_phy_set_txpwr_limit_be()
854 u8 band, u8 ntx, u8 ch) in fill_limit_ru_each() argument
856 lmt_ru->ru26[index] = in fill_limit_ru_each()
857 rtw89_phy_read_txpwr_limit_ru(rtwdev, band, RTW89_RU26, ntx, ch); in fill_limit_ru_each()
858 lmt_ru->ru52[index] = in fill_limit_ru_each()
859 rtw89_phy_read_txpwr_limit_ru(rtwdev, band, RTW89_RU52, ntx, ch); in fill_limit_ru_each()
860 lmt_ru->ru106[index] = in fill_limit_ru_each()
861 rtw89_phy_read_txpwr_limit_ru(rtwdev, band, RTW89_RU106, ntx, ch); in fill_limit_ru_each()
862 lmt_ru->ru52_26[index] = in fill_limit_ru_each()
863 rtw89_phy_read_txpwr_limit_ru(rtwdev, band, RTW89_RU52_26, ntx, ch); in fill_limit_ru_each()
864 lmt_ru->ru106_26[index] = in fill_limit_ru_each()
865 rtw89_phy_read_txpwr_limit_ru(rtwdev, band, RTW89_RU106_26, ntx, ch); in fill_limit_ru_each()
870 u8 band, u8 ntx, u8 ch) in phy_fill_limit_ru_20m_be() argument
872 fill_limit_ru_each(rtwdev, 0, lmt_ru, band, ntx, ch); in phy_fill_limit_ru_20m_be()
877 u8 band, u8 ntx, u8 ch) in phy_fill_limit_ru_40m_be() argument
879 fill_limit_ru_each(rtwdev, 0, lmt_ru, band, ntx, ch - 2); in phy_fill_limit_ru_40m_be()
880 fill_limit_ru_each(rtwdev, 1, lmt_ru, band, ntx, ch + 2); in phy_fill_limit_ru_40m_be()
885 u8 band, u8 ntx, u8 ch) in phy_fill_limit_ru_80m_be() argument
887 fill_limit_ru_each(rtwdev, 0, lmt_ru, band, ntx, ch - 6); in phy_fill_limit_ru_80m_be()
888 fill_limit_ru_each(rtwdev, 1, lmt_ru, band, ntx, ch - 2); in phy_fill_limit_ru_80m_be()
889 fill_limit_ru_each(rtwdev, 2, lmt_ru, band, ntx, ch + 2); in phy_fill_limit_ru_80m_be()
890 fill_limit_ru_each(rtwdev, 3, lmt_ru, band, ntx, ch + 6); in phy_fill_limit_ru_80m_be()
895 u8 band, u8 ntx, u8 ch) in phy_fill_limit_ru_160m_be() argument
897 fill_limit_ru_each(rtwdev, 0, lmt_ru, band, ntx, ch - 14); in phy_fill_limit_ru_160m_be()
898 fill_limit_ru_each(rtwdev, 1, lmt_ru, band, ntx, ch - 10); in phy_fill_limit_ru_160m_be()
899 fill_limit_ru_each(rtwdev, 2, lmt_ru, band, ntx, ch - 6); in phy_fill_limit_ru_160m_be()
900 fill_limit_ru_each(rtwdev, 3, lmt_ru, band, ntx, ch - 2); in phy_fill_limit_ru_160m_be()
901 fill_limit_ru_each(rtwdev, 4, lmt_ru, band, ntx, ch + 2); in phy_fill_limit_ru_160m_be()
902 fill_limit_ru_each(rtwdev, 5, lmt_ru, band, ntx, ch + 6); in phy_fill_limit_ru_160m_be()
903 fill_limit_ru_each(rtwdev, 6, lmt_ru, band, ntx, ch + 10); in phy_fill_limit_ru_160m_be()
904 fill_limit_ru_each(rtwdev, 7, lmt_ru, band, ntx, ch + 14); in phy_fill_limit_ru_160m_be()
909 u8 band, u8 ntx, u8 ch) in phy_fill_limit_ru_320m_be() argument
911 fill_limit_ru_each(rtwdev, 0, lmt_ru, band, ntx, ch - 30); in phy_fill_limit_ru_320m_be()
912 fill_limit_ru_each(rtwdev, 1, lmt_ru, band, ntx, ch - 26); in phy_fill_limit_ru_320m_be()
913 fill_limit_ru_each(rtwdev, 2, lmt_ru, band, ntx, ch - 22); in phy_fill_limit_ru_320m_be()
914 fill_limit_ru_each(rtwdev, 3, lmt_ru, band, ntx, ch - 18); in phy_fill_limit_ru_320m_be()
915 fill_limit_ru_each(rtwdev, 4, lmt_ru, band, ntx, ch - 14); in phy_fill_limit_ru_320m_be()
916 fill_limit_ru_each(rtwdev, 5, lmt_ru, band, ntx, ch - 10); in phy_fill_limit_ru_320m_be()
917 fill_limit_ru_each(rtwdev, 6, lmt_ru, band, ntx, ch - 6); in phy_fill_limit_ru_320m_be()
918 fill_limit_ru_each(rtwdev, 7, lmt_ru, band, ntx, ch - 2); in phy_fill_limit_ru_320m_be()
919 fill_limit_ru_each(rtwdev, 8, lmt_ru, band, ntx, ch + 2); in phy_fill_limit_ru_320m_be()
920 fill_limit_ru_each(rtwdev, 9, lmt_ru, band, ntx, ch + 6); in phy_fill_limit_ru_320m_be()
921 fill_limit_ru_each(rtwdev, 10, lmt_ru, band, ntx, ch + 10); in phy_fill_limit_ru_320m_be()
922 fill_limit_ru_each(rtwdev, 11, lmt_ru, band, ntx, ch + 14); in phy_fill_limit_ru_320m_be()
923 fill_limit_ru_each(rtwdev, 12, lmt_ru, band, ntx, ch + 18); in phy_fill_limit_ru_320m_be()
924 fill_limit_ru_each(rtwdev, 13, lmt_ru, band, ntx, ch + 22); in phy_fill_limit_ru_320m_be()
925 fill_limit_ru_each(rtwdev, 14, lmt_ru, band, ntx, ch + 26); in phy_fill_limit_ru_320m_be()
926 fill_limit_ru_each(rtwdev, 15, lmt_ru, band, ntx, ch + 30); in phy_fill_limit_ru_320m_be()
934 u8 band = chan->band_type; in rtw89_phy_fill_limit_ru_be()
935 u8 ch = chan->channel; in rtw89_phy_fill_limit_ru_be() local
936 u8 bw = chan->band_width; in rtw89_phy_fill_limit_ru_be()
942 phy_fill_limit_ru_20m_be(rtwdev, lmt_ru, band, ntx, ch); in rtw89_phy_fill_limit_ru_be()
945 phy_fill_limit_ru_40m_be(rtwdev, lmt_ru, band, ntx, ch); in rtw89_phy_fill_limit_ru_be()
948 phy_fill_limit_ru_80m_be(rtwdev, lmt_ru, band, ntx, ch); in rtw89_phy_fill_limit_ru_be()
951 phy_fill_limit_ru_160m_be(rtwdev, lmt_ru, band, ntx, ch); in rtw89_phy_fill_limit_ru_be()
954 phy_fill_limit_ru_320m_be(rtwdev, lmt_ru, band, ntx, ch); in rtw89_phy_fill_limit_ru_be()
973 chan->band_type, chan->band_width); in rtw89_phy_set_txpwr_limit_ru_be()
981 j += 4, addr += 4, ptr += 4) { in rtw89_phy_set_txpwr_limit_ru_be()