Lines Matching refs:crystal_cap
815 u8 crystal_cap; in rtl92ee_dm_dynamic_atc_switch() local
836 if (rtldm->crystal_cap != rtlpriv->efuse.crystalcap) { in rtl92ee_dm_dynamic_atc_switch()
837 rtldm->crystal_cap = rtlpriv->efuse.crystalcap; in rtl92ee_dm_dynamic_atc_switch()
838 crystal_cap = rtldm->crystal_cap & 0x3f; in rtl92ee_dm_dynamic_atc_switch()
840 (crystal_cap | (crystal_cap << 6))); in rtl92ee_dm_dynamic_atc_switch()
879 if (cfo_ave > rtldm->cfo_threshold && rtldm->crystal_cap < 0x3f) in rtl92ee_dm_dynamic_atc_switch()
882 rtlpriv->dm.crystal_cap > 0) in rtl92ee_dm_dynamic_atc_switch()
887 rtldm->crystal_cap += adjust_xtal; in rtl92ee_dm_dynamic_atc_switch()
889 if (rtldm->crystal_cap > 0x3f) in rtl92ee_dm_dynamic_atc_switch()
890 rtldm->crystal_cap = 0x3f; in rtl92ee_dm_dynamic_atc_switch()
891 else if (rtldm->crystal_cap < 0) in rtl92ee_dm_dynamic_atc_switch()
892 rtldm->crystal_cap = 0; in rtl92ee_dm_dynamic_atc_switch()
894 crystal_cap = rtldm->crystal_cap & 0x3f; in rtl92ee_dm_dynamic_atc_switch()
896 (crystal_cap | (crystal_cap << 6))); in rtl92ee_dm_dynamic_atc_switch()
1055 rtlpriv->dm.crystal_cap = rtlpriv->efuse.crystalcap; in rtl92ee_dm_init_dynamic_atc_switch()