Lines Matching refs:crystal_cap

554 	rtlpriv->dm.crystal_cap = rtlpriv->efuse.crystalcap;  in rtl8821ae_dm_init_dynamic_atc_switch()
2806 u8 crystal_cap; in rtl8821ae_dm_dynamic_atc_switch() local
2822 if (rtldm->crystal_cap != rtlpriv->efuse.crystalcap) { in rtl8821ae_dm_dynamic_atc_switch()
2823 rtldm->crystal_cap = rtlpriv->efuse.crystalcap; in rtl8821ae_dm_dynamic_atc_switch()
2824 crystal_cap = rtldm->crystal_cap & 0x3f; in rtl8821ae_dm_dynamic_atc_switch()
2825 crystal_cap = crystal_cap & 0x3f; in rtl8821ae_dm_dynamic_atc_switch()
2828 0x7ff80000, (crystal_cap | in rtl8821ae_dm_dynamic_atc_switch()
2829 (crystal_cap << 6))); in rtl8821ae_dm_dynamic_atc_switch()
2832 0xfff000, (crystal_cap | in rtl8821ae_dm_dynamic_atc_switch()
2833 (crystal_cap << 6))); in rtl8821ae_dm_dynamic_atc_switch()
2836 rtldm->crystal_cap); in rtl8821ae_dm_dynamic_atc_switch()
2898 if (cfo_ave > rtldm->cfo_threshold && rtldm->crystal_cap < 0x3f) in rtl8821ae_dm_dynamic_atc_switch()
2901 rtlpriv->dm.crystal_cap > 0) in rtl8821ae_dm_dynamic_atc_switch()
2905 rtldm->crystal_cap, adjust_xtal); in rtl8821ae_dm_dynamic_atc_switch()
2910 rtldm->crystal_cap += adjust_xtal; in rtl8821ae_dm_dynamic_atc_switch()
2912 if (rtldm->crystal_cap > 0x3f) in rtl8821ae_dm_dynamic_atc_switch()
2913 rtldm->crystal_cap = 0x3f; in rtl8821ae_dm_dynamic_atc_switch()
2914 else if (rtldm->crystal_cap < 0) in rtl8821ae_dm_dynamic_atc_switch()
2915 rtldm->crystal_cap = 0; in rtl8821ae_dm_dynamic_atc_switch()
2917 crystal_cap = rtldm->crystal_cap & 0x3f; in rtl8821ae_dm_dynamic_atc_switch()
2918 crystal_cap = crystal_cap & 0x3f; in rtl8821ae_dm_dynamic_atc_switch()
2921 0x7ff80000, (crystal_cap | in rtl8821ae_dm_dynamic_atc_switch()
2922 (crystal_cap << 6))); in rtl8821ae_dm_dynamic_atc_switch()
2925 0xfff000, (crystal_cap | in rtl8821ae_dm_dynamic_atc_switch()
2926 (crystal_cap << 6))); in rtl8821ae_dm_dynamic_atc_switch()
2929 rtldm->crystal_cap); in rtl8821ae_dm_dynamic_atc_switch()