Home
last modified time | relevance | path

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

/Linux-v6.6/arch/arm/mach-omap1/
Dclock.c169 int dsor = 1 << (3 & (omap_readw(ARM_CKCTL) >> clk->rate_offset)); in omap1_ckctl_recalc() local
172 clk->rate = p_rate / dsor; in omap1_ckctl_recalc()
210 int dsor; in omap1_ckctl_recalc_dsp_domain() local
222 dsor = 1 << (3 & (__raw_readw(DSP_CKCTL) >> clk->rate_offset)); in omap1_ckctl_recalc_dsp_domain()
226 return p_rate / dsor; in omap1_ckctl_recalc_dsp_domain()
354 unsigned dsor; in calc_ext_dsor() local
365 for (dsor = 2; dsor < 96; ++dsor) { in calc_ext_dsor()
366 if ((dsor & 1) && dsor > 8) in calc_ext_dsor()
368 if (rate >= 96000000 / dsor) in calc_ext_dsor()
371 return dsor; in calc_ext_dsor()
[all …]
/Linux-v6.6/drivers/mmc/host/
Domap.c1148 int dsor; in mmc_omap_calc_divisor() local
1153 dsor = func_clk_rate / ios->clock; in mmc_omap_calc_divisor()
1154 if (dsor < 1) in mmc_omap_calc_divisor()
1155 dsor = 1; in mmc_omap_calc_divisor()
1157 if (func_clk_rate / dsor > ios->clock) in mmc_omap_calc_divisor()
1158 dsor++; in mmc_omap_calc_divisor()
1160 if (dsor > 250) in mmc_omap_calc_divisor()
1161 dsor = 250; in mmc_omap_calc_divisor()
1163 slot->fclk_freq = func_clk_rate / dsor; in mmc_omap_calc_divisor()
1166 dsor |= 1 << 15; in mmc_omap_calc_divisor()
[all …]
Dsdhci-omap.c670 u16 dsor; in sdhci_omap_calc_divisor() local
672 dsor = DIV_ROUND_UP(clk_get_rate(host->clk), clock); in sdhci_omap_calc_divisor()
673 if (dsor > SYSCTL_CLKD_MAX) in sdhci_omap_calc_divisor()
674 dsor = SYSCTL_CLKD_MAX; in sdhci_omap_calc_divisor()
676 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()