Searched refs:fwant (Results 1 – 2 of 2) sorted by relevance
/linux/drivers/video/fbdev/matrox/ |
H A D | matroxfb_misc.c | 134 unsigned int fwant; in matroxfb_PLL_calcclock() local 139 fwant = freq; in matroxfb_PLL_calcclock() 153 if (fwant * 2 > fmax) in matroxfb_PLL_calcclock() 155 fwant *= 2; in matroxfb_PLL_calcclock() 157 if (fwant < pll->vco_freq_min) fwant = pll->vco_freq_min; in matroxfb_PLL_calcclock() 158 if (fwant > fmax) fwant = fmax; in matroxfb_PLL_calcclock() 159 for (; p-- > 0; fwant >>= 1, bestdiff >>= 1) { in matroxfb_PLL_calcclock() 162 if (fwant < pll->vco_freq_min) break; in matroxfb_PLL_calcclock() 167 n = (fwant * (m + 1) + (fxtal >> 1)) / fxtal - 1; in matroxfb_PLL_calcclock() 173 if (fvco < fwant) in matroxfb_PLL_calcclock() [all …]
|
H A D | matroxfb_maven.c | 232 unsigned int fwant; in matroxfb_PLL_mavenclock() local 240 fwant = htotal * vtotal; in matroxfb_PLL_mavenclock() 244 fwant, fxtal, htotal, vtotal, fmax); in matroxfb_PLL_mavenclock() 246 if (fwant * 2 > fmax) in matroxfb_PLL_mavenclock() 248 fwant *= 2; in matroxfb_PLL_mavenclock() 250 if (fwant > fmax) in matroxfb_PLL_mavenclock() 252 for (; p-- > 0; fwant >>= 1) { in matroxfb_PLL_mavenclock() 255 if (fwant < fmin) break; in matroxfb_PLL_mavenclock() 261 n = (fwant * m) / fxtal; in matroxfb_PLL_mavenclock() 294 dprintk(KERN_ERR "clk: %02X %02X %02X %d %d\n", *in, *feed, *post, fxtal, fwant); in matroxfb_PLL_mavenclock()
|