Lines Matching +full:rates +full:- +full:cck
1 // SPDX-License-Identifier: GPL-2.0-or-later
13 for (i = 0, entry = &(ppr)->__all_rates[i]; \
21 /* Compile-time PPR check */ in b43_ppr_clear()
71 struct b43_ppr_rates *rates = &ppr->rates; in b43_ppr_load_max_from_sprom() local
72 struct ssb_sprom *sprom = dev->dev->bus_sprom; in b43_ppr_load_max_from_sprom()
73 struct b43_phy *phy = &dev->phy; in b43_ppr_load_max_from_sprom()
82 maxpwr = min(sprom->core_pwr_info[0].maxpwr_2g, in b43_ppr_load_max_from_sprom()
83 sprom->core_pwr_info[1].maxpwr_2g); in b43_ppr_load_max_from_sprom()
84 sprom_ofdm_po = sprom->ofdm2gpo; in b43_ppr_load_max_from_sprom()
85 sprom_mcs_po = sprom->mcs2gpo; in b43_ppr_load_max_from_sprom()
86 extra_cdd_po = (sprom->cddpo >> 0) & 0xf; in b43_ppr_load_max_from_sprom()
87 extra_stbc_po = (sprom->stbcpo >> 0) & 0xf; in b43_ppr_load_max_from_sprom()
90 maxpwr = min(sprom->core_pwr_info[0].maxpwr_5gl, in b43_ppr_load_max_from_sprom()
91 sprom->core_pwr_info[1].maxpwr_5gl); in b43_ppr_load_max_from_sprom()
92 sprom_ofdm_po = sprom->ofdm5glpo; in b43_ppr_load_max_from_sprom()
93 sprom_mcs_po = sprom->mcs5glpo; in b43_ppr_load_max_from_sprom()
94 extra_cdd_po = (sprom->cddpo >> 8) & 0xf; in b43_ppr_load_max_from_sprom()
95 extra_stbc_po = (sprom->stbcpo >> 8) & 0xf; in b43_ppr_load_max_from_sprom()
98 maxpwr = min(sprom->core_pwr_info[0].maxpwr_5g, in b43_ppr_load_max_from_sprom()
99 sprom->core_pwr_info[1].maxpwr_5g); in b43_ppr_load_max_from_sprom()
100 sprom_ofdm_po = sprom->ofdm5gpo; in b43_ppr_load_max_from_sprom()
101 sprom_mcs_po = sprom->mcs5gpo; in b43_ppr_load_max_from_sprom()
102 extra_cdd_po = (sprom->cddpo >> 4) & 0xf; in b43_ppr_load_max_from_sprom()
103 extra_stbc_po = (sprom->stbcpo >> 4) & 0xf; in b43_ppr_load_max_from_sprom()
106 maxpwr = min(sprom->core_pwr_info[0].maxpwr_5gh, in b43_ppr_load_max_from_sprom()
107 sprom->core_pwr_info[1].maxpwr_5gh); in b43_ppr_load_max_from_sprom()
108 sprom_ofdm_po = sprom->ofdm5ghpo; in b43_ppr_load_max_from_sprom()
109 sprom_mcs_po = sprom->mcs5ghpo; in b43_ppr_load_max_from_sprom()
110 extra_cdd_po = (sprom->cddpo >> 12) & 0xf; in b43_ppr_load_max_from_sprom()
111 extra_stbc_po = (sprom->stbcpo >> 12) & 0xf; in b43_ppr_load_max_from_sprom()
120 off = ((sprom->cck2gpo >> (i * 4)) & 0xf) * 2; in b43_ppr_load_max_from_sprom()
121 rates->cck[i] = maxpwr - off; in b43_ppr_load_max_from_sprom()
128 rates->ofdm[i] = maxpwr - off; in b43_ppr_load_max_from_sprom()
132 rates->mcs_20[0] = rates->ofdm[0]; in b43_ppr_load_max_from_sprom()
133 rates->mcs_20[1] = rates->ofdm[2]; in b43_ppr_load_max_from_sprom()
134 rates->mcs_20[2] = rates->ofdm[3]; in b43_ppr_load_max_from_sprom()
135 rates->mcs_20[3] = rates->ofdm[4]; in b43_ppr_load_max_from_sprom()
136 rates->mcs_20[4] = rates->ofdm[5]; in b43_ppr_load_max_from_sprom()
137 rates->mcs_20[5] = rates->ofdm[6]; in b43_ppr_load_max_from_sprom()
138 rates->mcs_20[6] = rates->ofdm[7]; in b43_ppr_load_max_from_sprom()
139 rates->mcs_20[7] = rates->ofdm[7]; in b43_ppr_load_max_from_sprom()
144 rates->mcs_20_cdd[i] = maxpwr - off; in b43_ppr_load_max_from_sprom()
145 if (phy->type == B43_PHYTYPE_N && phy->rev >= 3) in b43_ppr_load_max_from_sprom()
146 rates->mcs_20_cdd[i] -= extra_cdd_po; in b43_ppr_load_max_from_sprom()
150 rates->mcs_20_cdd[4 + i] = maxpwr - off; in b43_ppr_load_max_from_sprom()
151 if (phy->type == B43_PHYTYPE_N && phy->rev >= 3) in b43_ppr_load_max_from_sprom()
152 rates->mcs_20_cdd[4 + i] -= extra_cdd_po; in b43_ppr_load_max_from_sprom()
156 rates->ofdm_20_cdd[0] = rates->mcs_20_cdd[0]; in b43_ppr_load_max_from_sprom()
157 rates->ofdm_20_cdd[1] = rates->mcs_20_cdd[0]; in b43_ppr_load_max_from_sprom()
158 rates->ofdm_20_cdd[2] = rates->mcs_20_cdd[1]; in b43_ppr_load_max_from_sprom()
159 rates->ofdm_20_cdd[3] = rates->mcs_20_cdd[2]; in b43_ppr_load_max_from_sprom()
160 rates->ofdm_20_cdd[4] = rates->mcs_20_cdd[3]; in b43_ppr_load_max_from_sprom()
161 rates->ofdm_20_cdd[5] = rates->mcs_20_cdd[4]; in b43_ppr_load_max_from_sprom()
162 rates->ofdm_20_cdd[6] = rates->mcs_20_cdd[5]; in b43_ppr_load_max_from_sprom()
163 rates->ofdm_20_cdd[7] = rates->mcs_20_cdd[6]; in b43_ppr_load_max_from_sprom()
168 rates->mcs_20_stbc[i] = maxpwr - off; in b43_ppr_load_max_from_sprom()
169 if (phy->type == B43_PHYTYPE_N && phy->rev >= 3) in b43_ppr_load_max_from_sprom()
170 rates->mcs_20_stbc[i] -= extra_stbc_po; in b43_ppr_load_max_from_sprom()
174 rates->mcs_20_stbc[4 + i] = maxpwr - off; in b43_ppr_load_max_from_sprom()
175 if (phy->type == B43_PHYTYPE_N && phy->rev >= 3) in b43_ppr_load_max_from_sprom()
176 rates->mcs_20_stbc[4 + i] -= extra_stbc_po; in b43_ppr_load_max_from_sprom()
182 rates->mcs_20_sdm[i] = maxpwr - off; in b43_ppr_load_max_from_sprom()
186 rates->mcs_20_sdm[4 + i] = maxpwr - off; in b43_ppr_load_max_from_sprom()