Searched refs:totalDiv (Results 1 – 2 of 2) sorted by relevance
946 uint32_t totalDiv = 0U; in SDHC_SetSdClock() local953 totalDiv = srcClock_Hz / busClock_Hz; in SDHC_SetSdClock()955 if (totalDiv > (SDHC_MAX_CLKFS * SDHC_MAX_DVS)) in SDHC_SetSdClock()960 if (totalDiv != 0U) in SDHC_SetSdClock()963 if ((srcClock_Hz / totalDiv) > busClock_Hz) in SDHC_SetSdClock()965 totalDiv++; in SDHC_SetSdClock()969 if (totalDiv > SDHC_MAX_DVS) in SDHC_SetSdClock()971 prescaler = totalDiv / SDHC_MAX_DVS; in SDHC_SetSdClock()978 divisor = totalDiv / prescaler; in SDHC_SetSdClock()980 while ((divisor * prescaler) < totalDiv) in SDHC_SetSdClock()[all …]
987 uint32_t totalDiv = 0UL; in USDHC_SetSdClock() local998 totalDiv = srcClock_Hz / busClock_Hz; in USDHC_SetSdClock()1001 if (totalDiv > (USDHC_MAX_CLKFS * USDHC_MAX_DVS)) in USDHC_SetSdClock()1006 if (totalDiv != 0UL) in USDHC_SetSdClock()1009 if ((srcClock_Hz / totalDiv) > busClock_Hz) in USDHC_SetSdClock()1011 totalDiv++; in USDHC_SetSdClock()1015 if (totalDiv > USDHC_MAX_DVS) in USDHC_SetSdClock()1017 prescaler = totalDiv / USDHC_MAX_DVS; in USDHC_SetSdClock()1024 divisor = totalDiv / prescaler; in USDHC_SetSdClock()1026 while ((divisor * prescaler) < totalDiv) in USDHC_SetSdClock()[all …]