Lines Matching refs:dsor
169 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()
409 unsigned dsor; in omap1_set_ext_clk_rate() local
412 dsor = calc_ext_dsor(rate); in omap1_set_ext_clk_rate()
413 clk->rate = 96000000 / dsor; in omap1_set_ext_clk_rate()
414 if (dsor > 8) in omap1_set_ext_clk_rate()
415 ratio_bits = ((dsor - 8) / 2 + 6) << 2; in omap1_set_ext_clk_rate()
417 ratio_bits = (dsor - 2) << 2; in omap1_set_ext_clk_rate()
485 unsigned dsor; in omap1_init_ext_clk() local
494 dsor = (ratio_bits - 6) * 2 + 8; in omap1_init_ext_clk()
496 dsor = ratio_bits + 2; in omap1_init_ext_clk()
498 clk-> rate = 96000000 / dsor; in omap1_init_ext_clk()