Lines Matching refs:rate
96 static long pll_clk_round_rate(struct clk_hw *hw, unsigned long rate, in pll_clk_round_rate() argument
106 rate = rate - rate % MHZ; in pll_clk_round_rate()
108 nf = rate / MHZ; in pll_clk_round_rate()
127 static int pll_clk_set_rate(struct clk_hw *hw, unsigned long rate, in pll_clk_set_rate() argument
138 nf = rate / MHZ; in pll_clk_set_rate()
139 if (unlikely((rate % MHZ) || nf > BIT(13) || nf < 1)) in pll_clk_set_rate()
163 static long cpu_clk_round_rate(struct clk_hw *hw, unsigned long rate, in cpu_clk_round_rate() argument
173 return pll_clk_round_rate(parent_clk, rate, &pll_parent_rate); in cpu_clk_round_rate()
352 static long dmn_clk_round_rate(struct clk_hw *hw, unsigned long rate, in dmn_clk_round_rate() argument
360 ratio = fin / rate; in dmn_clk_round_rate()
373 static int dmn_clk_set_rate(struct clk_hw *hw, unsigned long rate, in dmn_clk_set_rate() argument
382 ratio = fin / rate; in dmn_clk_set_rate()
387 WARN_ON(fin % rate); in dmn_clk_set_rate()
404 static int cpu_clk_set_rate(struct clk_hw *hw, unsigned long rate, in cpu_clk_set_rate() argument
410 if (rate == clk_get_rate(clk_pll1.hw.clk)) { in cpu_clk_set_rate()
415 if (rate == clk_get_rate(clk_pll2.hw.clk)) { in cpu_clk_set_rate()
420 if (rate == clk_get_rate(clk_pll3.hw.clk)) { in cpu_clk_set_rate()
433 ret2 = clk_set_rate(clk_pll1.hw.clk, rate); in cpu_clk_set_rate()