/third_party/vulkan-loader/loader/ |
H A D | allocation.c | 35 void *pMemory = NULL; local 42 pMemory = pAllocator->pfnAllocation(pAllocator->pUserData, size, sizeof(uint64_t), allocation_scope); 45 pMemory = malloc(size); 48 return pMemory; 52 void *pMemory = NULL; local 59 pMemory = pAllocator->pfnAllocation(pAllocator->pUserData, size, sizeof(uint64_t), allocation_scope); 60 if (pMemory) { 61 memset(pMemory, 0, size); 65 pMemory = calloc(1, size); 68 return pMemory; 71 loader_free(const VkAllocationCallbacks *pAllocator, void *pMemory) global() argument 85 loader_realloc(const VkAllocationCallbacks *pAllocator, void *pMemory, size_t orig_size, size_t size, VkSystemAllocationScope allocation_scope) global() argument 113 loader_instance_heap_free(const struct loader_instance *inst, void *pMemory) global() argument 116 loader_instance_heap_realloc(const struct loader_instance *inst, void *pMemory, size_t orig_size, size_t size, VkSystemAllocationScope allocation_scope) global() argument 129 loader_device_heap_free(const struct loader_device *dev, void *pMemory) global() argument 132 loader_device_heap_realloc(const struct loader_device *dev, void *pMemory, size_t orig_size, size_t size, VkSystemAllocationScope allocation_scope) global() argument 147 loader_free_with_instance_fallback(const VkAllocationCallbacks *pAllocator, const struct loader_instance *instance, void *pMemory) global() argument 152 loader_realloc_with_instance_fallback(const VkAllocationCallbacks *pAllocator, const struct loader_instance *instance, void *pMemory, size_t orig_size, size_t size, VkSystemAllocationScope allocation_scope) global() argument [all...] |
H A D | cJSON.c | 51 static void cJSON_Free(const VkAllocationCallbacks *pAllocator, void *pMemory) { loader_free(pAllocator, pMemory); } in cJSON_Free() argument
|
H A D | trampoline.c | 1151 const VkAllocationCallbacks *pAllocator, VkDeviceMemory *pMemory) { in vkAllocateMemory() 1159 return disp->AllocateMemory(device, pAllocateInfo, pAllocator, pMemory); in vkAllocateMemory() 1150 vkAllocateMemory(VkDevice device, const VkMemoryAllocateInfo *pAllocateInfo, const VkAllocationCallbacks *pAllocator, VkDeviceMemory *pMemory) vkAllocateMemory() argument
|
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/ |
H A D | VkDeviceMemory.cpp | 85 VkResult DeviceMemory::Allocate(const VkAllocationCallbacks *pAllocator, const VkMemoryAllocateInfo *pAllocateInfo, VkDeviceMemory *pMemory, Device *device) in Allocate() argument 87 *pMemory = VK_NULL_HANDLE; in Allocate() 96 result = Allocate(pAllocator, pAllocateInfo, pMemory, extendedAllocationInfo, device); in Allocate() 103 return vk::Cast(*pMemory)->allocate(); in Allocate() 106 VkResult DeviceMemory::Allocate(const VkAllocationCallbacks *pAllocator, const VkMemoryAllocateInfo *pAllocateInfo, VkDeviceMemory *pMemory, in Allocate() argument 112 return AHardwareBufferExternalMemory::Create(pAllocator, pAllocateInfo, pMemory, extendedAllocationInfo, device); in Allocate() 118 return OpaqueFdExternalMemory::Create(pAllocator, pAllocateInfo, pMemory, extendedAllocationInfo, device); in Allocate() 124 return zircon::VmoExternalMemory::Create(pAllocator, pAllocateInfo, pMemory, extendedAllocationInfo, device); in Allocate() 129 return ExternalMemoryHost::Create(pAllocator, pAllocateInfo, pMemory, extendedAllocationInfo, device); in Allocate() 132 return vk::DeviceMemoryInternal::Create(pAllocator, pAllocateInfo, pMemory, extendedAllocationInf in Allocate() [all...] |
H A D | VkDeviceMemory.hpp | 52 static VkResult Allocate(const VkAllocationCallbacks *pAllocator, const VkMemoryAllocateInfo *pAllocateInfo, VkDeviceMemory *pMemory, Device *device); 127 static VkResult Allocate(const VkAllocationCallbacks *pAllocator, const VkMemoryAllocateInfo *pAllocateInfo, VkDeviceMemory *pMemory,
|
H A D | libVulkan.cpp | 1089 VKAPI_ATTR VkResult VKAPI_CALL vkAllocateMemory(VkDevice device, const VkMemoryAllocateInfo *pAllocateInfo, const VkAllocationCallbacks *pAllocator, VkDeviceMemory *pMemory) in vkAllocateMemory() argument 1091 TRACE("(VkDevice device = %p, const VkMemoryAllocateInfo* pAllocateInfo = %p, const VkAllocationCallbacks* pAllocator = %p, VkDeviceMemory* pMemory = %p)", in vkAllocateMemory() 1092 device, pAllocateInfo, pAllocator, pMemory); in vkAllocateMemory() 1094 VkResult result = vk::DeviceMemory::Allocate(pAllocator, pAllocateInfo, pMemory, vk::Cast(device)); in vkAllocateMemory() 1098 vk::destroy(*pMemory, pAllocator); in vkAllocateMemory() 1099 *pMemory = VK_NULL_HANDLE; in vkAllocateMemory() 1266 VKAPI_ATTR void VKAPI_CALL vkGetDeviceMemoryCommitment(VkDevice pDevice, VkDeviceMemory pMemory, VkDeviceSize *pCommittedMemoryInBytes) in vkGetDeviceMemoryCommitment() argument 1269 pDevice, static_cast<void *>(pMemory), pCommittedMemoryInBytes); in vkGetDeviceMemoryCommitment() 1271 auto memory = vk::Cast(pMemory); in vkGetDeviceMemoryCommitment()
|
/third_party/mesa3d/src/virtio/venus-protocol/ |
H A D | vn_protocol_driver_device_memory.h | 538 static inline size_t vn_sizeof_vkAllocateMemory(VkDevice device, const VkMemoryAllocateInfo* pAllocateInfo, const VkAllocationCallbacks* pAllocator, VkDeviceMemory* pMemory) in vn_sizeof_vkAllocateMemory() argument 551 cmd_size += vn_sizeof_simple_pointer(pMemory); in vn_sizeof_vkAllocateMemory() 552 if (pMemory) in vn_sizeof_vkAllocateMemory() 553 cmd_size += vn_sizeof_VkDeviceMemory(pMemory); in vn_sizeof_vkAllocateMemory() 558 static inline void vn_encode_vkAllocateMemory(struct vn_cs_encoder *enc, VkCommandFlagsEXT cmd_flags, VkDevice device, const VkMemoryAllocateInfo* pAllocateInfo, const VkAllocationCallbacks* pAllocator, VkDeviceMemory* pMemory) in vn_encode_vkAllocateMemory() argument 570 if (vn_encode_simple_pointer(enc, pMemory)) in vn_encode_vkAllocateMemory() 571 vn_encode_VkDeviceMemory(enc, pMemory); in vn_encode_vkAllocateMemory() 574 static inline size_t vn_sizeof_vkAllocateMemory_reply(VkDevice device, const VkMemoryAllocateInfo* pAllocateInfo, const VkAllocationCallbacks* pAllocator, VkDeviceMemory* pMemory) in vn_sizeof_vkAllocateMemory_reply() argument 584 cmd_size += vn_sizeof_simple_pointer(pMemory); in vn_sizeof_vkAllocateMemory_reply() 585 if (pMemory) in vn_sizeof_vkAllocateMemory_reply() 591 vn_decode_vkAllocateMemory_reply(struct vn_cs_decoder *dec, VkDevice device, const VkMemoryAllocateInfo* pAllocateInfo, const VkAllocationCallbacks* pAllocator, VkDeviceMemory* pMemory) vn_decode_vkAllocateMemory_reply() argument 945 vn_submit_vkAllocateMemory(struct vn_instance *vn_instance, VkCommandFlagsEXT cmd_flags, VkDevice device, const VkMemoryAllocateInfo* pAllocateInfo, const VkAllocationCallbacks* pAllocator, VkDeviceMemory* pMemory, struct vn_instance_submit_command *submit) vn_submit_vkAllocateMemory() argument 1092 vn_call_vkAllocateMemory(struct vn_instance *vn_instance, VkDevice device, const VkMemoryAllocateInfo* pAllocateInfo, const VkAllocationCallbacks* pAllocator, VkDeviceMemory* pMemory) vn_call_vkAllocateMemory() argument 1108 vn_async_vkAllocateMemory(struct vn_instance *vn_instance, VkDevice device, const VkMemoryAllocateInfo* pAllocateInfo, const VkAllocationCallbacks* pAllocator, VkDeviceMemory* pMemory) vn_async_vkAllocateMemory() argument [all...] |
/third_party/mesa3d/src/vulkan/util/ |
H A D | vk_alloc.c | 41 vk_default_free(void *pUserData, void *pMemory) in vk_default_free() argument 43 free(pMemory); in vk_default_free()
|
/third_party/vulkan-loader/tests/ |
H A D | loader_alloc_callback_tests.cpp | 103 void free(void* pMemory) { in free() argument 104 if (pMemory == nullptr) return; in free() 105 auto elem = allocations.find(pMemory); in free() 123 void impl_free(void* pMemory) noexcept { 125 free(pMemory); variable 165 static VKAPI_ATTR void VKAPI_CALL public_free(void* pUserData, void* pMemory) noexcept { 166 reinterpret_cast<MemoryTracker*>(pUserData)->impl_free(pMemory); variable
|
/third_party/mesa3d/src/virtio/vulkan/ |
H A D | vn_device_memory.c | 406 VkDeviceMemory *pMemory) in vn_AllocateMemory() 480 *pMemory = mem_handle; in vn_AllocateMemory() 403 vn_AllocateMemory(VkDevice device, const VkMemoryAllocateInfo *pAllocateInfo, const VkAllocationCallbacks *pAllocator, VkDeviceMemory *pMemory) vn_AllocateMemory() argument
|
/third_party/skia/third_party/externals/d3d12allocator/src/ |
H A D | D3D12MemAlloc.h | 569 void CustomFree(void* pMemory, void* pUserData)
572 _aligned_free(pMemory);
708 `pMemory = null` should be accepted and ignored.
710 typedef void (*FREE_FUNC_PTR)(void* pMemory, void* pUserData);
|
H A D | D3D12Sample.cpp | 141 static void CustomFree(void* pMemory, void* pUserData)
in CustomFree() argument 144 if(pMemory)
in CustomFree() 149 wprintf(L"Free %p\n", pMemory);
in CustomFree() 151 _aligned_free(pMemory);
in CustomFree()
|
H A D | D3D12MemAlloc.cpp | 109 static void DefaultFree(void* pMemory, void* /*pUserData*/)
in DefaultFree() argument 111 return _aligned_free(pMemory);
in DefaultFree()
|
/third_party/vk-gl-cts/external/vulkancts/framework/vulkan/ |
H A D | vkNullDriver.cpp | 1251 VKAPI_ATTR VkResult VKAPI_CALL allocateMemory (VkDevice device, const VkMemoryAllocateInfo* pAllocateInfo, const VkAllocationCallbacks* pAllocator, VkDeviceMemory* pMemory) in allocateMemory() argument 1261 VK_NULL_RETURN((*pMemory = allocateNonDispHandle<ExternalDeviceMemoryAndroid, DeviceMemory, VkDeviceMemory>(device, pAllocateInfo, pAllocator))); in allocateMemory() 1268 VK_NULL_RETURN((*pMemory = allocateNonDispHandle<PrivateDeviceMemory, DeviceMemory, VkDeviceMemory>(device, pAllocateInfo, pAllocator))); in allocateMemory() 1271 VK_NULL_RETURN((*pMemory = allocateNonDispHandle<PrivateDeviceMemory, DeviceMemory, VkDeviceMemory>(device, pAllocateInfo, pAllocator))); in allocateMemory()
|
/third_party/icu/icu4c/source/common/ |
H A D | ubidi.cpp | 192 * If *pMemory!=NULL, then assume *pSize>0. 200 void **pMemory = (void **)bidiMem; in ubidi_getMemory() local 202 if(*pMemory==NULL) { in ubidi_getMemory() 204 if(mayAllocate && (*pMemory=uprv_malloc(sizeNeeded))!=NULL) { in ubidi_getMemory() 225 if((memory=uprv_realloc(*pMemory, sizeNeeded))!=NULL) { in ubidi_getMemory() 226 *pMemory=memory; in ubidi_getMemory()
|
H A D | ubidiimp.h | 444 ubidi_getMemory(BidiMemoryForAllocation *pMemory, int32_t *pSize, UBool mayAllocate, int32_t sizeNeeded);
|
/third_party/node/deps/icu-small/source/common/ |
H A D | ubidi.cpp | 192 * If *pMemory!=nullptr, then assume *pSize>0. 200 void **pMemory = (void **)bidiMem; in ubidi_getMemory() local 202 if(*pMemory==nullptr) { in ubidi_getMemory() 204 if(mayAllocate && (*pMemory=uprv_malloc(sizeNeeded))!=nullptr) { in ubidi_getMemory() 225 if((memory=uprv_realloc(*pMemory, sizeNeeded))!=nullptr) { in ubidi_getMemory() 226 *pMemory=memory; in ubidi_getMemory()
|
H A D | ubidiimp.h | 444 ubidi_getMemory(BidiMemoryForAllocation *pMemory, int32_t *pSize, UBool mayAllocate, int32_t sizeNeeded);
|
/third_party/skia/third_party/externals/icu/source/common/ |
H A D | ubidi.cpp | 192 * If *pMemory!=NULL, then assume *pSize>0. 200 void **pMemory = (void **)bidiMem; in ubidi_getMemory() local 202 if(*pMemory==NULL) { in ubidi_getMemory() 204 if(mayAllocate && (*pMemory=uprv_malloc(sizeNeeded))!=NULL) { in ubidi_getMemory() 225 if((memory=uprv_realloc(*pMemory, sizeNeeded))!=NULL) { in ubidi_getMemory() 226 *pMemory=memory; in ubidi_getMemory()
|
H A D | ubidiimp.h | 444 ubidi_getMemory(BidiMemoryForAllocation *pMemory, int32_t *pSize, UBool mayAllocate, int32_t sizeNeeded);
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/api/ |
H A D | vktApiDeviceInitializationTests.cpp | 2483 VKAPI_ATTR void VKAPI_CALL freeCallbackFunc (void *pUserData, void *pMemory) in freeCallbackFunc() argument 2489 if (g_allocatedVector[vectorIdx].active && g_allocatedVector[vectorIdx].alignedStartAddress == pMemory) in freeCallbackFunc()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/api/ |
H A D | vktApiDeviceInitializationTests.cpp | 2494 VKAPI_ATTR void VKAPI_CALL freeCallbackFunc (void *pUserData, void *pMemory) in freeCallbackFunc() argument 2500 if (g_allocatedVector[vectorIdx].active && g_allocatedVector[vectorIdx].alignedStartAddress == pMemory) in freeCallbackFunc()
|
/third_party/vk-gl-cts/external/vulkancts/scripts/src/ |
H A D | vulkan_sc_core.h | 1682 void* pMemory); 2640 typedef VkResult (VKAPI_PTR *PFN_vkAllocateMemory)(VkDevice device, const VkMemoryAllocateInfo* pAllocateInfo, const VkAllocationCallbacks* pAllocator, VkDeviceMemory* pMemory); 2852 VkDeviceMemory* pMemory);
|
/third_party/skia/include/third_party/vulkan/vulkan/ |
H A D | vulkan_core.h | 2409 void* pMemory); 3439 typedef VkResult (VKAPI_PTR *PFN_vkAllocateMemory)(VkDevice device, const VkMemoryAllocateInfo* pAllocateInfo, const VkAllocationCallbacks* pAllocator, VkDeviceMemory* pMemory); 3662 VkDeviceMemory* pMemory);
|
/third_party/skia/third_party/vulkanmemoryallocator/include/ |
H A D | vk_mem_alloc.h | 7924 VkResult AllocateVulkanMemory(const VkMemoryAllocateInfo* pAllocateInfo, VkDeviceMemory* pMemory); 16222 // Succeeded: AllocateDedicatedMemory function already filld pMemory, nothing more to do here. 17257 VkResult VmaAllocator_T::AllocateVulkanMemory(const VkMemoryAllocateInfo* pAllocateInfo, VkDeviceMemory* pMemory) 17285 VkResult res = (*m_VulkanFunctions.vkAllocateMemory)(m_hDevice, pAllocateInfo, GetAllocationCallbacks(), pMemory); 17296 (*m_DeviceMemoryCallbacks.pfnAllocate)(this, pAllocateInfo->memoryTypeIndex, *pMemory, pAllocateInfo->allocationSize, m_DeviceMemoryCallbacks.pUserData);
|