Home
last modified time | relevance | path

Searched refs:totalDiv (Results 1 – 2 of 2) sorted by relevance

/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/sdhc/
Dfsl_sdhc.c946 uint32_t totalDiv = 0U; in SDHC_SetSdClock() local
953 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 …]
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/usdhc/
Dfsl_usdhc.c987 uint32_t totalDiv = 0UL; in USDHC_SetSdClock() local
998 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 …]