Lines Matching refs:pMode
79 DisplayModePtr firstMode, pMode;
89 for (pMode = pScrn->modes; pMode != firstMode; pMode = pMode->next) {
92 firstMode = pMode;
95 pitch = FindSmallestPitch(pApm, Bpp, pMode->HDisplay);
97 pitch = pMode->HDisplay;
98 if (!reduced_pitch && pitch == FindSmallestPitch(pApm, Bpp, pMode->HDisplay))
101 size = pitch * Bpp * pMode->VDisplay;
115 mode->mode = pMode;
125 if(pMode->Flags & V_DBLSCAN)
127 if(pMode->Flags & V_INTERLACE)
136 mode->viewportWidth = pMode->HDisplay;
137 mode->viewportHeight = pMode->VDisplay;
237 ApmSetMode(ScrnInfoPtr pScrn, DGAModePtr pMode)
241 if (!pMode) { /* restore the original mode */
248 pScrn->currentMode = pApm->CurrentLayout.pMode;
263 pApm->CurrentLayout.displayWidth = pMode->imageWidth;
264 pApm->CurrentLayout.displayHeight = pMode->imageHeight;
265 pApm->CurrentLayout.Scanlines = pMode->imageHeight + 1;
266 pApm->CurrentLayout.depth = pMode->depth;
267 pApm->CurrentLayout.bitsPerPixel = pMode->bitsPerPixel;
268 pApm->CurrentLayout.bytesPerScanline = pMode->bytesPerScanline;
269 pApm->CurrentLayout.pMode = pMode->mode;
270 if (pMode->bitsPerPixel == 24)
273 pApm->CurrentLayout.mask32 = 32 / pMode->bitsPerPixel - 1;
275 ApmSwitchMode(SWITCH_MODE_ARGS(pScrn, pMode->mode));