/third_party/rust/crates/cxx/src/ |
H A D | result.rs | 1 #![cfg(feature = "alloc")] 5 use alloc::boxed::Box; 6 use alloc::string::{String, ToString};
|
/third_party/skia/src/gpu/vk/ |
H A D | GrVkBuffer.h | 31 static void DestroyAndFreeBufferMemory(const GrVkGpu* gpu, const GrVkAlloc& alloc, const VkBuffer& buffer); 51 const GrVkAlloc& alloc,
|
/third_party/skia/src/gpu/d3d/ |
H A D | GrD3DAMDMemoryAllocator.cpp | 54 Alloc* alloc = (Alloc*)allocation.get(); in createAliasingResource() local 56 HRESULT hr = fAllocator->CreateAliasingResource(alloc->fAllocation, localOffset, resourceDesc, in createAliasingResource()
|
/third_party/skia/src/gpu/ops/ |
H A D | GrOp.cpp | 19 GrOp::CombineResult GrOp::combineIfPossible(GrOp* that, SkArenaAlloc* alloc, const GrCaps& caps) { in combineIfPossible() argument 24 auto result = this->onCombineIfPossible(that, alloc, caps); in combineIfPossible()
|
H A D | AtlasRenderTask.h | 70 void add(PathDrawAllocator* alloc, const SkMatrix& pathMatrix, const SkPath& path) { in add() argument 71 fPathDrawList = &alloc->emplace_back(pathMatrix, path, SK_PMColor4fTRANSPARENT, in add()
|
H A D | OpsTask.cpp | 922 void OpsTask::gatherProxyIntervals(GrResourceAllocator* alloc) const { in gatherProxyIntervals() 935 alloc->addInterval(fDeferredProxies[i], 0, 0, GrResourceAllocator::ActualUse::kNo); in gatherProxyIntervals() 942 unsigned int cur = alloc->curOp(); in gatherProxyIntervals() 944 alloc->addInterval(targetProxy, cur, cur + fOpChains.count() - 1, in gatherProxyIntervals() 950 alloc->addInterval(targetProxy, alloc->curOp(), alloc->curOp(), in gatherProxyIntervals() 952 alloc->incOps(); in gatherProxyIntervals() 955 auto gather = [ alloc SkDEBUGCODE(, this) ] (GrSurfaceProxy* p, GrMipmapped) { in gatherProxyIntervals() 956 alloc in gatherProxyIntervals() [all...] |
/third_party/vk-gl-cts/framework/delibs/decpp/ |
H A D | deMemPool.hpp | 51 void* alloc (deUintptr numBytes); 86 inline void* MemPool::alloc (deUintptr numBytes) in alloc() function in de::MemPool
|
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/ |
H A D | BinaryWriter.java | 72 private final BufferAllocator alloc; field in BinaryWriter 82 public static BinaryWriter newHeapInstance(BufferAllocator alloc) { in newHeapInstance() argument 83 return newHeapInstance(alloc, DEFAULT_CHUNK_SIZE); in newHeapInstance() 90 public static BinaryWriter newHeapInstance(BufferAllocator alloc, int chunkSize) { in newHeapInstance() argument 92 ? newUnsafeHeapInstance(alloc, chunkSize) in newHeapInstance() 93 : newSafeHeapInstance(alloc, chunkSize); in newHeapInstance() 100 public static BinaryWriter newDirectInstance(BufferAllocator alloc) { in newDirectInstance() argument 101 return newDirectInstance(alloc, DEFAULT_CHUNK_SIZE); in newDirectInstance() 108 public static BinaryWriter newDirectInstance(BufferAllocator alloc, int chunkSize) { in newDirectInstance() argument 110 ? newUnsafeDirectInstance(alloc, chunkSiz in newDirectInstance() 122 newSafeHeapInstance(BufferAllocator alloc, int chunkSize) newSafeHeapInstance() argument 126 newUnsafeHeapInstance(BufferAllocator alloc, int chunkSize) newUnsafeHeapInstance() argument 133 newSafeDirectInstance(BufferAllocator alloc, int chunkSize) newSafeDirectInstance() argument 137 newUnsafeDirectInstance(BufferAllocator alloc, int chunkSize) newUnsafeDirectInstance() argument 145 BinaryWriter(BufferAllocator alloc, int chunkSize) BinaryWriter() argument 927 SafeHeapWriter(BufferAllocator alloc, int chunkSize) SafeHeapWriter() argument 1456 UnsafeHeapWriter(BufferAllocator alloc, int chunkSize) UnsafeHeapWriter() argument 1991 SafeDirectWriter(BufferAllocator alloc, int chunkSize) SafeDirectWriter() argument 2540 UnsafeDirectWriter(BufferAllocator alloc, int chunkSize) UnsafeDirectWriter() argument [all...] |
/third_party/mesa3d/src/imagination/vulkan/ |
H A D | pvr_job_context.c | 111 staging_buffer = vk_zalloc(&device->vk.alloc, in pvr_pds_pt_store_program_create_and_upload() 145 vk_free(&device->vk.alloc, staging_buffer); in pvr_pds_pt_store_program_create_and_upload() 182 staging_buffer = vk_zalloc(&device->vk.alloc, in pvr_pds_pt_resume_program_create_and_upload() 218 vk_free(&device->vk.alloc, staging_buffer); in pvr_pds_pt_resume_program_create_and_upload() 854 ctx = vk_alloc(&device->vk.alloc, in pvr_render_ctx_create() 905 vk_free(&device->vk.alloc, ctx); in pvr_render_ctx_create() 919 vk_free(&device->vk.alloc, ctx); in pvr_render_ctx_destroy() 1102 ctx = vk_alloc(&device->vk.alloc, in pvr_compute_ctx_create() 1174 vk_free(&device->vk.alloc, ctx); in pvr_compute_ctx_create() 1193 vk_free(&device->vk.alloc, ct in pvr_compute_ctx_destroy() [all...] |
/third_party/mesa3d/src/freedreno/vulkan/ |
H A D | tu_device.c | 245 device->name = vk_asprintf(&instance->vk.alloc, in tu_physical_device_init() 249 device->name = vk_strdup(&instance->vk.alloc, fd_name, in tu_physical_device_init() 255 "device name alloc fail"); in tu_physical_device_init() 323 vk_free(&instance->vk.alloc, (void *)device->name); in tu_physical_device_init() 338 vk_free(&device->instance->vk.alloc, (void *)device->name); in tu_physical_device_finish() 483 vk_free(&instance->vk.alloc, instance); in tu_DestroyInstance() 1653 *cs = vk_zalloc(&cmdbuf->device->vk.alloc, sizeof(struct tu_cs), 8, in tu_create_copy_timestamp_cs() 1668 *trace_copy = vk_zalloc(&cmdbuf->device->vk.alloc, sizeof(struct u_trace), 8, in tu_create_copy_timestamp_cs() 1696 vk_zalloc(&device->vk.alloc, in tu_u_trace_submission_data_create() 1707 vk_zalloc(&device->vk.alloc, in tu_u_trace_submission_data_create() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/subgroups/ |
H A D | vktSubgroupsTestsUtils.cpp | 2474 void initializeMemory (Context& context, const Allocation& alloc, const subgroups::SSBOData& data) in initializeMemory() argument 2497 deUint8* ptr = reinterpret_cast<deUint8*>(alloc.getHostPtr()); in initializeMemory() 2514 deUint16* ptr = reinterpret_cast<deUint16*>(alloc.getHostPtr()); in initializeMemory() 2527 deUint32* ptr = reinterpret_cast<deUint32*>(alloc.getHostPtr()); in initializeMemory() 2545 deUint32* ptr = reinterpret_cast<deUint32*>(alloc.getHostPtr()); in initializeMemory() 2562 deUint64* ptr = reinterpret_cast<deUint64*>(alloc.getHostPtr()); in initializeMemory() 2575 deFloat16* ptr = reinterpret_cast<deFloat16*>(alloc.getHostPtr()); in initializeMemory() 2588 float* ptr = reinterpret_cast<float*>(alloc.getHostPtr()); in initializeMemory() 2601 double* ptr = reinterpret_cast<double*>(alloc.getHostPtr()); in initializeMemory() 2613 deUint32* ptr = reinterpret_cast<deUint32*>(alloc in initializeMemory() 2708 const Allocation& alloc = inputBuffers[i]->getAllocation(); makeTessellationEvaluationFrameBufferTestRequiredSubgroupSize() local 2782 const Allocation& alloc = vertexBuffer.getAllocation(); makeTessellationEvaluationFrameBufferTestRequiredSubgroupSize() local 2947 const Allocation& alloc = inputBuffers[i]->getAllocation(); makeGeometryFrameBufferTestRequiredSubgroupSize() local 3015 const Allocation& alloc = vertexBuffer.getAllocation(); makeGeometryFrameBufferTestRequiredSubgroupSize() local 3043 const Allocation& alloc = inputBuffers[ndx]->getAllocation(); makeGeometryFrameBufferTestRequiredSubgroupSize() local 3246 const Allocation& alloc = inputBuffers[ndx]->getAllocation(); allStagesRequiredSubgroupSize() local 3351 const Allocation& alloc = inputBuffers[ndx]->getAllocation(); allStagesRequiredSubgroupSize() local 3431 const Allocation& alloc = inputBuffers[index]->getAllocation(); allStagesRequiredSubgroupSize() local 3515 const Allocation& alloc = inputBuffers[i]->getAllocation(); makeVertexFrameBufferTestRequiredSubgroupSize() local 3553 const Allocation& alloc = inputBuffers[ndx]->getAllocation(); makeVertexFrameBufferTestRequiredSubgroupSize() local 3597 const Allocation& alloc = vertexBuffer.getAllocation(); makeVertexFrameBufferTestRequiredSubgroupSize() local 3625 const Allocation& alloc = inputBuffers[ndx]->getAllocation(); makeVertexFrameBufferTestRequiredSubgroupSize() local 3726 const Allocation& alloc = inputBuffers[i]->getAllocation(); makeFragmentFrameBufferTestRequiredSubgroupSize() local 3818 const Allocation& alloc = inputBuffers[i]->getAllocation(); makeFragmentFrameBufferTestRequiredSubgroupSize() local 4088 const Allocation& alloc = inputBuffers[i]->getAllocation(); makeComputeOrMeshTestRequiredSubgroupSize() local 5049 const Allocation& alloc = inputBuffers[ndx]->getAllocation(); allRayTracingStagesRequiredSubgroupSize() local [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/subgroups/ |
H A D | vktSubgroupsTestsUtils.cpp | 2462 void initializeMemory (Context& context, const Allocation& alloc, const subgroups::SSBOData& data) in initializeMemory() argument 2485 deUint8* ptr = reinterpret_cast<deUint8*>(alloc.getHostPtr()); in initializeMemory() 2502 deUint16* ptr = reinterpret_cast<deUint16*>(alloc.getHostPtr()); in initializeMemory() 2515 deUint32* ptr = reinterpret_cast<deUint32*>(alloc.getHostPtr()); in initializeMemory() 2533 deUint32* ptr = reinterpret_cast<deUint32*>(alloc.getHostPtr()); in initializeMemory() 2550 deUint64* ptr = reinterpret_cast<deUint64*>(alloc.getHostPtr()); in initializeMemory() 2563 deFloat16* ptr = reinterpret_cast<deFloat16*>(alloc.getHostPtr()); in initializeMemory() 2576 float* ptr = reinterpret_cast<float*>(alloc.getHostPtr()); in initializeMemory() 2589 double* ptr = reinterpret_cast<double*>(alloc.getHostPtr()); in initializeMemory() 2601 deUint32* ptr = reinterpret_cast<deUint32*>(alloc in initializeMemory() 2696 const Allocation& alloc = inputBuffers[i]->getAllocation(); makeTessellationEvaluationFrameBufferTestRequiredSubgroupSize() local 2770 const Allocation& alloc = vertexBuffer.getAllocation(); makeTessellationEvaluationFrameBufferTestRequiredSubgroupSize() local 2935 const Allocation& alloc = inputBuffers[i]->getAllocation(); makeGeometryFrameBufferTestRequiredSubgroupSize() local 3003 const Allocation& alloc = vertexBuffer.getAllocation(); makeGeometryFrameBufferTestRequiredSubgroupSize() local 3031 const Allocation& alloc = inputBuffers[ndx]->getAllocation(); makeGeometryFrameBufferTestRequiredSubgroupSize() local 3234 const Allocation& alloc = inputBuffers[ndx]->getAllocation(); allStagesRequiredSubgroupSize() local 3339 const Allocation& alloc = inputBuffers[ndx]->getAllocation(); allStagesRequiredSubgroupSize() local 3419 const Allocation& alloc = inputBuffers[index]->getAllocation(); allStagesRequiredSubgroupSize() local 3503 const Allocation& alloc = inputBuffers[i]->getAllocation(); makeVertexFrameBufferTestRequiredSubgroupSize() local 3541 const Allocation& alloc = inputBuffers[ndx]->getAllocation(); makeVertexFrameBufferTestRequiredSubgroupSize() local 3585 const Allocation& alloc = vertexBuffer.getAllocation(); makeVertexFrameBufferTestRequiredSubgroupSize() local 3613 const Allocation& alloc = inputBuffers[ndx]->getAllocation(); makeVertexFrameBufferTestRequiredSubgroupSize() local 3714 const Allocation& alloc = inputBuffers[i]->getAllocation(); makeFragmentFrameBufferTestRequiredSubgroupSize() local 3806 const Allocation& alloc = inputBuffers[i]->getAllocation(); makeFragmentFrameBufferTestRequiredSubgroupSize() local 4070 const Allocation& alloc = inputBuffers[i]->getAllocation(); makeComputeOrMeshTestRequiredSubgroupSize() local 5038 const Allocation& alloc = inputBuffers[ndx]->getAllocation(); allRayTracingStagesRequiredSubgroupSize() local [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/mesh_shader/ |
H A D | vktMeshShaderSmokeTestsEXT.cpp | 492 auto& alloc = m_context.getDefaultAllocator(); in iterate() local 510 BufferWithMemory vertexBuffer (vkd, device, alloc, vertexBufferInfo, MemoryRequirement::HostVisible); in iterate() 519 BufferWithMemory indexBuffer (vkd, device, alloc, indexBufferInfo, MemoryRequirement::HostVisible); in iterate() 549 ImageWithMemory colorBuffer(vkd, device, alloc, colorBufferInfo, MemoryRequirement::Any); in iterate() 615 BufferWithMemory outBuffer (vkd, device, alloc, outBufferInfo, MemoryRequirement::HostVisible); in iterate() 635 // Invalidate alloc. in iterate() 813 auto& alloc = context.getDefaultAllocator(); in testFullscreenGradient() local 843 ImageWithMemory colorBuffer(vkd, device, alloc, colorBufferInfo, MemoryRequirement::Any); in testFullscreenGradient() 900 BufferWithMemory outBuffer (vkd, device, alloc, outBufferInfo, MemoryRequirement::HostVisible); in testFullscreenGradient() 919 // Invalidate alloc in testFullscreenGradient() 1219 auto& alloc = m_context.getDefaultAllocator(); iterate() local 1711 auto& alloc = m_context.getDefaultAllocator(); iterate() local [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/mesh_shader/ |
H A D | vktMeshShaderSmokeTestsEXT.cpp | 488 auto& alloc = m_context.getDefaultAllocator(); in iterate() local 506 BufferWithMemory vertexBuffer (vkd, device, alloc, vertexBufferInfo, MemoryRequirement::HostVisible); in iterate() 515 BufferWithMemory indexBuffer (vkd, device, alloc, indexBufferInfo, MemoryRequirement::HostVisible); in iterate() 545 ImageWithMemory colorBuffer(vkd, device, alloc, colorBufferInfo, MemoryRequirement::Any); in iterate() 611 BufferWithMemory outBuffer (vkd, device, alloc, outBufferInfo, MemoryRequirement::HostVisible); in iterate() 631 // Invalidate alloc. in iterate() 807 auto& alloc = context.getDefaultAllocator(); in testFullscreenGradient() local 837 ImageWithMemory colorBuffer(vkd, device, alloc, colorBufferInfo, MemoryRequirement::Any); in testFullscreenGradient() 894 BufferWithMemory outBuffer (vkd, device, alloc, outBufferInfo, MemoryRequirement::HostVisible); in testFullscreenGradient() 913 // Invalidate alloc in testFullscreenGradient() 1211 auto& alloc = m_context.getDefaultAllocator(); iterate() local 1702 auto& alloc = m_context.getDefaultAllocator(); iterate() local [all...] |
/kernel/linux/linux-6.6/arch/s390/mm/ |
H A D | vmem.c | 554 pte_t *vmem_get_alloc_pte(unsigned long addr, bool alloc) in vmem_get_alloc_pte() argument 565 if (!alloc) in vmem_get_alloc_pte() 574 if (!alloc) in vmem_get_alloc_pte() 583 if (!alloc) in vmem_get_alloc_pte() 594 if (!alloc) in vmem_get_alloc_pte() 608 int __vmem_map_4k_page(unsigned long addr, unsigned long phys, pgprot_t prot, bool alloc) in __vmem_map_4k_page() argument 614 ptep = vmem_get_alloc_pte(addr, alloc); in __vmem_map_4k_page()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/ |
H A D | ec_bhf.c | 117 u8 *alloc; member 341 buf->alloc = dma_alloc_coherent(dev, buf->alloc_len, &buf->alloc_phys, in ec_bhf_alloc_dma_mem() 343 if (buf->alloc == NULL) { in ec_bhf_alloc_dma_mem() 349 buf->buf = buf->alloc + (buf->buf_phys - buf->alloc_phys); in ec_bhf_alloc_dma_mem() 426 dma_free_coherent(dev, priv->rx_buf.alloc_len, priv->rx_buf.alloc, in ec_bhf_open() 444 priv->tx_buf.alloc, priv->tx_buf.alloc_phys); in ec_bhf_stop() 446 priv->rx_buf.alloc, priv->rx_buf.alloc_phys); in ec_bhf_stop()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/ |
H A D | ec_bhf.c | 117 u8 *alloc; member 341 buf->alloc = dma_alloc_coherent(dev, buf->alloc_len, &buf->alloc_phys, in ec_bhf_alloc_dma_mem() 343 if (buf->alloc == NULL) { in ec_bhf_alloc_dma_mem() 349 buf->buf = buf->alloc + (buf->buf_phys - buf->alloc_phys); in ec_bhf_alloc_dma_mem() 426 dma_free_coherent(dev, priv->rx_buf.alloc_len, priv->rx_buf.alloc, in ec_bhf_open() 444 priv->tx_buf.alloc, priv->tx_buf.alloc_phys); in ec_bhf_stop() 446 priv->rx_buf.alloc, priv->rx_buf.alloc_phys); in ec_bhf_stop()
|
/third_party/skia/third_party/externals/swiftshader/third_party/marl/include/marl/ |
H A D | containers.h | 316 auto alloc = allocator->allocate(request); 317 auto grown = reinterpret_cast<TStorage*>(alloc.ptr); 324 allocation = alloc; 519 auto alloc = allocator->allocate(request); 521 auto entries = reinterpret_cast<Entry*>(alloc.ptr); 533 reinterpret_cast<uint8_t*>(alloc.ptr) + allocChainOffset); 535 allocChain->allocation = alloc;
|
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/ |
H A D | raw_hash_set_allocator_test.cc | 104 return o << "alloc(" << a.id_ << ")"; in operator <<() 135 static void construct(allocator_type* alloc, slot_type* slot, in construct() 138 *alloc, slot, std::forward<Args>(args)...); in construct() 142 static void destroy(allocator_type* alloc, slot_type* slot) { in destroy() 143 std::allocator_traits<allocator_type>::destroy(*alloc, slot); in destroy() 147 static void transfer(allocator_type* alloc, slot_type* new_slot, in transfer() 149 construct(alloc, new_slot, std::move(*old_slot)); in transfer() 150 destroy(alloc, old_slot); in transfer()
|
/kernel/linux/linux-5.10/drivers/iommu/ |
H A D | ioasid.c | 65 .alloc = default_alloc, 82 pr_err("Failed to alloc ioasid from %d to %d\n", min, max); in default_alloc() 119 return (a->free == b->free) && (a->alloc == b->alloc); in use_same_ops() 135 * Multiple allocators can share the same alloc() function, in this case the 324 id = active_allocator->ops->alloc(min, max, adata); in ioasid_alloc() 333 pr_err("Failed to alloc ioasid from %d\n", id); in ioasid_alloc()
|
/third_party/curl/src/ |
H A D | var.c | 104 bool alloc = FALSE; in varfunc() local 191 if(alloc) in varfunc() 200 alloc = TRUE; in varfunc() 202 if(alloc) in varfunc()
|
/third_party/mesa3d/src/intel/compiler/ |
H A D | brw_fs_register_coalesce.cpp | 86 if (v->alloc.sizes[inst->src[0].nr] > in is_coalesce_candidate() 87 v->alloc.sizes[inst->dst.nr]) in is_coalesce_candidate() 91 if (!is_coalescing_payload(v->alloc, inst)) { in is_coalesce_candidate() 216 src_size = alloc.sizes[inst->src[0].nr]; in register_coalesce()
|
/third_party/node/test/parallel/ |
H A D | test-buffer-writeint.js | 16 const buffer = Buffer.alloc(2); 53 const buffer = Buffer.alloc(4); 105 const buffer = Buffer.alloc(8); 182 const data = Buffer.alloc(8);
|
H A D | test-stream2-writable.js | 335 w.write(Buffer.alloc(0)); 352 w.write(Buffer.alloc(0)); 366 w.write(Buffer.alloc(0), function() { 380 w.end(Buffer.alloc(0));
|
H A D | test-string-decoder.js | 160 assert.strictEqual(decoder.write(Buffer.alloc(1)), ''); 161 assert.strictEqual(decoder.write(Buffer.alloc(20)), '\0'.repeat(10)); 162 assert.strictEqual(decoder.write(Buffer.alloc(48)), '\0'.repeat(24)); 206 () => new StringDecoder().write(Buffer.alloc((process.arch === 'ia32' ? 0x18ffffe8 : 0x1fffffe8) + 1).fill('a')),
|