Lines Matching refs:pMode
60 DisplayModePtr firstMode, pMode;
67 pMode = firstMode = pScrn->modes;
71 pitch = (pMode->HDisplay + 31) & ~31;
72 size = pitch * Bpp * pMode->VDisplay;
86 mode->mode = pMode;
95 if(pMode->Flags & V_DBLSCAN)
97 if(pMode->Flags & V_INTERLACE)
106 mode->viewportWidth = pMode->HDisplay;
107 mode->viewportHeight = pMode->VDisplay;
124 pMode = pMode->next;
125 if(pMode == firstMode)
192 DGAModePtr pMode
199 if(!pMode) { /* restore the original mode */
214 pNv->CurrentLayout.bitsPerPixel = pMode->bitsPerPixel;
215 pNv->CurrentLayout.depth = pMode->depth;
216 pNv->CurrentLayout.displayWidth = pMode->bytesPerScanline /
217 (pMode->bitsPerPixel >> 3);
218 pNv->CurrentLayout.weight.red = BitsSet(pMode->red_mask);
219 pNv->CurrentLayout.weight.green = BitsSet(pMode->green_mask);
220 pNv->CurrentLayout.weight.blue = BitsSet(pMode->blue_mask);
222 NVSwitchMode(SWITCH_MODE_ARGS(pScrn, pMode->mode));