Lines Matching defs:prescale
1133 unsigned long feedback, prescale, postscale, IntRef, VCO, out_freq, diff, VCOlow, VCOhigh, bdiff = 1000000;
1140 * prescale produce an VCO outside the acceptable range
1142 prescale = 1;
1143 feedback = (prescale * (1UL << postscale) * freq) / (2 * PM3_EXT_CLOCK_FREQ);
1144 VCOlow = (2 * PM3_EXT_CLOCK_FREQ * feedback) / prescale;
1148 prescale = 255;
1149 feedback = (prescale * (1UL << postscale) * freq) / (2 * PM3_EXT_CLOCK_FREQ);
1150 VCOhigh = (2 * PM3_EXT_CLOCK_FREQ * feedback) / prescale;
1154 for (prescale = 1; prescale <= 255; prescale++) {
1155 IntRef = PM3_EXT_CLOCK_FREQ / prescale;
1159 * Hopefully we will get into range as the prescale
1172 feedback = (prescale * (1UL << postscale) * freq) / (2 * PM3_EXT_CLOCK_FREQ);
1176 * prescale, feedbackscale & postscale registers
1187 VCO = (2 * PM3_EXT_CLOCK_FREQ * feedback) / prescale;
1194 bpre = prescale;