Home
last modified time | relevance | path

Searched refs:pwr_val (Results 1 – 11 of 11) sorted by relevance

/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192d/
H A Drf_common.c295 u8 i, rf, pwr_val[4]; in _rtl92d_write_ofdm_power_reg() local
302 pwr_val[i] = (u8)((writeval & (0x7f << in _rtl92d_write_ofdm_power_reg()
304 if (pwr_val[i] > RF6052_MAX_TX_PWR) in _rtl92d_write_ofdm_power_reg()
305 pwr_val[i] = RF6052_MAX_TX_PWR; in _rtl92d_write_ofdm_power_reg()
307 writeval = (pwr_val[3] << 24) | (pwr_val[2] << 16) | in _rtl92d_write_ofdm_power_reg()
308 (pwr_val[1] << 8) | pwr_val[0]; in _rtl92d_write_ofdm_power_reg()
322 writeval = pwr_val[3]; in _rtl92d_write_ofdm_power_reg()
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/
H A Drf.c334 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/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/
H A Drf.c296 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/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/
H A Drf.c322 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/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
H A Drf.c317 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()
H A Ddm.c234 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/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
H A Drf.c340 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()
H A Ddm.c162 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/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/
H A Drf.c337 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()
H A Ddm.c217 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/drivers/net/wireless/realtek/rtw89/
H A Dcoex.c2841 u32 pwr_val; in _set_wl_tx_power() local
2854 pwr_val = WL_TX_POWER_NO_BTC_CTRL; in _set_wl_tx_power()
2856 pwr_val = FIELD_PREP(WL_TX_POWER_INT_PART, level); in _set_wl_tx_power()
2857 if (pwr_val > RTW89_BTC_WL_DEF_TX_PWR) in _set_wl_tx_power()
2858 pwr_val = RTW89_BTC_WL_DEF_TX_PWR; in _set_wl_tx_power()
2861 pwr_val |= B_TSSI_WL_TX_POWER_SIGN; in _set_wl_tx_power()
2862 pwr_val |= WL_TX_POWER_WITH_BT; in _set_wl_tx_power()
2865 chip->ops->btc_set_wl_txpwr_ctrl(rtwdev, pwr_val); in _set_wl_tx_power()