Lines Matching defs:pVM

32  * @param   pVM     Pointer to the VM.
35 DECLINLINE(CTX_SUFF(PIOMIOPORTRANGE)) iomIOPortGetRange(PVM pVM, RTIOPORT Port)
37 Assert(IOM_IS_SHARED_LOCK_OWNER(pVM));
38 return (CTX_SUFF(PIOMIOPORTRANGE))RTAvlroIOPortRangeGet(&pVM->iom.s.CTX_SUFF(pTrees)->CTX_SUFF(IOPortTree), Port);
48 * @param pVM Pointer to the VM.
51 DECLINLINE(PIOMIOPORTRANGER3) iomIOPortGetRangeR3(PVM pVM, RTIOPORT Port)
53 Assert(IOM_IS_SHARED_LOCK_OWNER(pVM));
54 return (PIOMIOPORTRANGER3)RTAvlroIOPortRangeGet(&pVM->iom.s.CTX_SUFF(pTrees)->IOPortTreeR3, Port);
64 * @param pVM Pointer to the VM.
68 DECLINLINE(PIOMMMIORANGE) iomMmioGetRange(PVM pVM, PVMCPU pVCpu, RTGCPHYS GCPhys)
70 Assert(IOM_IS_SHARED_LOCK_OWNER(pVM));
75 = (PIOMMMIORANGE)RTAvlroGCPhysRangeGet(&pVM->iom.s.CTX_SUFF(pTrees)->MMIOTree, GCPhys);
100 * @param pVM Pointer to the VM.
104 DECLINLINE(PIOMMMIORANGE) iomMmioGetRangeWithRef(PVM pVM, PVMCPU pVCpu, RTGCPHYS GCPhys)
106 int rc = IOM_LOCK_SHARED_EX(pVM, VINF_SUCCESS);
113 = (PIOMMMIORANGE)RTAvlroGCPhysRangeGet(&pVM->iom.s.CTX_SUFF(pTrees)->MMIOTree, GCPhys);
117 IOM_UNLOCK_SHARED(pVM);
125 * @param pVM Pointer to the VM.
128 DECLINLINE(void) iomMmioReleaseRange(PVM pVM, PIOMMMIORANGE pRange)
132 iomMmioFreeRange(pVM, pRange);
143 * @param pVM Pointer to the VM.
147 DECLINLINE(PIOMMMIORANGE) iomMMIOGetRangeUnsafe(PVM pVM, PVMCPU pVCpu, RTGCPHYS GCPhys)
153 = (PIOMMMIORANGE)RTAvlroGCPhysRangeGet(&pVM->iom.s.CTX_SUFF(pTrees)->MMIOTree, GCPhys);
169 * @param pVM Pointer to the VM.
180 DECLINLINE(PIOMMMIOSTATS) iomMmioGetStats(PVM pVM, PVMCPU pVCpu, RTGCPHYS GCPhys, PIOMMMIORANGE pRange)
182 Assert(IOM_IS_SHARED_LOCK_OWNER(pVM));
192 pStats = (PIOMMMIOSTATS)RTAvloGCPhysGet(&pVM->iom.s.CTX_SUFF(pTrees)->MmioStatTree, GCPhys);
196 IOM_UNLOCK_SHARED(pVM);
197 return iomR3MMIOStatsCreate(pVM, GCPhys, pRange->pszDesc);
202 IOM_UNLOCK_SHARED(pVM);