Lines Matching refs:rate
122 static void clk_pll_calc(unsigned long rate, unsigned long ref_freq, in clk_pll_calc() argument
128 if (rate < HB_PLL_MIN_FREQ) in clk_pll_calc()
129 rate = HB_PLL_MIN_FREQ; in clk_pll_calc()
130 if (rate > HB_PLL_MAX_FREQ) in clk_pll_calc()
131 rate = HB_PLL_MAX_FREQ; in clk_pll_calc()
134 if ((rate * (1 << divq)) >= HB_PLL_VCO_MIN_FREQ) in clk_pll_calc()
138 vco_freq = rate * (1 << divq); in clk_pll_calc()
146 static long clk_pll_round_rate(struct clk_hw *hwclk, unsigned long rate, in clk_pll_round_rate() argument
152 clk_pll_calc(rate, ref_freq, &divq, &divf); in clk_pll_round_rate()
157 static int clk_pll_set_rate(struct clk_hw *hwclk, unsigned long rate, in clk_pll_set_rate() argument
164 clk_pll_calc(rate, parent_rate, &divq, &divf); in clk_pll_set_rate()
243 static long clk_periclk_round_rate(struct clk_hw *hwclk, unsigned long rate, in clk_periclk_round_rate() argument
248 div = *parent_rate / rate; in clk_periclk_round_rate()
255 static int clk_periclk_set_rate(struct clk_hw *hwclk, unsigned long rate, in clk_periclk_set_rate() argument
261 div = parent_rate / rate; in clk_periclk_set_rate()