Searched refs:dsor (Results 1 - 3 of 3) sorted by relevance

/linux-4.4.14/arch/arm/mach-omap1/
H A Dclock.c170 int dsor = 1 << (3 & (omap_readw(ARM_CKCTL) >> clk->rate_offset)); omap1_ckctl_recalc() local
172 return clk->parent->rate / dsor; omap1_ckctl_recalc()
177 int dsor; omap1_ckctl_recalc_dsp_domain() local
187 dsor = 1 << (3 & (__raw_readw(DSP_CKCTL) >> clk->rate_offset)); omap1_ckctl_recalc_dsp_domain()
190 return clk->parent->rate / dsor; omap1_ckctl_recalc_dsp_domain()
309 unsigned dsor; calc_ext_dsor() local
312 * freq = 96MHz / dsor calc_ext_dsor()
314 * RATIO_SEL range: dsor <-> RATIO_SEL calc_ext_dsor()
315 * 0..6: (RATIO_SEL+2) <-> (dsor-2) calc_ext_dsor()
316 * 6..48: (8+(RATIO_SEL-6)*2) <-> ((dsor-8)/2+6) calc_ext_dsor()
317 * Minimum dsor is 2 and maximum is 96. Odd divisors starting from 9 calc_ext_dsor()
320 for (dsor = 2; dsor < 96; ++dsor) { calc_ext_dsor()
321 if ((dsor & 1) && dsor > 8) calc_ext_dsor()
323 if (rate >= 96000000 / dsor) calc_ext_dsor()
326 return dsor; calc_ext_dsor()
350 unsigned dsor; omap1_set_ext_clk_rate() local
353 dsor = calc_ext_dsor(rate); omap1_set_ext_clk_rate()
354 clk->rate = 96000000 / dsor; omap1_set_ext_clk_rate()
355 if (dsor > 8) omap1_set_ext_clk_rate()
356 ratio_bits = ((dsor - 8) / 2 + 6) << 2; omap1_set_ext_clk_rate()
358 ratio_bits = (dsor - 2) << 2; omap1_set_ext_clk_rate()
396 unsigned dsor; omap1_init_ext_clk() local
405 dsor = (ratio_bits - 6) * 2 + 8; omap1_init_ext_clk()
407 dsor = ratio_bits + 2; omap1_init_ext_clk()
409 clk-> rate = 96000000 / dsor; omap1_init_ext_clk()
/linux-4.4.14/drivers/mmc/host/
H A Domap.c1131 int dsor; mmc_omap_calc_divisor() local
1136 dsor = func_clk_rate / ios->clock; mmc_omap_calc_divisor()
1137 if (dsor < 1) mmc_omap_calc_divisor()
1138 dsor = 1; mmc_omap_calc_divisor()
1140 if (func_clk_rate / dsor > ios->clock) mmc_omap_calc_divisor()
1141 dsor++; mmc_omap_calc_divisor()
1143 if (dsor > 250) mmc_omap_calc_divisor()
1144 dsor = 250; mmc_omap_calc_divisor()
1146 slot->fclk_freq = func_clk_rate / dsor; mmc_omap_calc_divisor()
1149 dsor |= 1 << 15; mmc_omap_calc_divisor()
1151 return dsor; mmc_omap_calc_divisor()
1158 int i, dsor; mmc_omap_set_ios() local
1163 dsor = mmc_omap_calc_divisor(mmc, ios); mmc_omap_set_ios()
1174 /* Cannot touch dsor yet, just power up MMC */ mmc_omap_set_ios()
1180 dsor |= 1 << 11; mmc_omap_set_ios()
1196 OMAP_MMC_WRITE(host, CON, dsor); mmc_omap_set_ios()
1197 slot->saved_con = dsor; mmc_omap_set_ios()
H A Domap_hsmmc.c618 u16 dsor = 0; calc_divisor() local
621 dsor = DIV_ROUND_UP(clk_get_rate(host->fclk), ios->clock); calc_divisor()
622 if (dsor > CLKD_MAX) calc_divisor()
623 dsor = CLKD_MAX; calc_divisor()
626 return dsor; calc_divisor()

Completed in 282 milliseconds