Lines Matching refs:rate
121 static void clk_pll_calc(unsigned long rate, unsigned long ref_freq, in clk_pll_calc() argument
127 if (rate < HB_PLL_MIN_FREQ) in clk_pll_calc()
128 rate = HB_PLL_MIN_FREQ; in clk_pll_calc()
129 if (rate > HB_PLL_MAX_FREQ) in clk_pll_calc()
130 rate = HB_PLL_MAX_FREQ; in clk_pll_calc()
133 if ((rate * (1 << divq)) >= HB_PLL_VCO_MIN_FREQ) in clk_pll_calc()
137 vco_freq = rate * (1 << divq); in clk_pll_calc()
145 static long clk_pll_round_rate(struct clk_hw *hwclk, unsigned long rate, in clk_pll_round_rate() argument
151 clk_pll_calc(rate, ref_freq, &divq, &divf); in clk_pll_round_rate()
156 static int clk_pll_set_rate(struct clk_hw *hwclk, unsigned long rate, in clk_pll_set_rate() argument
163 clk_pll_calc(rate, parent_rate, &divq, &divf); in clk_pll_set_rate()
242 static long clk_periclk_round_rate(struct clk_hw *hwclk, unsigned long rate, in clk_periclk_round_rate() argument
247 div = *parent_rate / rate; in clk_periclk_round_rate()
254 static int clk_periclk_set_rate(struct clk_hw *hwclk, unsigned long rate, in clk_periclk_set_rate() argument
260 div = parent_rate / rate; in clk_periclk_set_rate()