Home
last modified time | relevance | path

Searched refs:crystal_cap (Results 1 – 14 of 14) sorted by relevance

/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
Ddm.c675 u8 crystal_cap; in rtl92ee_dm_dynamic_atc_switch() local
696 if (rtldm->crystal_cap != rtlpriv->efuse.crystalcap) { in rtl92ee_dm_dynamic_atc_switch()
697 rtldm->crystal_cap = rtlpriv->efuse.crystalcap; in rtl92ee_dm_dynamic_atc_switch()
698 crystal_cap = rtldm->crystal_cap & 0x3f; in rtl92ee_dm_dynamic_atc_switch()
700 (crystal_cap | (crystal_cap << 6))); in rtl92ee_dm_dynamic_atc_switch()
739 if (cfo_ave > rtldm->cfo_threshold && rtldm->crystal_cap < 0x3f) in rtl92ee_dm_dynamic_atc_switch()
742 rtlpriv->dm.crystal_cap > 0) in rtl92ee_dm_dynamic_atc_switch()
747 rtldm->crystal_cap += adjust_xtal; in rtl92ee_dm_dynamic_atc_switch()
749 if (rtldm->crystal_cap > 0x3f) in rtl92ee_dm_dynamic_atc_switch()
750 rtldm->crystal_cap = 0x3f; in rtl92ee_dm_dynamic_atc_switch()
[all …]
Dphy.c222 u8 crystal_cap; in rtl92ee_phy_bb_config() local
241 crystal_cap = rtlpriv->efuse.eeprom_crystalcap & 0x3F; in rtl92ee_phy_bb_config()
243 (crystal_cap | (crystal_cap << 6))); in rtl92ee_phy_bb_config()
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
Ddm.c237 rtlpriv->dm.crystal_cap = rtlpriv->efuse.crystalcap; in rtl8723be_dm_init_dynamic_atc_switch()
1111 u8 crystal_cap; in rtl8723be_dm_dynamic_atc_switch() local
1130 if (rtldm->crystal_cap != rtlpriv->efuse.crystalcap) { in rtl8723be_dm_dynamic_atc_switch()
1131 rtldm->crystal_cap = rtlpriv->efuse.crystalcap; in rtl8723be_dm_dynamic_atc_switch()
1132 crystal_cap = rtldm->crystal_cap & 0x3f; in rtl8723be_dm_dynamic_atc_switch()
1134 (crystal_cap | (crystal_cap << 6))); in rtl8723be_dm_dynamic_atc_switch()
1173 if (cfo_ave > rtldm->cfo_threshold && rtldm->crystal_cap < 0x3f) in rtl8723be_dm_dynamic_atc_switch()
1176 rtlpriv->dm.crystal_cap > 0) in rtl8723be_dm_dynamic_atc_switch()
1181 rtldm->crystal_cap += adjust_xtal; in rtl8723be_dm_dynamic_atc_switch()
1183 if (rtldm->crystal_cap > 0x3f) in rtl8723be_dm_dynamic_atc_switch()
[all …]
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
Ddm.c380 rtlpriv->dm.crystal_cap = rtlpriv->efuse.crystalcap; in rtl8821ae_dm_init_dynamic_atc_switch()
2616 u8 crystal_cap; in rtl8821ae_dm_dynamic_atc_switch() local
2632 if (rtldm->crystal_cap != rtlpriv->efuse.crystalcap) { in rtl8821ae_dm_dynamic_atc_switch()
2633 rtldm->crystal_cap = rtlpriv->efuse.crystalcap; in rtl8821ae_dm_dynamic_atc_switch()
2634 crystal_cap = rtldm->crystal_cap & 0x3f; in rtl8821ae_dm_dynamic_atc_switch()
2635 crystal_cap = crystal_cap & 0x3f; in rtl8821ae_dm_dynamic_atc_switch()
2638 0x7ff80000, (crystal_cap | in rtl8821ae_dm_dynamic_atc_switch()
2639 (crystal_cap << 6))); in rtl8821ae_dm_dynamic_atc_switch()
2642 0xfff000, (crystal_cap | in rtl8821ae_dm_dynamic_atc_switch()
2643 (crystal_cap << 6))); in rtl8821ae_dm_dynamic_atc_switch()
[all …]
Dphy.c297 u8 crystal_cap; in rtl8821ae_phy_bb_config() local
313 crystal_cap = rtlefuse->crystalcap & 0x3F; in rtl8821ae_phy_bb_config()
315 (crystal_cap | (crystal_cap << 6))); in rtl8821ae_phy_bb_config()
317 crystal_cap = rtlefuse->crystalcap & 0x3F; in rtl8821ae_phy_bb_config()
319 (crystal_cap | (crystal_cap << 6))); in rtl8821ae_phy_bb_config()
/linux-6.1.9/drivers/net/wireless/realtek/rtw89/
Dphy.c2147 u8 crystal_cap, bool force) in rtw89_phy_cfo_set_crystal_cap() argument
2153 if (!force && cfo->crystal_cap == crystal_cap) in rtw89_phy_cfo_set_crystal_cap()
2155 crystal_cap = clamp_t(u8, crystal_cap, 0, 127); in rtw89_phy_cfo_set_crystal_cap()
2157 rtw89_phy_cfo_set_xcap_reg(rtwdev, true, crystal_cap); in rtw89_phy_cfo_set_crystal_cap()
2158 rtw89_phy_cfo_set_xcap_reg(rtwdev, false, crystal_cap); in rtw89_phy_cfo_set_crystal_cap()
2163 crystal_cap, XTAL_SC_XO_MASK); in rtw89_phy_cfo_set_crystal_cap()
2165 crystal_cap, XTAL_SC_XI_MASK); in rtw89_phy_cfo_set_crystal_cap()
2169 cfo->crystal_cap = sc_xi_val; in rtw89_phy_cfo_set_crystal_cap()
2170 cfo->x_cap_ofst = (s8)((int)cfo->crystal_cap - cfo->def_x_cap); in rtw89_phy_cfo_set_crystal_cap()
2186 if (cfo->crystal_cap == cfo->def_x_cap) in rtw89_phy_cfo_reset()
[all …]
Dcore.h3141 u8 crystal_cap; member
/linux-6.1.9/drivers/net/wireless/realtek/rtw88/
Drtw8822c.c42 efuse->crystal_cap = map->xtal_k & XCAP_MASK; in rtw8822c_read_efuse()
1848 u8 crystal_cap; in rtw8822c_phy_set_param() local
1870 crystal_cap = rtwdev->efuse.crystal_cap & 0x7f; in rtw8822c_phy_set_param()
1872 crystal_cap | (crystal_cap << 7)); in rtw8822c_phy_set_param()
4239 static void rtw8822c_set_crystal_cap_reg(struct rtw_dev *rtwdev, u8 crystal_cap) in rtw8822c_set_crystal_cap_reg() argument
4245 val = XCAP_EXTEND(crystal_cap); in rtw8822c_set_crystal_cap_reg()
4246 cfo->crystal_cap = crystal_cap; in rtw8822c_set_crystal_cap_reg()
4250 static void rtw8822c_set_crystal_cap(struct rtw_dev *rtwdev, u8 crystal_cap) in rtw8822c_set_crystal_cap() argument
4255 if (cfo->crystal_cap == crystal_cap) in rtw8822c_set_crystal_cap()
4258 rtw8822c_set_crystal_cap_reg(rtwdev, crystal_cap); in rtw8822c_set_crystal_cap()
[all …]
Drtw8821c.c46 efuse->crystal_cap = map->xtal_k; in rtw8821c_read_efuse()
129 u8 crystal_cap, val; in rtw8821c_phy_set_param() local
156 crystal_cap = rtwdev->efuse.crystal_cap & 0x3F; in rtw8821c_phy_set_param()
157 rtw_write32_mask(rtwdev, REG_AFE_XTAL_CTRL, 0x7e000000, crystal_cap); in rtw8821c_phy_set_param()
158 rtw_write32_mask(rtwdev, REG_AFE_PLL_CTRL, 0x7e, crystal_cap); in rtw8821c_phy_set_param()
Drtw8822b.c39 efuse->crystal_cap = map->xtal_k; in rtw8822b_read_efuse()
136 u8 crystal_cap; in rtw8822b_phy_set_param() local
151 crystal_cap = rtwdev->efuse.crystal_cap & 0x3F; in rtw8822b_phy_set_param()
152 rtw_write32_mask(rtwdev, 0x24, 0x7e000000, crystal_cap); in rtw8822b_phy_set_param()
153 rtw_write32_mask(rtwdev, 0x28, 0x7e, crystal_cap); in rtw8822b_phy_set_param()
Dmain.h1633 u8 crystal_cap; member
1742 u8 crystal_cap; member
Drtw8723d.c155 xtal_cap = rtwdev->efuse.crystal_cap & 0x3F; in rtw8723d_phy_set_param()
223 efuse->crystal_cap = map->xtal_k; in rtw8723d_read_efuse()
1872 xtal_cap = rtwdev->efuse.crystal_cap & 0x3F; in rtw8723d_pwrtrack_set_xtal()
Dmain.c1929 if (efuse->crystal_cap == 0xff) in rtw_chip_efuse_info_setup()
1930 efuse->crystal_cap = 0; in rtw_chip_efuse_info_setup()
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/
Dwifi.h1844 int crystal_cap; member