Home
last modified time | relevance | path

Searched refs:rate_in (Results 1 – 1 of 1) sorted by relevance

/Linux-v4.19/drivers/clk/
Dclk-cs2000-cp.c145 u32 rate_in) in cs2000_clk_in_bound_rate() argument
149 if (rate_in >= 32000000 && rate_in < 56000000) in cs2000_clk_in_bound_rate()
151 else if (rate_in >= 16000000 && rate_in < 28000000) in cs2000_clk_in_bound_rate()
153 else if (rate_in >= 8000000 && rate_in < 14000000) in cs2000_clk_in_bound_rate()
192 static u32 cs2000_rate_to_ratio(u32 rate_in, u32 rate_out) in cs2000_rate_to_ratio() argument
203 do_div(ratio, rate_in); in cs2000_rate_to_ratio()
208 static unsigned long cs2000_ratio_to_rate(u32 ratio, u32 rate_in) in cs2000_ratio_to_rate() argument
219 rate_out = (u64)ratio * rate_in; in cs2000_ratio_to_rate()
224 int ch, u32 rate_in, u32 rate_out) in cs2000_ratio_set() argument
233 val = cs2000_rate_to_ratio(rate_in, rate_out); in cs2000_ratio_set()