Searched refs:Heap (Results 1 - 14 of 14) sorted by relevance

/vbox/src/VBox/Runtime/testcase/
H A DtstRTHeapOffset.cpp3 * IPRT Testcase - Offset Based Heap.
60 RTHEAPOFFSET Heap; local
61 RTTESTI_CHECK_RC(rc = RTHeapOffsetInit(&Heap, &s_abMem[1], sizeof(s_abMem) - 1), VINF_SUCCESS);
100 RTHeapOffsetDump(Heap, (PFNRTHEAPOFFSETPRINTF)RTPrintf); /** @todo Add some detail info output with a signature identical to RTPrintf. */
101 size_t cbBefore = RTHeapOffsetGetFreeSize(Heap);
107 s_aOps[i].pvAlloc = RTHeapOffsetAlloc(Heap, s_aOps[i].cb, s_aOps[i].uAlignment);
108 RTTESTI_CHECK_MSG(s_aOps[i].pvAlloc, ("RTHeapOffsetAlloc(%p, %#x, %#x,) -> NULL i=%d\n", (void *)Heap, s_aOps[i].cb, s_aOps[i].uAlignment, i));
114 ("RTHeapOffsetAlloc(%p, %#x, %#x,) -> %p\n", (void *)Heap, s_aOps[i].cb, s_aOps[i].uAlignment, i));
125 // s_aOps[i].cb, s_aOps[i].uAlignment, RTHeapOffsetSize(Heap, s_aOps[i].pvAlloc));
126 size_t cbBeforeSub = RTHeapOffsetGetFreeSize(Heap);
[all...]
H A DtstRTHeapSimple.cpp3 * IPRT Testcase - Simple Heap.
57 RTHEAPSIMPLE Heap; local
58 RTTESTI_CHECK_RC(rc = RTHeapSimpleInit(&Heap, &s_abMem[1], sizeof(s_abMem) - 1), VINF_SUCCESS);
97 RTHeapSimpleDump(Heap, (PFNRTHEAPSIMPLEPRINTF)RTPrintf); /** @todo Add some detail info output with a signature identical to RTPrintf. */
98 size_t cbBefore = RTHeapSimpleGetFreeSize(Heap);
104 s_aOps[i].pvAlloc = RTHeapSimpleAlloc(Heap, s_aOps[i].cb, s_aOps[i].uAlignment);
105 RTTESTI_CHECK_MSG(s_aOps[i].pvAlloc, ("RTHeapSimpleAlloc(%p, %#x, %#x,) -> NULL i=%d\n", (void *)Heap, s_aOps[i].cb, s_aOps[i].uAlignment, i));
111 ("RTHeapSimpleAlloc(%p, %#x, %#x,) -> %p\n", (void *)Heap, s_aOps[i].cb, s_aOps[i].uAlignment, i));
122 // s_aOps[i].cb, s_aOps[i].uAlignment, RTHeapSimpleSize(Heap, s_aOps[i].pvAlloc));
123 size_t cbBeforeSub = RTHeapSimpleGetFreeSize(Heap);
[all...]
/vbox/include/iprt/
H A Dheap.h2 * IPRT - Heap Implementations
34 /** @defgroup grp_rt_heap RTHeap - Heap Implementations
40 /** @defgroup grp_rt_heap_simple RTHeapSimple - Simple Heap
73 * @param hHeap Heap handle that has already been adjusted by to the new
90 * @param Heap The heap to allocate the memory on.
95 RTDECL(void *) RTHeapSimpleAlloc(RTHEAPSIMPLE Heap, size_t cb, size_t cbAlignment);
103 * @param Heap The heap to allocate the memory on.
108 RTDECL(void *) RTHeapSimpleAllocZ(RTHEAPSIMPLE Heap, size_t cb, size_t cbAlignment);
113 * @param Heap The heap. This is optional and will only be used for strict assertions.
120 RTDECL(void *) RTHeapSimpleRealloc(RTHEAPSIMPLE Heap, voi
164 RTDECL(size_t) RTHeapSimpleGetHeapSize(RTHEAPSIMPLE Heap); variable
176 RTDECL(size_t) RTHeapSimpleGetFreeSize(RTHEAPSIMPLE Heap); variable
[all...]
/vbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/Network/IScsiDxe/
H A DIScsiIbft.c92 @param[in, out] Heap On input, the current address of the heap; On output, the address of
99 IN OUT UINT8 **Heap,
107 *Heap -= Len + 1;
109 CopyMem (*Heap, Data, Len);
110 *(*Heap + Len) = 0;
117 @param[in, out] Heap The heap.
123 IN OUT UINT8 **Heap,
165 IScsiAddHeapItem (Heap, Session->InitiatorName, Session->InitiatorNameLength - 1);
168 Initiator->IScsiNameOffset = (UINT16) ((UINTN) *Heap - (UINTN) Table);
253 @param[in, out] Heap Th
98 IScsiAddHeapItem( IN OUT UINT8 **Heap, IN VOID *Data, IN UINTN Len ) argument
121 IScsiFillInitiatorSection( IN EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_HEADER *Table, IN OUT UINT8 **Heap, IN EFI_HANDLE Handle ) argument
258 IScsiFillNICAndTargetSections( IN EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_HEADER *Table, IN OUT UINT8 **Heap, IN UINTN HandleCount, IN EFI_HANDLE *Handles ) argument
436 UINT8 *Heap; local
[all...]
/vbox/src/VBox/Devices/EFI/Firmware/NetworkPkg/IScsiDxe/
H A DIScsiIbft.c96 @param[in, out] Heap On input, the current address of the heap. On output, the address of
104 IN OUT UINT8 **Heap,
112 *Heap -= Len + 1;
114 CopyMem (*Heap, Data, Len);
115 *(*Heap + Len) = 0;
123 @param[in, out] Heap The heap.
129 IN OUT UINT8 **Heap
154 IScsiAddHeapItem (Heap, mPrivate->InitiatorName, mPrivate->InitiatorNameLength - 1);
157 Initiator->IScsiNameOffset = (UINT16) ((UINTN) *Heap - (UINTN) Table);
191 @param[in, out] Heap Th
103 IScsiAddHeapItem( IN OUT UINT8 **Heap, IN VOID *Data, IN UINTN Len ) argument
459 UINT8 *Heap; local
[all...]
/vbox/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/
H A DVBoxMPShgsmi.h30 HGSMIHEAP Heap; member in struct:VBOXSHGSMI
52 return HGSMIHeapBufferOffset(&pHeap->Heap, (void*)pHeader);
59 return HGSMIPointerToOffset (&pHeap->Heap.area, (const HGSMIBUFFERHEADER *)pvPtr);
H A DVBoxMPShgsmi.cpp150 pvData = HGSMIHeapAlloc(&pHeap->Heap, cbData, u8Channel, u16ChannelInfo);
162 HGSMIHeapFree(&pHeap->Heap, pvBuffer);
172 pvData = HGSMIHeapBufferAlloc(&pHeap->Heap, cbData);
184 HGSMIHeapBufferFree(&pHeap->Heap, pvBuffer);
192 return HGSMIHeapSetup(&pHeap->Heap, u32HeapType, pvBase, cbArea, offBase, pEnv);
197 HGSMIHeapDestroy(&pHeap->Heap);
H A DVBoxMPCr.cpp47 return (VBOXVIDEOOFFSET)HGSMIPointerToOffset(&VBoxCommonFromDeviceExt(pDevExt)->guestCtx.heapCtx.Heap.area, (const HGSMIBUFFERHEADER *)pvBuffer);
52 return HGSMIOffsetToPointer(&VBoxCommonFromDeviceExt(pDevExt)->guestCtx.heapCtx.Heap.area, (HGSMIOFFSET)offBuffer);
H A DVBoxMPWddm.cpp659 if(HGSMIAreaContainsOffset(&pDevExt->u.primary.Vdma.CmdHeap.Heap.area, offCmd))
662 if (HGSMIAreaContainsOffset(&VBoxCommonFromDeviceExt(pDevExt)->guestCtx.heapCtx.Heap.area, offCmd))
679 if(HGSMIAreaContainsOffset(&pDevExt->u.primary.Vdma.CmdHeap.Heap.area, offCmd))
682 if (HGSMIAreaContainsOffset(&VBoxCommonFromDeviceExt(pDevExt)->guestCtx.heapCtx.Heap.area, offCmd))
1506 uint8_t *pvCmd = HGSMIBufferDataAndChInfoFromOffset (&VBoxCommonFromDeviceExt(pDevExt)->guestCtx.heapCtx.Heap.area, offCmd, &chInfo);
1659 uint8_t *pvCmd = HGSMIBufferDataAndChInfoFromOffset (&pHeap->Heap.area, offCmd, &chInfo);
H A DVBoxMPVdma.cpp1530 pCmd->u32Offset = pInfo->CmdHeap.Heap.area.offBase;
1709 VBoxMPCmnUnmapAdapterMemory(VBoxCommonFromDeviceExt(pDevExt), (void**)&pInfo->CmdHeap.Heap.area.pu8Base);
/vbox/src/VBox/Additions/common/VBoxGuest/
H A DVBoxGuest-haiku-stubs.c432 void* RTHeapSimpleAlloc(RTHEAPSIMPLE Heap, size_t cb, size_t cbAlignment) argument
434 return g_VBoxGuest->_RTHeapSimpleAlloc(Heap, cb, cbAlignment);
440 void RTHeapSimpleFree(RTHEAPSIMPLE Heap, void *pv) argument
442 g_VBoxGuest->_RTHeapSimpleFree(Heap, pv);
H A DVBoxGuest-haiku.h207 void* (*_RTHeapSimpleAlloc)(RTHEAPSIMPLE Heap, size_t cb, size_t cbAlignment);
209 void (*_RTHeapSimpleFree)(RTHEAPSIMPLE Heap, void *pv);
/vbox/include/VBox/
H A DVBoxVideoGuest.h51 # define HGSMIGUESTCMDHEAP_GET(_p) (&(_p)->Heap)
/vbox/src/VBox/Devices/EFI/Firmware/NetworkPkg/Ip6Dxe/
H A DIp6ConfigImpl.c443 CHAR8 *Heap; local
463 Heap = (CHAR8 *) Variable + VarSize;
471 Heap -= DataItem->DataSize;
472 CopyMem (Heap, DataItem->Data.Ptr, DataItem->DataSize);
477 DataRecord->Offset = (UINT16) (Heap - (CHAR8 *) Variable);

Completed in 96 milliseconds