Home
last modified time | relevance | path

Searched refs:alloc (Results 801 - 825 of 2222) sorted by relevance

1...<<31323334353637383940>>...89

/third_party/skia/third_party/externals/freetype/include/freetype/
H A Dftsystem.h159 * alloc ::
172 FT_Alloc_Func alloc; member
/third_party/python/Include/cpython/
H A Dobjimpl.h61 void* (*alloc) (void *ctx, size_t size); member
/third_party/rust/crates/rustix/src/
H A Dcstr.rs59 use alloc::borrow::ToOwned; in test_cstr()
/third_party/vk-gl-cts/framework/referencerenderer/
H A DrrVertexPacket.hpp92 * alloc and allocArray will throw bad_alloc if allocation fails.
101 VertexPacket* alloc (void); // throws bad_alloc
/kernel/linux/linux-5.10/drivers/infiniband/hw/mthca/
H A Dmthca_cq.c779 cq->cqn = mthca_alloc(&dev->cq_table.alloc); in mthca_init_cq()
884 mthca_free(&dev->cq_table.alloc, cq->cqn); in mthca_init_cq()
949 mthca_free(&dev->cq_table.alloc, cq->cqn); in mthca_free_cq()
959 err = mthca_alloc_init(&dev->cq_table.alloc, in mthca_init_cq_table()
969 mthca_alloc_cleanup(&dev->cq_table.alloc); in mthca_init_cq_table()
977 mthca_alloc_cleanup(&dev->cq_table.alloc); in mthca_cleanup_cq_table()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/
H A Diwl-dbg-tlv.c167 struct iwl_fw_ini_allocation_tlv *alloc = (void *)tlv->data; in iwl_dbg_tlv_alloc_buf_alloc() local
171 if (le32_to_cpu(tlv->length) != sizeof(*alloc)) in iwl_dbg_tlv_alloc_buf_alloc()
174 buf_location = le32_to_cpu(alloc->buf_location); in iwl_dbg_tlv_alloc_buf_alloc()
175 alloc_id = le32_to_cpu(alloc->alloc_id); in iwl_dbg_tlv_alloc_buf_alloc()
195 alloc->req_size == 0) { in iwl_dbg_tlv_alloc_buf_alloc()
200 trans->dbg.fw_mon_cfg[alloc_id] = *alloc; in iwl_dbg_tlv_alloc_buf_alloc()
/kernel/linux/linux-6.6/drivers/infiniband/hw/mthca/
H A Dmthca_cq.c779 cq->cqn = mthca_alloc(&dev->cq_table.alloc); in mthca_init_cq()
884 mthca_free(&dev->cq_table.alloc, cq->cqn); in mthca_init_cq()
949 mthca_free(&dev->cq_table.alloc, cq->cqn); in mthca_free_cq()
959 err = mthca_alloc_init(&dev->cq_table.alloc, in mthca_init_cq_table()
969 mthca_alloc_cleanup(&dev->cq_table.alloc); in mthca_init_cq_table()
977 mthca_alloc_cleanup(&dev->cq_table.alloc); in mthca_cleanup_cq_table()
/third_party/mesa3d/src/freedreno/vulkan/
H A Dtu_shader.c724 const VkAllocationCallbacks *alloc) in tu_shader_create()
729 &dev->vk.alloc, alloc, in tu_shader_create()
848 const VkAllocationCallbacks *alloc) in tu_shader_destroy()
852 vk_free2(&dev->vk.alloc, alloc, shader); in tu_shader_destroy()
720 tu_shader_create(struct tu_device *dev, nir_shader *nir, const struct tu_shader_key *key, struct tu_pipeline_layout *layout, const VkAllocationCallbacks *alloc) tu_shader_create() argument
846 tu_shader_destroy(struct tu_device *dev, struct tu_shader *shader, const VkAllocationCallbacks *alloc) tu_shader_destroy() argument
/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...]
/kernel/linux/linux-6.6/lib/
H A Dmaple_tree.c580 * The ma_state alloc member is overloaded to hold a pointer to the first
582 * set, then the alloc contains the number of requested nodes. If there is an
589 if (!mas->alloc || ((unsigned long)mas->alloc & 0x1)) in mas_allocated()
592 return mas->alloc->total; in mas_allocated()
601 * located in @mas->alloc->request_count, or directly in @mas->alloc if there is
603 * encoding to store in @mas->alloc directly.
607 if (!mas->alloc || ((unsigned long)mas->alloc in mas_set_alloc_req()
[all...]
/third_party/protobuf/ruby/ext/google/protobuf_c/
H A Dupb.c763 upb_alloc *alloc; member
778 char *new_buf = upb_realloc(e->alloc, e->buf, old_size, new_size); in upb_encode_growbuffer()
1144 e.alloc = upb_arena_alloc(arena); in upb_encode()
1246 upb_alloc *alloc = upb_arena_alloc(arena); in _upb_msg_addunknown() local
1249 void *mem = upb_realloc(alloc, in->unknown, in->unknown_size, newsize); in _upb_msg_addunknown()
1702 upb_value *val, upb_alloc *alloc) { in upb_strtable_remove3()
1706 if (alloc) { in upb_strtable_remove3()
1708 upb_free(alloc, (void*)tabkey); in upb_strtable_remove3()
2291 static void *upb_global_allocfunc(upb_alloc *alloc, void *ptr, size_t oldsize, in upb_global_allocfunc() argument
2293 UPB_UNUSED(alloc); in upb_global_allocfunc()
1701 upb_strtable_remove3(upb_strtable *t, const char *key, size_t len, upb_value *val, upb_alloc *alloc) upb_strtable_remove3() argument
2379 upb_arena_doalloc(upb_alloc *alloc, void *ptr, size_t oldsize, size_t size) upb_arena_doalloc() argument
2405 upb_arena_init(void *mem, size_t n, upb_alloc *alloc) upb_arena_init() argument
2980 newstr(upb_alloc *alloc, const char *data, size_t len) newstr() argument
3904 upb_alloc *alloc = upb_arena_alloc(symtab->arena); make_layout() local
4066 upb_alloc *alloc; /* Allocate defs here. */ global() member
4140 makejsonname(const char* name, upb_alloc *alloc) makejsonname() argument
4355 upb_alloc *alloc = ctx->alloc; create_fielddef() local
4766 upb_alloc *alloc = ctx->alloc; build_filedef() local
4905 upb_alloc *alloc = upb_arena_alloc(s->arena); upb_symtab_addtotabs() local
4974 upb_alloc *alloc; upb_symtab_new() local
5026 upb_alloc *alloc = upb_arena_alloc(s->arena); _upb_symtab_addfile() local
12252 upb_alloc *alloc = upb_arena_alloc(c->arena); parsermethod_new() local
12343 upb_alloc *alloc; upb_json_codecache_new() local
12366 upb_alloc *alloc = upb_arena_alloc(c->arena); upb_json_codecache_get() local
[all...]
/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()

Completed in 50 milliseconds

1...<<31323334353637383940>>...89