Searched refs:dsor (Results 1 – 4 of 4) sorted by relevance
169 int dsor = 1 << (3 & (omap_readw(ARM_CKCTL) >> clk->rate_offset)); in omap1_ckctl_recalc() local172 clk->rate = p_rate / dsor; in omap1_ckctl_recalc()210 int dsor; in omap1_ckctl_recalc_dsp_domain() local222 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() local365 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 …]
1148 int dsor; in mmc_omap_calc_divisor() local1153 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 …]
670 u16 dsor; in sdhci_omap_calc_divisor() local672 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()
522 u16 dsor = 0; in calc_divisor() local525 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()