Lines Matching defs:prescale
1296 unsigned long feedback, prescale, postscale, IntRef, VCO, out_freq, diff, VCOlow, VCOhigh, bdiff = 1000000;
1303 * prescale produce an VCO outside the acceptable range
1305 prescale = 1;
1306 feedback = (prescale * (1UL << postscale) * freq) / (2 * PM3_EXT_CLOCK_FREQ);
1307 VCOlow = (2 * PM3_EXT_CLOCK_FREQ * feedback) / prescale;
1311 prescale = 255;
1312 feedback = (prescale * (1UL << postscale) * freq) / (2 * PM3_EXT_CLOCK_FREQ);
1313 VCOhigh = (2 * PM3_EXT_CLOCK_FREQ * feedback) / prescale;
1317 for (prescale = 1; prescale <= 255; prescale++) {
1318 IntRef = PM3_EXT_CLOCK_FREQ / prescale;
1322 * Hopefully we will get into range as the prescale
1335 feedback = (prescale * (1UL << postscale) * freq) / (2 * PM3_EXT_CLOCK_FREQ);
1339 * prescale, feedbackscale & postscale registers
1350 VCO = (2 * PM3_EXT_CLOCK_FREQ * feedback) / prescale;
1357 bpre = prescale;