Lines Matching defs:pMemSolaris
592 PRTR0MEMOBJSOL pMemSolaris = (PRTR0MEMOBJSOL)pMem;
594 switch (pMemSolaris->Core.enmType)
597 rtR0SolMemFree(pMemSolaris->Core.pv, pMemSolaris->Core.cb);
601 if (pMemSolaris->Core.u.Phys.fAllocated)
603 if (pMemSolaris->fLargePage)
604 rtR0MemObjSolLargePageFree(pMemSolaris->pvHandle, pMemSolaris->Core.cb);
606 rtR0SolMemFree(pMemSolaris->Core.pv, pMemSolaris->Core.cb);
611 if (pMemSolaris->fIndivPages)
612 rtR0MemObjSolPagesFree(pMemSolaris->pvHandle, pMemSolaris->Core.cb);
614 rtR0SolMemFree(pMemSolaris->Core.pv, pMemSolaris->Core.cb);
618 ddi_umem_free(pMemSolaris->Cookie);
622 rtR0MemObjSolUnlock(pMemSolaris->Core.pv, pMemSolaris->Core.cb, pMemSolaris->fAccess);
626 rtR0MemObjSolUnmap(pMemSolaris->Core.pv, pMemSolaris->Core.cb);
631 if (pMemSolaris->Core.u.ResVirt.R0Process == NIL_RTR0PROCESS)
632 vmem_xfree(heap_arena, pMemSolaris->Core.pv, pMemSolaris->Core.cb);
640 AssertMsgFailed(("enmType=%d\n", pMemSolaris->Core.enmType));
651 PRTR0MEMOBJSOL pMemSolaris = (PRTR0MEMOBJSOL)rtR0MemObjNew(sizeof(*pMemSolaris), RTR0MEMOBJTYPE_PAGE, NULL, cb);
652 if (RT_UNLIKELY(!pMemSolaris))
655 void *pvMem = ddi_umem_alloc(cb, DDI_UMEM_SLEEP, &pMemSolaris->Cookie);
658 rtR0MemObjDelete(&pMemSolaris->Core);
662 pMemSolaris->Core.pv = pvMem;
663 pMemSolaris->pvHandle = NULL;
664 *ppMem = &pMemSolaris->Core;
674 PRTR0MEMOBJSOL pMemSolaris = (PRTR0MEMOBJSOL)rtR0MemObjNew(sizeof(*pMemSolaris), RTR0MEMOBJTYPE_LOW, NULL, cb);
675 if (!pMemSolaris)
683 rtR0MemObjDelete(&pMemSolaris->Core);
686 pMemSolaris->Core.pv = pvMem;
687 pMemSolaris->pvHandle = NULL;
688 *ppMem = &pMemSolaris->Core;
703 PRTR0MEMOBJSOL pMemSolaris = (PRTR0MEMOBJSOL)rtR0MemObjNew(sizeof(*pMemSolaris), RTR0MEMOBJTYPE_PHYS_NC, NULL, cb);
704 if (RT_UNLIKELY(!pMemSolaris))
714 rtR0MemObjDelete(&pMemSolaris->Core);
720 pMemSolaris->Core.pv = NULL;
721 pMemSolaris->pvHandle = pvPages;
722 pMemSolaris->fIndivPages = true;
723 *ppMem = &pMemSolaris->Core;
737 rtR0MemObjDelete(&pMemSolaris->Core);
743 pMemSolaris->Core.pv = pvMem;
744 pMemSolaris->pvHandle = NULL;
745 pMemSolaris->fIndivPages = false;
746 *ppMem = &pMemSolaris->Core;
760 PRTR0MEMOBJSOL pMemSolaris = (PRTR0MEMOBJSOL)rtR0MemObjNew(sizeof(*pMemSolaris), RTR0MEMOBJTYPE_PHYS, NULL, cb);
761 if (RT_UNLIKELY(!pMemSolaris))
788 pMemSolaris->Core.pv = NULL;
789 pMemSolaris->Core.u.Phys.PhysBase = PhysAddr;
790 pMemSolaris->Core.u.Phys.fAllocated = true;
791 pMemSolaris->pvHandle = pvPages;
792 pMemSolaris->fLargePage = true;
794 *ppMem = &pMemSolaris->Core;
812 pMemSolaris->Core.pv = pvMem;
813 pMemSolaris->Core.u.Phys.PhysBase = PhysAddr;
814 pMemSolaris->Core.u.Phys.fAllocated = true;
815 pMemSolaris->pvHandle = NULL;
816 pMemSolaris->fLargePage = false;
818 *ppMem = &pMemSolaris->Core;
822 rtR0MemObjDelete(&pMemSolaris->Core);
832 PRTR0MEMOBJSOL pMemSolaris = (PRTR0MEMOBJSOL)rtR0MemObjNew(sizeof(*pMemSolaris), RTR0MEMOBJTYPE_PHYS, NULL, cb);
833 if (!pMemSolaris)
837 pMemSolaris->Core.u.Phys.fAllocated = false;
838 pMemSolaris->Core.u.Phys.PhysBase = Phys;
839 pMemSolaris->Core.u.Phys.uCachePolicy = uCachePolicy;
840 *ppMem = &pMemSolaris->Core;
852 PRTR0MEMOBJSOL pMemSolaris = (PRTR0MEMOBJSOL)rtR0MemObjNew(sizeof(*pMemSolaris), RTR0MEMOBJTYPE_LOCK, (void *)R3Ptr, cb);
853 if (!pMemSolaris)
866 rtR0MemObjDelete(&pMemSolaris->Core);
871 pMemSolaris->Core.u.Lock.R0Process = R0Process;
872 pMemSolaris->pvHandle = NULL;
873 pMemSolaris->fAccess = fPageAccess;
874 *ppMem = &pMemSolaris->Core;
883 PRTR0MEMOBJSOL pMemSolaris = (PRTR0MEMOBJSOL)rtR0MemObjNew(sizeof(*pMemSolaris), RTR0MEMOBJTYPE_LOCK, pv, cb);
884 if (!pMemSolaris)
897 rtR0MemObjDelete(&pMemSolaris->Core);
902 pMemSolaris->Core.u.Lock.R0Process = NIL_RTR0PROCESS;
903 pMemSolaris->pvHandle = NULL;
904 pMemSolaris->fAccess = fPageAccess;
905 *ppMem = &pMemSolaris->Core;
912 PRTR0MEMOBJSOL pMemSolaris;
923 pMemSolaris = (PRTR0MEMOBJSOL)rtR0MemObjNew(sizeof(*pMemSolaris), RTR0MEMOBJTYPE_RES_VIRT, pv, cb);
924 if (!pMemSolaris)
931 pMemSolaris->Core.u.ResVirt.R0Process = NIL_RTR0PROCESS;
932 *ppMem = &pMemSolaris->Core;
993 PRTR0MEMOBJSOL pMemSolaris = (PRTR0MEMOBJSOL)rtR0MemObjNew(sizeof(*pMemSolaris), RTR0MEMOBJTYPE_MAPPING, pv, cbSub);
994 if (pMemSolaris)
996 pMemSolaris->Core.u.Mapping.R0Process = NIL_RTR0PROCESS;
997 *ppMem = &pMemSolaris->Core;
1034 PRTR0MEMOBJSOL pMemSolaris;
1035 pMemSolaris = (PRTR0MEMOBJSOL)rtR0MemObjNew(sizeof(*pMemSolaris), RTR0MEMOBJTYPE_MAPPING, pv, cb);
1036 if (RT_UNLIKELY(!pMemSolaris))
1095 pMemSolaris->Core.u.Mapping.R0Process = R0Process;
1096 pMemSolaris->Core.pv = UserAddr;
1098 *ppMem = &pMemSolaris->Core;
1111 rtR0MemObjDelete(&pMemSolaris->Core);
1128 PRTR0MEMOBJSOL pMemSolaris = (PRTR0MEMOBJSOL)pMem;
1130 switch (pMemSolaris->Core.enmType)
1133 if ( pMemSolaris->Core.u.Phys.fAllocated
1134 || !pMemSolaris->fIndivPages)
1136 uint8_t *pb = (uint8_t *)pMemSolaris->Core.pv + ((size_t)iPage << PAGE_SHIFT);
1139 page_t **ppPages = pMemSolaris->pvHandle;
1146 uint8_t *pb = (uint8_t *)pMemSolaris->Core.pv + ((size_t)iPage << PAGE_SHIFT);
1155 return rtR0MemObjNativeGetPagePhysAddr(pMemSolaris->Core.uRel.Child.pParent, iPage);