/vbox/src/VBox/Runtime/common/string/ |
H A D | memchr.cpp | 37 * @returns Pointer to the first instance of ch in pv. 39 * @param pv Pointer to the block to search. 45 _CRTIMP __checkReturn _CONST_RETURN void * __cdecl memchr( __in_bcount_opt(_MaxCount) const void * pv, __in int ch, __in size_t cb) variable 47 void *memchr(const void *pv, int ch, size_t cb) 50 void *memchr(const void *pv, int ch, size_t cb) 53 register uint8_t const *pu8 = (uint8_t const *)pv;
|
H A D | memchr_alias.c | 40 extern void *(memchr)(const void *pv, int ch, size_t cb) argument 42 return RT_NOCRT(memchr)(pv, ch, cb);
|
H A D | memcmp.cpp | 60 void const *pv; member in union:__anon16576 62 uDst.pv = pvDst; 63 uSrc.pv = pvSrc;
|
H A D | memcpy.cpp | 56 void *pv; member in union:__anon16577 58 uTrg.pv = pvDst; 64 void const *pv; member in union:__anon16578 66 uSrc.pv = pvSrc;
|
/vbox/src/VBox/Runtime/r3/ |
H A D | alloc-ef-cpp.cpp | 73 void *pv = rtR3MemAlloc("new", RTMEMTYPE_NEW, cb, cb, NULL, ASMReturnAddress(), NULL, 0, NULL); variable 74 if (!pv) 76 return pv; 82 void *pv = rtR3MemAlloc("new nothrow", RTMEMTYPE_NEW, cb, cb, NULL, ASMReturnAddress(), NULL, 0, NULL); variable 83 return pv; 87 void RT_EF_CDECL operator delete(void *pv) RT_NO_THROW 89 rtR3MemFree("delete", RTMEMTYPE_DELETE, pv, ASMReturnAddress(), NULL, 0, NULL); 93 void RT_EF_CDECL operator delete(void * pv, const std::nothrow_t &) RT_NO_THROW 95 rtR3MemFree("delete nothrow", RTMEMTYPE_DELETE, pv, ASMReturnAddress(), NULL, 0, NULL); 109 void *pv variable 118 void *pv = rtR3MemAlloc("new[] nothrow", RTMEMTYPE_NEW_ARRAY, cb, cb, NULL, ASMReturnAddress(), NULL, 0, NULL); variable [all...] |
H A D | allocex.cpp | 68 void *pv; variable 73 rc = rtMemAllocEx16BitReach(cbAligned + sizeof(RTMEMHDRR3), fFlags, &pv); 75 rc = rtMemAllocEx32BitReach(cbAligned + sizeof(RTMEMHDRR3), fFlags, &pv); 81 pv = RTMemExecAlloc(cbAligned + sizeof(RTMEMHDRR3)); 82 if ((fFlags & RTMEMALLOCEX_FLAGS_ZEROED) && pv) 83 RT_BZERO(pv, cbAligned + sizeof(RTMEMHDRR3)); 86 pv = RTMemAllocZ(cbAligned + sizeof(RTMEMHDRR3)); 88 pv = RTMemAlloc(cbAligned + sizeof(RTMEMHDRR3)); 89 if (!pv) 95 PRTMEMHDRR3 pHdr = (PRTMEMHDRR3)pv; [all...] |
/vbox/src/VBox/HostDrivers/Support/testcase/ |
H A D | tstPage.cpp | 47 void *pv; local 48 rc = SUPR3PageAlloc(1, &pv); 52 memset(pv, 0xff, PAGE_SIZE); 53 rc = SUPR3PageFree(pv, 1); 64 rc = SUPR3PageAlloc(1023, &pv); 68 memset(pv, 0xfe, 1023 << PAGE_SHIFT); 69 rc = SUPR3PageFree(pv, 1023);
|
H A D | tstContiguous.cpp | 54 void *pv = SUPR3ContAlloc(8, NIL_RTR0PTR, &HCPhys); local 55 rcRet += pv == NULL || HCPhys == 0; 56 if (pv && HCPhys) 58 memset(pv, 0xff, PAGE_SIZE * 8); 59 pv = SUPR3ContAlloc(5, NIL_RTR0PTR, &HCPhys); 60 rcRet += pv == NULL || HCPhys == 0; 61 if (pv && HCPhys) 63 memset(pv, 0x7f, PAGE_SIZE * 5); 64 rc = SUPR3ContFree(pv, 5);
|
H A D | tstPin.cpp | 57 void *pv; local 58 rc = SUPR3PageAlloc(1, &pv); 60 RTPrintf("pv=%p\n", pv); 62 rc = supR3PageLock(pv, 1, &aPages[0]); 63 RTPrintf("rc=%d aPages[0]=%RHp\n", rc, pv, aPages[0]); 68 rc = SUPPageUnlock(pv); 78 void *pv; member in struct:__anon16376 84 aPinnings[i].pv = NULL; 85 SUPR3PageAlloc(0x10000 >> PAGE_SHIFT, &aPinnings[i].pv); [all...] |
/vbox/src/VBox/Runtime/r3/win/ |
H A D | alloc-win.cpp | 53 void *pv = malloc(cb); variable 54 AssertMsg(pv, ("malloc(%d) failed!!!\n", cb)); 55 if (pv) 57 memset(pv, 0xcc, cb); 58 void *pvProt = (void *)((uintptr_t)pv & ~(uintptr_t)PAGE_OFFSET_MASK); 59 size_t cbProt = ((uintptr_t)pv & PAGE_OFFSET_MASK) + cb; 65 free(pv); variable 66 pv = NULL; 69 return pv; 73 RTDECL(void) RTMemExecFree(void *pv, size_ 76 free(pv); variable 83 void *pv = VirtualAlloc(NULL, RT_ALIGN_Z(cb, PAGE_SIZE), MEM_COMMIT, PAGE_READWRITE); variable 95 void *pv = VirtualAlloc(NULL, RT_ALIGN_Z(cb, PAGE_SIZE), MEM_COMMIT, PAGE_READWRITE); variable [all...] |
/vbox/src/VBox/Devices/EFI/Firmware/VBoxPkg/Library/VBoxDebugLib/ |
H A D | VBoxPrintHexDump.c | 54 * @param pv The memory to dump. 57 size_t VBoxPrintHexDump(const void *pv, size_t cb) argument 60 uint8_t const *pb = (uint8_t const *)pv;
|
/vbox/src/VBox/Runtime/common/checksum/ |
H A D | crc32.cpp | 153 RTDECL(uint32_t) RTCrc32(const void *pv, size_t cb) argument 155 const uint8_t *pu8 = (const uint8_t *)pv; 171 RTDECL(uint32_t) RTCrc32Process(uint32_t uCRC32, const void *pv, size_t cb) argument 173 const uint8_t *pu8 = (const uint8_t *)pv;
|
H A D | crc64.cpp | 157 * @param pv Pointer to the memory block. 160 RTDECL(uint64_t) RTCrc64(const void *pv, size_t cb) argument 162 const uint8_t *pu8 = (const uint8_t *)pv; 188 * @param pv The data block to process. 191 RTDECL(uint64_t) RTCrc64Process(uint64_t uCRC64, const void *pv, size_t cb) argument 193 const uint8_t *pu8 = (const uint8_t *)pv;
|
H A D | adler32.cpp | 44 RTDECL(uint32_t) RTCrcAdler32(void const *pv, size_t cb) argument 47 return RTCrcAdler32Process(RTCrcAdler32Start(), pv, cb); 57 RTDECL(uint32_t) RTCrcAdler32Process(uint32_t u32Crc, void const *pv, size_t cb) argument 59 uint8_t const *pbSrc = (uint8_t const *)pv;
|
H A D | crc32-zlib.cpp | 41 static uint32_t rtCrc32ProcessTooBig(uint32_t uCRC32, const void *pv, size_t cb) argument 43 const Bytef *pb = (const Bytef *)pv; 54 RTDECL(uint32_t) RTCrc32(const void *pv, register size_t cb) argument 58 uCrc = crc32(uCrc, (const Bytef *)pv, (uInt)cb); 60 uCrc = rtCrc32ProcessTooBig(uCrc, pv, cb); 73 RTDECL(uint32_t) RTCrc32Process(uint32_t uCRC32, const void *pv, size_t cb) argument 76 uCRC32 = crc32(uCRC32, (const Bytef *)pv, (uInt)cb); 78 uCRC32 = rtCrc32ProcessTooBig(uCRC32, pv, cb);
|
/vbox/src/VBox/Additions/common/VBoxGuestLib/ |
H A D | VBoxGuestR3LibBalloon.cpp | 59 * @param pv Memory chunk (1MB). 63 VBGLR3DECL(int) VbglR3MemBalloonChange(void *pv, bool fInflate) argument 66 Info.u64ChunkAddr = (uint64_t)((uintptr_t)pv);
|
/vbox/src/VBox/Runtime/r0drv/haiku/ |
H A D | alloc-r0drv-haiku.c | 90 void *pv; variable 91 area_id area = create_area("VirtualBox Contig Alloc", &pv, B_ANY_KERNEL_ADDRESS, cb, B_32_BIT_CONTIGUOUS, 96 if (get_memory_map(pv, cb, physMap, 2)>= B_OK) 99 return pv; 110 RTR0DECL(void) RTMemContFree(void *pv, size_t cb) RT_NO_THROW 113 if (pv) 117 area_id area = area_for(pv);
|
/vbox/src/VBox/Runtime/r3/generic/ |
H A D | allocex-r3-generic.cpp | 53 DECLHIDDEN(void) rtMemFreeExYyBitReach(void *pv, size_t cb, uint32_t fFlags) argument
|
/vbox/src/VBox/Runtime/r3/posix/ |
H A D | rtmempage-exec-mmap-posix.cpp | 69 void *pv = mmap(NULL, cb, local 72 if (pv != MAP_FAILED) 74 AssertPtr(pv); 76 RT_BZERO(pv, cb); 79 pv = NULL; 81 return pv; 88 * @param pv The address of the memory to free. 91 static void rtMemPagePosixFree(void *pv, size_t cb) argument 96 if (!pv) 98 AssertPtr(pv); [all...] |
/vbox/src/libs/kStuff/iprt/ |
H A D | kHlpAlloc-iprt.cpp | 38 KHLP_DECL(void *) kHlpDup(const void *pv, KSIZE cb) argument 40 return RTMemDup(pv, cb); 50 KHLP_DECL(void *) kHlpRealloc(void *pv, KSIZE cb) argument 52 return RTMemRealloc(pv, cb); 56 KHLP_DECL(void) kHlpFree(void *pv) argument 58 RTMemFree(pv);
|
H A D | kHlpPage-iprt.cpp | 51 void *pv = RTMemPageAlloc(cb); local 52 if (pv) 54 rc = RTMemProtect(pv, cb, kHlpPageProtToNative(enmProt)); 56 *ppv = pv; 58 RTMemPageFree(pv, cb); 64 KHLP_DECL(int) kHlpPageProtect(void *pv, KSIZE cb, KPROT enmProt) argument 66 int rc = RTMemProtect(pv, cb, kHlpPageProtToNative(enmProt)); 74 KHLP_DECL(int) kHlpPageFree(void *pv, KSIZE cb) argument 76 RTMemPageFree(pv, cb);
|
/vbox/src/VBox/Runtime/testcase/ |
H A D | tstVector.cpp | 50 static void deletePVoidValue(void *pv) argument 53 s_apvDeleteArg[s_cDeleteCalls] = pv;
|
/vbox/src/VBox/Runtime/VBox/ |
H A D | logbackdoor.cpp | 42 static DECLCALLBACK(size_t) rtLogBackdoorOutput(void *pv, const char *pachChars, size_t cbChars); 72 static DECLCALLBACK(size_t) rtLogBackdoorOutput(void *pv, const char *pachChars, size_t cbChars) argument
|
/vbox/src/VBox/Runtime/common/asn1/ |
H A D | asn1-default-allocator.cpp | 57 static DECLCALLBACK(void) rtAsn1DefaultAllocator_Free(PCRTASN1ALLOCATORVTABLE pThis, PRTASN1ALLOCATION pAllocation, void *pv) argument 59 RTMemFree(pv); 69 void *pv = RTMemAllocZ(cbAlloc); local 70 if (pv) 72 *ppv = pv; 87 void *pv = RTMemRealloc(pvOld, cbAlloc); local 88 if (pv) 90 *ppvNew = pv;
|
H A D | asn1-efence-allocator.cpp | 39 static DECLCALLBACK(void) rtAsn1EFenceAllocator_Free(PCRTASN1ALLOCATORVTABLE pThis, PRTASN1ALLOCATION pAllocation, void *pv) argument 41 RTMemEfFreeNP(pv); 50 void *pv = RTMemEfAllocZNP(cb, RTMEM_TAG); local 51 if (pv) 53 *ppv = pv; 67 void *pv = RTMemEfReallocNP(pvOld, cbNew, RTMEM_TAG); local 68 if (pv) 70 *ppvNew = pv;
|