Home
last modified time | relevance | path

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

/drivers/mmc/host/
Domap.c1132 int dsor; in mmc_omap_calc_divisor() local
1137 dsor = func_clk_rate / ios->clock; in mmc_omap_calc_divisor()
1138 if (dsor < 1) in mmc_omap_calc_divisor()
1139 dsor = 1; in mmc_omap_calc_divisor()
1141 if (func_clk_rate / dsor > ios->clock) in mmc_omap_calc_divisor()
1142 dsor++; in mmc_omap_calc_divisor()
1144 if (dsor > 250) in mmc_omap_calc_divisor()
1145 dsor = 250; in mmc_omap_calc_divisor()
1147 slot->fclk_freq = func_clk_rate / dsor; in mmc_omap_calc_divisor()
1150 dsor |= 1 << 15; in mmc_omap_calc_divisor()
[all …]
Domap_hsmmc.c618 u16 dsor = 0; in calc_divisor() local
621 dsor = DIV_ROUND_UP(clk_get_rate(host->fclk), ios->clock); in calc_divisor()
622 if (dsor > CLKD_MAX) in calc_divisor()
623 dsor = CLKD_MAX; in calc_divisor()
626 return dsor; in calc_divisor()