Searched refs:dsor (Results 1 – 4 of 4) sorted by relevance
167 int dsor = 1 << (3 & (omap_readw(ARM_CKCTL) >> clk->rate_offset)); in omap1_ckctl_recalc() local169 return clk->parent->rate / dsor; in omap1_ckctl_recalc()174 int dsor; in omap1_ckctl_recalc_dsp_domain() local184 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() local317 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 …]
1130 int dsor; in mmc_omap_calc_divisor() local1135 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 …]
639 u16 dsor; in sdhci_omap_calc_divisor() local641 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()
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()