Lines Matching defs:monitor

230         return "monitor doesn't support reduced blanking";
444 * modePool the list of monitor modes compatible with the driver
701 * This function takes a mode and monitor description, and determines
702 * if the mode is valid for the monitor.
705 xf86CheckModeForMonitor(DisplayModePtr mode, MonPtr monitor)
710 if (mode == NULL || monitor == NULL) {
716 mode, mode->name, monitor, monitor->id);
727 if (monitor->nHsync > 0) {
731 for (i = 0; i < monitor->nHsync; i++)
732 if ((hsync > monitor->hsync[i].lo * (1.0 - SYNC_TOLERANCE)) &&
733 (hsync < monitor->hsync[i].hi * (1.0 + SYNC_TOLERANCE)))
737 if (i == monitor->nHsync)
741 if (monitor->nVrefresh > 0) {
745 for (i = 0; i < monitor->nVrefresh; i++)
746 if ((vrefrsh > monitor->vrefresh[i].lo * (1.0 - SYNC_TOLERANCE)) &&
747 (vrefrsh < monitor->vrefresh[i].hi * (1.0 + SYNC_TOLERANCE)))
751 if (i == monitor->nVrefresh)
768 if (!monitor->reducedblanking && !(mode->type & M_T_DRIVER))
772 if ((monitor->maxPixClock) && (mode->Clock > monitor->maxPixClock))
843 * monitor pointer to structure for monitor section
931 * XXX The effect of clock dividers and multipliers on the monitor's
1104 MonPtr mon = scrp->monitor;
1126 * or from the monitor size fields. TODO.
1301 * availModes the list of modes available for the monitor
1320 * monitor pointer to structure for monitor section
1326 * modePool A subset of the modes available to the monitor which
1369 if (scrp == NULL || scrp->name == NULL || !scrp->monitor ||
1389 * in the monitor section.
1398 if (scrp->monitor->nHsync <= 0) {
1400 scrp->monitor->nHsync = numTimings;
1402 scrp->monitor->hsync[i].lo = hsync[i].lo;
1403 scrp->monitor->hsync[i].hi = hsync[i].hi;
1407 scrp->monitor->hsync[0].lo = 31.5;
1408 scrp->monitor->hsync[0].hi = 48.0;
1409 scrp->monitor->nHsync = 1;
1416 for (i = 0; i < scrp->monitor->nHsync; i++) {
1417 if (scrp->monitor->hsync[i].lo == scrp->monitor->hsync[i].hi)
1420 scrp->monitor->id, type, scrp->monitor->hsync[i].lo);
1424 scrp->monitor->id, type,
1425 scrp->monitor->hsync[i].lo,
1426 scrp->monitor->hsync[i].hi);
1430 if (scrp->monitor->nVrefresh <= 0) {
1432 scrp->monitor->nVrefresh = numTimings;
1434 scrp->monitor->vrefresh[i].lo = vrefresh[i].lo;
1435 scrp->monitor->vrefresh[i].hi = vrefresh[i].hi;
1439 scrp->monitor->vrefresh[0].lo = 50;
1440 scrp->monitor->vrefresh[0].hi = 70;
1441 scrp->monitor->nVrefresh = 1;
1448 for (i = 0; i < scrp->monitor->nVrefresh; i++) {
1449 if (scrp->monitor->vrefresh[i].lo == scrp->monitor->vrefresh[i].hi)
1452 scrp->monitor->id, type,
1453 scrp->monitor->vrefresh[i].lo);
1457 scrp->monitor->id, type,
1458 scrp->monitor->vrefresh[i].lo,
1459 scrp->monitor->vrefresh[i].hi);
1463 if (!scrp->monitor->maxPixClock && !specified) {
1465 scrp->monitor->maxPixClock = 65000.0;
1467 if (scrp->monitor->maxPixClock) {
1470 scrp->monitor->id, type,
1471 (float) scrp->monitor->maxPixClock / 1000.0);
1592 status = xf86CheckModeForMonitor(p, scrp->monitor);
1689 if (!scrp->monitor->reducedblanking &&