/linux-6.1.9/drivers/staging/r8188eu/hal/ |
D | rtl8188e_rf6052.c | 273 u8 i, rf, pwr_val[4]; in writeOFDMPowerReg88E() local 280 pwr_val[i] = (u8)((writeVal & (0x7f << (i * 8))) >> (i * 8)); in writeOFDMPowerReg88E() 281 if (pwr_val[i] > RF6052_MAX_TX_PWR) in writeOFDMPowerReg88E() 282 pwr_val[i] = RF6052_MAX_TX_PWR; in writeOFDMPowerReg88E() 284 writeVal = (pwr_val[3] << 24) | (pwr_val[2] << 16) | (pwr_val[1] << 8) | pwr_val[0]; in writeOFDMPowerReg88E() 295 writeVal = pwr_val[3]; in writeOFDMPowerReg88E()
|
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/ |
D | rf.c | 334 u8 i, rf, pwr_val[4]; in _rtl8723e_write_ofdm_power_reg() local 341 pwr_val[i] = (u8)((writeval & (0x7f << in _rtl8723e_write_ofdm_power_reg() 344 if (pwr_val[i] > RF6052_MAX_TX_PWR) in _rtl8723e_write_ofdm_power_reg() 345 pwr_val[i] = RF6052_MAX_TX_PWR; in _rtl8723e_write_ofdm_power_reg() 347 writeval = (pwr_val[3] << 24) | (pwr_val[2] << 16) | in _rtl8723e_write_ofdm_power_reg() 348 (pwr_val[1] << 8) | pwr_val[0]; in _rtl8723e_write_ofdm_power_reg() 366 writeval = pwr_val[3]; in _rtl8723e_write_ofdm_power_reg()
|
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/ |
D | rf.c | 296 u8 i, rf, pwr_val[4]; in _rtl92c_write_ofdm_power_reg() local 303 pwr_val[i] = (u8)((writeval & (0x7f << (i * 8))) >> in _rtl92c_write_ofdm_power_reg() 305 if (pwr_val[i] > RF6052_MAX_TX_PWR) in _rtl92c_write_ofdm_power_reg() 306 pwr_val[i] = RF6052_MAX_TX_PWR; in _rtl92c_write_ofdm_power_reg() 308 writeval = (pwr_val[3] << 24) | (pwr_val[2] << 16) | in _rtl92c_write_ofdm_power_reg() 309 (pwr_val[1] << 8) | pwr_val[0]; in _rtl92c_write_ofdm_power_reg() 323 writeval = pwr_val[3]; in _rtl92c_write_ofdm_power_reg()
|
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/ |
D | rf.c | 322 u8 i, rf, pwr_val[4]; in _rtl92c_write_ofdm_power_reg() local 329 pwr_val[i] = (u8)((writeval & (0x7f << in _rtl92c_write_ofdm_power_reg() 332 if (pwr_val[i] > RF6052_MAX_TX_PWR) in _rtl92c_write_ofdm_power_reg() 333 pwr_val[i] = RF6052_MAX_TX_PWR; in _rtl92c_write_ofdm_power_reg() 335 writeval = (pwr_val[3] << 24) | (pwr_val[2] << 16) | in _rtl92c_write_ofdm_power_reg() 336 (pwr_val[1] << 8) | pwr_val[0]; in _rtl92c_write_ofdm_power_reg() 354 writeval = pwr_val[3]; in _rtl92c_write_ofdm_power_reg()
|
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
D | rf.c | 317 u8 i, rf, pwr_val[4]; in _rtl8821ae_write_ofdm_power_reg() local 324 pwr_val[i] = (u8)((writeval & (0x7f << in _rtl8821ae_write_ofdm_power_reg() 327 if (pwr_val[i] > RF6052_MAX_TX_PWR) in _rtl8821ae_write_ofdm_power_reg() 328 pwr_val[i] = RF6052_MAX_TX_PWR; in _rtl8821ae_write_ofdm_power_reg() 330 writeval = (pwr_val[3] << 24) | (pwr_val[2] << 16) | in _rtl8821ae_write_ofdm_power_reg() 331 (pwr_val[1] << 8) | pwr_val[0]; in _rtl8821ae_write_ofdm_power_reg()
|
D | dm.c | 234 u8 pwr_val = 0; in rtl8821ae_dm_txpower_track_adjust() local 240 pwr_val = rtldm->swing_idx_ofdm_base[RF90_PATH_A] - in rtl8821ae_dm_txpower_track_adjust() 244 pwr_val = rtldm->swing_idx_ofdm[RF90_PATH_A] - in rtl8821ae_dm_txpower_track_adjust() 250 pwr_val = rtldm->swing_idx_cck_base - in rtl8821ae_dm_txpower_track_adjust() 254 pwr_val = rtldm->swing_idx_cck - in rtl8821ae_dm_txpower_track_adjust() 259 if (pwr_val >= TXPWRTRACK_MAX_IDX && (*pdirection == 1)) in rtl8821ae_dm_txpower_track_adjust() 260 pwr_val = TXPWRTRACK_MAX_IDX; in rtl8821ae_dm_txpower_track_adjust() 262 *poutwrite_val = pwr_val | (pwr_val << 8)| in rtl8821ae_dm_txpower_track_adjust() 263 (pwr_val << 16)| in rtl8821ae_dm_txpower_track_adjust() 264 (pwr_val << 24); in rtl8821ae_dm_txpower_track_adjust()
|
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8723be/ |
D | rf.c | 340 u8 i, rf, pwr_val[4]; in _rtl8723be_write_ofdm_power_reg() local 347 pwr_val[i] = (u8)((writeval & (0x7f << in _rtl8723be_write_ofdm_power_reg() 350 if (pwr_val[i] > RF6052_MAX_TX_PWR) in _rtl8723be_write_ofdm_power_reg() 351 pwr_val[i] = RF6052_MAX_TX_PWR; in _rtl8723be_write_ofdm_power_reg() 353 writeval = (pwr_val[3] << 24) | (pwr_val[2] << 16) | in _rtl8723be_write_ofdm_power_reg() 354 (pwr_val[1] << 8) | pwr_val[0]; in _rtl8723be_write_ofdm_power_reg()
|
D | dm.c | 162 u8 pwr_val = 0; in rtl8723be_dm_txpower_track_adjust() local 171 pwr_val = ofdm_base - ofdm_val; in rtl8723be_dm_txpower_track_adjust() 174 pwr_val = ofdm_val - ofdm_base; in rtl8723be_dm_txpower_track_adjust() 179 pwr_val = cck_base - cck_val; in rtl8723be_dm_txpower_track_adjust() 182 pwr_val = cck_val - cck_base; in rtl8723be_dm_txpower_track_adjust() 186 if (pwr_val >= TXPWRTRACK_MAX_IDX && (*pdirection == 1)) in rtl8723be_dm_txpower_track_adjust() 187 pwr_val = TXPWRTRACK_MAX_IDX; in rtl8723be_dm_txpower_track_adjust() 189 *poutwrite_val = pwr_val | (pwr_val << 8) | in rtl8723be_dm_txpower_track_adjust() 190 (pwr_val << 16) | (pwr_val << 24); in rtl8723be_dm_txpower_track_adjust()
|
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/ |
D | rf.c | 337 u8 i, rf, pwr_val[4]; in _rtl88e_write_ofdm_power_reg() local 344 pwr_val[i] = (u8)((writeval & (0x7f << in _rtl88e_write_ofdm_power_reg() 347 if (pwr_val[i] > RF6052_MAX_TX_PWR) in _rtl88e_write_ofdm_power_reg() 348 pwr_val[i] = RF6052_MAX_TX_PWR; in _rtl88e_write_ofdm_power_reg() 350 writeval = (pwr_val[3] << 24) | (pwr_val[2] << 16) | in _rtl88e_write_ofdm_power_reg() 351 (pwr_val[1] << 8) | pwr_val[0]; in _rtl88e_write_ofdm_power_reg()
|
D | dm.c | 217 u8 pwr_val = 0; in rtl88e_dm_txpower_track_adjust() local 226 pwr_val = ofdm_base - ofdm_val; in rtl88e_dm_txpower_track_adjust() 229 pwr_val = ofdm_base - ofdm_val; in rtl88e_dm_txpower_track_adjust() 234 pwr_val = cck_base - cck_val; in rtl88e_dm_txpower_track_adjust() 237 pwr_val = cck_val - cck_base; in rtl88e_dm_txpower_track_adjust() 241 if (pwr_val >= TXPWRTRACK_MAX_IDX && (*pdirection == 1)) in rtl88e_dm_txpower_track_adjust() 242 pwr_val = TXPWRTRACK_MAX_IDX; in rtl88e_dm_txpower_track_adjust() 244 *poutwrite_val = pwr_val | (pwr_val << 8) | (pwr_val << 16) | in rtl88e_dm_txpower_track_adjust() 245 (pwr_val << 24); in rtl88e_dm_txpower_track_adjust()
|
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8192de/ |
D | rf.c | 318 u8 i, rf, pwr_val[4]; in _rtl92d_write_ofdm_power_reg() local 325 pwr_val[i] = (u8) ((writeval & (0x7f << in _rtl92d_write_ofdm_power_reg() 327 if (pwr_val[i] > RF6052_MAX_TX_PWR) in _rtl92d_write_ofdm_power_reg() 328 pwr_val[i] = RF6052_MAX_TX_PWR; in _rtl92d_write_ofdm_power_reg() 330 writeval = (pwr_val[3] << 24) | (pwr_val[2] << 16) | in _rtl92d_write_ofdm_power_reg() 331 (pwr_val[1] << 8) | pwr_val[0]; in _rtl92d_write_ofdm_power_reg() 345 writeval = pwr_val[3]; in _rtl92d_write_ofdm_power_reg()
|
/linux-6.1.9/drivers/net/wireless/realtek/rtw89/ |
D | coex.c | 1713 u32 pwr_val; in _set_wl_tx_power() local 1726 pwr_val = WL_TX_POWER_NO_BTC_CTRL; in _set_wl_tx_power() 1728 pwr_val = FIELD_PREP(WL_TX_POWER_INT_PART, level); in _set_wl_tx_power() 1729 if (pwr_val > RTW89_BTC_WL_DEF_TX_PWR) in _set_wl_tx_power() 1730 pwr_val = RTW89_BTC_WL_DEF_TX_PWR; in _set_wl_tx_power() 1733 pwr_val |= B_TSSI_WL_TX_POWER_SIGN; in _set_wl_tx_power() 1734 pwr_val |= WL_TX_POWER_WITH_BT; in _set_wl_tx_power() 1737 chip->ops->btc_set_wl_txpwr_ctrl(rtwdev, pwr_val); in _set_wl_tx_power()
|