Lines Matching refs:dsor_exp

151 	unsigned  dsor_exp;  in calc_dsor_exp()  local
156 for (dsor_exp=0; dsor_exp<4; dsor_exp++) { in calc_dsor_exp()
163 return dsor_exp; in calc_dsor_exp()
267 int dsor_exp; in omap1_clk_set_rate_dsp_domain() local
270 dsor_exp = calc_dsor_exp(rate, p_rate); in omap1_clk_set_rate_dsp_domain()
271 if (dsor_exp > 3) in omap1_clk_set_rate_dsp_domain()
272 dsor_exp = -EINVAL; in omap1_clk_set_rate_dsp_domain()
273 if (dsor_exp < 0) in omap1_clk_set_rate_dsp_domain()
274 return dsor_exp; in omap1_clk_set_rate_dsp_domain()
278 regval |= dsor_exp << clk->rate_offset; in omap1_clk_set_rate_dsp_domain()
280 clk->rate = p_rate / (1 << dsor_exp); in omap1_clk_set_rate_dsp_domain()
288 int dsor_exp = calc_dsor_exp(rate, *p_rate); in omap1_clk_round_rate_ckctl_arm() local
290 if (dsor_exp < 0) in omap1_clk_round_rate_ckctl_arm()
291 return dsor_exp; in omap1_clk_round_rate_ckctl_arm()
292 if (dsor_exp > 3) in omap1_clk_round_rate_ckctl_arm()
293 dsor_exp = 3; in omap1_clk_round_rate_ckctl_arm()
294 return *p_rate / (1 << dsor_exp); in omap1_clk_round_rate_ckctl_arm()
300 int dsor_exp; in omap1_clk_set_rate_ckctl_arm() local
303 dsor_exp = calc_dsor_exp(rate, p_rate); in omap1_clk_set_rate_ckctl_arm()
304 if (dsor_exp > 3) in omap1_clk_set_rate_ckctl_arm()
305 dsor_exp = -EINVAL; in omap1_clk_set_rate_ckctl_arm()
306 if (dsor_exp < 0) in omap1_clk_set_rate_ckctl_arm()
307 return dsor_exp; in omap1_clk_set_rate_ckctl_arm()
314 regval |= dsor_exp << clk->rate_offset; in omap1_clk_set_rate_ckctl_arm()
317 clk->rate = p_rate / (1 << dsor_exp); in omap1_clk_set_rate_ckctl_arm()