/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/geometry/ |
H A D | vktGeometryTestsUtil.cpp | 428 void fillBuffer (const DeviceInterface& vk, const VkDevice device, const Allocation& alloc, const VkDeviceSize offset, const VkDeviceSize size, const VkFormat format, const tcu::Vec4& color) in fillBuffer() argument 438 deUint8* dstBase = static_cast<deUint8*>(alloc.getHostPtr()); in fillBuffer() 444 flushMappedMemoryRange(vk, device, alloc.getMemory(), alloc.getOffset() + offset, size); in fillBuffer() 447 void fillBuffer (const DeviceInterface& vk, const VkDevice device, const Allocation& alloc, const VkDeviceSize offset, const VkDeviceSize size, const VkFormat format, const float depth) in fillBuffer() argument 457 deUint8* dstBase = static_cast<deUint8*>(alloc.getHostPtr()); in fillBuffer() 463 flushMappedMemoryRange(vk, device, alloc.getMemory(), alloc.getOffset() + offset, size); in fillBuffer()
|
/third_party/skia/src/shaders/ |
H A D | SkShader.cpp | 79 SkShaderBase::Context* SkShaderBase::makeContext(const ContextRec& rec, SkArenaAlloc* alloc) const { in makeContext() 89 return this->onMakeContext(rec, alloc); in makeContext() 139 SkUpdatableShader* SkShaderBase::updatableShader(SkArenaAlloc* alloc) const { in updatableShader() 140 if (auto updatable = this->onUpdatableShader(alloc)) { in updatableShader() 144 return alloc->make<SkTransformShader>(*as_SB(this)); in updatableShader() 147 SkUpdatableShader* SkShaderBase::onUpdatableShader(SkArenaAlloc* alloc) const { in onUpdatableShader() 215 skvm::Uniforms* uniforms, SkArenaAlloc* alloc) const { in program() 235 uniforms,alloc)) { in program()
|
H A D | SkLocalMatrixShader.cpp | 43 const ContextRec& rec, SkArenaAlloc* alloc) const in onMakeContext() 53 return as_SB(fProxyShader)->makeContext(newRec, alloc); in onMakeContext() 84 skvm::Uniforms* uniforms, SkArenaAlloc* alloc) const { in onProgram() 91 uniforms,alloc); in onProgram() 162 skvm::Uniforms* uniforms, SkArenaAlloc* alloc) const override { 166 uniforms,alloc);
|
/third_party/skia/tests/ |
H A D | GrTextBlobTest.cpp | 231 auto exercise = [&](GrSubRunAllocator* alloc) { in DEF_TEST() 235 int* p = alloc->makePOD<int>(3); in DEF_TEST() 237 int* q = alloc->makePOD<int>(7); in DEF_TEST() 240 REPORTER_ASSERT(r, *alloc->makePOD<int>(3) == 3); in DEF_TEST() 241 auto foo = alloc->makeUnique<Foo>(3, 4.0f); in DEF_TEST() 247 alloc->makePODArray<int>(10); in DEF_TEST() 249 auto fooArray = alloc->makeUniqueArray<Foo>(10); in DEF_TEST() 254 alloc->makePOD<OddAlignment>(); in DEF_TEST()
|
/third_party/protobuf/js/compatibility_tests/v3.0.0/binary/ |
H A D | decoder_test.js | 73 var decoder = jspb.BinaryDecoder.alloc(encoder.end()); 128 var decoder = jspb.BinaryDecoder.alloc(encoder.end()); 157 jspb.BinaryDecoder.alloc().free(); 164 var decoder1 = jspb.BinaryDecoder.alloc(); 165 var decoder2 = jspb.BinaryDecoder.alloc(); 166 var decoder3 = jspb.BinaryDecoder.alloc(); 200 var decoder = jspb.BinaryDecoder.alloc(encoder.end()); 220 var decoder = jspb.BinaryDecoder.alloc([0, 1, 2]);
|
/third_party/protobuf/js/compatibility_tests/v3.1.0/binary/ |
H A D | decoder_test.js | 73 var decoder = jspb.BinaryDecoder.alloc(encoder.end()); 128 var decoder = jspb.BinaryDecoder.alloc(encoder.end()); 168 jspb.BinaryDecoder.alloc().free(); 175 var decoder1 = jspb.BinaryDecoder.alloc(); 176 var decoder2 = jspb.BinaryDecoder.alloc(); 177 var decoder3 = jspb.BinaryDecoder.alloc(); 211 var decoder = jspb.BinaryDecoder.alloc(encoder.end()); 231 var decoder = jspb.BinaryDecoder.alloc([0, 1, 2]);
|
/third_party/mesa3d/src/intel/compiler/ |
H A D | brw_fs_reg_allocate.cpp | 48 unsigned hw_reg_mapping[this->alloc.count + 1]; in assign_regs_trivial() 54 for (i = 1; i <= this->alloc.count; i++) { in assign_regs_trivial() 56 this->alloc.sizes[i - 1]); in assign_regs_trivial() 58 this->grf_used = hw_reg_mapping[this->alloc.count]; in assign_regs_trivial() 71 this->alloc.count = this->grf_used; in assign_regs_trivial() 617 int reg = BRW_MAX_GRF - fs->alloc.sizes[vgrf]; in setup_inst_interference() 636 reg -= fs->alloc.sizes[vgrf]; in setup_inst_interference() 662 node_count += fs->alloc.count; in build_interference_graph() 699 for (unsigned i = 0; i < fs->alloc.count; i++) { in build_interference_graph() 700 unsigned size = fs->alloc in build_interference_graph() [all...] |
/third_party/node/benchmark/assert/ |
H A D | deepequal-buffer.js | 14 const actual = Buffer.alloc(len); 15 const expected = Buffer.alloc(len); 16 const expectedWrong = Buffer.alloc(len + 1);
|
/kernel/linux/linux-5.10/lib/ |
H A D | idr.c | 358 * The IDA always uses a lock to alloc/free. If we add a 'test_bit' 386 struct ida_bitmap *bitmap, *alloc = NULL; in ida_alloc_range() local 416 bitmap = alloc; in ida_alloc_range() 420 goto alloc; in ida_alloc_range() 443 bitmap = alloc; in ida_alloc_range() 447 goto alloc; in ida_alloc_range() 459 if (bitmap != alloc) in ida_alloc_range() 460 kfree(alloc); in ida_alloc_range() 464 alloc: in ida_alloc_range() 466 alloc in ida_alloc_range() [all...] |
H A D | test_overflow.c | 490 #define alloc010(alloc, arg, sz) alloc(sz, alloc_GFP) 491 #define alloc011(alloc, arg, sz) alloc(sz, alloc_GFP, NUMA_NO_NODE) 492 #define alloc000(alloc, arg, sz) alloc(sz) 493 #define alloc001(alloc, arg, sz) alloc(sz, NUMA_NO_NODE) 494 #define alloc110(alloc, arg, sz) alloc(ar [all...] |
/kernel/linux/linux-6.6/lib/ |
H A D | idr.c | 358 * The IDA always uses a lock to alloc/free. If we add a 'test_bit' 386 struct ida_bitmap *bitmap, *alloc = NULL; in ida_alloc_range() local 416 bitmap = alloc; in ida_alloc_range() 420 goto alloc; in ida_alloc_range() 443 bitmap = alloc; in ida_alloc_range() 447 goto alloc; in ida_alloc_range() 459 if (bitmap != alloc) in ida_alloc_range() 460 kfree(alloc); in ida_alloc_range() 464 alloc: in ida_alloc_range() 466 alloc in ida_alloc_range() [all...] |
/third_party/mbedtls/library/ |
H A D | memory_buffer_alloc.c | 48 size_t alloc; member 92 hdr->alloc, hdr->size); in debug_header() 141 if (hdr->alloc > 1) { in verify_header() 143 mbedtls_fprintf(stderr, "FATAL: alloc has illegal value\n"); in verify_header() 253 if (cur->alloc != 0) { in buffer_alloc_calloc() 269 cur->alloc = 1; in buffer_alloc_calloc() 312 new->alloc = 0; in buffer_alloc_calloc() 340 cur->alloc = 1; in buffer_alloc_calloc() 396 if (hdr->alloc != 1) { in buffer_alloc_free() 404 hdr->alloc in buffer_alloc_free() [all...] |
/third_party/mesa3d/src/imagination/vulkan/ |
H A D | pvr_pipeline.c | 83 staging_buffer = vk_alloc2(&device->vk.alloc, in pvr_pds_coeff_program_create_and_upload() 114 vk_free2(&device->vk.alloc, allocator, staging_buffer); in pvr_pds_coeff_program_create_and_upload() 118 vk_free2(&device->vk.alloc, allocator, staging_buffer); in pvr_pds_coeff_program_create_and_upload() 158 staging_buffer = vk_alloc2(&device->vk.alloc, in pvr_pds_fragment_program_create_and_upload() 183 vk_free2(&device->vk.alloc, allocator, staging_buffer); in pvr_pds_fragment_program_create_and_upload() 187 vk_free2(&device->vk.alloc, allocator, staging_buffer); in pvr_pds_fragment_program_create_and_upload() 358 entries_buffer = vk_alloc2(&device->vk.alloc, in pvr_pds_vertex_attrib_program_create_and_upload() 378 staging_buffer = vk_alloc2(&device->vk.alloc, in pvr_pds_vertex_attrib_program_create_and_upload() 384 vk_free2(&device->vk.alloc, allocator, entries_buffer); in pvr_pds_vertex_attrib_program_create_and_upload() 398 entries_buffer = vk_realloc((!allocator) ? &device->vk.alloc in pvr_pds_vertex_attrib_program_create_and_upload() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ray_tracing/ |
H A D | vktRayTracingBarrierTests.cpp | 832 std::unique_ptr<BufferWithMemory> makeStd140Buffer (const DeviceInterface& vkd, VkDevice device, Allocator& alloc, VkBufferUsageFlags flags, MemoryRequirement memReq) in makeStd140Buffer() argument 837 buffer.reset(new BufferWithMemory(vkd, device, alloc, bufferCreateInfo, memReq)); in makeStd140Buffer() 873 std::unique_ptr<BufferWithMemory> makeStd430BufferImpl (const DeviceInterface& vkd, VkDevice device, Allocator& alloc, VkBufferUsageFlags flags, bool fill) in makeStd430BufferImpl() argument 878 buffer.reset(new BufferWithMemory(vkd, device, alloc, bufferCreateInfo, MemoryRequirement::HostVisible)); in makeStd430BufferImpl() 886 std::unique_ptr<BufferWithMemory> makeStd430Buffer (const DeviceInterface& vkd, VkDevice device, Allocator& alloc, VkBufferUsageFlags flags) in makeStd430Buffer() argument 888 return makeStd430BufferImpl(vkd, device, alloc, flags, false); in makeStd430Buffer() 891 std::unique_ptr<BufferWithMemory> makeStd430BufferFilled (const DeviceInterface& vkd, VkDevice device, Allocator& alloc, VkBufferUsageFlags flags) in makeStd430BufferFilled() argument 893 return makeStd430BufferImpl(vkd, device, alloc, flags, true); in makeStd430BufferFilled() 952 void updateDescriptorSet (const DeviceInterface& vkd, VkDevice device, VkCommandBuffer cmdBuffer, Allocator& alloc, VkDescriptorType resourceType, Stage stage, StageData& stageData, BufferWithMemory* resourceBuffer, VkImageView resourceImgView, VkImageLayout layout, bool asNeeded, BufferWithMemory* verificationBuffer) in updateDescriptorSet() argument 977 stageData.bottomLevelAccelerationStructure->createAndBuild(vkd, device, cmdBuffer, alloc); in updateDescriptorSet() 1043 createGraphicsPipelineObjects(const DeviceInterface& vkd, VkDevice device, Allocator& alloc, Context& context, const char* vertShaderName, const char* fragShaderName, StageData& stageData) createGraphicsPipelineObjects() argument 1104 createRayTracingPipelineData(const DeviceInterface& vkd, VkDevice device, Allocator& alloc, Context& context, Stage stage, StageData& stageData, deUint32 shaderGroupHandleSize, deUint32 shaderGroupBaseAlignment, const char* rgenAuxName, const char* rgenName, const char* isectName, const char* ahitName, const char* chitName, const char* missName, const char* callableName) createRayTracingPipelineData() argument 1219 auto& alloc = m_context.getDefaultAllocator(); iterate() local [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ray_tracing/ |
H A D | vktRayTracingBarrierTests.cpp | 832 std::unique_ptr<BufferWithMemory> makeStd140Buffer (const DeviceInterface& vkd, VkDevice device, Allocator& alloc, VkBufferUsageFlags flags, MemoryRequirement memReq) in makeStd140Buffer() argument 837 buffer.reset(new BufferWithMemory(vkd, device, alloc, bufferCreateInfo, memReq)); in makeStd140Buffer() 873 std::unique_ptr<BufferWithMemory> makeStd430BufferImpl (const DeviceInterface& vkd, VkDevice device, Allocator& alloc, VkBufferUsageFlags flags, bool fill) in makeStd430BufferImpl() argument 878 buffer.reset(new BufferWithMemory(vkd, device, alloc, bufferCreateInfo, MemoryRequirement::HostVisible)); in makeStd430BufferImpl() 886 std::unique_ptr<BufferWithMemory> makeStd430Buffer (const DeviceInterface& vkd, VkDevice device, Allocator& alloc, VkBufferUsageFlags flags) in makeStd430Buffer() argument 888 return makeStd430BufferImpl(vkd, device, alloc, flags, false); in makeStd430Buffer() 891 std::unique_ptr<BufferWithMemory> makeStd430BufferFilled (const DeviceInterface& vkd, VkDevice device, Allocator& alloc, VkBufferUsageFlags flags) in makeStd430BufferFilled() argument 893 return makeStd430BufferImpl(vkd, device, alloc, flags, true); in makeStd430BufferFilled() 952 void updateDescriptorSet (const DeviceInterface& vkd, VkDevice device, VkCommandBuffer cmdBuffer, Allocator& alloc, VkDescriptorType resourceType, Stage stage, StageData& stageData, BufferWithMemory* resourceBuffer, VkImageView resourceImgView, VkImageLayout layout, bool asNeeded, BufferWithMemory* verificationBuffer) in updateDescriptorSet() argument 977 stageData.bottomLevelAccelerationStructure->createAndBuild(vkd, device, cmdBuffer, alloc); in updateDescriptorSet() 1043 createGraphicsPipelineObjects(const DeviceInterface& vkd, VkDevice device, Allocator& alloc, Context& context, const char* vertShaderName, const char* fragShaderName, StageData& stageData) createGraphicsPipelineObjects() argument 1104 createRayTracingPipelineData(const DeviceInterface& vkd, VkDevice device, Allocator& alloc, Context& context, Stage stage, StageData& stageData, deUint32 shaderGroupHandleSize, deUint32 shaderGroupBaseAlignment, const char* rgenAuxName, const char* rgenName, const char* isectName, const char* ahitName, const char* chitName, const char* missName, const char* callableName) createRayTracingPipelineData() argument 1219 auto& alloc = m_context.getDefaultAllocator(); iterate() local [all...] |
/third_party/glslang/glslang/MachineIndependent/ |
H A D | PoolAlloc.cpp | 295 for (const TAllocation* alloc = this; alloc != nullptr; alloc = alloc->prevAlloc) in checkAllocList() 296 alloc->check(); in checkAllocList()
|
/third_party/node/test/parallel/ |
H A D | test-fs-promises-file-handle-read.js | 35 await read(fileHandle, Buffer.alloc(11), 0, 11, 0, options); 42 let streamData = Buffer.alloc(0); 59 await read(fileHandle, Buffer.alloc(1), 0, 1, pos, options); 83 const buf = Buffer.alloc(len); 91 const buf = Buffer.alloc(4);
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a2xx/ |
H A D | ir2_ra.c | 159 if (reg->comp[i].alloc) in ra_reg() 188 reg->comp[i].alloc = true; in ra_reg() 213 comp->alloc = false; in ra_src_free() 228 if (!reg->comp[i].alloc) /* XXX should never be true? */ in ra_block_free() 232 reg->comp[i].alloc = false; in ra_block_free()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/ |
H A D | skia_texture_info.cpp | 38 GrVkAlloc alloc; in ConvertToGrBackendVKTexture() local 39 alloc.fMemory = vkInfo->vkAlloc.memory; in ConvertToGrBackendVKTexture() 40 alloc.fOffset = vkInfo->vkAlloc.offset; in ConvertToGrBackendVKTexture() 41 alloc.fSize = vkInfo->vkAlloc.size; in ConvertToGrBackendVKTexture() 42 alloc.fFlags = vkInfo->vkAlloc.flags; in ConvertToGrBackendVKTexture() 43 imageInfo.fAlloc = alloc; in ConvertToGrBackendVKTexture()
|
/third_party/NuttX/drivers/usbdev/gadget/ |
H A D | dfu.c | 363 FAR struct dfu_driver_s *alloc; in usbclass_classobject() local 368 alloc = malloc(sizeof(struct dfu_driver_s)); in usbclass_classobject() 369 if (alloc == NULL) in usbclass_classobject() 374 *classdev = &alloc->drvr; in usbclass_classobject() 376 alloc->drvr.speed = USB_SPEED_FULL; in usbclass_classobject() 377 alloc->drvr.ops = &g_dfu_driverops; in usbclass_classobject()
|
/third_party/node/test/common/ |
H A D | tls.js | 57 const length = Buffer.alloc(2); 77 const illegal_handshake = Buffer.alloc(5); 120 const write_seq = Buffer.alloc(8); 127 const length = Buffer.alloc(2); 141 const handshake_header = Buffer.alloc(4); 153 const result = Buffer.alloc(size);
|
/third_party/skia/third_party/externals/abseil-cpp/absl/container/ |
H A D | flat_hash_map.h | 561 static void construct(Allocator* alloc, slot_type* slot, Args&&... args) { in construct() 562 slot_policy::construct(alloc, slot, std::forward<Args>(args)...); in construct() 566 static void destroy(Allocator* alloc, slot_type* slot) { in destroy() 567 slot_policy::destroy(alloc, slot); in destroy() 571 static void transfer(Allocator* alloc, slot_type* new_slot, in transfer() 573 slot_policy::transfer(alloc, new_slot, old_slot); in transfer()
|
/third_party/mesa3d/src/virtio/vulkan/ |
H A D | vn_android.c | 400 const VkAllocationCallbacks *alloc, in vn_android_get_modifier_properties() 428 alloc, sizeof(*mod_props) * mod_prop_list.drmFormatModifierCount, in vn_android_get_modifier_properties() 445 vk_free(alloc, mod_props); in vn_android_get_modifier_properties() 469 const VkAllocationCallbacks *alloc, in vn_android_get_image_builder() 492 dev, create_info->format, buf_props.modifier, alloc, &mod_props); in vn_android_get_image_builder() 562 const VkAllocationCallbacks *alloc, in vn_android_image_from_anb() 602 anb_info->handle, alloc, &builder); in vn_android_image_from_anb() 607 result = vn_image_create(dev, &builder.create, alloc, &img); in vn_android_image_from_anb() 673 result = vn_AllocateMemory(device, &memory_info, alloc, &memory); in vn_android_image_from_anb() 703 vn_DestroyImage(device, image, alloc); in vn_android_image_from_anb() 397 vn_android_get_modifier_properties(struct vn_device *dev, VkFormat format, uint64_t modifier, const VkAllocationCallbacks *alloc, VkDrmFormatModifierPropertiesEXT *out_props) vn_android_get_modifier_properties() argument 466 vn_android_get_image_builder(struct vn_device *dev, const VkImageCreateInfo *create_info, const native_handle_t *handle, const VkAllocationCallbacks *alloc, struct vn_android_image_builder *out_builder) vn_android_get_image_builder() argument 559 vn_android_image_from_anb(struct vn_device *dev, const VkImageCreateInfo *create_info, const VkNativeBufferANDROID *anb_info, const VkAllocationCallbacks *alloc, struct vn_image **out_img) vn_android_image_from_anb() argument 809 const VkAllocationCallbacks *alloc = &dev->base.base.alloc; vn_QueueSignalReleaseImageANDROID() local 1107 vn_android_image_from_ahb(struct vn_device *dev, const VkImageCreateInfo *create_info, const VkAllocationCallbacks *alloc, struct vn_image **out_img) vn_android_image_from_ahb() argument 1133 vn_android_device_import_ahb(struct vn_device *dev, struct vn_device_memory *mem, const VkMemoryAllocateInfo *alloc_info, const VkAllocationCallbacks *alloc, struct AHardwareBuffer *ahb, bool internal_ahb) vn_android_device_import_ahb() argument 1266 vn_android_device_allocate_ahb(struct vn_device *dev, struct vn_device_memory *mem, const VkMemoryAllocateInfo *alloc_info, const VkAllocationCallbacks *alloc) vn_android_device_allocate_ahb() argument 1422 vn_android_buffer_from_ahb(struct vn_device *dev, const VkBufferCreateInfo *create_info, const VkAllocationCallbacks *alloc, struct vn_buffer **out_buf) vn_android_buffer_from_ahb() argument [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/ |
H A D | btree_container.h | 71 const allocator_type &alloc = allocator_type()) in btree_container() 72 : tree_(comp, alloc) {} in btree_container() 73 explicit btree_container(const allocator_type &alloc) in btree_container() argument 74 : tree_(key_compare(), alloc) {} in btree_container() 80 btree_container(const btree_container &other, const allocator_type &alloc) in btree_container() argument 81 : tree_(other.tree_, alloc) {} in btree_container() 85 btree_container(btree_container &&other, const allocator_type &alloc) in btree_container() argument 86 : tree_(std::move(other.tree_), alloc) {} in btree_container() 266 const allocator_type &alloc = allocator_type()) in btree_set_container() 267 : super_type(comp, alloc) { in btree_set_container() 271 btree_set_container(InputIterator b, InputIterator e, const allocator_type &alloc) btree_set_container() argument 280 btree_set_container(std::initializer_list<init_type> init, const allocator_type &alloc) btree_set_container() argument 566 btree_multiset_container(InputIterator b, InputIterator e, const allocator_type &alloc) btree_multiset_container() argument 575 btree_multiset_container(std::initializer_list<init_type> init, const allocator_type &alloc) btree_multiset_container() argument [all...] |
/third_party/python/Objects/ |
H A D | bytearrayobject.c | 111 Py_ssize_t alloc; in PyByteArray_FromStringAndSize() local 119 /* Prevent buffer overflow when setting alloc to size+1. */ in PyByteArray_FromStringAndSize() 130 alloc = 0; in PyByteArray_FromStringAndSize() 133 alloc = size + 1; in PyByteArray_FromStringAndSize() 134 new->ob_bytes = PyObject_Malloc(alloc); in PyByteArray_FromStringAndSize() 144 new->ob_alloc = alloc; in PyByteArray_FromStringAndSize() 176 size_t alloc = (size_t) obj->ob_alloc; in PyByteArray_Resize() local 182 assert(logical_offset <= alloc); in PyByteArray_Resize() 192 if (size + logical_offset + 1 <= alloc) { in PyByteArray_Resize() 195 if (size < alloc / in PyByteArray_Resize() [all...] |