Lines Matching refs:divf
97 unsigned long divf, divq, vco_freq, reg; in clk_pll_recalc_rate() local
103 divf = (reg & HB_PLL_DIVF_MASK) >> HB_PLL_DIVF_SHIFT; in clk_pll_recalc_rate()
105 vco_freq = parent_rate * (divf + 1); in clk_pll_recalc_rate()
113 u32 divq, divf; in clk_pll_calc() local
127 divf = (vco_freq + (ref_freq / 2)) / ref_freq; in clk_pll_calc()
128 divf--; in clk_pll_calc()
131 *pdivf = divf; in clk_pll_calc()
137 u32 divq, divf; in clk_pll_round_rate() local
140 clk_pll_calc(rate, ref_freq, &divq, &divf); in clk_pll_round_rate()
142 return (ref_freq * (divf + 1)) / (1 << divq); in clk_pll_round_rate()
149 u32 divq, divf; in clk_pll_set_rate() local
152 clk_pll_calc(rate, parent_rate, &divq, &divf); in clk_pll_set_rate()
155 if (divf != ((reg & HB_PLL_DIVF_MASK) >> HB_PLL_DIVF_SHIFT)) { in clk_pll_set_rate()
162 reg |= (divf << HB_PLL_DIVF_SHIFT) | (divq << HB_PLL_DIVQ_SHIFT); in clk_pll_set_rate()