Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/arch/arm/mach-omap1/
Dclock.c167 int dsor = 1 << (3 & (omap_readw(ARM_CKCTL) >> clk->rate_offset)); in omap1_ckctl_recalc() local
169 return clk->parent->rate / dsor; in omap1_ckctl_recalc()
174 int dsor; in omap1_ckctl_recalc_dsp_domain() local
184 dsor = 1 << (3 & (__raw_readw(DSP_CKCTL) >> clk->rate_offset)); in omap1_ckctl_recalc_dsp_domain()
187 return clk->parent->rate / dsor; in omap1_ckctl_recalc_dsp_domain()
306 unsigned dsor; in calc_ext_dsor() local
317 for (dsor = 2; dsor < 96; ++dsor) { in calc_ext_dsor()
318 if ((dsor & 1) && dsor > 8) in calc_ext_dsor()
320 if (rate >= 96000000 / dsor) in calc_ext_dsor()
323 return dsor; in calc_ext_dsor()
[all …]
/kernel/linux/linux-5.10/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()