Lines Matching refs:rate
110 static void clk_pll_calc(unsigned long rate, unsigned long ref_freq,
116 if (rate < HB_PLL_MIN_FREQ)
117 rate = HB_PLL_MIN_FREQ;
118 if (rate > HB_PLL_MAX_FREQ)
119 rate = HB_PLL_MAX_FREQ;
122 if ((rate * (1 << divq)) >= HB_PLL_VCO_MIN_FREQ)
126 vco_freq = rate * (1 << divq);
134 static long clk_pll_round_rate(struct clk_hw *hwclk, unsigned long rate,
140 clk_pll_calc(rate, ref_freq, &divq, &divf);
145 static int clk_pll_set_rate(struct clk_hw *hwclk, unsigned long rate,
152 clk_pll_calc(rate, parent_rate, &divq, &divf);
231 static long clk_periclk_round_rate(struct clk_hw *hwclk, unsigned long rate,
236 div = *parent_rate / rate;
243 static int clk_periclk_set_rate(struct clk_hw *hwclk, unsigned long rate,
249 div = parent_rate / rate;