Lines Matching defs:monitor

231         return "monitor doesn't support reduced blanking";
441 * modePool the list of monitor modes compatible with the driver
692 * This function takes a mode and monitor description, and determines
693 * if the mode is valid for the monitor.
696 xf86CheckModeForMonitor(DisplayModePtr mode, MonPtr monitor)
701 if (mode == NULL || monitor == NULL) {
707 mode, mode->name, monitor, monitor->id);
718 if (monitor->nHsync > 0) {
721 for (i = 0; i < monitor->nHsync; i++)
722 if ((hsync > monitor->hsync[i].lo * (1.0 - SYNC_TOLERANCE)) &&
723 (hsync < monitor->hsync[i].hi * (1.0 + SYNC_TOLERANCE)))
727 if (i == monitor->nHsync)
731 if (monitor->nVrefresh > 0) {
734 for (i = 0; i < monitor->nVrefresh; i++)
735 if ((vrefrsh > monitor->vrefresh[i].lo * (1.0 - SYNC_TOLERANCE)) &&
736 (vrefrsh < monitor->vrefresh[i].hi * (1.0 + SYNC_TOLERANCE)))
740 if (i == monitor->nVrefresh)
757 if (!monitor->reducedblanking && !(mode->type & M_T_DRIVER))
761 if ((monitor->maxPixClock) && (mode->Clock > monitor->maxPixClock))
833 * monitor pointer to structure for monitor section
928 * XXX The effect of clock dividers and multipliers on the monitor's
1105 MonPtr mon = scrp->monitor;
1126 * or from the monitor size fields. TODO.
1307 * availModes the list of modes available for the monitor
1326 * monitor pointer to structure for monitor section
1334 * modePool A subset of the modes available to the monitor which
1379 if (scrp == NULL || scrp->name == NULL || !scrp->monitor ||
1399 * in the monitor section.
1407 if (scrp->monitor->nHsync <= 0) {
1409 scrp->monitor->nHsync = numTimings;
1411 scrp->monitor->hsync[i].lo = hsync[i].lo;
1412 scrp->monitor->hsync[i].hi = hsync[i].hi;
1415 scrp->monitor->hsync[0].lo = 31.5;
1416 scrp->monitor->hsync[0].hi = 48.0;
1417 scrp->monitor->nHsync = 1;
1423 for (i = 0; i < scrp->monitor->nHsync; i++) {
1424 if (scrp->monitor->hsync[i].lo == scrp->monitor->hsync[i].hi)
1427 scrp->monitor->id, type,
1428 scrp->monitor->hsync[i].lo);
1432 scrp->monitor->id, type,
1433 scrp->monitor->hsync[i].lo,
1434 scrp->monitor->hsync[i].hi);
1438 if (scrp->monitor->nVrefresh <= 0) {
1440 scrp->monitor->nVrefresh = numTimings;
1442 scrp->monitor->vrefresh[i].lo = vrefresh[i].lo;
1443 scrp->monitor->vrefresh[i].hi = vrefresh[i].hi;
1446 scrp->monitor->vrefresh[0].lo = 50;
1447 scrp->monitor->vrefresh[0].hi = 70;
1448 scrp->monitor->nVrefresh = 1;
1454 for (i = 0; i < scrp->monitor->nVrefresh; i++) {
1455 if (scrp->monitor->vrefresh[i].lo == scrp->monitor->vrefresh[i].hi)
1458 scrp->monitor->id, type,
1459 scrp->monitor->vrefresh[i].lo);
1463 scrp->monitor->id, type,
1464 scrp->monitor->vrefresh[i].lo,
1465 scrp->monitor->vrefresh[i].hi);
1469 if (!scrp->monitor->maxPixClock && !specified) {
1471 scrp->monitor->maxPixClock = 65000.0;
1473 if (scrp->monitor->maxPixClock) {
1476 scrp->monitor->id, type,
1477 (float)scrp->monitor->maxPixClock / 1000.0);
1601 status = xf86CheckModeForMonitor(p, scrp->monitor);
1700 if (!scrp->monitor->reducedblanking &&