Searched refs:fwant (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/drivers/video/fbdev/matrox/
H A Dmatroxfb_misc.c133 unsigned int fwant; matroxfb_PLL_calcclock() local
138 fwant = freq; matroxfb_PLL_calcclock()
152 if (fwant * 2 > fmax) matroxfb_PLL_calcclock()
154 fwant *= 2; matroxfb_PLL_calcclock()
156 if (fwant < pll->vco_freq_min) fwant = pll->vco_freq_min; matroxfb_PLL_calcclock()
157 if (fwant > fmax) fwant = fmax; matroxfb_PLL_calcclock()
158 for (; p-- > 0; fwant >>= 1, bestdiff >>= 1) { matroxfb_PLL_calcclock()
161 if (fwant < pll->vco_freq_min) break; matroxfb_PLL_calcclock()
166 n = (fwant * (m + 1) + (fxtal >> 1)) / fxtal - 1; matroxfb_PLL_calcclock()
172 if (fvco < fwant) matroxfb_PLL_calcclock()
173 diff = fwant - fvco; matroxfb_PLL_calcclock()
175 diff = fvco - fwant; matroxfb_PLL_calcclock()
185 dprintk(KERN_ERR "clk: %02X %02X %02X %d %d %d\n", *in, *feed, *post, fxtal, bestvco, fwant); matroxfb_PLL_calcclock()
H A Dmatroxfb_maven.c231 unsigned int fwant; matroxfb_PLL_mavenclock() local
239 fwant = htotal * vtotal; matroxfb_PLL_mavenclock()
243 fwant, fxtal, htotal, vtotal, fmax); matroxfb_PLL_mavenclock()
245 if (fwant * 2 > fmax) matroxfb_PLL_mavenclock()
247 fwant *= 2; matroxfb_PLL_mavenclock()
249 if (fwant > fmax) matroxfb_PLL_mavenclock()
251 for (; p-- > 0; fwant >>= 1) { matroxfb_PLL_mavenclock()
254 if (fwant < fmin) break; matroxfb_PLL_mavenclock()
260 n = (fwant * m) / fxtal; matroxfb_PLL_mavenclock()
293 dprintk(KERN_ERR "clk: %02X %02X %02X %d %d\n", *in, *feed, *post, fxtal, fwant); matroxfb_PLL_mavenclock()

Completed in 71 milliseconds