Lines Matching refs:band

141 	enum nl80211_band band;  in rtw89_phy_ra_mask_cfg()  local
149 band = NL80211_BAND_2GHZ; in rtw89_phy_ra_mask_cfg()
154 band = NL80211_BAND_5GHZ; in rtw89_phy_ra_mask_cfg()
159 band = NL80211_BAND_6GHZ; in rtw89_phy_ra_mask_cfg()
169 cfg_mask |= u64_encode_bits(mask->control[band].he_mcs[0], in rtw89_phy_ra_mask_cfg()
171 cfg_mask |= u64_encode_bits(mask->control[band].he_mcs[1], in rtw89_phy_ra_mask_cfg()
174 cfg_mask |= u64_encode_bits(mask->control[band].vht_mcs[0], in rtw89_phy_ra_mask_cfg()
176 cfg_mask |= u64_encode_bits(mask->control[band].vht_mcs[1], in rtw89_phy_ra_mask_cfg()
179 cfg_mask |= u64_encode_bits(mask->control[band].ht_mcs[0], in rtw89_phy_ra_mask_cfg()
181 cfg_mask |= u64_encode_bits(mask->control[band].ht_mcs[1], in rtw89_phy_ra_mask_cfg()
204 u8 band = chan->band_type; in rtw89_phy_ra_gi_ltf() local
205 enum nl80211_band nl_band = rtw89_hw_to_nl80211_band(band); in rtw89_phy_ra_gi_ltf()
481 u8 band = chan->band_type; in rtw89_phy_rate_pattern_vif() local
482 enum nl80211_band nl_band = rtw89_hw_to_nl80211_band(band); in rtw89_phy_rate_pattern_vif()
513 if (band == RTW89_BAND_2G) { in rtw89_phy_rate_pattern_vif()
1561 byr = _byr_seek(cfg->rs, &rtwdev->byr[cfg->band]); in rtw89_phy_load_txpwr_byrate()
1579 s8 rtw89_phy_read_txpwr_byrate(struct rtw89_dev *rtwdev, u8 band, in rtw89_phy_read_txpwr_byrate() argument
1586 band = RTW89_BAND_2G; in rtw89_phy_read_txpwr_byrate()
1596 byr = _byr_seek(rate_desc->rs, &rtwdev->byr[band]); in rtw89_phy_read_txpwr_byrate()
1627 static u8 rtw89_channel_to_idx(struct rtw89_dev *rtwdev, u8 band, u8 channel) in rtw89_channel_to_idx() argument
1629 if (band == RTW89_BAND_6G) in rtw89_channel_to_idx()
1647 s8 rtw89_phy_read_txpwr_limit(struct rtw89_dev *rtwdev, u8 band, in rtw89_phy_read_txpwr_limit() argument
1655 enum nl80211_band nl_band = rtw89_hw_to_nl80211_band(band); in rtw89_phy_read_txpwr_limit()
1657 u8 ch_idx = rtw89_channel_to_idx(rtwdev, band, ch); in rtw89_phy_read_txpwr_limit()
1658 u8 regd = rtw89_regd_get(rtwdev, band); in rtw89_phy_read_txpwr_limit()
1662 switch (band) { in rtw89_phy_read_txpwr_limit()
1687 rtw89_warn(rtwdev, "unknown band type: %d\n", band); in rtw89_phy_read_txpwr_limit()
1698 #define __fill_txpwr_limit_nonbf_bf(ptr, band, bw, ntx, rs, ch) \ argument
1703 band, \
1711 u8 band, u8 ntx, u8 ch) in rtw89_phy_fill_txpwr_limit_20m() argument
1713 __fill_txpwr_limit_nonbf_bf(lmt->cck_20m, band, RTW89_CHANNEL_WIDTH_20, in rtw89_phy_fill_txpwr_limit_20m()
1715 __fill_txpwr_limit_nonbf_bf(lmt->cck_40m, band, RTW89_CHANNEL_WIDTH_40, in rtw89_phy_fill_txpwr_limit_20m()
1717 __fill_txpwr_limit_nonbf_bf(lmt->ofdm, band, RTW89_CHANNEL_WIDTH_20, in rtw89_phy_fill_txpwr_limit_20m()
1719 __fill_txpwr_limit_nonbf_bf(lmt->mcs_20m[0], band, in rtw89_phy_fill_txpwr_limit_20m()
1726 u8 band, u8 ntx, u8 ch, u8 pri_ch) in rtw89_phy_fill_txpwr_limit_40m() argument
1728 __fill_txpwr_limit_nonbf_bf(lmt->cck_20m, band, RTW89_CHANNEL_WIDTH_20, in rtw89_phy_fill_txpwr_limit_40m()
1730 __fill_txpwr_limit_nonbf_bf(lmt->cck_40m, band, RTW89_CHANNEL_WIDTH_40, in rtw89_phy_fill_txpwr_limit_40m()
1732 __fill_txpwr_limit_nonbf_bf(lmt->ofdm, band, RTW89_CHANNEL_WIDTH_20, in rtw89_phy_fill_txpwr_limit_40m()
1734 __fill_txpwr_limit_nonbf_bf(lmt->mcs_20m[0], band, in rtw89_phy_fill_txpwr_limit_40m()
1737 __fill_txpwr_limit_nonbf_bf(lmt->mcs_20m[1], band, in rtw89_phy_fill_txpwr_limit_40m()
1740 __fill_txpwr_limit_nonbf_bf(lmt->mcs_40m[0], band, in rtw89_phy_fill_txpwr_limit_40m()
1747 u8 band, u8 ntx, u8 ch, u8 pri_ch) in rtw89_phy_fill_txpwr_limit_80m() argument
1753 __fill_txpwr_limit_nonbf_bf(lmt->ofdm, band, RTW89_CHANNEL_WIDTH_20, in rtw89_phy_fill_txpwr_limit_80m()
1755 __fill_txpwr_limit_nonbf_bf(lmt->mcs_20m[0], band, in rtw89_phy_fill_txpwr_limit_80m()
1758 __fill_txpwr_limit_nonbf_bf(lmt->mcs_20m[1], band, in rtw89_phy_fill_txpwr_limit_80m()
1761 __fill_txpwr_limit_nonbf_bf(lmt->mcs_20m[2], band, in rtw89_phy_fill_txpwr_limit_80m()
1764 __fill_txpwr_limit_nonbf_bf(lmt->mcs_20m[3], band, in rtw89_phy_fill_txpwr_limit_80m()
1767 __fill_txpwr_limit_nonbf_bf(lmt->mcs_40m[0], band, in rtw89_phy_fill_txpwr_limit_80m()
1770 __fill_txpwr_limit_nonbf_bf(lmt->mcs_40m[1], band, in rtw89_phy_fill_txpwr_limit_80m()
1773 __fill_txpwr_limit_nonbf_bf(lmt->mcs_80m[0], band, in rtw89_phy_fill_txpwr_limit_80m()
1777 __fill_txpwr_limit_nonbf_bf(val_0p5_n, band, RTW89_CHANNEL_WIDTH_40, in rtw89_phy_fill_txpwr_limit_80m()
1779 __fill_txpwr_limit_nonbf_bf(val_0p5_p, band, RTW89_CHANNEL_WIDTH_40, in rtw89_phy_fill_txpwr_limit_80m()
1788 u8 band, u8 ntx, u8 ch, u8 pri_ch) in rtw89_phy_fill_txpwr_limit_160m() argument
1797 __fill_txpwr_limit_nonbf_bf(lmt->ofdm, band, RTW89_CHANNEL_WIDTH_20, in rtw89_phy_fill_txpwr_limit_160m()
1801 __fill_txpwr_limit_nonbf_bf(lmt->mcs_20m[0], band, in rtw89_phy_fill_txpwr_limit_160m()
1804 __fill_txpwr_limit_nonbf_bf(lmt->mcs_20m[1], band, in rtw89_phy_fill_txpwr_limit_160m()
1807 __fill_txpwr_limit_nonbf_bf(lmt->mcs_20m[2], band, in rtw89_phy_fill_txpwr_limit_160m()
1810 __fill_txpwr_limit_nonbf_bf(lmt->mcs_20m[3], band, in rtw89_phy_fill_txpwr_limit_160m()
1813 __fill_txpwr_limit_nonbf_bf(lmt->mcs_20m[4], band, in rtw89_phy_fill_txpwr_limit_160m()
1816 __fill_txpwr_limit_nonbf_bf(lmt->mcs_20m[5], band, in rtw89_phy_fill_txpwr_limit_160m()
1819 __fill_txpwr_limit_nonbf_bf(lmt->mcs_20m[6], band, in rtw89_phy_fill_txpwr_limit_160m()
1822 __fill_txpwr_limit_nonbf_bf(lmt->mcs_20m[7], band, in rtw89_phy_fill_txpwr_limit_160m()
1827 __fill_txpwr_limit_nonbf_bf(lmt->mcs_40m[0], band, in rtw89_phy_fill_txpwr_limit_160m()
1830 __fill_txpwr_limit_nonbf_bf(lmt->mcs_40m[1], band, in rtw89_phy_fill_txpwr_limit_160m()
1833 __fill_txpwr_limit_nonbf_bf(lmt->mcs_40m[2], band, in rtw89_phy_fill_txpwr_limit_160m()
1836 __fill_txpwr_limit_nonbf_bf(lmt->mcs_40m[3], band, in rtw89_phy_fill_txpwr_limit_160m()
1841 __fill_txpwr_limit_nonbf_bf(lmt->mcs_80m[0], band, in rtw89_phy_fill_txpwr_limit_160m()
1844 __fill_txpwr_limit_nonbf_bf(lmt->mcs_80m[1], band, in rtw89_phy_fill_txpwr_limit_160m()
1849 __fill_txpwr_limit_nonbf_bf(lmt->mcs_160m, band, in rtw89_phy_fill_txpwr_limit_160m()
1854 __fill_txpwr_limit_nonbf_bf(val_0p5_n, band, RTW89_CHANNEL_WIDTH_40, in rtw89_phy_fill_txpwr_limit_160m()
1856 __fill_txpwr_limit_nonbf_bf(val_0p5_p, band, RTW89_CHANNEL_WIDTH_40, in rtw89_phy_fill_txpwr_limit_160m()
1863 __fill_txpwr_limit_nonbf_bf(val_2p5_n, band, RTW89_CHANNEL_WIDTH_40, in rtw89_phy_fill_txpwr_limit_160m()
1865 __fill_txpwr_limit_nonbf_bf(val_2p5_p, band, RTW89_CHANNEL_WIDTH_40, in rtw89_phy_fill_txpwr_limit_160m()
1878 u8 band = chan->band_type; in rtw89_phy_fill_txpwr_limit() local
1887 rtw89_phy_fill_txpwr_limit_20m(rtwdev, lmt, band, ntx, ch); in rtw89_phy_fill_txpwr_limit()
1890 rtw89_phy_fill_txpwr_limit_40m(rtwdev, lmt, band, ntx, ch, in rtw89_phy_fill_txpwr_limit()
1894 rtw89_phy_fill_txpwr_limit_80m(rtwdev, lmt, band, ntx, ch, in rtw89_phy_fill_txpwr_limit()
1898 rtw89_phy_fill_txpwr_limit_160m(rtwdev, lmt, band, ntx, ch, 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() argument
1912 enum nl80211_band nl_band = rtw89_hw_to_nl80211_band(band); in rtw89_phy_read_txpwr_limit_ru()
1914 u8 ch_idx = rtw89_channel_to_idx(rtwdev, band, ch); in rtw89_phy_read_txpwr_limit_ru()
1915 u8 regd = rtw89_regd_get(rtwdev, band); in rtw89_phy_read_txpwr_limit_ru()
1919 switch (band) { in rtw89_phy_read_txpwr_limit_ru()
1944 rtw89_warn(rtwdev, "unknown band type: %d\n", band); in rtw89_phy_read_txpwr_limit_ru()
1957 u8 band, u8 ntx, u8 ch) in rtw89_phy_fill_txpwr_limit_ru_20m() argument
1959 lmt_ru->ru26[0] = rtw89_phy_read_txpwr_limit_ru(rtwdev, band, in rtw89_phy_fill_txpwr_limit_ru_20m()
1962 lmt_ru->ru52[0] = rtw89_phy_read_txpwr_limit_ru(rtwdev, band, in rtw89_phy_fill_txpwr_limit_ru_20m()
1965 lmt_ru->ru106[0] = rtw89_phy_read_txpwr_limit_ru(rtwdev, band, in rtw89_phy_fill_txpwr_limit_ru_20m()
1973 u8 band, u8 ntx, u8 ch) in rtw89_phy_fill_txpwr_limit_ru_40m() argument
1975 lmt_ru->ru26[0] = rtw89_phy_read_txpwr_limit_ru(rtwdev, band, in rtw89_phy_fill_txpwr_limit_ru_40m()
1978 lmt_ru->ru26[1] = rtw89_phy_read_txpwr_limit_ru(rtwdev, band, in rtw89_phy_fill_txpwr_limit_ru_40m()
1981 lmt_ru->ru52[0] = rtw89_phy_read_txpwr_limit_ru(rtwdev, band, in rtw89_phy_fill_txpwr_limit_ru_40m()
1984 lmt_ru->ru52[1] = rtw89_phy_read_txpwr_limit_ru(rtwdev, band, in rtw89_phy_fill_txpwr_limit_ru_40m()
1987 lmt_ru->ru106[0] = rtw89_phy_read_txpwr_limit_ru(rtwdev, band, in rtw89_phy_fill_txpwr_limit_ru_40m()
1990 lmt_ru->ru106[1] = rtw89_phy_read_txpwr_limit_ru(rtwdev, band, in rtw89_phy_fill_txpwr_limit_ru_40m()
1998 u8 band, u8 ntx, u8 ch) in rtw89_phy_fill_txpwr_limit_ru_80m() argument
2000 lmt_ru->ru26[0] = rtw89_phy_read_txpwr_limit_ru(rtwdev, band, in rtw89_phy_fill_txpwr_limit_ru_80m()
2003 lmt_ru->ru26[1] = rtw89_phy_read_txpwr_limit_ru(rtwdev, band, in rtw89_phy_fill_txpwr_limit_ru_80m()
2006 lmt_ru->ru26[2] = rtw89_phy_read_txpwr_limit_ru(rtwdev, band, in rtw89_phy_fill_txpwr_limit_ru_80m()
2009 lmt_ru->ru26[3] = rtw89_phy_read_txpwr_limit_ru(rtwdev, band, in rtw89_phy_fill_txpwr_limit_ru_80m()
2012 lmt_ru->ru52[0] = rtw89_phy_read_txpwr_limit_ru(rtwdev, band, in rtw89_phy_fill_txpwr_limit_ru_80m()
2015 lmt_ru->ru52[1] = rtw89_phy_read_txpwr_limit_ru(rtwdev, band, in rtw89_phy_fill_txpwr_limit_ru_80m()
2018 lmt_ru->ru52[2] = rtw89_phy_read_txpwr_limit_ru(rtwdev, band, in rtw89_phy_fill_txpwr_limit_ru_80m()
2021 lmt_ru->ru52[3] = rtw89_phy_read_txpwr_limit_ru(rtwdev, band, in rtw89_phy_fill_txpwr_limit_ru_80m()
2024 lmt_ru->ru106[0] = rtw89_phy_read_txpwr_limit_ru(rtwdev, band, in rtw89_phy_fill_txpwr_limit_ru_80m()
2027 lmt_ru->ru106[1] = rtw89_phy_read_txpwr_limit_ru(rtwdev, band, in rtw89_phy_fill_txpwr_limit_ru_80m()
2030 lmt_ru->ru106[2] = rtw89_phy_read_txpwr_limit_ru(rtwdev, band, in rtw89_phy_fill_txpwr_limit_ru_80m()
2033 lmt_ru->ru106[3] = rtw89_phy_read_txpwr_limit_ru(rtwdev, band, in rtw89_phy_fill_txpwr_limit_ru_80m()
2041 u8 band, u8 ntx, u8 ch) in rtw89_phy_fill_txpwr_limit_ru_160m() argument
2048 lmt_ru->ru26[i] = rtw89_phy_read_txpwr_limit_ru(rtwdev, band, in rtw89_phy_fill_txpwr_limit_ru_160m()
2052 lmt_ru->ru52[i] = rtw89_phy_read_txpwr_limit_ru(rtwdev, band, in rtw89_phy_fill_txpwr_limit_ru_160m()
2056 lmt_ru->ru106[i] = rtw89_phy_read_txpwr_limit_ru(rtwdev, band, in rtw89_phy_fill_txpwr_limit_ru_160m()
2069 u8 band = chan->band_type; in rtw89_phy_fill_txpwr_limit_ru() local
2077 rtw89_phy_fill_txpwr_limit_ru_20m(rtwdev, lmt_ru, band, ntx, in rtw89_phy_fill_txpwr_limit_ru()
2081 rtw89_phy_fill_txpwr_limit_ru_40m(rtwdev, lmt_ru, band, ntx, in rtw89_phy_fill_txpwr_limit_ru()
2085 rtw89_phy_fill_txpwr_limit_ru_80m(rtwdev, lmt_ru, band, ntx, in rtw89_phy_fill_txpwr_limit_ru()
2089 rtw89_phy_fill_txpwr_limit_ru_160m(rtwdev, lmt_ru, band, ntx, in rtw89_phy_fill_txpwr_limit_ru()
2107 u8 band = chan->band_type; in rtw89_phy_set_txpwr_byrate() local
2132 band, in rtw89_phy_set_txpwr_byrate()
2160 u8 band = chan->band_type; in rtw89_phy_set_txpwr_offset() local
2167 v[desc.idx] = rtw89_phy_read_txpwr_byrate(rtwdev, band, &desc); in rtw89_phy_set_txpwr_offset()
4690 u8 rtw89_encode_chan_idx(struct rtw89_dev *rtwdev, u8 central_ch, u8 band) in rtw89_encode_chan_idx() argument
4696 switch (band) { in rtw89_encode_chan_idx()
4710 rtw89_warn(rtwdev, "Unsupported band %d\n", band); in rtw89_encode_chan_idx()
4719 rtw89_warn(rtwdev, "Unknown band %d channel %d\n", band, central_ch); in rtw89_encode_chan_idx()
4731 u8 *ch, enum nl80211_band *band) in rtw89_decode_chan_idx() argument
4739 *band = NL80211_BAND_2GHZ; in rtw89_decode_chan_idx()
4744 *band = idx <= RTW89_CH_BASE_IDX_5G_LAST ? NL80211_BAND_5GHZ : NL80211_BAND_6GHZ; in rtw89_decode_chan_idx()