Lines Matching refs:crystal_cap
675 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()
751 else if (rtldm->crystal_cap < 0) in rtl92ee_dm_dynamic_atc_switch()
752 rtldm->crystal_cap = 0; in rtl92ee_dm_dynamic_atc_switch()
754 crystal_cap = rtldm->crystal_cap & 0x3f; in rtl92ee_dm_dynamic_atc_switch()
756 (crystal_cap | (crystal_cap << 6))); in rtl92ee_dm_dynamic_atc_switch()
915 rtlpriv->dm.crystal_cap = rtlpriv->efuse.crystalcap; in rtl92ee_dm_init_dynamic_atc_switch()