/linux/drivers/net/wireless/realtek/rtl8xxxu/ |
H A D | 8723a.c | 417 void rtl8723a_set_crystal_cap(struct rtl8xxxu_priv *priv, u8 crystal_cap) in rtl8723a_set_crystal_cap() argument 422 if (crystal_cap == cfo->crystal_cap) in rtl8723a_set_crystal_cap() 430 cfo->crystal_cap, in rtl8723a_set_crystal_cap() 433 crystal_cap); in rtl8723a_set_crystal_cap() 436 val32 |= FIELD_PREP(XTAL1, crystal_cap) | in rtl8723a_set_crystal_cap() 437 FIELD_PREP(XTAL0, crystal_cap); in rtl8723a_set_crystal_cap() 440 cfo->crystal_cap = crystal_cap; in rtl8723a_set_crystal_cap()
|
H A D | 8710b.c | 1761 static void rtl8710b_set_crystal_cap(struct rtl8xxxu_priv *priv, u8 crystal_cap) in rtl8710b_set_crystal_cap() argument 1766 if (crystal_cap == cfo->crystal_cap) in rtl8710b_set_crystal_cap() 1774 cfo->crystal_cap, in rtl8710b_set_crystal_cap() 1777 crystal_cap); in rtl8710b_set_crystal_cap() 1779 u32p_replace_bits(&val32, crystal_cap, XTAL1); in rtl8710b_set_crystal_cap() 1780 u32p_replace_bits(&val32, crystal_cap, XTAL0); in rtl8710b_set_crystal_cap() 1783 cfo->crystal_cap = crystal_cap; in rtl8710b_set_crystal_cap()
|
H A D | 8188f.c | 1650 void rtl8188f_set_crystal_cap(struct rtl8xxxu_priv *priv, u8 crystal_cap) in rtl8188f_set_crystal_cap() argument 1655 if (crystal_cap == cfo->crystal_cap) in rtl8188f_set_crystal_cap() 1663 cfo->crystal_cap, in rtl8188f_set_crystal_cap() 1666 crystal_cap); in rtl8188f_set_crystal_cap() 1669 val32 |= FIELD_PREP(XTAL1, crystal_cap) | in rtl8188f_set_crystal_cap() 1670 FIELD_PREP(XTAL0, crystal_cap); in rtl8188f_set_crystal_cap() 1673 cfo->crystal_cap = crystal_cap; in rtl8188f_set_crystal_cap()
|
H A D | 8192f.c | 1940 static void rtl8192f_set_crystal_cap(struct rtl8xxxu_priv *priv, u8 crystal_cap) in rtl8192f_set_crystal_cap() argument 1945 if (crystal_cap == cfo->crystal_cap) in rtl8192f_set_crystal_cap() 1954 cfo->crystal_cap, in rtl8192f_set_crystal_cap() 1957 crystal_cap); in rtl8192f_set_crystal_cap() 1959 u32p_replace_bits(&xtal1, crystal_cap, XTAL1); in rtl8192f_set_crystal_cap() 1960 u32p_replace_bits(&xtal0, crystal_cap, XTAL0); in rtl8192f_set_crystal_cap() 1964 cfo->crystal_cap = crystal_cap; in rtl8192f_set_crystal_cap()
|
H A D | rtl8xxxu.h | 1781 u8 crystal_cap; member 1996 void (*set_crystal_cap) (struct rtl8xxxu_priv *priv, u8 crystal_cap); 2160 void rtl8723a_set_crystal_cap(struct rtl8xxxu_priv *priv, u8 crystal_cap); 2161 void rtl8188f_set_crystal_cap(struct rtl8xxxu_priv *priv, u8 crystal_cap);
|
H A D | core.c | 4490 priv->cfo_tracking.crystal_cap = priv->default_crystal_cap; in rtl8xxxu_init_device() 7305 int crystal_cap; in rtl8xxxu_track_cfo() local 7311 if (cfo->crystal_cap > priv->default_crystal_cap) in rtl8xxxu_track_cfo() 7312 priv->fops->set_crystal_cap(priv, cfo->crystal_cap - 1); in rtl8xxxu_track_cfo() 7313 else if (cfo->crystal_cap < priv->default_crystal_cap) in rtl8xxxu_track_cfo() 7314 priv->fops->set_crystal_cap(priv, cfo->crystal_cap + 1); in rtl8xxxu_track_cfo() 7356 crystal_cap = cfo->crystal_cap; in rtl8xxxu_track_cfo() 7359 crystal_cap++; in rtl8xxxu_track_cfo() 7361 crystal_cap--; in rtl8xxxu_track_cfo() 7363 crystal_cap = clamp(crystal_cap, 0, 0x3f); in rtl8xxxu_track_cfo() [all …]
|
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/ |
H A D | dm.c | 668 u8 crystal_cap; in rtl92ee_dm_dynamic_atc_switch() local 689 if (rtldm->crystal_cap != rtlpriv->efuse.crystalcap) { in rtl92ee_dm_dynamic_atc_switch() 690 rtldm->crystal_cap = rtlpriv->efuse.crystalcap; in rtl92ee_dm_dynamic_atc_switch() 691 crystal_cap = rtldm->crystal_cap & 0x3f; in rtl92ee_dm_dynamic_atc_switch() 693 (crystal_cap | (crystal_cap << 6))); in rtl92ee_dm_dynamic_atc_switch() 732 if (cfo_ave > rtldm->cfo_threshold && rtldm->crystal_cap < 0x3f) in rtl92ee_dm_dynamic_atc_switch() 735 rtlpriv->dm.crystal_cap > 0) in rtl92ee_dm_dynamic_atc_switch() 740 rtldm->crystal_cap += adjust_xtal; in rtl92ee_dm_dynamic_atc_switch() 742 if (rtldm->crystal_cap > 0x3f) in rtl92ee_dm_dynamic_atc_switch() 743 rtldm->crystal_cap = 0x3f; in rtl92ee_dm_dynamic_atc_switch() [all …]
|
H A D | phy.c | 214 u8 crystal_cap; in rtl92ee_phy_bb_config() local 233 crystal_cap = rtlpriv->efuse.eeprom_crystalcap & 0x3F; in rtl92ee_phy_bb_config() 235 (crystal_cap | (crystal_cap << 6))); in rtl92ee_phy_bb_config()
|
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723be/ |
H A D | dm.c | 237 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/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
H A D | dm.c | 380 rtlpriv->dm.crystal_cap = rtlpriv->efuse.crystalcap; in rtl8821ae_dm_init_dynamic_atc_switch() 2614 u8 crystal_cap; in rtl8821ae_dm_dynamic_atc_switch() local 2630 if (rtldm->crystal_cap != rtlpriv->efuse.crystalcap) { in rtl8821ae_dm_dynamic_atc_switch() 2631 rtldm->crystal_cap = rtlpriv->efuse.crystalcap; in rtl8821ae_dm_dynamic_atc_switch() 2632 crystal_cap = rtldm->crystal_cap & 0x3f; in rtl8821ae_dm_dynamic_atc_switch() 2633 crystal_cap = crystal_cap & 0x3f; in rtl8821ae_dm_dynamic_atc_switch() 2636 0x7ff80000, (crystal_cap | in rtl8821ae_dm_dynamic_atc_switch() 2637 (crystal_cap << 6))); in rtl8821ae_dm_dynamic_atc_switch() 2640 0xfff000, (crystal_cap | in rtl8821ae_dm_dynamic_atc_switch() 2641 (crystal_cap << 6))); in rtl8821ae_dm_dynamic_atc_switch() [all …]
|
H A D | phy.c | 291 u8 crystal_cap; in rtl8821ae_phy_bb_config() local 307 crystal_cap = rtlefuse->crystalcap & 0x3F; in rtl8821ae_phy_bb_config() 309 (crystal_cap | (crystal_cap << 6))); in rtl8821ae_phy_bb_config() 311 crystal_cap = rtlefuse->crystalcap & 0x3F; in rtl8821ae_phy_bb_config() 313 (crystal_cap | (crystal_cap << 6))); in rtl8821ae_phy_bb_config()
|
/linux/drivers/net/wireless/realtek/rtw88/ |
H A D | rtw8822c.c | 55 efuse->crystal_cap = map->xtal_k & XCAP_MASK; in rtw8822c_read_efuse() 1867 u8 crystal_cap; in rtw8822c_phy_set_param() local 1889 crystal_cap = rtwdev->efuse.crystal_cap & 0x7f; in rtw8822c_phy_set_param() 1891 crystal_cap | (crystal_cap << 7)); in rtw8822c_phy_set_param() 4261 static void rtw8822c_set_crystal_cap_reg(struct rtw_dev *rtwdev, u8 crystal_cap) in rtw8822c_set_crystal_cap_reg() argument 4267 val = XCAP_EXTEND(crystal_cap); in rtw8822c_set_crystal_cap_reg() 4268 cfo->crystal_cap = crystal_cap; in rtw8822c_set_crystal_cap_reg() 4272 static void rtw8822c_set_crystal_cap(struct rtw_dev *rtwdev, u8 crystal_cap) in rtw8822c_set_crystal_cap() argument 4277 if (cfo->crystal_cap == crystal_cap) in rtw8822c_set_crystal_cap() 4280 rtw8822c_set_crystal_cap_reg(rtwdev, crystal_cap); in rtw8822c_set_crystal_cap() [all …]
|
H A D | rtw8821c.c | 59 efuse->crystal_cap = map->xtal_k; in rtw8821c_read_efuse() 161 u8 crystal_cap, val; in rtw8821c_phy_set_param() local 188 crystal_cap = rtwdev->efuse.crystal_cap & 0x3F; in rtw8821c_phy_set_param() 189 rtw_write32_mask(rtwdev, REG_AFE_XTAL_CTRL, 0x7e000000, crystal_cap); in rtw8821c_phy_set_param() 190 rtw_write32_mask(rtwdev, REG_AFE_PLL_CTRL, 0x7e, crystal_cap); in rtw8821c_phy_set_param()
|
H A D | rtw8822b.c | 52 efuse->crystal_cap = map->xtal_k; in rtw8822b_read_efuse() 155 u8 crystal_cap; in rtw8822b_phy_set_param() local 170 crystal_cap = rtwdev->efuse.crystal_cap & 0x3F; in rtw8822b_phy_set_param() 171 rtw_write32_mask(rtwdev, 0x24, 0x7e000000, crystal_cap); in rtw8822b_phy_set_param() 172 rtw_write32_mask(rtwdev, 0x28, 0x7e, crystal_cap); in rtw8822b_phy_set_param()
|
H A D | rtw8703b.c | 613 if (efuse->crystal_cap == 0xff) { in rtw8703b_read_efuse() 614 efuse->crystal_cap = 0x20; in rtw8703b_read_efuse() 615 DBG_EFUSE_FIX(rtwdev, crystal_cap); in rtw8703b_read_efuse() 648 u8 xtal_cap = rtwdev->efuse.crystal_cap & 0x3F; in rtw8703b_phy_set_param()
|
H A D | rtw8723x.c | 252 efuse->crystal_cap = map->xtal_k; in __rtw8723x_read_efuse() 608 xtal_cap = rtwdev->efuse.crystal_cap & 0x3F; in __rtw8723x_pwrtrack_set_xtal()
|
H A D | main.h | 1652 u8 crystal_cap; member 1763 u8 crystal_cap; member
|
H A D | main.c | 1982 if (efuse->crystal_cap == 0xff) in rtw_chip_efuse_info_setup() 1983 efuse->crystal_cap = 0; in rtw_chip_efuse_info_setup()
|
H A D | rtw8723d.c | 104 xtal_cap = rtwdev->efuse.crystal_cap & 0x3F; in rtw8723d_phy_set_param()
|
/linux/drivers/net/wireless/realtek/rtw89/ |
H A D | phy.c | 3823 u8 crystal_cap, bool force) in rtw89_phy_cfo_set_crystal_cap() argument 3829 if (!force && cfo->crystal_cap == crystal_cap) in rtw89_phy_cfo_set_crystal_cap() 3831 crystal_cap = clamp_t(u8, crystal_cap, 0, 127); in rtw89_phy_cfo_set_crystal_cap() 3833 rtw89_phy_cfo_set_xcap_reg(rtwdev, true, crystal_cap); in rtw89_phy_cfo_set_crystal_cap() 3834 rtw89_phy_cfo_set_xcap_reg(rtwdev, false, crystal_cap); in rtw89_phy_cfo_set_crystal_cap() 3839 crystal_cap, XTAL_SC_XO_MASK); in rtw89_phy_cfo_set_crystal_cap() 3841 crystal_cap, XTAL_SC_XI_MASK); in rtw89_phy_cfo_set_crystal_cap() 3845 cfo->crystal_cap = sc_xi_val; in rtw89_phy_cfo_set_crystal_cap() 3846 cfo->x_cap_ofst = (s8)((int)cfo->crystal_cap - cfo->def_x_cap); in rtw89_phy_cfo_set_crystal_cap() 3862 if (cfo->crystal_cap == cfo->def_x_cap) in rtw89_phy_cfo_reset() [all …]
|
H A D | core.h | 4960 u8 crystal_cap; member
|
/linux/drivers/staging/rtl8192e/rtl8192e/ |
H A D | rtl_core.h | 291 u8 crystal_cap; member
|
H A D | r8192E_dev.c | 369 priv->crystal_cap = priv->eeprom_crystal_cap; in _rtl92e_read_eeprom_info() 379 priv->crystal_cap = priv->eeprom_crystal_cap; in _rtl92e_read_eeprom_info()
|
H A D | r8192E_phy.c | 412 dwRegValue = priv->crystal_cap; in _rtl92e_bb_config_para_file()
|
/linux/drivers/net/wireless/realtek/rtlwifi/ |
H A D | wifi.h | 1794 int crystal_cap; member
|