Lines Matching refs:nf
118 u32 nf = (cfg0 & (BIT(13) - 1)) + 1; in pll_clk_recalc_rate() local
122 return fin / MHZ * nf / nr / od * MHZ; in pll_clk_recalc_rate()
129 unsigned long fin, nf, nr, od; in pll_clk_round_rate() local
137 nf = rate / MHZ; in pll_clk_round_rate()
138 if (nf > BIT(13)) in pll_clk_round_rate()
139 nf = BIT(13); in pll_clk_round_rate()
140 if (nf < 1) in pll_clk_round_rate()
141 nf = 1; in pll_clk_round_rate()
150 return fin * nf / (nr * od); in pll_clk_round_rate()
157 unsigned long fin, nf, nr, od, reg; in pll_clk_set_rate() local
164 nf = rate / MHZ; in pll_clk_set_rate()
165 if (unlikely((rate % MHZ) || nf > BIT(13) || nf < 1)) in pll_clk_set_rate()
176 reg = (nf - 1) | ((nr - 1) << 13) | ((od - 1) << 19); in pll_clk_set_rate()
180 clkc_writel((nf >> 1) - 1, reg); in pll_clk_set_rate()