/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/mesh_shader/ |
H A D | vktMeshShaderApiTests.cpp | 353 BufferWithMemoryPtr makeStridedBuffer(const DeviceInterface& vkd, VkDevice device, Allocator& alloc, const std::vector<T>& elements, uint32_t offset, uint32_t stride, VkBufferUsageFlags usage, uint32_t endPadding) in makeStridedBuffer() argument 360 BufferWithMemoryPtr buffer(new BufferWithMemory(vkd, device, alloc, bufferInfo, MemoryRequirement::HostVisible)); in makeStridedBuffer() 387 auto& alloc = m_context.getDefaultAllocator(); in iterate() local 423 colorBuffer = ImageWithMemoryPtr(new ImageWithMemory(vkd, device, alloc, colorBufferInfo, MemoryRequirement::Any)); in iterate() 446 BufferWithMemoryPtr blockSizesBuffer = makeStridedBuffer(vkd, device, alloc, blockSizes, 0u, 0u, VK_BUFFER_USAGE_STORAGE_BUFFER_BIT, 0u); in iterate() 531 indirectBuffer = makeStridedBuffer(vkd, device, alloc, commands, indirectArgs.offset, indirectArgs.stride, VK_BUFFER_USAGE_INDIRECT_BUFFER_BIT, padding); in iterate() 544 countBuffer = makeStridedBuffer(vkd, device, alloc, singleCount, m_params.indirectCountOffset.get(), static_cast<uint32_t>(sizeof(uint32_t)), VK_BUFFER_USAGE_INDIRECT_BUFFER_BIT, 0u); in iterate() 593 outBuffer = BufferWithMemoryPtr(new BufferWithMemory(vkd, device, alloc, outBufferInfo, MemoryRequirement::HostVisible)); in iterate()
|
H A D | vktMeshShaderApiTestsEXT.cpp | 356 BufferWithMemoryPtr makeStridedBuffer(const DeviceInterface& vkd, VkDevice device, Allocator& alloc, const std::vector<T>& elements, uint32_t offset, uint32_t stride, VkBufferUsageFlags usage, uint32_t endPadding) in makeStridedBuffer() argument 363 BufferWithMemoryPtr buffer(new BufferWithMemory(vkd, device, alloc, bufferInfo, MemoryRequirement::HostVisible)); in makeStridedBuffer() 406 auto& alloc = m_context.getDefaultAllocator(); in iterate() local 442 colorBuffer = ImageWithMemoryPtr(new ImageWithMemory(vkd, device, alloc, colorBufferInfo, MemoryRequirement::Any)); in iterate() 465 BufferWithMemoryPtr blockSizesBuffer = makeStridedBuffer(vkd, device, alloc, blockSizes, 0u, 0u, VK_BUFFER_USAGE_STORAGE_BUFFER_BIT, 0u); in iterate() 556 indirectBuffer = makeStridedBuffer(vkd, device, alloc, commands, indirectArgs.offset, indirectArgs.stride, VK_BUFFER_USAGE_INDIRECT_BUFFER_BIT, padding); in iterate() 569 countBuffer = makeStridedBuffer(vkd, device, alloc, singleCount, m_params.indirectCountOffset.get(), static_cast<uint32_t>(sizeof(uint32_t)), VK_BUFFER_USAGE_INDIRECT_BUFFER_BIT, 0u); in iterate() 651 outBuffer = BufferWithMemoryPtr(new BufferWithMemory(vkd, device, alloc, outBufferInfo, MemoryRequirement::HostVisible)); in iterate()
|
H A D | vktMeshShaderSmokeTests.cpp | 382 auto& alloc = m_context.getDefaultAllocator(); in iterate() local 400 BufferWithMemory vertexBuffer (vkd, device, alloc, vertexBufferInfo, MemoryRequirement::HostVisible); in iterate() 409 BufferWithMemory indexBuffer (vkd, device, alloc, indexBufferInfo, MemoryRequirement::HostVisible); in iterate() 439 ImageWithMemory colorBuffer(vkd, device, alloc, colorBufferInfo, MemoryRequirement::Any); in iterate() 500 BufferWithMemory outBuffer (vkd, device, alloc, outBufferInfo, MemoryRequirement::HostVisible); in iterate() 520 // Invalidate alloc. in iterate() 928 auto& alloc = context.getDefaultAllocator(); in testFullscreenGradient() local 958 ImageWithMemory colorBuffer(vkd, device, alloc, colorBufferInfo, MemoryRequirement::Any); in testFullscreenGradient() 1012 BufferWithMemory outBuffer (vkd, device, alloc, outBufferInfo, MemoryRequirement::HostVisible); in testFullscreenGradient() 1031 // Invalidate alloc in testFullscreenGradient() [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/container/ |
H A D | fixed_array_test.cc | 654 Alloc alloc(&allocated, &active_instances); in TEST() 656 AllocFxdArr arr(ia, ia + inlined_size, alloc); in TEST() 674 Alloc alloc(&allocated, &active_instances); in TEST() 676 AllocFxdArr arr(ia, ia + ABSL_ARRAYSIZE(ia), alloc); in TEST() 693 Alloc alloc(&allocated1, &active_instances); in TEST() 699 AllocFxdArr arr1(inlined_size / 2, initial_value, alloc); in TEST() 721 Alloc alloc(&allocated1, &active_instances); in TEST() 727 AllocFxdArr arr1(inlined_size * 2, initial_value, alloc); in TEST()
|
/third_party/mesa3d/src/freedreno/vulkan/ |
H A D | tu_drm.c | 218 vk_realloc(&dev->vk.alloc, dev->bo_list, new_len * sizeof(*dev->bo_list), in tu_bo_init() 857 new_submit->cmds = vk_zalloc(&queue->device->vk.alloc, in tu_queue_submit_create_locked() 879 new_submit->in_syncobjs = vk_zalloc(&queue->device->vk.alloc, in tu_queue_submit_create_locked() 889 new_submit->out_syncobjs = vk_zalloc(&queue->device->vk.alloc, in tu_queue_submit_create_locked() 907 vk_free(&queue->device->vk.alloc, new_submit->in_syncobjs); in tu_queue_submit_create_locked() 913 vk_free(&queue->device->vk.alloc, new_submit->cmds); in tu_queue_submit_create_locked() 921 vk_free(&queue->device->vk.alloc, submit->cmds); in tu_queue_submit_finish() 922 vk_free(&queue->device->vk.alloc, submit->in_syncobjs); in tu_queue_submit_finish() 923 vk_free(&queue->device->vk.alloc, submit->out_syncobjs); in tu_queue_submit_finish() 925 vk_free(&queue->device->vk.alloc, submi in tu_queue_submit_finish() [all...] |
/third_party/mesa3d/src/intel/compiler/ |
H A D | brw_fs_visitor.cpp | 843 fs_reg zero(VGRF, alloc.allocate(1), BRW_REGISTER_TYPE_UD); in emit_urb_writes() 851 fs_reg one_by_one_fp16(VGRF, alloc.allocate(1), BRW_REGISTER_TYPE_UD); in emit_urb_writes() 906 fs_reg reg = fs_reg(VGRF, alloc.allocate(1), outputs[varying].type); in emit_urb_writes() 941 srcs[URB_LOGICAL_SRC_DATA] = fs_reg(VGRF, alloc.allocate(length), in emit_urb_writes() 981 fs_reg uniform_urb_handle = fs_reg(VGRF, alloc.allocate(1), BRW_REGISTER_TYPE_UD); in emit_urb_writes() 982 fs_reg payload = fs_reg(VGRF, alloc.allocate(1), BRW_REGISTER_TYPE_UD); in emit_urb_writes() 1005 fs_reg uniform_urb_handle = fs_reg(VGRF, alloc.allocate(1), BRW_REGISTER_TYPE_UD); in emit_urb_writes() 1006 fs_reg uniform_mask = fs_reg(VGRF, alloc.allocate(1), BRW_REGISTER_TYPE_UD); in emit_urb_writes() 1007 fs_reg payload = fs_reg(VGRF, alloc.allocate(4), BRW_REGISTER_TYPE_UD); in emit_urb_writes() 1077 fs_reg payload = fs_reg(VGRF, alloc in emit_cs_terminate() [all...] |
/third_party/node/src/ |
H A D | node_zlib.cc | 147 void SetAllocationFunctions(alloc_func alloc, free_func free, void* opaque); 213 CompressionError Init(brotli_alloc_func alloc, 233 CompressionError Init(brotli_alloc_func alloc, 950 void ZlibContext::SetAllocationFunctions(alloc_func alloc, in SetAllocationFunctions() argument 953 strm_.zalloc = alloc; in SetAllocationFunctions() 1143 CompressionError BrotliEncoderContext::Init(brotli_alloc_func alloc, in Init() argument 1146 alloc_ = alloc; in Init() 1149 state_.reset(BrotliEncoderCreateInstance(alloc, free, opaque)); in Init() 1208 CompressionError BrotliDecoderContext::Init(brotli_alloc_func alloc, in Init() argument 1211 alloc_ = alloc; in Init() [all...] |
/third_party/mesa3d/src/vulkan/wsi/ |
H A D | wsi_common_wayland.c | 85 const VkAllocationCallbacks *alloc; member 627 vk_alloc(wsi->alloc, sizeof(*display), 8, in wsi_wl_display_create() 635 vk_free(wsi->alloc, display); in wsi_wl_display_create() 660 vk_free(wsi->alloc, display); in wsi_wl_display_unref() 894 surface = vk_alloc2(&instance->alloc, pAllocator, sizeof *surface, 8, in wsi_CreateWaylandSurfaceKHR() 1398 const VkAllocationCallbacks *alloc, in wsi_wl_init_wsi() 1404 wsi = vk_alloc(alloc, sizeof(*wsi), 8, in wsi_wl_init_wsi() 1412 wsi->alloc = alloc; in wsi_wl_init_wsi() 1435 const VkAllocationCallbacks *alloc) in wsi_wl_finish_wsi() 1397 wsi_wl_init_wsi(struct wsi_device *wsi_device, const VkAllocationCallbacks *alloc, VkPhysicalDevice physical_device) wsi_wl_init_wsi() argument 1434 wsi_wl_finish_wsi(struct wsi_device *wsi_device, const VkAllocationCallbacks *alloc) wsi_wl_finish_wsi() argument [all...] |
/third_party/skia/src/shaders/gradients/ |
H A D | SkGradientShader.cpp | 280 SkArenaAlloc* alloc = rec.fAlloc; in onAppendStages() local 292 p->append_matrix(alloc, matrix); in onAppendStages() 293 this->appendGradientStages(alloc, p, &postPipeline); in onAppendStages() 299 decal_ctx = alloc->make<SkRasterPipeline_DecalTileCtx>(); in onAppendStages() 333 auto ctx = alloc->make<SkRasterPipeline_EvenlySpaced2StopGradientCtx>(); in onAppendStages() 340 auto* ctx = alloc->make<SkRasterPipeline_GradientCtx>(); in onAppendStages() 347 ctx->fs[i] = alloc->makeArray<float>(std::max(fColorCount+1, 8)); in onAppendStages() 348 ctx->bs[i] = alloc->makeArray<float>(std::max(fColorCount+1, 8)); in onAppendStages() 370 ctx->ts = alloc->makeArray<float>(fColorCount+1); in onAppendStages() 428 skvm::Uniforms* uniforms, SkArenaAlloc* alloc) cons in onProgram() [all...] |
/kernel/linux/linux-6.6/arch/sparc/lib/ |
H A D | copy_user.S | 22 #define ALLOC #alloc 93 .section .fixup,#alloc,#execinstr 109 .section .fixup,#alloc,#execinstr 133 .section .fixup,#alloc,#execinstr 147 .section .fixup,#alloc,#execinstr 387 .section .fixup,#alloc,#execinstr
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/mthca/ |
H A D | mthca_srq.c | 237 srq->srqn = mthca_alloc(&dev->srq_table.alloc); in mthca_alloc_srq() 322 mthca_free(&dev->srq_table.alloc, srq->srqn); in mthca_alloc_srq() 368 mthca_free(&dev->srq_table.alloc, srq->srqn); in mthca_free_srq() 676 err = mthca_alloc_init(&dev->srq_table.alloc, in mthca_init_srq_table() 686 mthca_alloc_cleanup(&dev->srq_table.alloc); in mthca_init_srq_table() 697 mthca_alloc_cleanup(&dev->srq_table.alloc); in mthca_cleanup_srq_table()
|
/kernel/linux/linux-5.10/drivers/gpu/host1x/ |
H A D | job.c | 201 struct iova *alloc; in pin_job() local 234 alloc = alloc_iova(&host->iova, gather_size >> shift, in pin_job() 236 if (!alloc) { in pin_job() 242 iova_dma_addr(&host->iova, alloc), in pin_job() 245 __free_iova(&host->iova, alloc); in pin_job() 251 phys_addr = iova_dma_addr(&host->iova, alloc); in pin_job()
|
/kernel/linux/linux-6.6/drivers/infiniband/hw/mthca/ |
H A D | mthca_srq.c | 237 srq->srqn = mthca_alloc(&dev->srq_table.alloc); in mthca_alloc_srq() 322 mthca_free(&dev->srq_table.alloc, srq->srqn); in mthca_alloc_srq() 368 mthca_free(&dev->srq_table.alloc, srq->srqn); in mthca_free_srq() 676 err = mthca_alloc_init(&dev->srq_table.alloc, in mthca_init_srq_table() 686 mthca_alloc_cleanup(&dev->srq_table.alloc); in mthca_init_srq_table() 697 mthca_alloc_cleanup(&dev->srq_table.alloc); in mthca_cleanup_srq_table()
|
/kernel/linux/linux-6.6/drivers/gpu/host1x/ |
H A D | job.c | 217 struct iova *alloc; in pin_job() local 244 alloc = alloc_iova(&host->iova, gather_size >> shift, in pin_job() 246 if (!alloc) { in pin_job() 251 err = iommu_map_sgtable(host->domain, iova_dma_addr(&host->iova, alloc), in pin_job() 254 __free_iova(&host->iova, alloc); in pin_job() 259 map->phys = iova_dma_addr(&host->iova, alloc); in pin_job()
|
/third_party/alsa-lib/src/ |
H A D | conf.c | 952 size_t alloc; member 961 s->alloc = LOCAL_STR_BUFSIZE; in init_local_string() 972 if (s->idx >= s->alloc) { in add_char_local_string() 973 size_t nalloc = s->alloc * 2; in add_char_local_string() 978 memcpy(s->buf, s->tmpbuf, s->alloc); in add_char_local_string() 985 s->alloc = nalloc; in add_char_local_string() 5366 size_t alloc = bufsize; in parse_string() local 5379 if (alloc > bufsize) in parse_string() 5392 if (alloc > bufsize) in parse_string() 5397 if (idx >= alloc) { in parse_string() [all...] |
/third_party/mesa3d/src/microsoft/vulkan/ |
H A D | dzn_meta.c | 455 vk_alloc(&device->vk.alloc, bc.BytecodeLength, 8, in dzn_meta_blits_get_vs() 500 out = vk_alloc(&device->vk.alloc, in dzn_meta_blits_get_fs() 531 vk_free(&device->vk.alloc, blit); in dzn_meta_blit_destroy() 538 vk_zalloc(&device->vk.alloc, sizeof(*blit), 8, in dzn_meta_blit_create() 722 vk_free(&device->vk.alloc, (void *)meta->vs.pShaderBytecode); in dzn_meta_blits_finish() 726 vk_free(&device->vk.alloc, he->data); in dzn_meta_blits_finish()
|
H A D | dzn_descriptor_set.c | 627 vk_alloc2(&device->vk.alloc, pAllocator, sizeof(*ranges) * range_count, 8, in dzn_pipeline_layout_create() 635 vk_alloc2(&device->vk.alloc, pAllocator, in dzn_pipeline_layout_create() 639 vk_free2(&device->vk.alloc, pAllocator, ranges); in dzn_pipeline_layout_create() 744 vk_free2(&device->vk.alloc, pAllocator, ranges); in dzn_pipeline_layout_create() 745 vk_free2(&device->vk.alloc, pAllocator, static_sampler_descs); in dzn_pipeline_layout_create() 1343 vk_free2(&device->vk.alloc, pAllocator, pool); in dzn_descriptor_pool_destroy() 1356 if (!vk_multialloc_zalloc2(&ma, &device->vk.alloc, pAllocator, in dzn_descriptor_pool_create() 1360 pool->alloc = pAllocator ? *pAllocator : device->vk.alloc; in dzn_descriptor_pool_create() 1492 vk_free(pool->alloc, entr in dzn_descriptor_heap_pool_finish() 1497 dzn_descriptor_heap_pool_init(struct dzn_descriptor_heap_pool *pool, struct dzn_device *device, D3D12_DESCRIPTOR_HEAP_TYPE type, bool shader_visible, const VkAllocationCallbacks *alloc) dzn_descriptor_heap_pool_init() argument 1899 dzn_descriptor_update_template_destroy(struct dzn_descriptor_update_template *templ, const VkAllocationCallbacks *alloc) dzn_descriptor_update_template_destroy() argument 1913 dzn_descriptor_update_template_create(struct dzn_device *device, const VkDescriptorUpdateTemplateCreateInfo *info, const VkAllocationCallbacks *alloc, VkDescriptorUpdateTemplate *out) dzn_descriptor_update_template_create() argument [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ray_query/ |
H A D | vktRayQueryPositionFetchTests.cpp | 405 auto& alloc = m_context.getDefaultAllocator(); in iterate() local 438 bottomLevelAS->createAndBuild(vkd, device, cmdBuffer, alloc); in iterate() 444 topLevelAS->createAndBuild(vkd, device, cmdBuffer, alloc); in iterate() 454 BufferWithMemory originsBuffer (vkd, device, alloc, originsBufferInfo, MemoryRequirement::HostVisible); in iterate() 484 BufferWithMemory outputPositionsBuffer(vkd, device, alloc, outputPositionsBufferInfo, MemoryRequirement::HostVisible); in iterate() 586 raygenSBT = rayTracingPipeline->createShaderBindingTable(vkd, device, pipeline.get(), alloc, shaderGroupHandleSize, shaderGroupBaseAlignment, 0, 1); in iterate()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/ |
H A D | vktTessellationPrimitiveDiscardTests.cpp | 418 const Allocation& alloc = vertexBuffer.getAllocation(); 420 deMemcpy(alloc.getHostPtr(), &attributes[0], static_cast<std::size_t>(vertexDataSizeBytes)); 421 flushAlloc(vk, device, alloc); 431 const Allocation& alloc = resultBuffer.getAllocation(); 433 deMemset(alloc.getHostPtr(), 0, static_cast<std::size_t>(resultBufferSizeBytes)); 434 flushAlloc(vk, device, alloc);
|
/third_party/skia/src/gpu/vk/ |
H A D | GrVkImage.cpp | 209 void GrVkImage::DestroyAndFreeImageMemory(const GrVkGpu* gpu, const GrVkAlloc& alloc, const VkImage& image) in DestroyAndFreeImageMemory() argument 212 GrVkMemory::FreeImageMemory(gpu, alloc); in DestroyAndFreeImageMemory() 241 this->setRealAlloc(true); // OH ISSUE: set real alloc flag in GrVkImage() 242 this->setRealAllocSize(dimensions.height() * dimensions.width() * 4); // OH ISSUE: set real alloc size in GrVkImage() 531 GrVkAlloc alloc; in InitImageInfo() local 532 if (!GrVkMemory::AllocAndBindImageMemory(gpu, image, memoryless, &alloc, in InitImageInfo() 535 !SkToBool(alloc.fFlags & GrVkAlloc::kLazilyAllocated_Flag))) { in InitImageInfo() 541 info->fAlloc = alloc; in InitImageInfo()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/memory/ |
H A D | memory.h | 660 void ConstructRange(Allocator& alloc, Iterator first, Iterator last, in ConstructRange() argument 664 std::allocator_traits<Allocator>::construct(alloc, std::addressof(*cur), in ConstructRange() 670 std::allocator_traits<Allocator>::destroy(alloc, std::addressof(*cur)); in ConstructRange() 678 void CopyRange(Allocator& alloc, Iterator destination, InputIterator first, in CopyRange() argument 683 std::allocator_traits<Allocator>::construct(alloc, std::addressof(*cur), in CopyRange() 689 std::allocator_traits<Allocator>::destroy(alloc, std::addressof(*cur)); in CopyRange()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/tessellation/ |
H A D | vktTessellationFractionalSpacingTests.cpp | 586 const Allocation& alloc = tessLevelsBuffer.getAllocation(); 587 float* const tessLevelOuter1 = static_cast<float*>(alloc.getHostPtr()); 590 flushAlloc(vk, device, alloc); 595 const Allocation& alloc = resultBuffer.getAllocation(); 597 deMemset(alloc.getHostPtr(), 0, static_cast<std::size_t>(resultBufferSizeBytes)); 598 flushAlloc(vk, device, alloc);
|
H A D | vktTessellationPrimitiveDiscardTests.cpp | 418 const Allocation& alloc = vertexBuffer.getAllocation(); 420 deMemcpy(alloc.getHostPtr(), &attributes[0], static_cast<std::size_t>(vertexDataSizeBytes)); 421 flushAlloc(vk, device, alloc); 431 const Allocation& alloc = resultBuffer.getAllocation(); 433 deMemset(alloc.getHostPtr(), 0, static_cast<std::size_t>(resultBufferSizeBytes)); 434 flushAlloc(vk, device, alloc);
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/tls/ |
H A D | libtommath.c | 127 int used, alloc, sign; member 239 if (c->alloc < max + 1) { in s_mp_add() 317 if (c->alloc < max) { in s_mp_sub() 393 a->alloc = MP_PREC; in mp_init() 417 a->alloc = a->used = 0; in mp_clear() 967 if (a->alloc < 2) { in mp_read_unsigned_bin() 1122 for (n = 0; n < a->alloc; n++) { in mp_zero() 1139 if (b->alloc < a->used) { in mp_copy() 1269 /* if the alloc size is smaller alloc mor in mp_grow() [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/tls/ |
H A D | libtommath.c | 127 int used, alloc, sign; member 239 if (c->alloc < max + 1) { in s_mp_add() 317 if (c->alloc < max) { in s_mp_sub() 393 a->alloc = MP_PREC; in mp_init() 417 a->alloc = a->used = 0; in mp_clear() 967 if (a->alloc < 2) { in mp_read_unsigned_bin() 1122 for (n = 0; n < a->alloc; n++) { in mp_zero() 1139 if (b->alloc < a->used) { in mp_copy() 1269 /* if the alloc size is smaller alloc mor in mp_grow() [all...] |