Lines Matching refs:aMem
894 for (i = 0; i < RT_ELEMENTS(pBundle->aMem); i++)
896 if (pBundle->aMem[i].MemObj != NIL_RTR0MEMOBJ)
898 Log2(("eType=%d pvR0=%p pvR3=%p cb=%ld\n", pBundle->aMem[i].eType, RTR0MemObjAddress(pBundle->aMem[i].MemObj),
899 (void *)RTR0MemObjAddressR3(pBundle->aMem[i].MapObjR3), (long)RTR0MemObjSize(pBundle->aMem[i].MemObj)));
900 if (pBundle->aMem[i].MapObjR3 != NIL_RTR0MEMOBJ)
902 rc = RTR0MemObjFree(pBundle->aMem[i].MapObjR3, false);
904 pBundle->aMem[i].MapObjR3 = NIL_RTR0MEMOBJ;
906 rc = RTR0MemObjFree(pBundle->aMem[i].MemObj, true /* fFreeMappings */);
908 pBundle->aMem[i].MemObj = NIL_RTR0MEMOBJ;
909 pBundle->aMem[i].eType = MEMREF_TYPE_UNUSED;
3271 for (i = 0; i < RT_ELEMENTS(pBundle->aMem); i++)
3273 if ( pBundle->aMem[i].eType == MEMREF_TYPE_MEM
3274 && pBundle->aMem[i].MemObj != NIL_RTR0MEMOBJ
3275 && ( (RTHCUINTPTR)RTR0MemObjAddress(pBundle->aMem[i].MemObj) == uPtr
3276 || ( pBundle->aMem[i].MapObjR3 != NIL_RTR0MEMOBJ
3277 && RTR0MemObjAddressR3(pBundle->aMem[i].MapObjR3) == uPtr)
3281 const size_t cPages = RTR0MemObjSize(pBundle->aMem[i].MemObj) >> PAGE_SHIFT;
3285 paPages[iPage].Phys = RTR0MemObjGetPagePhysAddr(pBundle->aMem[i].MemObj, iPage);
3439 for (i = 0; i < RT_ELEMENTS(pBundle->aMem); i++)
3441 if ( ( pBundle->aMem[i].eType == MEMREF_TYPE_PAGE
3442 && pBundle->aMem[i].MemObj != NIL_RTR0MEMOBJ
3443 && pBundle->aMem[i].MapObjR3 != NIL_RTR0MEMOBJ
3444 && RTR0MemObjAddressR3(pBundle->aMem[i].MapObjR3) == pvR3)
3445 || ( pBundle->aMem[i].eType == MEMREF_TYPE_LOCKED
3446 && pBundle->aMem[i].MemObj != NIL_RTR0MEMOBJ
3447 && pBundle->aMem[i].MapObjR3 == NIL_RTR0MEMOBJ
3448 && RTR0MemObjAddressR3(pBundle->aMem[i].MemObj) == pvR3))
3450 hMemObj = pBundle->aMem[i].MemObj;
3524 for (i = 0; i < RT_ELEMENTS(pBundle->aMem); i++)
3526 if ( pBundle->aMem[i].eType == MEMREF_TYPE_PAGE
3527 && pBundle->aMem[i].MemObj != NIL_RTR0MEMOBJ
3528 && ( pBundle->aMem[i].MapObjR3 != NIL_RTR0MEMOBJ
3531 || RTR0MemObjAddress(pBundle->aMem[i].MemObj) == pvR0)
3533 || RTR0MemObjAddressR3(pBundle->aMem[i].MapObjR3) == pvR3))
3536 hMemObjR0 = pBundle->aMem[i].MemObj;
3538 hMemObjR3 = pBundle->aMem[i].MapObjR3;
4227 if (pBundle->cUsed < RT_ELEMENTS(pBundle->aMem))
4230 for (i = 0; i < RT_ELEMENTS(pBundle->aMem); i++)
4232 if (pBundle->aMem[i].MemObj == NIL_RTR0MEMOBJ)
4235 pBundle->aMem[i] = *pMem;
4255 pBundle->aMem[RT_ELEMENTS(pBundle->aMem) - 1] = *pMem;
4297 for (i = 0; i < RT_ELEMENTS(pBundle->aMem); i++)
4299 if ( pBundle->aMem[i].eType == eType
4300 && pBundle->aMem[i].MemObj != NIL_RTR0MEMOBJ
4301 && ( (RTHCUINTPTR)RTR0MemObjAddress(pBundle->aMem[i].MemObj) == uPtr
4302 || ( pBundle->aMem[i].MapObjR3 != NIL_RTR0MEMOBJ
4303 && RTR0MemObjAddressR3(pBundle->aMem[i].MapObjR3) == uPtr))
4307 SUPDRVMEMREF Mem = pBundle->aMem[i];
4308 pBundle->aMem[i].eType = MEMREF_TYPE_UNUSED;
4309 pBundle->aMem[i].MemObj = NIL_RTR0MEMOBJ;
4310 pBundle->aMem[i].MapObjR3 = NIL_RTR0MEMOBJ;