Home
last modified time | relevance | path

Searched refs:alloc (Results 651 - 675 of 1278) sorted by relevance

1...<<21222324252627282930>>...52

/third_party/mesa3d/src/vulkan/runtime/
H A Dvk_device.c108 const VkAllocationCallbacks *alloc) in vk_device_init()
112 if (alloc != NULL) in vk_device_init()
113 device->alloc = *alloc; in vk_device_init()
115 device->alloc = physical_device->instance->alloc; in vk_device_init()
104 vk_device_init(struct vk_device *device, struct vk_physical_device *physical_device, const struct vk_device_dispatch_table *dispatch_table, const VkDeviceCreateInfo *pCreateInfo, const VkAllocationCallbacks *alloc) vk_device_init() argument
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/
H A DvktDrawDiscardRectanglesTests.cpp549 const Allocation alloc = m_colorBuffer->getBoundMemory(); in iterate() local
550 deMemset(alloc.getHostPtr(), 0, static_cast<std::size_t>(colorBufferSize)); in iterate()
551 flushAlloc(vk, device, alloc); in iterate()
673 const Allocation alloc = m_colorBuffer->getBoundMemory(); in iterate() local
674 invalidateAlloc(vk, device, alloc); in iterate()
676 const tcu::ConstPixelBufferAccess resultImage (mapVkFormat(colorFormat), m_renderSize.x(), m_renderSize.y(), 1u, alloc.getHostPtr()); in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
H A DvktPipelineRobustnessCacheTests.cpp225 auto& alloc = m_context.getDefaultAllocator(); in iterate() local
237 m_buffer = de::MovePtr<vk::BufferWithMemory>(new vk::BufferWithMemory(vk, device, alloc, vk::makeBufferCreateInfo(bufferSize, vk::VK_BUFFER_USAGE_TRANSFER_SRC_BIT | vk::VK_BUFFER_USAGE_TRANSFER_DST_BIT | vk::VK_BUFFER_USAGE_STORAGE_BUFFER_BIT | vk::VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT | vk::VK_BUFFER_USAGE_VERTEX_BUFFER_BIT), vk::MemoryRequirement::HostVisible)); in iterate()
239 de::MovePtr<vk::BufferWithMemory> indexBuffer = de::MovePtr<vk::BufferWithMemory>(new vk::BufferWithMemory(vk, device, alloc, vk::makeBufferCreateInfo(indexBufferSize, vk::VK_BUFFER_USAGE_TRANSFER_DST_BIT | vk::VK_BUFFER_USAGE_STORAGE_BUFFER_BIT), vk::MemoryRequirement::HostVisible)); in iterate()
240 de::MovePtr<vk::ImageWithMemory> image = de::MovePtr<vk::ImageWithMemory>(new vk::ImageWithMemory(vk, device, alloc, makeImageCreateInfo(vk::VK_FORMAT_R32G32B32A32_SFLOAT, {1, 1, 1}, vk::VK_IMAGE_USAGE_STORAGE_BIT | vk::VK_IMAGE_USAGE_TRANSFER_DST_BIT), vk::MemoryRequirement::Any)); in iterate()
298 m_outBuffer = makeBufferForImage(vk, device, alloc, vk::VK_FORMAT_R32G32B32A32_SFLOAT, m_extent); in iterate()
323 m_colorAttachment = de::MovePtr<vk::ImageWithMemory>(new vk::ImageWithMemory(vk, device, alloc, imageCreateInfo, vk::MemoryRequirement::Any)); in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/rasterization/
H A DvktRasterizationFragShaderSideEffectsTests.cpp286 auto& alloc = m_context.getDefaultAllocator(); in iterate() local
310 vk::ImageWithMemory colorImage(vkd, device, alloc, colorCreateInfo, vk::MemoryRequirement::Any); in iterate()
350 depthStencilImage.reset(new vk::ImageWithMemory(vkd, device, alloc, depthStencilCreateInfo, vk::MemoryRequirement::Any)); in iterate()
368 vk::BufferWithMemory colorImageBuffer(vkd, device, alloc, colorImageBufferInfo, vk::MemoryRequirement::HostVisible); in iterate()
384 vk::BufferWithMemory vertexBuffer (vkd, device, alloc, vertexBufferInfo, vk::MemoryRequirement::HostVisible); in iterate()
393 vk::BufferWithMemory storageBuffer (vkd, device, alloc, storageBufferInfo, vk::MemoryRequirement::HostVisible); in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/
H A DvktTessellationCoordinatesTests.cpp751 const Allocation& alloc = tessLevelsBuffer.getAllocation();
752 TessLevels* const bufferTessLevels = static_cast<TessLevels*>(alloc.getHostPtr());
755 flushAlloc(vk, device, alloc);
760 const Allocation& alloc = resultBuffer.getAllocation();
762 deMemset(alloc.getHostPtr(), 0, static_cast<std::size_t>(resultBufferSizeBytes));
763 flushAlloc(vk, device, alloc);
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/draw/
H A DvktDrawDiscardRectanglesTests.cpp549 const Allocation alloc = m_colorBuffer->getBoundMemory(); in iterate() local
550 deMemset(alloc.getHostPtr(), 0, static_cast<std::size_t>(colorBufferSize)); in iterate()
551 flushAlloc(vk, device, alloc); in iterate()
673 const Allocation alloc = m_colorBuffer->getBoundMemory(); in iterate() local
674 invalidateAlloc(vk, device, alloc); in iterate()
676 const tcu::ConstPixelBufferAccess resultImage (mapVkFormat(colorFormat), m_renderSize.x(), m_renderSize.y(), 1u, alloc.getHostPtr()); in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/rasterization/
H A DvktRasterizationFragShaderSideEffectsTests.cpp286 auto& alloc = m_context.getDefaultAllocator(); in iterate() local
310 vk::ImageWithMemory colorImage(vkd, device, alloc, colorCreateInfo, vk::MemoryRequirement::Any); in iterate()
350 depthStencilImage.reset(new vk::ImageWithMemory(vkd, device, alloc, depthStencilCreateInfo, vk::MemoryRequirement::Any)); in iterate()
368 vk::BufferWithMemory colorImageBuffer(vkd, device, alloc, colorImageBufferInfo, vk::MemoryRequirement::HostVisible); in iterate()
384 vk::BufferWithMemory vertexBuffer (vkd, device, alloc, vertexBufferInfo, vk::MemoryRequirement::HostVisible); in iterate()
393 vk::BufferWithMemory storageBuffer (vkd, device, alloc, storageBufferInfo, vk::MemoryRequirement::HostVisible); in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/tessellation/
H A DvktTessellationCoordinatesTests.cpp736 const Allocation& alloc = tessLevelsBuffer.getAllocation();
737 TessLevels* const bufferTessLevels = static_cast<TessLevels*>(alloc.getHostPtr());
740 flushAlloc(vk, device, alloc);
745 const Allocation& alloc = resultBuffer.getAllocation();
747 deMemset(alloc.getHostPtr(), 0, static_cast<std::size_t>(resultBufferSizeBytes));
748 flushAlloc(vk, device, alloc);
/third_party/mesa3d/src/microsoft/vulkan/
H A Ddzn_device.c151 vk_free(&instance->vk.alloc, pdev); in dzn_physical_device_destroy()
155 dzn_instance_destroy(struct dzn_instance *instance, const VkAllocationCallbacks *alloc) in dzn_instance_destroy() argument
171 vk_free2(vk_default_allocator(), alloc, instance); in dzn_instance_destroy() local
314 vk_zalloc(&instance->vk.alloc, sizeof(*pdev), 8, in dzn_physical_device_create()
333 vk_free(&instance->vk.alloc, pdev); in dzn_physical_device_create()
2001 vk_free2(&instance->vk.alloc, pAllocator, device); in dzn_device_destroy()
2033 if (!vk_multialloc_zalloc2(&ma, &instance->vk.alloc, pAllocator, in dzn_device_create()
2060 vk_free2(&device->vk.alloc, pAllocator, device); in dzn_device_create()
2232 vk_free2(&device->vk.alloc, pAllocator, mem); in dzn_device_memory_destroy()
2245 vk_zalloc2(&device->vk.alloc, pAllocato in dzn_device_memory_create()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/mesh_shader/
H A DvktMeshShaderPropertyTestsEXT.cpp420 auto& alloc = m_context.getDefaultAllocator(); in iterate() local
431 BufferWithMemory resultsBuffer (vkd, device, alloc, resultsBufferCreateInfo, MemoryRequirement::HostVisible); in iterate()
686 auto& alloc = m_context.getDefaultAllocator(); in iterate() local
720 ImageWithMemory colorAttachment (vkd, device, alloc, colorAttachmentCreatInfo, MemoryRequirement::Any); in iterate()
730 BufferWithMemory verificationBuffer (vkd, device, alloc, verificationBufferCreateInfo, MemoryRequirement::HostVisible); in iterate()
885 auto& alloc = m_context.getDefaultAllocator(); in iterate() local
936 ImageWithMemory colorAttachment (vkd, device, alloc, colorAttachmentCreatInfo, MemoryRequirement::Any); in iterate()
946 BufferWithMemory verificationBuffer (vkd, device, alloc, verificationBufferCreateInfo, MemoryRequirement::HostVisible); in iterate()
1205 auto& alloc = m_context.getDefaultAllocator(); in iterate() local
1216 BufferWithMemory ssbo (vkd, device, alloc, ssboCreateInf in iterate()
1427 auto& alloc = m_context.getDefaultAllocator(); iterate() local
2220 auto& alloc = m_context.getDefaultAllocator(); iterate() local
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/mesh_shader/
H A DvktMeshShaderPropertyTestsEXT.cpp420 auto& alloc = m_context.getDefaultAllocator(); in iterate() local
431 BufferWithMemory resultsBuffer (vkd, device, alloc, resultsBufferCreateInfo, MemoryRequirement::HostVisible); in iterate()
686 auto& alloc = m_context.getDefaultAllocator(); in iterate() local
720 ImageWithMemory colorAttachment (vkd, device, alloc, colorAttachmentCreatInfo, MemoryRequirement::Any); in iterate()
730 BufferWithMemory verificationBuffer (vkd, device, alloc, verificationBufferCreateInfo, MemoryRequirement::HostVisible); in iterate()
885 auto& alloc = m_context.getDefaultAllocator(); in iterate() local
936 ImageWithMemory colorAttachment (vkd, device, alloc, colorAttachmentCreatInfo, MemoryRequirement::Any); in iterate()
946 BufferWithMemory verificationBuffer (vkd, device, alloc, verificationBufferCreateInfo, MemoryRequirement::HostVisible); in iterate()
1205 auto& alloc = m_context.getDefaultAllocator(); in iterate() local
1216 BufferWithMemory ssbo (vkd, device, alloc, ssboCreateInf in iterate()
1427 auto& alloc = m_context.getDefaultAllocator(); iterate() local
2220 auto& alloc = m_context.getDefaultAllocator(); iterate() local
[all...]
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/btm/
H A Dbtm_thread.c46 BtmTask *block = MEM_MALLOC.alloc(sizeof(BtmTask)); in AllocTask()
71 BtmProcessingQueue *block = MEM_MALLOC.alloc(sizeof(BtmProcessingQueue)); in AllocProcessingQueue()
H A Dbtm_snoop.c222 char *bakPath = MEM_CALLOC.alloc(length); in BtmPrepareSnoopFile()
261 g_outputPath = (char *)MEM_MALLOC.alloc(length + 1); in BTM_SetSnoopFilePath()
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/hci/evt/
H A Dhci_evt_info_params_cmd_complete.c156 returnParam.supportedCodecs = MEM_MALLOC.alloc(returnParam.numberOfSupportedCodecs * sizeof(uint8_t)); in HciEventOnReadLocalSupportedCodecs()
175 MEM_MALLOC.alloc(returnParam.numberOfSupportedVendorSpecificCodecs * sizeof(HciVendorSpecificCodec)); in HciEventOnReadLocalSupportedCodecs()
/third_party/cups-filters/filter/foomatic-rip/
H A Dutil.h147 size_t alloc; member
153 void dstrassure(dstr_t *ds, size_t alloc);
/third_party/mesa3d/src/gallium/frontends/lavapipe/
H A Dlvp_query.c58 pool = vk_zalloc2(&device->vk.alloc, pAllocator, in lvp_CreateQueryPool()
90 vk_free2(&device->vk.alloc, pAllocator, pool); in lvp_DestroyQueryPool()
/third_party/rust/crates/cxx/src/
H A Dcxx_string.rs3 #[cfg(feature = "alloc")]
4 use alloc::borrow::Cow;
5 #[cfg(feature = "alloc")]
6 use alloc::string::String;
150 #[cfg(feature = "alloc")]
151 #[cfg_attr(doc_cfg, doc(cfg(feature = "alloc")))]
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/
H A DResourceMemoryAllocatorVk.cpp287 for (auto& alloc : mAllocatorsPerType) { in DestroyPool()
288 alloc->DestroyPool(); in DestroyPool()
/third_party/skia/include/gpu/d3d/
H A DGrD3DTypes.h192 const sk_sp<GrD3DAlloc> alloc, in GrD3DTextureResourceInfo()
200 , fAlloc(alloc) in GrD3DTextureResourceInfo()
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/gap/
H A Dgap_hci_receive.c31 hciParam = MEM_MALLOC.alloc(ctxLen); in GapProcessHciEventInTask()
305 hciParam.responses = MEM_MALLOC.alloc(hciParam.numResponses * sizeof(HciInquiryResult)); in GapRecvInquiryResult()
391 hciParam.responses = MEM_MALLOC.alloc(hciParam.numResponses * sizeof(HciInquiryResultWithRssi)); in GapRecvInquiryResultRssi()
739 hciParam.reports = MEM_MALLOC.alloc(hciParam.numReports * sizeof(HciLeAdvertisingReport)); in GapRecvLeAdvertisingReportEvent()
750 hciParam.reports[index].data = MEM_MALLOC.alloc(hciParam.reports[index].lengthData); in GapRecvLeAdvertisingReportEvent()
801 hciParam.reports = MEM_MALLOC.alloc(hciParam.numReports * sizeof(HciLeDirectedAdvertisingReport)); in GapRecvLeDirectedAdvertisingReport()
832 hciParam.reports = MEM_MALLOC.alloc(hciParam.numReports * sizeof(HciLeExtendedAdvertisingReport)); in GapRecvLeExtendedAdvertisingReportEvent()
843 hciParam.reports[i].data = MEM_MALLOC.alloc(hciParam.reports[i].dataLength); in GapRecvLeExtendedAdvertisingReportEvent()
/third_party/NuttX/drivers/usbdev/gadget/
H A Dcdcacm.c1114 usb_err("alloc epintin fail!"); in cdcacm_bind()
1134 usb_err("alloc epbulkin fail!"); in cdcacm_bind()
1146 usb_err("alloc epbulkout fail!"); in cdcacm_bind()
1167 /* alloc req and req->buf */ in cdcacm_bind()
1795 FAR struct cdcacm_alloc_s *alloc; in cdcacm_classobject() local
1803 alloc = (FAR struct cdcacm_alloc_s *)malloc(sizeof(struct cdcacm_alloc_s)); in cdcacm_classobject()
1804 if (alloc == NULL) in cdcacm_classobject()
1812 priv = &alloc->dev; in cdcacm_classobject()
1813 drvr = &alloc->drvr; in cdcacm_classobject()
1863 FAR struct cdcacm_alloc_s *alloc; in cdcacm_uninitialize() local
[all...]
H A Drndis.c2313 usb_err("alloc req failed!\n"); in rndis_tx()
2350 FAR struct rndis_alloc_s *alloc; in rndis_classobject() local
2359 alloc = (FAR struct rndis_alloc_s *)malloc(sizeof(struct rndis_alloc_s)); in rndis_classobject()
2360 if (!alloc) in rndis_classobject()
2367 priv = &alloc->dev; in rndis_classobject()
2368 drvr = &alloc->drvr; in rndis_classobject()
2393 struct rndis_alloc_s *alloc; in rndis_uninitialize() local
2406 alloc = container_of(drvr, struct rndis_alloc_s, drvr); in rndis_uninitialize()
2408 free(alloc); in rndis_uninitialize()
/third_party/mksh/
H A Dsyn.c221 nextiop = alloc(sizeof(*iop), ATEMP); in synio()
222 nextiop->ioname = cp = alloc(3, ATEMP); in synio()
490 t->str = alloc(2, ATEMP); in get_command()
734 t->left->args = alloc(2 * sizeof(char *), ATEMP); in function_body()
735 t->left->args[0] = tv = alloc(3, ATEMP); in function_body()
740 t->left->vars = alloc(sizeof(char *), ATEMP); in function_body()
915 t = alloc(sizeof(struct op), ATEMP); in newtp()
1138 ys = alloc(sizeof(struct yyrecursive_state), ATEMP); in yyrecursive()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ray_query/
H A DvktRayQueryMiscTests.cpp193 auto& alloc = m_context.getDefaultAllocator(); in iterate() local
211 BufferWithMemory inputBuffer (vkd, device, alloc, inputBufferInfo, MemoryRequirement::HostVisible); in iterate()
221 BufferWithMemory outputBuffer (vkd, device, alloc, outputBufferInfo, MemoryRequirement::HostVisible); in iterate()
250 bottomLevelAS->createAndBuild(vkd, device, cmdBuffer, alloc); in iterate()
253 topLevelAS->createAndBuild(vkd, device, cmdBuffer, alloc); in iterate()
897 Allocation& alloc = buffer.getAllocation(); in verifyResult() local
898 invalidateMappedMemoryRange(vk, device, alloc.getMemory(), 0u, VK_WHOLE_SIZE); in verifyResult()
899 ConstPixelBufferAccess pixels (mapVkFormat(m_format), m_params.screen.first, m_params.screen.second, 1u, alloc.getHostPtr()); in verifyResult()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ray_query/
H A DvktRayQueryMiscTests.cpp193 auto& alloc = m_context.getDefaultAllocator(); in iterate() local
211 BufferWithMemory inputBuffer (vkd, device, alloc, inputBufferInfo, MemoryRequirement::HostVisible); in iterate()
221 BufferWithMemory outputBuffer (vkd, device, alloc, outputBufferInfo, MemoryRequirement::HostVisible); in iterate()
250 bottomLevelAS->createAndBuild(vkd, device, cmdBuffer, alloc); in iterate()
253 topLevelAS->createAndBuild(vkd, device, cmdBuffer, alloc); in iterate()
897 Allocation& alloc = buffer.getAllocation(); in verifyResult() local
898 invalidateMappedMemoryRange(vk, device, alloc.getMemory(), 0u, VK_WHOLE_SIZE); in verifyResult()
899 ConstPixelBufferAccess pixels (mapVkFormat(m_format), m_params.screen.first, m_params.screen.second, 1u, alloc.getHostPtr()); in verifyResult()

Completed in 36 milliseconds

1...<<21222324252627282930>>...52