Lines Matching defs:pMga
45 MGAPtr pMga,
58 if(!pMga->NoAccel) {
59 switch(pMga->Chipset) {
71 pitch = pMga->Roundings[Bpp - 1] - 1;
97 MGAPtr pMga = MGAPTR(pScrn);
108 pitch = FindSmallestPitch(pMga, Bpp, pMode->HDisplay);
112 (size <= pMga->FbUsableSize)) {
128 if(!pMga->NoAccel) {
130 if((Bpp != 3) && (pMga->Chipset != PCI_CHIP_MGA2064))
147 mode->xViewportStep = (3 - pMga->BppShifts[Bpp - 1]);
149 (pMga->Chipset == PCI_CHIP_MGAG400 || pMga->Chipset == PCI_CHIP_MGAG550))
153 mode->offset = pMga->YDstOrg * Bpp; /* gonna need to fix that */
154 mode->address = pMga->FbStart;
157 mode->imageHeight = pMga->FbUsableSize / mode->bytesPerScanline;
159 switch (pMga->Chipset) {
162 mode->pixmapHeight = (min(pMga->FbUsableSize, 1*1024*1024)) /
166 mode->pixmapHeight = (min(pMga->FbUsableSize, 16*1024*1024)) /
170 mode->maxViewportY = (pMga->FbUsableSize / mode->bytesPerScanline) -
173 if( (pMga->Chipset == PCI_CHIP_MGA2064) ||
174 (pMga->Chipset == PCI_CHIP_MGA2164) ||
175 (pMga->Chipset == PCI_CHIP_MGA2164_AGP))
207 MGAPtr pMga = MGAPTR(pScrn);
261 pMga->numDGAModes = num;
262 pMga->DGAModes = modes;
287 MGAPtr pMga = MGAPTR(pScrn);
288 MGARamdacPtr MGAdac = &pMga->Dac;
312 MGAPtr pMga = MGAPTR(pScrn);
315 if(pMga->DGAactive)
316 memcpy(&pMga->CurrentLayout, &SavedLayouts[index], sizeof(MGAFBLayout));
318 pScrn->currentMode = pMga->CurrentLayout.mode;
321 pMga->DGAactive = FALSE;
323 if(!pMga->DGAactive) { /* save the old parameters */
324 memcpy(&SavedLayouts[index], &pMga->CurrentLayout, sizeof(MGAFBLayout));
325 pMga->DGAactive = TRUE;
328 pMga->CurrentLayout.bitsPerPixel = pMode->bitsPerPixel;
329 pMga->CurrentLayout.depth = pMode->depth;
330 pMga->CurrentLayout.displayWidth = pMode->bytesPerScanline /
332 pMga->CurrentLayout.weight.red = BitsSet(pMode->red_mask);
333 pMga->CurrentLayout.weight.green = BitsSet(pMode->green_mask);
334 pMga->CurrentLayout.weight.blue = BitsSet(pMode->blue_mask);
351 MGAPtr pMga = MGAPTR(pScrn);
353 return pMga->DGAViewportStatus;
362 MGAPtr pMga = MGAPTR(pScrn);
365 pMga->DGAViewportStatus = 0; /* MGAAdjustFrame loops until finished */
375 MGAPtr pMga = MGAPTR(pScrn);
377 if(!pMga->AccelInfoRec) return;
380 pMga->CurrentLayout.bitsPerPixel);
381 (*pMga->AccelInfoRec->SubsequentSolidFillRect)(pScrn, x, y, w, h);
383 SET_SYNC_FLAG(pMga->AccelInfoRec);
393 MGAPtr pMga = MGAPTR(pScrn);
397 if(!pMga->AccelInfoRec) return;
400 pMga->CurrentLayout.bitsPerPixel );
402 (*pMga->AccelInfoRec->SubsequentScreenToScreenCopy)(
405 SET_SYNC_FLAG(pMga->AccelInfoRec);
413 MGAPtr pMga = MGAPTR(pScrn);
415 if( (pMga->AccelInfoRec != NULL)
416 && (pMga->CurrentLayout.bitsPerPixel != 24)
417 && (pMga->Chipset != PCI_CHIP_MGA2064) ) {
421 pMga->DrawTransparent = TRUE;
424 pMga->CurrentLayout.bitsPerPixel );
426 pMga->DrawTransparent = FALSE;
428 (*pMga->AccelInfoRec->SubsequentScreenToScreenCopy)(
431 SET_SYNC_FLAG(pMga->AccelInfoRec);
445 MGAPtr pMga = MGAPTR(pScrn);
448 *mem = (unsigned char*)pMga->FbAddress;
449 *size = pMga->FbMapSize;