Lines Matching +full:channel +full:- +full:11
1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 2009-2010 Realtek Corporation.*/
17 rtl_set_rfreg(hw, RF90_PATH_A, RF_CHNLBW, BIT(11)|BIT(10), 3); in rtl8821ae_phy_rf6052_set_bandwidth()
18 rtl_set_rfreg(hw, RF90_PATH_B, RF_CHNLBW, BIT(11)|BIT(10), 3); in rtl8821ae_phy_rf6052_set_bandwidth()
21 rtl_set_rfreg(hw, RF90_PATH_A, RF_CHNLBW, BIT(11)|BIT(10), 1); in rtl8821ae_phy_rf6052_set_bandwidth()
22 rtl_set_rfreg(hw, RF90_PATH_B, RF_CHNLBW, BIT(11)|BIT(10), 1); in rtl8821ae_phy_rf6052_set_bandwidth()
25 rtl_set_rfreg(hw, RF90_PATH_A, RF_CHNLBW, BIT(11)|BIT(10), 0); in rtl8821ae_phy_rf6052_set_bandwidth()
26 rtl_set_rfreg(hw, RF90_PATH_B, RF_CHNLBW, BIT(11)|BIT(10), 0); in rtl8821ae_phy_rf6052_set_bandwidth()
38 struct rtl_phy *rtlphy = &rtlpriv->phy; in rtl8821ae_phy_rf6052_set_cck_txpower()
48 if (rtlefuse->eeprom_regulatory != 0) in rtl8821ae_phy_rf6052_set_cck_txpower()
51 if (mac->act_scanning) { in rtl8821ae_phy_rf6052_set_cck_txpower()
73 if (rtlefuse->eeprom_regulatory == 0) { in rtl8821ae_phy_rf6052_set_cck_txpower()
75 (rtlphy->mcs_txpwrlevel_origoffset[0][6]) + in rtl8821ae_phy_rf6052_set_cck_txpower()
76 (rtlphy->mcs_txpwrlevel_origoffset[0][7] << in rtl8821ae_phy_rf6052_set_cck_txpower()
80 tmpval = (rtlphy->mcs_txpwrlevel_origoffset[0][14]) + in rtl8821ae_phy_rf6052_set_cck_txpower()
81 (rtlphy->mcs_txpwrlevel_origoffset[0][15] << in rtl8821ae_phy_rf6052_set_cck_txpower()
100 tx_agc[0] -= pwrtrac_value; in rtl8821ae_phy_rf6052_set_cck_txpower()
101 tx_agc[1] -= pwrtrac_value; in rtl8821ae_phy_rf6052_set_cck_txpower()
107 "CCK PWR 1~11M (rf-A) = 0x%x (reg 0x%x)\n", tmpval, in rtl8821ae_phy_rf6052_set_cck_txpower()
114 "CCK PWR 11M (rf-B) = 0x%x (reg 0x%x)\n", tmpval, in rtl8821ae_phy_rf6052_set_cck_txpower()
121 u8 *ppowerlevel_bw40, u8 channel, in rtl8821ae_phy_get_power_base() argument
125 struct rtl_phy *rtlphy = &rtlpriv->phy; in rtl8821ae_phy_get_power_base()
141 if (rtlphy->current_chan_bw == HT_CHANNEL_WIDTH_20) in rtl8821ae_phy_get_power_base()
159 u8 channel, u8 index, in get_txpower_writeval_by_regulatory() argument
165 struct rtl_phy *rtlphy = &rtlpriv->phy; in get_txpower_writeval_by_regulatory()
171 switch (rtlefuse->eeprom_regulatory) { in get_txpower_writeval_by_regulatory()
176 rtlphy->mcs_txpwrlevel_origoffset[chnlgroup][index + in get_txpower_writeval_by_regulatory()
185 if (rtlphy->pwrgroup_cnt == 1) { in get_txpower_writeval_by_regulatory()
188 if (channel < 3) in get_txpower_writeval_by_regulatory()
190 else if (channel < 6) in get_txpower_writeval_by_regulatory()
192 else if (channel < 9) in get_txpower_writeval_by_regulatory()
194 else if (channel < 12) in get_txpower_writeval_by_regulatory()
196 else if (channel < 14) in get_txpower_writeval_by_regulatory()
198 else if (channel == 14) in get_txpower_writeval_by_regulatory()
203 rtlphy->mcs_txpwrlevel_origoffset[chnlgroup] in get_txpower_writeval_by_regulatory()
224 if (rtlphy->current_chan_bw == HT_CHANNEL_WIDTH_20_40) { in get_txpower_writeval_by_regulatory()
228 rtlefuse->pwrgroup_ht40[rf][channel - in get_txpower_writeval_by_regulatory()
234 rtlefuse->pwrgroup_ht20[rf][channel - in get_txpower_writeval_by_regulatory()
239 pwr_diff = rtlefuse->txpwr_legacyhtdiff[rf][channel-1]; in get_txpower_writeval_by_regulatory()
240 else if (rtlphy->current_chan_bw == HT_CHANNEL_WIDTH_20) in get_txpower_writeval_by_regulatory()
242 rtlefuse->txpwr_ht20diff[rf][channel-1]; in get_txpower_writeval_by_regulatory()
244 if (rtlphy->current_chan_bw == HT_CHANNEL_WIDTH_20_40) in get_txpower_writeval_by_regulatory()
246 rtlefuse->pwrgroup_ht40[rf][channel-1]; in get_txpower_writeval_by_regulatory()
249 rtlefuse->pwrgroup_ht20[rf][channel-1]; in get_txpower_writeval_by_regulatory()
254 pwr_diff = customer_pwr_diff - pwr_diff; in get_txpower_writeval_by_regulatory()
258 (u8)((rtlphy->mcs_txpwrlevel_origoffset in get_txpower_writeval_by_regulatory()
284 rtlphy->mcs_txpwrlevel_origoffset[chnlgroup] in get_txpower_writeval_by_regulatory()
294 if (rtlpriv->dm.dynamic_txhighpower_lvl == TXHIGHPWRLEVEL_BT1) in get_txpower_writeval_by_regulatory()
295 writeval = writeval - 0x06060606; in get_txpower_writeval_by_regulatory()
296 else if (rtlpriv->dm.dynamic_txhighpower_lvl == in get_txpower_writeval_by_regulatory()
298 writeval = writeval - 0x0c0c0c0c; in get_txpower_writeval_by_regulatory()
348 u8 channel) in rtl8821ae_phy_rf6052_set_ofdm_txpower() argument
358 channel, in rtl8821ae_phy_rf6052_set_ofdm_txpower()
365 get_txpower_writeval_by_regulatory(hw, channel, index, in rtl8821ae_phy_rf6052_set_ofdm_txpower()
373 writeval[0] -= pwrtrac_value; in rtl8821ae_phy_rf6052_set_ofdm_txpower()
374 writeval[1] -= pwrtrac_value; in rtl8821ae_phy_rf6052_set_ofdm_txpower()
383 struct rtl_phy *rtlphy = &rtlpriv->phy; in rtl8821ae_phy_rf6052_config()
385 if (rtlphy->rf_type == RF_1T1R) in rtl8821ae_phy_rf6052_config()
386 rtlphy->num_total_rfpath = 1; in rtl8821ae_phy_rf6052_config()
388 rtlphy->num_total_rfpath = 2; in rtl8821ae_phy_rf6052_config()
396 struct rtl_phy *rtlphy = &rtlpriv->phy; in _rtl8821ae_phy_rf6052_config_parafile()
401 for (rfpath = 0; rfpath < rtlphy->num_total_rfpath; rfpath++) { in _rtl8821ae_phy_rf6052_config_parafile()
404 if (rtlhal->hw_type == HARDWARE_TYPE_RTL8812AE) in _rtl8821ae_phy_rf6052_config_parafile()
415 if (rtlhal->hw_type == HARDWARE_TYPE_RTL8812AE) in _rtl8821ae_phy_rf6052_config_parafile()