Home | History | Annotate | Download | only in common

Lines Matching refs:Clock

116  * Find closest clock to given frequency (in kHz).  This assumes the
124 int minimumGap = abs(freq - scrp->clock[0]);
132 /* Must set this here in case the best match is scrp->clock[0] */
138 gap = abs((freq * j) - ((scrp->clock[i] * DivFactor) / MulFactor));
190 return "no clock available for mode";
192 return "mode clock too high";
194 return "mode clock too low";
196 return "bad mode clock/interlace/doublescan";
243 * xf86ShowClockRanges() -- Print the clock ranges allowed
244 * and the clock values scaled by ClockMulFactor and ClockDivFactor
262 "Clock range: %6.2f to %6.2f MHz\n",
268 "Minimum clock: %6.2f MHz\n",
275 "Maximum clock: %6.2f MHz\n",
283 scaledClock = (scrp->clock[i] * DivFactor) / MulFactor;
302 return ((p->Clock >= cp->minClock) &&
303 (p->Clock <= cp->maxClock) &&
346 /* Check clock is in range */
356 clockIndex = xf86GetNearestClock(scrp, p->Clock, allowDiv2,
359 modep->Clock = (scrp->clock[clockIndex] * DivFactor)
362 modep->SynthClock = scrp->clock[clockIndex];
364 modep->Clock /= 2;
369 modep->Clock = p->Clock;
371 modep->SynthClock = (modep->Clock * MulFactor)
378 modep->Clock = p->Clock;
383 modep->Clock = p->Clock;
438 * clockRanges a list of clock ranges. This is optional when all the
447 * progClock clock is programmable
531 /* Check clock is in range */
545 * If programmable clock and strategy is not
572 * Clock is in range, so if it is not a programmable clock, find
573 * a matching clock.
576 i = xf86GetNearestClock(scrp, p->Clock, allowDiv2,
580 * If the clock is too far from the requested clock, this
584 gap = abs((p->Clock * 2) -
585 ((scrp->clock[i] * cp->ClockDivFactor) /
588 gap = abs(p->Clock -
589 ((scrp->clock[i] * cp->ClockDivFactor) /
647 modep->Clock = bestMode->Clock;
649 modep->SynthClock = (modep->Clock * MulFactor) / DivFactor;
652 modep->Clock = (scrp->clock[clockIndex] * DivFactor) / MulFactor;
654 modep->SynthClock = scrp->clock[clockIndex];
656 modep->Clock /= 2;
772 if ((monitor->maxPixClock) && (mode->Clock > monitor->maxPixClock))
931 * XXX The effect of clock dividers and multipliers on the monitor's
932 * pixel clock needs to be verified.
935 mode->SynthClock = mode->Clock;
938 i = xf86GetNearestClock(scrp, mode->Clock, allowDiv2,
941 mode->SynthClock = (scrp->clock[i] * cp->ClockDivFactor) /
985 * clockRanges allowable clock ranges
1024 /* Check clock is in range */
1033 * If programmable clock the required mode has been found
1041 /* Check clock is in range */
1045 * Clock is in range, so if it is not a programmable clock,
1046 * find a matching clock.
1049 i = xf86GetNearestClock(scrp, mode->Clock, 0,
1053 * If the clock is too far from the requested clock, this
1057 gap = abs((mode->Clock * 2) -
1058 ((scrp->clock[i] * cp->ClockDivFactor) /
1061 gap = abs(mode->Clock -
1062 ((scrp->clock[i] * cp->ClockDivFactor) /
1084 mode->SynthClock = (mode->Clock * MulFactor) / DivFactor;
1087 mode->Clock = (scrp->clock[clockIndex] * DivFactor) / MulFactor;
1089 mode->SynthClock = scrp->clock[clockIndex];
1091 mode->Clock /= 2;
1303 * clockRanges a list of clock ranges
1319 * progClock clock is programmable
1469 "%s: Using %smaximum pixel clock of %.2f MHz\n",
1575 /* Print clock ranges and scaled clocks */
2107 else if (p->Clock == p->SynthClock) {
2110 uprefix, prefix, p->name, p->Clock / 1000.0,
2117 uprefix, prefix, p->name, p->Clock / 1000.0,