/hardware/google/gfxstream/host/vulkan/cereal/common/ |
D | goldfish_vk_deepcopy.cpp | 44 void deepcopy_extension_struct(Allocator* alloc, VkStructureType rootType, 48 void deepcopy_VkExtent2D(Allocator* alloc, VkStructureType rootType, const VkExtent2D* from, in deepcopy_VkExtent2D() argument 50 (void)alloc; in deepcopy_VkExtent2D() 55 void deepcopy_VkExtent3D(Allocator* alloc, VkStructureType rootType, const VkExtent3D* from, in deepcopy_VkExtent3D() argument 57 (void)alloc; in deepcopy_VkExtent3D() 62 void deepcopy_VkOffset2D(Allocator* alloc, VkStructureType rootType, const VkOffset2D* from, in deepcopy_VkOffset2D() argument 64 (void)alloc; in deepcopy_VkOffset2D() 69 void deepcopy_VkOffset3D(Allocator* alloc, VkStructureType rootType, const VkOffset3D* from, in deepcopy_VkOffset3D() argument 71 (void)alloc; in deepcopy_VkOffset3D() 76 void deepcopy_VkRect2D(Allocator* alloc, VkStructureType rootType, const VkRect2D* from, in deepcopy_VkRect2D() argument [all …]
|
D | goldfish_vk_deepcopy.h | 46 void deepcopy_VkExtent2D(Allocator* alloc, VkStructureType rootType, const VkExtent2D* from, 49 void deepcopy_VkExtent3D(Allocator* alloc, VkStructureType rootType, const VkExtent3D* from, 52 void deepcopy_VkOffset2D(Allocator* alloc, VkStructureType rootType, const VkOffset2D* from, 55 void deepcopy_VkOffset3D(Allocator* alloc, VkStructureType rootType, const VkOffset3D* from, 58 void deepcopy_VkRect2D(Allocator* alloc, VkStructureType rootType, const VkRect2D* from, 61 void deepcopy_VkBaseInStructure(Allocator* alloc, VkStructureType rootType, 64 void deepcopy_VkBaseOutStructure(Allocator* alloc, VkStructureType rootType, 67 void deepcopy_VkBufferMemoryBarrier(Allocator* alloc, VkStructureType rootType, 70 void deepcopy_VkDispatchIndirectCommand(Allocator* alloc, VkStructureType rootType, 74 void deepcopy_VkDrawIndexedIndirectCommand(Allocator* alloc, VkStructureType rootType, [all …]
|
D | goldfish_vk_reserved_marshaling.cpp | 105 vkStream->alloc((void**)&forUnmarshaling->pNext, sizeof(VkStructureType)); in reservedunmarshal_VkBaseInStructure() 109 vkStream->alloc((void**)&forUnmarshaling->pNext, in reservedunmarshal_VkBaseInStructure() 131 vkStream->alloc((void**)&forUnmarshaling->pNext, sizeof(VkStructureType)); in reservedunmarshal_VkBaseOutStructure() 135 vkStream->alloc((void**)&forUnmarshaling->pNext, in reservedunmarshal_VkBaseOutStructure() 158 vkStream->alloc((void**)&forUnmarshaling->pNext, sizeof(VkStructureType)); in reservedunmarshal_VkBufferMemoryBarrier() 162 vkStream->alloc((void**)&forUnmarshaling->pNext, in reservedunmarshal_VkBufferMemoryBarrier() 255 vkStream->alloc((void**)&forUnmarshaling->pNext, sizeof(VkStructureType)); in reservedunmarshal_VkImageMemoryBarrier() 259 vkStream->alloc((void**)&forUnmarshaling->pNext, in reservedunmarshal_VkImageMemoryBarrier() 299 vkStream->alloc((void**)&forUnmarshaling->pNext, sizeof(VkStructureType)); in reservedunmarshal_VkMemoryBarrier() 303 vkStream->alloc((void**)&forUnmarshaling->pNext, in reservedunmarshal_VkMemoryBarrier() [all …]
|
D | goldfish_vk_marshaling.cpp | 145 vkStream->alloc((void**)&forUnmarshaling->pNext, sizeof(VkStructureType)); in unmarshal_VkBaseInStructure() 148 vkStream->alloc((void**)&forUnmarshaling->pNext, in unmarshal_VkBaseInStructure() 177 vkStream->alloc((void**)&forUnmarshaling->pNext, sizeof(VkStructureType)); in unmarshal_VkBaseOutStructure() 180 vkStream->alloc((void**)&forUnmarshaling->pNext, in unmarshal_VkBaseOutStructure() 218 vkStream->alloc((void**)&forUnmarshaling->pNext, sizeof(VkStructureType)); in unmarshal_VkBufferMemoryBarrier() 221 vkStream->alloc((void**)&forUnmarshaling->pNext, in unmarshal_VkBufferMemoryBarrier() 345 vkStream->alloc((void**)&forUnmarshaling->pNext, sizeof(VkStructureType)); in unmarshal_VkImageMemoryBarrier() 348 vkStream->alloc((void**)&forUnmarshaling->pNext, in unmarshal_VkImageMemoryBarrier() 391 vkStream->alloc((void**)&forUnmarshaling->pNext, sizeof(VkStructureType)); in unmarshal_VkMemoryBarrier() 394 vkStream->alloc((void**)&forUnmarshaling->pNext, in unmarshal_VkMemoryBarrier() [all …]
|
/hardware/google/gfxstream/guest/vulkan_enc/ |
D | goldfish_vk_deepcopy_guest.cpp | 44 void deepcopy_extension_struct(Allocator* alloc, VkStructureType rootType, 48 void deepcopy_VkExtent2D(Allocator* alloc, VkStructureType rootType, const VkExtent2D* from, in deepcopy_VkExtent2D() argument 50 (void)alloc; in deepcopy_VkExtent2D() 55 void deepcopy_VkExtent3D(Allocator* alloc, VkStructureType rootType, const VkExtent3D* from, in deepcopy_VkExtent3D() argument 57 (void)alloc; in deepcopy_VkExtent3D() 62 void deepcopy_VkOffset2D(Allocator* alloc, VkStructureType rootType, const VkOffset2D* from, in deepcopy_VkOffset2D() argument 64 (void)alloc; in deepcopy_VkOffset2D() 69 void deepcopy_VkOffset3D(Allocator* alloc, VkStructureType rootType, const VkOffset3D* from, in deepcopy_VkOffset3D() argument 71 (void)alloc; in deepcopy_VkOffset3D() 76 void deepcopy_VkRect2D(Allocator* alloc, VkStructureType rootType, const VkRect2D* from, in deepcopy_VkRect2D() argument [all …]
|
D | goldfish_vk_deepcopy_guest.h | 53 void deepcopy_VkExtent2D(Allocator* alloc, VkStructureType rootType, const VkExtent2D* from, 56 void deepcopy_VkExtent3D(Allocator* alloc, VkStructureType rootType, const VkExtent3D* from, 59 void deepcopy_VkOffset2D(Allocator* alloc, VkStructureType rootType, const VkOffset2D* from, 62 void deepcopy_VkOffset3D(Allocator* alloc, VkStructureType rootType, const VkOffset3D* from, 65 void deepcopy_VkRect2D(Allocator* alloc, VkStructureType rootType, const VkRect2D* from, 68 void deepcopy_VkBaseInStructure(Allocator* alloc, VkStructureType rootType, 71 void deepcopy_VkBaseOutStructure(Allocator* alloc, VkStructureType rootType, 74 void deepcopy_VkBufferMemoryBarrier(Allocator* alloc, VkStructureType rootType, 77 void deepcopy_VkDispatchIndirectCommand(Allocator* alloc, VkStructureType rootType, 81 void deepcopy_VkDrawIndexedIndirectCommand(Allocator* alloc, VkStructureType rootType, [all …]
|
D | VulkanStreamGuest.cpp | 30 void VulkanStreamGuest::alloc(void** ptrAddr, size_t bytes) { in alloc() function in gfxstream::vk::VulkanStreamGuest 36 *ptrAddr = mPool.alloc(bytes); in alloc() 42 alloc((void**)forOutput, len + 1); in loadStringInPlace() 57 alloc((void**)forOutput, count * sizeof(char*)); in loadStringArrayInPlace() 72 alloc((void**)forOutput, len + 1); in loadStringInPlaceWithStreamPtr() 93 alloc((void**)forOutput, count * sizeof(char*)); in loadStringArrayInPlaceWithStreamPtr() 111 uint8_t* streamBuf = (uint8_t*)mStream->alloc(size); in write() 141 uint8_t* VulkanStreamGuest::reserve(size_t size) { return (uint8_t*)mStream->alloc(size); } in reserve()
|
/hardware/google/gfxstream/guest/mesa/src/vulkan/util/ |
D | vk_alloc.h | 44 vk_alloc(const VkAllocationCallbacks *alloc, in vk_alloc() argument 48 return alloc->pfnAllocation(alloc->pUserData, size, align, scope); in vk_alloc() 52 vk_zalloc(const VkAllocationCallbacks *alloc, in vk_zalloc() argument 56 void *mem = vk_alloc(alloc, size, align, scope); in vk_zalloc() 66 vk_realloc(const VkAllocationCallbacks *alloc, in vk_realloc() argument 70 return alloc->pfnReallocation(alloc->pUserData, ptr, size, align, scope); in vk_realloc() 74 vk_free(const VkAllocationCallbacks *alloc, void *data) in vk_free() argument 79 alloc->pfnFree(alloc->pUserData, data); in vk_free() 83 vk_strdup(const VkAllocationCallbacks *alloc, const char *s, in vk_strdup() argument 90 char *copy = (char *)vk_alloc(alloc, size, 1, scope); in vk_strdup() [all …]
|
/hardware/google/aemu/host-common/ |
D | address_space_graphics.cpp | 156 auto buf = block.subAlloc->alloc(create.size); in newAllocation() 178 auto buf = newBlock.subAlloc->alloc(create.size); in newAllocation() 201 void deleteAllocation(const Allocation& alloc, std::vector<Block>& existingBlocks) { in deleteAllocation() argument 202 if (!alloc.buffer) return; in deleteAllocation() 206 if (existingBlocks.size() <= alloc.blockIndex) { in deleteAllocation() 209 "but it is not found", alloc.blockIndex); in deleteAllocation() 212 auto& block = existingBlocks[alloc.blockIndex]; in deleteAllocation() 219 if (!block.subAlloc->free(alloc.buffer)) { in deleteAllocation() 222 alloc.buffer, in deleteAllocation() 237 void freeRingStorage(const Allocation& alloc) { in freeRingStorage() argument [all …]
|
/hardware/google/gfxstream/guest/mesa/src/vulkan/runtime/ |
D | vk_object.c | 52 vk_free(&base->device->alloc, base->object_name); in vk_object_base_finish() 66 const VkAllocationCallbacks *alloc, in vk_object_alloc() argument 70 void *ptr = vk_alloc2(&device->alloc, alloc, size, 8, in vk_object_alloc() 82 const VkAllocationCallbacks *alloc, in vk_object_zalloc() argument 86 void *ptr = vk_zalloc2(&device->alloc, alloc, size, 8, in vk_object_zalloc() 99 const VkAllocationCallbacks *alloc, in vk_object_multialloc() argument 102 void *ptr = vk_multialloc_alloc2(ma, &device->alloc, alloc, in vk_object_multialloc() 115 const VkAllocationCallbacks *alloc, in vk_object_multizalloc() argument 118 void *ptr = vk_multialloc_zalloc2(ma, &device->alloc, alloc, in vk_object_multizalloc() 130 const VkAllocationCallbacks *alloc, in vk_object_free() argument [all …]
|
D | vk_cmd_enqueue.c | 43 vk_zalloc(cmd_buffer->cmd_queue.alloc, sizeof(*cmd), 8, in vk_cmd_enqueue_CmdDrawMultiEXT() 55 vk_zalloc(cmd_buffer->cmd_queue.alloc, in vk_cmd_enqueue_CmdDrawMultiEXT() 81 vk_zalloc(cmd_buffer->cmd_queue.alloc, sizeof(*cmd), 8, in vk_cmd_enqueue_CmdDrawMultiIndexedEXT() 94 vk_zalloc(cmd_buffer->cmd_queue.alloc, in vk_cmd_enqueue_CmdDrawMultiIndexedEXT() 112 vk_zalloc(cmd_buffer->cmd_queue.alloc, in vk_cmd_enqueue_CmdDrawMultiIndexedEXT() 134 vk_free(queue->alloc, (void *)entry->pImageInfo); in push_descriptors_set_free() 138 vk_free(queue->alloc, (void *)entry->pTexelBufferView); in push_descriptors_set_free() 145 vk_free(queue->alloc, (void *)entry->pBufferInfo); in push_descriptors_set_free() 163 vk_zalloc(cmd_buffer->cmd_queue.alloc, sizeof(*cmd), 8, in vk_cmd_enqueue_CmdPushDescriptorSetKHR() 181 vk_zalloc(cmd_buffer->cmd_queue.alloc, in vk_cmd_enqueue_CmdPushDescriptorSetKHR() [all …]
|
D | vk_buffer_view.c | 56 const VkAllocationCallbacks *alloc, in vk_buffer_view_create() argument 61 buffer_view = vk_zalloc2(&device->alloc, alloc, size, 8, in vk_buffer_view_create() 79 const VkAllocationCallbacks *alloc, in vk_buffer_view_destroy() argument 82 vk_object_free(device, alloc, buffer_view); in vk_buffer_view_destroy()
|
D | vk_query_pool.c | 50 const VkAllocationCallbacks *alloc, in vk_query_pool_create() argument 54 vk_zalloc2(&device->alloc, alloc, size, 8, in vk_query_pool_create() 72 const VkAllocationCallbacks *alloc, in vk_query_pool_destroy() argument 75 vk_object_free(device, alloc, query_pool); in vk_query_pool_destroy()
|
D | vk_instance.c | 54 const VkAllocationCallbacks *alloc) in vk_instance_init() argument 58 instance->alloc = *alloc; in vk_instance_init() 74 vk_alloc2(alloc, alloc, sizeof(struct vk_debug_utils_messenger), 8, in vk_instance_init() 83 messenger->alloc = *alloc; in vk_instance_init() 103 vk_strdup(&instance->alloc, app->pApplicationName, in vk_instance_init() 108 vk_strdup(&instance->alloc, app->pEngineName, in vk_instance_init() 237 vk_free2(&instance->alloc, &messenger->alloc, messenger); in vk_instance_finish() 246 vk_free2(&instance->alloc, &messenger->alloc, messenger); in vk_instance_finish() 252 vk_free(&instance->alloc, (char *)instance->app_info.app_name); in vk_instance_finish() 253 vk_free(&instance->alloc, (char *)instance->app_info.engine_name); in vk_instance_finish()
|
D | vk_debug_utils.c | 95 vk_alloc2(&instance->alloc, pAllocator, in vk_common_CreateDebugUtilsMessengerEXT() 103 messenger->alloc = *pAllocator; in vk_common_CreateDebugUtilsMessengerEXT() 105 messenger->alloc = instance->alloc; in vk_common_CreateDebugUtilsMessengerEXT() 153 vk_free2(&instance->alloc, pAllocator, messenger); in vk_common_DestroyDebugUtilsMessengerEXT() 167 vk_free(&device->alloc, object->object_name); in vk_common_SetDebugUtilsObjectNameEXT() 170 object->object_name = vk_strdup(&device->alloc, pNameInfo->pObjectName, in vk_common_SetDebugUtilsObjectNameEXT() 196 vk_strdup(&device->alloc, current_label->pLabelName, in vk_common_append_debug_label() 209 vk_free(&device->alloc, (void *)previous_label.pLabelName); in vk_common_pop_debug_label()
|
D | vk_buffer.c | 55 const VkAllocationCallbacks *alloc, in vk_buffer_create() argument 59 vk_zalloc2(&device->alloc, alloc, size, 8, in vk_buffer_create() 77 const VkAllocationCallbacks *alloc, in vk_buffer_destroy() argument 80 vk_object_free(device, alloc, buffer); in vk_buffer_destroy()
|
/hardware/google/aemu/base/ |
D | SubAllocator_unittest.cpp | 75 void* ptr = subAlloc.alloc(trySize); in TEST() 120 void* ptr = subAlloc.alloc(pageSize); in TEST() 181 void* ptr = subAlloc.alloc(allocSize); in TEST() 217 (uint8_t*)subAlloc.alloc(16), in TEST() 218 (uint8_t*)subAlloc.alloc(8), in TEST() 219 (uint8_t*)subAlloc.alloc(32), in TEST() 220 (uint8_t*)subAlloc.alloc(64), in TEST() 221 (uint8_t*)subAlloc.alloc(8), in TEST() 222 (uint8_t*)subAlloc.alloc(128), in TEST() 226 bufs[3] = (uint8_t*)subAlloc.alloc(24); in TEST() [all …]
|
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpeg_ionbuf.c | 61 p_buffer->alloc.len = p_buffer->size; in buffer_allocate() 62 p_buffer->alloc.align = 4096; in buffer_allocate() 63 p_buffer->alloc.flags = (cached) ? ION_FLAG_CACHED : 0; in buffer_allocate() 64 p_buffer->alloc.heap_id_mask = 0x1 << ION_IOMMU_HEAP_ID; in buffer_allocate() 73 p_buffer->alloc.len = (p_buffer->alloc.len + 4095U) & (~4095U); in buffer_allocate() 74 lrc = ioctl(p_buffer->ion_fd, ION_IOC_ALLOC, &p_buffer->alloc); in buffer_allocate() 77 p_buffer->alloc.len); in buffer_allocate() 81 p_buffer->ion_info_fd.handle = p_buffer->alloc.handle; in buffer_allocate() 91 l_buffer = mmap(NULL, p_buffer->alloc.len, PROT_READ | PROT_WRITE, in buffer_allocate()
|
/hardware/qcom/camera/msm8998/QCamera2/HAL3/test/ |
D | QCameraHAL3Test.cpp | 98 struct ion_allocation_data alloc; in allocateBuffers() local 108 memset(&alloc, 0, sizeof(alloc)); in allocateBuffers() 110 alloc.len = (size_t)(buf_size); in allocateBuffers() 111 alloc.len = (alloc.len + 4095U) & (~4095U); in allocateBuffers() 112 alloc.align = 4096; in allocateBuffers() 113 alloc.flags = ION_FLAG_CACHED; in allocateBuffers() 114 alloc.heap_id_mask = ION_HEAP(ION_SYSTEM_HEAP_ID); in allocateBuffers() 115 rc = ioctl(main_ion_fd, ION_IOC_ALLOC, &alloc); in allocateBuffers() 121 ion_info_fd.handle = alloc.handle; in allocateBuffers() 129 LOGD("%s ION FD %d len %d\n", __func__, ion_info_fd.fd, alloc.len); in allocateBuffers() [all …]
|
/hardware/google/gfxstream/guest/android-emu/aemu/base/ |
D | Allocator.h | 31 virtual void* alloc(size_t wantedSize) = 0; 38 void* res = alloc(bytes); in allocArray() 44 void* res = alloc(bytes); in strDup() 61 void* res = alloc(bytes); in dupArray()
|
D | AndroidSubAllocator.h | 47 void* alloc(size_t wantedSize); 60 void* res = alloc(bytes); in allocArray() 66 void* res = alloc(bytes); in strDup() 83 void* res = alloc(bytes); in dupArray()
|
/hardware/google/aemu/base/include/aemu/base/ |
D | Allocator.h | 31 virtual void* alloc(size_t wantedSize) = 0; 38 void* res = alloc(bytes); in allocArray() 44 void* res = alloc(bytes); in strDup() 61 void* res = alloc(bytes); in dupArray()
|
D | SubAllocator.h | 47 void* alloc(size_t wantedSize); 61 void* res = alloc(bytes); in allocArray() 67 void* res = alloc(bytes); in strDup() 84 void* res = alloc(bytes); in dupArray()
|
/hardware/google/gfxstream/guest/mesa/src/vulkan/wsi/ |
D | wsi_common_private.h | 151 VkAllocationCallbacks alloc; member 359 const VkAllocationCallbacks *alloc, 362 const VkAllocationCallbacks *alloc); 364 const VkAllocationCallbacks *alloc, 367 const VkAllocationCallbacks *alloc); 369 const VkAllocationCallbacks *alloc, 372 const VkAllocationCallbacks *alloc); 377 const VkAllocationCallbacks *alloc, 382 const VkAllocationCallbacks *alloc); 389 const VkAllocationCallbacks *alloc, [all …]
|
D | wsi_common.c | 65 const VkAllocationCallbacks *alloc, in wsi_device_init() argument 79 wsi->instance_alloc = *alloc; in wsi_device_init() 187 result = wsi_x11_init_wsi(wsi, alloc, dri_options); in wsi_device_init() 193 result = wsi_wl_init_wsi(wsi, alloc, pdevice); in wsi_device_init() 199 result = wsi_win32_init_wsi(wsi, alloc, pdevice); in wsi_device_init() 205 result = wsi_display_init_wsi(wsi, alloc, display_fd); in wsi_device_init() 211 result = wsi_headless_init_wsi(wsi, alloc, pdevice); in wsi_device_init() 252 wsi_device_finish(wsi, alloc); in wsi_device_init() 258 const VkAllocationCallbacks *alloc) in wsi_device_finish() argument 261 wsi_headless_finish_wsi(wsi, alloc); in wsi_device_finish() [all …]
|