Lines Matching refs:pApm
56 static __inline__ int FindSmallestPitch(ApmPtr pApm, int Bpp, int width)
95 pitch = FindSmallestPitch(pApm, Bpp, pMode->HDisplay);
98 if (!reduced_pitch && pitch == FindSmallestPitch(pApm, Bpp, pMode->HDisplay))
104 (size <= pScrn->videoRam * 1024 - pApm->OffscreenReserved)) {
120 if(!pApm->NoAccel) {
142 mode->address = pApm->FbBase;
146 pApm->OffscreenReserved) / mode->bytesPerScanline;
229 pApm->numDGAModes = num;
230 pApm->DGAModes = modes;
242 if (pApm->DGAactive) {
243 memcpy(&pApm->CurrentLayout, &pApm->SavedLayout,
244 sizeof pApm->CurrentLayout);
245 pApm->DGAactive = FALSE;
248 pScrn->currentMode = pApm->CurrentLayout.pMode;
252 if (pApm->AccelInfoRec)
253 XAAInit(pScrn->pScreen, pApm->AccelInfoRec);
257 if (!pApm->DGAactive) {
258 memcpy(&pApm->SavedLayout, &pApm->CurrentLayout,
259 sizeof pApm->CurrentLayout);
260 pApm->DGAactive = TRUE;
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;
271 pApm->CurrentLayout.mask32 = 3;
273 pApm->CurrentLayout.mask32 = 32 / pMode->bitsPerPixel - 1;
277 ApmSetupXAAInfo(pApm, NULL);
281 if (pApm->DGAXAAInfo)
282 bzero(pApm->DGAXAAInfo, sizeof(*pApm->DGAXAAInfo));
284 pApm->DGAXAAInfo = XAACreateInfoRec();
285 ApmSetupXAAInfo(pApm, pApm->DGAXAAInfo);
290 XAAInit(pScrn->pScreen, pApm->DGAXAAInfo);
318 if (pApm->apmLock) {
327 pApm->apmLock = FALSE;
330 if (pApm->VGAMap) {
337 while (inb(pApm->iobase + 0x3DA) & 0x08);
338 while (!(inb(pApm->iobase + 0x3DA) & 0x08));
352 if(pApm->CurrentLayout.depth != 24) {
353 (*pApm->SetupForSolidFill)(pScrn, color, GXcopy, ~0);
354 (*pApm->SubsequentSolidFillRect)(pScrn, x, y, w, h);
357 (*pApm->SetupForSolidFill24)(pScrn, color, GXcopy, ~0);
358 (*pApm->SubsequentSolidFillRect24)(pScrn, x, y, w, h);
360 SET_SYNC_FLAG(pApm->AccelInfoRec);
375 if(pApm->CurrentLayout.depth != 24) {
376 (*pApm->SetupForScreenToScreenCopy)(
378 (*pApm->SubsequentScreenToScreenCopy)(
382 (*pApm->SetupForScreenToScreenCopy24)(
384 (*pApm->SubsequentScreenToScreenCopy24)(
387 SET_SYNC_FLAG(pApm->AccelInfoRec);
401 if(pApm->AccelInfoRec) {
405 (*pApm->AccelInfoRec->SetupForScreenToScreenCopy)(
407 (*pApm->AccelInfoRec->SubsequentScreenToScreenCopy)(
409 SET_SYNC_FLAG(pApm->AccelInfoRec);
427 *mem = (unsigned char*)(pApm->LinAddress +
428 0*((char *)pApm->FbBase - (char *)pApm->LinMap));