Lines Matching refs:dsor_exp

146 	unsigned  dsor_exp;  in calc_dsor_exp()  local
153 for (dsor_exp=0; dsor_exp<4; dsor_exp++) { in calc_dsor_exp()
160 return dsor_exp; in calc_dsor_exp()
233 int dsor_exp; in omap1_clk_set_rate_dsp_domain() local
236 dsor_exp = calc_dsor_exp(clk, rate); in omap1_clk_set_rate_dsp_domain()
237 if (dsor_exp > 3) in omap1_clk_set_rate_dsp_domain()
238 dsor_exp = -EINVAL; in omap1_clk_set_rate_dsp_domain()
239 if (dsor_exp < 0) in omap1_clk_set_rate_dsp_domain()
240 return dsor_exp; in omap1_clk_set_rate_dsp_domain()
244 regval |= dsor_exp << clk->rate_offset; in omap1_clk_set_rate_dsp_domain()
246 clk->rate = clk->parent->rate / (1 << dsor_exp); in omap1_clk_set_rate_dsp_domain()
253 int dsor_exp = calc_dsor_exp(clk, rate); in omap1_clk_round_rate_ckctl_arm() local
254 if (dsor_exp < 0) in omap1_clk_round_rate_ckctl_arm()
255 return dsor_exp; in omap1_clk_round_rate_ckctl_arm()
256 if (dsor_exp > 3) in omap1_clk_round_rate_ckctl_arm()
257 dsor_exp = 3; in omap1_clk_round_rate_ckctl_arm()
258 return clk->parent->rate / (1 << dsor_exp); in omap1_clk_round_rate_ckctl_arm()
263 int dsor_exp; in omap1_clk_set_rate_ckctl_arm() local
266 dsor_exp = calc_dsor_exp(clk, rate); in omap1_clk_set_rate_ckctl_arm()
267 if (dsor_exp > 3) in omap1_clk_set_rate_ckctl_arm()
268 dsor_exp = -EINVAL; in omap1_clk_set_rate_ckctl_arm()
269 if (dsor_exp < 0) in omap1_clk_set_rate_ckctl_arm()
270 return dsor_exp; in omap1_clk_set_rate_ckctl_arm()
274 regval |= dsor_exp << clk->rate_offset; in omap1_clk_set_rate_ckctl_arm()
277 clk->rate = clk->parent->rate / (1 << dsor_exp); in omap1_clk_set_rate_ckctl_arm()