Home
last modified time | relevance | path

Searched refs:new_lvl (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/net/wireless/realtek/rtw88/
H A Drtw8821c.c1185 static void rtw8821c_phy_cck_pd_set(struct rtw_dev *rtwdev, u8 new_lvl) in rtw8821c_phy_cck_pd_set() argument
1192 dm_info->cck_pd_lv[RTW_CHANNEL_WIDTH_20][RF_PATH_A], new_lvl); in rtw8821c_phy_cck_pd_set()
1194 if (dm_info->cck_pd_lv[RTW_CHANNEL_WIDTH_20][RF_PATH_A] == new_lvl) in rtw8821c_phy_cck_pd_set()
1201 rtw_is_assoc(rtwdev), new_lvl, cck_n_rx, in rtw8821c_phy_cck_pd_set()
1202 dm_info->cck_pd_default + new_lvl * 2, in rtw8821c_phy_cck_pd_set()
1203 pd[new_lvl], dm_info->cck_fa_avg); in rtw8821c_phy_cck_pd_set()
1207 dm_info->cck_pd_lv[RTW_CHANNEL_WIDTH_20][RF_PATH_A] = new_lvl; in rtw8821c_phy_cck_pd_set()
1208 rtw_write32_mask(rtwdev, REG_PWRTH, 0x3f0000, pd[new_lvl]); in rtw8821c_phy_cck_pd_set()
1210 dm_info->cck_pd_default + new_lvl * 2); in rtw8821c_phy_cck_pd_set()
H A Drtw88xxa.c1950 void rtw88xxa_phy_cck_pd_set(struct rtw_dev *rtwdev, u8 new_lvl) in rtw88xxa_phy_cck_pd_set() argument
1960 new_lvl = CCK_PD_LV3; in rtw88xxa_phy_cck_pd_set()
1962 new_lvl = CCK_PD_LV2; in rtw88xxa_phy_cck_pd_set()
1965 new_lvl = CCK_PD_LV2; in rtw88xxa_phy_cck_pd_set()
1967 new_lvl = CCK_PD_LV1; in rtw88xxa_phy_cck_pd_set()
1971 new_lvl = CCK_PD_LV1; in rtw88xxa_phy_cck_pd_set()
1976 dm_info->cck_pd_lv[RTW_CHANNEL_WIDTH_20][RF_PATH_A], new_lvl); in rtw88xxa_phy_cck_pd_set()
1978 if (dm_info->cck_pd_lv[RTW_CHANNEL_WIDTH_20][RF_PATH_A] == new_lvl) in rtw88xxa_phy_cck_pd_set()
1982 dm_info->cck_pd_lv[RTW_CHANNEL_WIDTH_20][RF_PATH_A] = new_lvl; in rtw88xxa_phy_cck_pd_set()
1984 rtw_write8(rtwdev, REG_CCK_PD_TH, pd[new_lvl]); in rtw88xxa_phy_cck_pd_set()
H A Drtw8814a.c1986 static void rtw8814a_phy_cck_pd_set(struct rtw_dev *rtwdev, u8 new_lvl) in rtw8814a_phy_cck_pd_set() argument
1996 new_lvl = CCK_PD_LV3; in rtw8814a_phy_cck_pd_set()
1998 new_lvl = CCK_PD_LV2; in rtw8814a_phy_cck_pd_set()
2001 new_lvl = CCK_PD_LV2; in rtw8814a_phy_cck_pd_set()
2003 new_lvl = CCK_PD_LV1; in rtw8814a_phy_cck_pd_set()
2007 new_lvl = CCK_PD_LV1; in rtw8814a_phy_cck_pd_set()
2012 dm_info->cck_pd_lv[RTW_CHANNEL_WIDTH_20][RF_PATH_A], new_lvl); in rtw8814a_phy_cck_pd_set()
2014 if (dm_info->cck_pd_lv[RTW_CHANNEL_WIDTH_20][RF_PATH_A] == new_lvl) in rtw8814a_phy_cck_pd_set()
2018 dm_info->cck_pd_lv[RTW_CHANNEL_WIDTH_20][RF_PATH_A] = new_lvl; in rtw8814a_phy_cck_pd_set()
2020 rtw_write8(rtwdev, REG_CCK_PD_TH, pd[new_lvl]); in rtw8814a_phy_cck_pd_set()
H A Drtw8822c.c4398 static void rtw8822c_phy_cck_pd_set(struct rtw_dev *rtwdev, u8 new_lvl) in rtw8822c_phy_cck_pd_set() argument
4410 dm_info->cck_pd_lv[bw][nrx], new_lvl, bw, nrx, in rtw8822c_phy_cck_pd_set()
4413 if (dm_info->cck_pd_lv[bw][nrx] == new_lvl) in rtw8822c_phy_cck_pd_set()
4422 pd_lvl[new_lvl] - pd_lvl[cur_lvl], in rtw8822c_phy_cck_pd_set()
4423 cs_lvl[new_lvl] - cs_lvl[cur_lvl], in rtw8822c_phy_cck_pd_set()
4425 dm_info->cck_pd_lv[bw][nrx] = new_lvl; in rtw8822c_phy_cck_pd_set()