Lines Matching defs:Mode
315 DisplayModePtr Modes = NULL, Mode = NULL;
322 Mode = xf86DuplicateMode(&DDCEstablishedModes[i]);
323 Modes = xf86ModesAdd(Modes, Mode);
483 DisplayModePtr Modes = NULL, Mode = NULL;
495 Mode = xf86CVTMode(1366, 768, 60, FALSE, FALSE);
496 Mode->HDisplay = 1366;
497 Mode->HSyncStart--;
498 Mode->HSyncEnd--;
500 Mode = FindDMTMode(hsize, vsize, refresh, rb);
502 if (!Mode) {
505 Mode = xf86CVTMode(hsize, vsize, refresh, FALSE, FALSE);
507 Mode = xf86GTFMode(hsize, vsize, refresh, FALSE, FALSE);
512 if (Mode) {
513 Mode->type = M_T_DRIVER;
514 Modes = xf86ModesAdd(Modes, Mode);
516 Mode = NULL;
568 DisplayModePtr Mode;
597 Mode = xnfcalloc(1, sizeof(DisplayModeRec));
599 Mode->type = M_T_DRIVER;
601 Mode->type |= M_T_PREFERRED;
605 Mode->Clock = 108880;
607 Mode->Clock = timing->clock / 1000.0;
609 Mode->HDisplay = timing->h_active;
610 Mode->HSyncStart = timing->h_active + timing->h_sync_off;
611 Mode->HSyncEnd = Mode->HSyncStart + timing->h_sync_width;
612 Mode->HTotal = timing->h_active + timing->h_blanking;
614 Mode->VDisplay = timing->v_active;
615 Mode->VSyncStart = timing->v_active + timing->v_sync_off;
616 Mode->VSyncEnd = Mode->VSyncStart + timing->v_sync_width;
617 Mode->VTotal = timing->v_active + timing->v_blanking;
620 if (Mode->HSyncEnd > Mode->HTotal || Mode->VSyncEnd > Mode->VTotal) {
621 free(Mode);
628 DDCModeDoInterlaceQuirks(Mode);
631 Mode->Flags |= V_PVSYNC | V_PHSYNC;
634 Mode->Flags |= V_PVSYNC;
636 Mode->Flags |= V_NVSYNC;
639 Mode->Flags |= V_PHSYNC;
641 Mode->Flags |= V_NHSYNC;
644 xf86SetModeDefaultName(Mode);
646 return Mode;
768 DisplayModePtr Mode = Modes;
782 while (Mode) {
783 if (!Mode->HSync)
784 Mode->HSync = ((float) Mode->Clock ) / ((float) Mode->HTotal);
786 if (!Mode->VRefresh)
787 Mode->VRefresh = (1000.0 * ((float) Mode->Clock)) /
788 ((float) (Mode->HTotal * Mode->VTotal));
790 if (Mode->HSync < Monitor->hsync[0].lo)
791 Monitor->hsync[0].lo = Mode->HSync;
793 if (Mode->HSync > Monitor->hsync[0].hi)
794 Monitor->hsync[0].hi = Mode->HSync;
796 if (Mode->VRefresh < Monitor->vrefresh[0].lo)
797 Monitor->vrefresh[0].lo = Mode->VRefresh;
799 if (Mode->VRefresh > Monitor->vrefresh[0].hi)
800 Monitor->vrefresh[0].hi = Mode->VRefresh;
802 Mode = Mode->next;
976 DisplayModePtr Mode;
982 Mode = xf86DuplicateMode(CEAVideoModes + vid);
983 *Modes = xf86ModesAdd(*Modes, Mode);
1011 DisplayModePtr Mode;
1020 Mode = DDCModeFromDetailedTiming(p->DDC->scrnIndex,
1025 p->Modes = xf86ModesAdd(p->Modes, Mode);
1028 Mode = DDCModesFromStandardTiming(det_mon->section.std_t,
1030 p->Modes = xf86ModesAdd(p->Modes, Mode);
1033 Mode = DDCModesFromCVT(p->DDC->scrnIndex, det_mon->section.cvt);
1034 p->Modes = xf86ModesAdd(p->Modes, Mode);
1037 Mode = DDCModesFromEstIII(det_mon->section.est_iii);
1038 p->Modes = xf86ModesAdd(p->Modes, Mode);
1048 DisplayModePtr Modes = NULL, Mode;
1081 Mode = DDCModesFromEstablished(scrnIndex, &DDC->timings1, quirks);
1082 Modes = xf86ModesAdd(Modes, Mode);
1085 Mode = DDCModesFromStandardTiming(DDC->timings2, quirks, timing_level, rb);
1086 Modes = xf86ModesAdd(Modes, Mode);
1089 Mode = DDCModesFromCEAExtension(scrnIndex,DDC);
1090 Modes = xf86ModesAdd(Modes, Mode);
1166 DisplayModePtr Modes = NULL, Mode;
1195 Mode = Modes;
1196 while (Mode) {
1197 xf86PrintModeline(scrnIndex, Mode);
1198 Mode = Mode->next;
1205 /* look for last Mode */
1206 Mode = Modes;
1208 while (Mode->next)
1209 Mode = Mode->next;
1215 Monitor->Last = Mode;
1218 Monitor->Last = Mode;