Lines Matching full:ratio
202 u64 ratio; in cs2000_rate_to_ratio() local
206 * ratio = rate_out / rate_in * 2^multiplier in cs2000_rate_to_ratio()
211 ratio = (u64)rate_out << multiplier; in cs2000_rate_to_ratio()
212 do_div(ratio, rate_in); in cs2000_rate_to_ratio()
214 return ratio; in cs2000_rate_to_ratio()
217 static unsigned long cs2000_ratio_to_rate(u32 ratio, u32 rate_in, bool lf_ratio) in cs2000_ratio_to_rate() argument
223 * ratio = rate_out / rate_in * 2^multiplier in cs2000_ratio_to_rate()
229 rate_out = (u64)ratio * rate_in; in cs2000_ratio_to_rate()
301 u32 ratio; in cs2000_recalc_rate() local
303 ratio = cs2000_ratio_get(priv, ch); in cs2000_recalc_rate()
305 return cs2000_ratio_to_rate(ratio, parent_rate, priv->lf_ratio); in cs2000_recalc_rate()
312 u32 ratio; in cs2000_round_rate() local
314 ratio = cs2000_rate_to_ratio(*parent_rate, rate, priv->lf_ratio); in cs2000_round_rate()
316 return cs2000_ratio_to_rate(ratio, *parent_rate, priv->lf_ratio); in cs2000_round_rate()
327 * | utilized whenever the desired ratio is less than 4096 since in cs2000_select_ratio_mode()
497 * otherwise .set_rate which setup ratio in cs2000_clk_register()