Lines Matching defs:pVBox
57 VBOXPtr pVBox;
61 pVBox = pScrn->driverPrivate;
65 for (j = 0; j < pVBox->cScreens; ++j)
68 struct VBVABUFFER *pVBVA = pVBox->pScreens[j].aVbvaCtx.pVBVA;
74 if ( aRects[i].x1 > pVBox->pScreens[j].aScreenLocation.x
75 + pVBox->pScreens[j].aScreenLocation.cx
76 || aRects[i].y1 > pVBox->pScreens[j].aScreenLocation.y
77 + pVBox->pScreens[j].aScreenLocation.cy
78 || aRects[i].x2 < pVBox->pScreens[j].aScreenLocation.x
79 || aRects[i].y2 < pVBox->pScreens[j].aScreenLocation.y)
91 if (VBoxVBVABufferBeginUpdate(&pVBox->pScreens[j].aVbvaCtx,
92 &pVBox->guestCtx))
94 VBoxVBVAWrite(&pVBox->pScreens[j].aVbvaCtx, &pVBox->guestCtx, &cmdHdr,
96 VBoxVBVABufferEndUpdate(&pVBox->pScreens[j].aVbvaCtx);
106 VBOXPtr pVBox = (VBOXPtr)pvVBox;
112 pViews[i].u32ViewSize = pVBox->cbView;
113 pViews[i].u32MaxScreenSize = pVBox->cbFBMax;
124 vboxInitVbva(int scrnIndex, ScreenPtr pScreen, VBOXPtr pVBox)
131 pVBox->cScreens = 1;
174 vboxSetupVRAMVbva(ScrnInfoPtr pScrn, VBOXPtr pVBox)
184 pvGuestHeapMemory = ((uint8_t *)pVBox->base) + offVRAMBaseMapping
189 rc = VBoxHGSMISetupGuestContext(&pVBox->guestCtx, pvGuestHeapMemory,
198 pVBox->cbView = pVBox->cbFBMax = offVRAMBaseMapping;
199 pVBox->cScreens = VBoxHGSMIGetMonitorCount(&pVBox->guestCtx);
200 pVBox->pScreens = calloc(pVBox->cScreens, sizeof(*pVBox->pScreens));
201 if (pVBox->pScreens == NULL)
204 pVBox->paVBVAModeHints = calloc(pVBox->cScreens,
205 sizeof(*pVBox->paVBVAModeHints));
206 if (pVBox->paVBVAModeHints == NULL)
210 pVBox->cScreens);
211 for (i = 0; i < pVBox->cScreens; ++i)
213 pVBox->cbFBMax -= VBVA_MIN_BUFFER_SIZE;
214 pVBox->pScreens[i].aoffVBVABuffer = pVBox->cbFBMax;
216 (unsigned long) pVBox->cbFBMax);
217 VBoxVBVASetupBufferContext(&pVBox->pScreens[i].aVbvaCtx,
218 pVBox->pScreens[i].aoffVBVABuffer,
222 (unsigned long) pVBox->cbFBMax,
223 (unsigned long) pVBox->cbFBMax);
224 rc = VBoxHGSMISendViewInfo(&pVBox->guestCtx, pVBox->cScreens,
225 vboxFillViewInfo, (void *)pVBox);
235 vbox_open(ScrnInfoPtr pScrn, ScreenPtr pScreen, VBOXPtr pVBox)
239 if (!vboxInitVbva(pScrn->scrnIndex, pScreen, pVBox))
256 VBOXPtr pVBox = pScrn->driverPrivate;
259 if (!vboxSetupVRAMVbva(pScrn, pVBox))
261 for (i = 0; i < pVBox->cScreens; ++i)
265 pVBVA = (struct VBVABUFFER *) ( ((uint8_t *)pVBox->base)
266 + pVBox->pScreens[i].aoffVBVABuffer);
267 if (!VBoxVBVAEnable(&pVBox->pScreens[i].aVbvaCtx, &pVBox->guestCtx,
280 if (rc && pVBox->hACPIEventHandler != NULL)
283 VBoxHGSMISendCapsInfo(&pVBox->guestCtx, VBVACAPS_VIDEO_MODE_HINTS | VBVACAPS_DISABLE_CURSOR_INTEGRATION);
303 VBOXPtr pVBox = pScrn->driverPrivate;
306 for (i = 0; i < pVBox->cScreens; ++i)
307 VBoxVBVADisable(&pVBox->pScreens[i].aVbvaCtx, &pVBox->guestCtx, i);