Home
last modified time | relevance | path

Searched refs:dsor (Results 1 – 3 of 3) sorted by relevance

/drivers/mmc/host/
Domap.c1130 int dsor; in mmc_omap_calc_divisor() local
1135 dsor = func_clk_rate / ios->clock; in mmc_omap_calc_divisor()
1136 if (dsor < 1) in mmc_omap_calc_divisor()
1137 dsor = 1; in mmc_omap_calc_divisor()
1139 if (func_clk_rate / dsor > ios->clock) in mmc_omap_calc_divisor()
1140 dsor++; in mmc_omap_calc_divisor()
1142 if (dsor > 250) in mmc_omap_calc_divisor()
1143 dsor = 250; in mmc_omap_calc_divisor()
1145 slot->fclk_freq = func_clk_rate / dsor; in mmc_omap_calc_divisor()
1148 dsor |= 1 << 15; in mmc_omap_calc_divisor()
[all …]
Dsdhci-omap.c639 u16 dsor; in sdhci_omap_calc_divisor() local
641 dsor = DIV_ROUND_UP(clk_get_rate(host->clk), clock); in sdhci_omap_calc_divisor()
642 if (dsor > SYSCTL_CLKD_MAX) in sdhci_omap_calc_divisor()
643 dsor = SYSCTL_CLKD_MAX; in sdhci_omap_calc_divisor()
645 return dsor; in sdhci_omap_calc_divisor()
Domap_hsmmc.c522 u16 dsor = 0; in calc_divisor() local
525 dsor = DIV_ROUND_UP(clk_get_rate(host->fclk), ios->clock); in calc_divisor()
526 if (dsor > CLKD_MAX) in calc_divisor()
527 dsor = CLKD_MAX; in calc_divisor()
530 return dsor; in calc_divisor()