Home
last modified time | relevance | path

Searched refs:bb_gain (Results 1 – 9 of 9) sorted by relevance

/Linux-v6.6/drivers/net/wireless/realtek/rtl8xxxu/
Drtl8xxxu_8188f.c1587 s8 bb_gain; in rtl8188f_enable_rf() local
1593 bb_gain = pg_pwrtrim & PPG_BB_GAIN_2G_TX_OFFSET_MASK; in rtl8188f_enable_rf()
1595 if (bb_gain == PPG_BB_GAIN_2G_TX_OFFSET_MASK) in rtl8188f_enable_rf()
1596 bb_gain = 0; in rtl8188f_enable_rf()
1597 else if (bb_gain & 1) in rtl8188f_enable_rf()
1598 bb_gain = bb_gain >> 1; in rtl8188f_enable_rf()
1600 bb_gain = -(bb_gain >> 1); in rtl8188f_enable_rf()
1602 val8 = abs(bb_gain); in rtl8188f_enable_rf()
1603 if (bb_gain > 0) in rtl8188f_enable_rf()
Drtl8xxxu_8192f.c536 u8 bb_gain[3] = { EFUSE_UNDEFINED, EFUSE_UNDEFINED, EFUSE_UNDEFINED }; in rtl8192fu_config_kfree() local
549 rtl8xxxu_read_efuse8(priv, 0x1ee, &bb_gain[1]); in rtl8192fu_config_kfree()
550 rtl8xxxu_read_efuse8(priv, 0x1ec, &bb_gain[0]); in rtl8192fu_config_kfree()
551 rtl8xxxu_read_efuse8(priv, 0x1ea, &bb_gain[2]); in rtl8192fu_config_kfree()
553 if (bb_gain[1] == EFUSE_UNDEFINED) in rtl8192fu_config_kfree()
556 if (bb_gain[0] == EFUSE_UNDEFINED) in rtl8192fu_config_kfree()
557 bb_gain[0] = bb_gain[1]; in rtl8192fu_config_kfree()
559 if (bb_gain[2] == EFUSE_UNDEFINED) in rtl8192fu_config_kfree()
560 bb_gain[2] = bb_gain[1]; in rtl8192fu_config_kfree()
578 bb_gain_for_path = (bb_gain[channel_idx] & bb_gain_path_mask[rfpath]); in rtl8192fu_config_kfree()
/Linux-v6.6/drivers/net/wireless/realtek/rtw88/
Drtw8822c.c1023 static void rtw8822c_set_power_trim(struct rtw_dev *rtwdev, s8 bb_gain[2][8]) in rtw8822c_set_power_trim()
1029 bb_gain[_path][_idx]); \ in rtw8822c_set_power_trim()
1058 s8 bb_gain[2][8] = {}; in rtw8822c_power_trim() local
1071 bb_gain[RF_PATH_A][i] = FIELD_GET(PPG_2G_A_MASK, pg_pwr); in rtw8822c_power_trim()
1072 bb_gain[RF_PATH_B][i] = FIELD_GET(PPG_2G_B_MASK, pg_pwr); in rtw8822c_power_trim()
1083 bb_gain[path][idx] = FIELD_GET(PPG_5G_MASK, pg_pwr); in rtw8822c_power_trim()
1087 rtw8822c_set_power_trim(rtwdev, bb_gain); in rtw8822c_power_trim()
/Linux-v6.6/drivers/net/wireless/realtek/rtw89/
Dphy.c876 struct rtw89_phy_bb_gain_info *gain = &rtwdev->bb_gain; in rtw89_phy_cfg_bb_gain_error()
915 struct rtw89_phy_bb_gain_info *gain = &rtwdev->bb_gain; in rtw89_phy_cfg_bb_rpl_ofst()
997 struct rtw89_phy_bb_gain_info *gain = &rtwdev->bb_gain; in rtw89_phy_cfg_bb_gain_bypass()
1024 struct rtw89_phy_bb_gain_info *gain = &rtwdev->bb_gain; in rtw89_phy_cfg_bb_gain_op1db()
1369 bb_gain_table = elm_info->bb_gain ? elm_info->bb_gain : chip->bb_gain_table; in rtw89_phy_init_bb_reg()
Drtw8851b.c889 const struct rtw89_phy_bb_gain_info *gain = &rtwdev->bb_gain; in rtw8851b_set_gain_error()
975 const struct rtw89_phy_bb_gain_info *gain = &rtwdev->bb_gain; in rtw8851b_set_rxsc_rpl_comp()
Drtw8852b.c976 const struct rtw89_phy_bb_gain_info *gain = &rtwdev->bb_gain; in rtw8852b_set_gain_error()
1074 const struct rtw89_phy_bb_gain_info *gain = &rtwdev->bb_gain; in rtw8852b_set_rxsc_rpl_comp()
Dcore.h3684 struct rtw89_phy_table *bb_gain; member
4436 struct rtw89_phy_bb_gain_info bb_gain; member
Dfw.c569 elm_info->bb_gain = tbl; in rtw89_build_phy_tbl_from_elm()
1006 rtw89_free_phy_tbl_from_elm(elm_info->bb_gain); in rtw89_unload_firmware_elements()
Drtw8852c.c803 const struct rtw89_phy_bb_gain_info *gain = &rtwdev->bb_gain; in rtw8852c_set_gain_error()