Lines Matching defs:pGMR

1903         PGMR pGMR = &pSVGAState->aGMR[i];
1905 if (pGMR->numDescriptors)
1907 for (uint32_t j = 0; j < pGMR->numDescriptors; j++)
1909 if ( GCPhys >= pGMR->paDesc[j].GCPhys
1910 && GCPhys < pGMR->paDesc[j].GCPhys + pGMR->paDesc[j].numPages * PAGE_SIZE)
1916 int rc = PGMHandlerPhysicalPageTempOff(pVM, pGMR->paDesc[j].GCPhys, GCPhys);
1933 PGMR pGMR = &pSVGAState->aGMR[gmrId];
1936 for (uint32_t i = 0; i < pGMR->numDescriptors; i++)
1940 pGMR->paDesc[i].GCPhys, pGMR->paDesc[i].GCPhys + pGMR->paDesc[i].numPages * PAGE_SIZE - 1,
1955 PGMR pGMR = &pSVGAState->aGMR[gmrId];
1957 for (uint32_t i = 0; i < pGMR->numDescriptors; i++)
1959 int rc = PGMHandlerPhysicalDeregister(PDMDevHlpGetVM(pThis->pDevInsR3), pGMR->paDesc[i].GCPhys);
1972 PGMR pGMR = &pSVGAState->aGMR[i];
1974 if (pGMR->numDescriptors)
1976 for (uint32_t j = 0; j < pGMR->numDescriptors; j++)
1978 int rc = PGMHandlerPhysicalReset(PDMDevHlpGetVM(pThis->pDevInsR3), pGMR->paDesc[j].GCPhys);
2559 PGMR pGMR = &pSVGAState->aGMR[pCmd->gmrId];
2560 pGMR->cMaxPages = pCmd->numPages;
2597 PGMR pGMR = &pSVGAState->aGMR[pCmd->gmrId];
2598 AssertBreak(pCmd->offsetPages + pCmd->numPages <= pGMR->cMaxPages);
2599 AssertBreak(!pCmd->offsetPages || pGMR->paDesc); /** @todo */
2602 if (pGMR->paDesc)
2605 paNewPage64 = (uint64_t *)RTMemAllocZ(pGMR->cMaxPages * sizeof(uint64_t));
2608 for (uint32_t i = 0; i < pGMR->numDescriptors; i++)
2610 for (uint32_t j = 0; j < pGMR->paDesc[i].numPages; j++)
2612 paNewPage64[idxPage++] = (pGMR->paDesc[i].GCPhys + j * PAGE_SIZE) >> PAGE_SHIFT;
2615 AssertBreak(idxPage == pGMR->cbTotal >> PAGE_SHIFT);
2619 if (pGMR->paDesc)
2620 RTMemFree(pGMR->paDesc);
2623 pGMR->paDesc = (PVMSVGAGMRDESCRIPTOR)RTMemAllocZ(pGMR->cMaxPages * sizeof(VMSVGAGMRDESCRIPTOR));
2624 AssertBreak(pGMR->paDesc);
2653 pCmd->numPages = pGMR->cbTotal >> PAGE_SHIFT;
2661 pGMR->paDesc[0].GCPhys = GCPhys;
2662 pGMR->paDesc[0].numPages = 1;
2663 pGMR->cbTotal = PAGE_SIZE;
2673 if (GCPhys == pGMR->paDesc[iDescriptor].GCPhys + pGMR->paDesc[iDescriptor].numPages * PAGE_SIZE)
2675 Assert(pGMR->paDesc[iDescriptor].numPages);
2676 pGMR->paDesc[iDescriptor].numPages++;
2682 pGMR->paDesc[iDescriptor].GCPhys = GCPhys;
2683 pGMR->paDesc[iDescriptor].numPages = 1;
2684 LogFlow(("Page %x GCPhys=%RGp\n", i, pGMR->paDesc[iDescriptor].GCPhys));
2687 pGMR->cbTotal += PAGE_SIZE;
2690 pGMR->numDescriptors = iDescriptor + 1;
3245 PGMR pGMR = &pSVGAState->aGMR[idGMR];
3250 Assert(pGMR->paDesc);
3251 RTMemFree(pGMR->paDesc);
3252 pGMR->paDesc = NULL;
3253 pGMR->numDescriptors = 0;
3254 pGMR->cbTotal = 0;
3255 pGMR->cMaxPages = 0;
3278 PGMR pGMR;
3335 pGMR = &pSVGAState->aGMR[src.gmrId];
3336 pDesc = pGMR->paDesc;
3339 AssertMsgReturn(src.offset < pGMR->cbTotal,
3341 src.gmrId, src.offset, offSrc, cbSrcPitch, cHeight, cbWidth, pGMR->cbTotal),
3343 AssertMsgReturn(offSrc + cbSrcPitch * (cHeight - 1) + cbWidth <= pGMR->cbTotal,
3345 src.gmrId, src.offset, offSrc, cbSrcPitch, cHeight, cbWidth, pGMR->cbTotal),
3358 AssertReturn(offDesc < pGMR->cbTotal, VERR_INTERNAL_ERROR); /* overflow protection */
3590 PGMR pGMR = &pSVGAState->aGMR[i];
3592 rc = SSMR3GetStructEx(pSSM, pGMR, sizeof(*pGMR), 0, g_aGMRFields, NULL);
3595 if (pGMR->numDescriptors)
3598 Assert(pGMR->cMaxPages || pGMR->cbTotal);
3599 pGMR->paDesc = (PVMSVGAGMRDESCRIPTOR)RTMemAllocZ((pGMR->cMaxPages) ? pGMR->cMaxPages : (pGMR->cbTotal >> PAGE_SHIFT) * sizeof(VMSVGAGMRDESCRIPTOR));
3600 AssertReturn(pGMR->paDesc, VERR_NO_MEMORY);
3602 for (uint32_t j = 0; j < pGMR->numDescriptors; j++)
3604 rc = SSMR3GetStructEx(pSSM, &pGMR->paDesc[j], sizeof(pGMR->paDesc[j]), 0, g_aVMSVGAGMRDESCRIPTORFields, NULL);