Home
last modified time | relevance | path

Searched refs:alloc (Results 1 – 25 of 1759) sorted by relevance

12345678910>>...71

/third_party/flutter/skia/src/gpu/vk/
DGrVkMemory.cpp37 GrVkAlloc* alloc) { in AllocAndBindBufferMemory() argument
62 allocator->getAllocInfo(memory, alloc); in AllocAndBindBufferMemory()
66 alloc->fMemory, in AllocAndBindBufferMemory()
67 alloc->fOffset)); in AllocAndBindBufferMemory()
69 FreeBufferMemory(gpu, type, *alloc); in AllocAndBindBufferMemory()
77 const GrVkAlloc& alloc) { in FreeBufferMemory() argument
78 if (alloc.fBackendMemory) { in FreeBufferMemory()
80 allocator->freeMemory(alloc.fBackendMemory); in FreeBufferMemory()
82 GR_VK_CALL(gpu->vkInterface(), FreeMemory(gpu->device(), alloc.fMemory, nullptr)); in FreeBufferMemory()
91 GrVkAlloc* alloc) { in AllocAndBindImageMemory() argument
[all …]
/third_party/skia/src/gpu/vk/
DGrVkMemory.cpp19 GrVkAlloc* alloc) { in AllocAndBindBufferMemory() argument
38 allocator->getAllocInfo(memory, alloc); in AllocAndBindBufferMemory()
42 GR_VK_CALL_RESULT(gpu, err, BindBufferMemory(gpu->device(), buffer, alloc->fMemory, in AllocAndBindBufferMemory()
43 alloc->fOffset)); in AllocAndBindBufferMemory()
45 FreeBufferMemory(gpu, *alloc); in AllocAndBindBufferMemory()
52 void GrVkMemory::FreeBufferMemory(const GrVkGpu* gpu, const GrVkAlloc& alloc) { in FreeBufferMemory() argument
53 SkASSERT(alloc.fBackendMemory); in FreeBufferMemory()
55 allocator->freeMemory(alloc.fBackendMemory); in FreeBufferMemory()
61 GrVkAlloc* alloc) { in AllocAndBindImageMemory() argument
92 allocator->getAllocInfo(memory, alloc); in AllocAndBindImageMemory()
[all …]
DGrVkMemory.h26 GrVkAlloc* alloc);
27 void FreeBufferMemory(const GrVkGpu* gpu, const GrVkAlloc& alloc);
32 GrVkAlloc* alloc);
33 void FreeImageMemory(const GrVkGpu* gpu, const GrVkAlloc& alloc);
39 void* MapAlloc(GrVkGpu* gpu, const GrVkAlloc& alloc);
40 void UnmapAlloc(const GrVkGpu* gpu, const GrVkAlloc& alloc);
45 void FlushMappedAlloc(GrVkGpu* gpu, const GrVkAlloc& alloc, VkDeviceSize offset,
47 void InvalidateMappedAlloc(GrVkGpu* gpu, const GrVkAlloc& alloc, VkDeviceSize offset,
/third_party/gstreamer/gstplugins_bad/sys/kms/
Dgstkmsallocator.c99 check_fd (GstKMSAllocator * alloc) in check_fd() argument
101 return alloc->priv->fd > -1; in check_fd()
257 GstKMSAllocator *alloc; in gst_kms_allocator_free() local
260 alloc = GST_KMS_ALLOCATOR (allocator); in gst_kms_allocator_free()
263 gst_kms_allocator_memory_reset (alloc, kmsmem); in gst_kms_allocator_free()
271 GstKMSAllocator *alloc; in gst_kms_allocator_set_property() local
273 alloc = GST_KMS_ALLOCATOR (object); in gst_kms_allocator_set_property()
279 alloc->priv->fd = dup (fd); in gst_kms_allocator_set_property()
292 GstKMSAllocator *alloc; in gst_kms_allocator_get_property() local
294 alloc = GST_KMS_ALLOCATOR (object); in gst_kms_allocator_get_property()
[all …]
/third_party/mesa3d/src/vulkan/util/
Dvk_alloc.h44 vk_alloc(const VkAllocationCallbacks *alloc, in vk_alloc() argument
48 return alloc->pfnAllocation(alloc->pUserData, size, align, scope); in vk_alloc()
52 vk_zalloc(const VkAllocationCallbacks *alloc, in vk_zalloc() argument
56 void *mem = vk_alloc(alloc, size, align, scope); in vk_zalloc()
66 vk_realloc(const VkAllocationCallbacks *alloc, in vk_realloc() argument
70 return alloc->pfnReallocation(alloc->pUserData, ptr, size, align, scope); in vk_realloc()
74 vk_free(const VkAllocationCallbacks *alloc, void *data) in vk_free() argument
79 alloc->pfnFree(alloc->pUserData, data); in vk_free()
83 vk_strdup(const VkAllocationCallbacks *alloc, const char *s, in vk_strdup() argument
90 char *copy = (char *)vk_alloc(alloc, size, 1, scope); in vk_strdup()
[all …]
/third_party/node/deps/npm/node_modules/safer-buffer/
Dtests.js50 t.equal(typeof impl.Buffer.alloc, 'function', 'alloc')
151 t.ok(buffer.Buffer.isBuffer(impl.Buffer.alloc(0)))
152 t.ok(buffer.Buffer.isBuffer(impl.Buffer.alloc(0, 10)))
153 t.ok(buffer.Buffer.isBuffer(impl.Buffer.alloc(0, 'a')))
154 t.ok(buffer.Buffer.isBuffer(impl.Buffer.alloc(10)))
155 t.ok(buffer.Buffer.isBuffer(impl.Buffer.alloc(10, 'x')))
156 t.ok(buffer.Buffer.isBuffer(impl.Buffer.alloc(9, 'ab')))
174 t.equal(impl.Buffer.alloc(0).constructor, buffer.Buffer)
175 t.equal(impl.Buffer.alloc(0, 10).constructor, buffer.Buffer)
176 t.equal(impl.Buffer.alloc(0, 'a').constructor, buffer.Buffer)
[all …]
/third_party/protobuf/objectivec/Tests/
DGPBUnknownFieldSetTest.m64 GPBUnknownFieldSet *set = [[[GPBUnknownFieldSet alloc] init] autorelease];
65 GPBUnknownField* field = [[[GPBUnknownField alloc] initWithNumber:0] autorelease];
72 GPBUnknownFieldSet *set1 = [[[GPBUnknownFieldSet alloc] init] autorelease];
75 GPBUnknownFieldSet *set2 = [[[GPBUnknownFieldSet alloc] init] autorelease];
81 GPBUnknownField* field1 = [[[GPBUnknownField alloc] initWithNumber:1] autorelease];
85 GPBUnknownField* field2 = [[[GPBUnknownField alloc] initWithNumber:1] autorelease];
93 field1 = [[[GPBUnknownField alloc] initWithNumber:2] autorelease];
97 field2 = [[[GPBUnknownField alloc] initWithNumber:2] autorelease];
105 field1 = [[[GPBUnknownField alloc] initWithNumber:3] autorelease];
109 field2 = [[[GPBUnknownField alloc] initWithNumber:3] autorelease];
[all …]
/third_party/mesa3d/src/virtio/vulkan/
Dvn_pipeline.c30 const VkAllocationCallbacks *alloc = in vn_CreateShaderModule() local
31 pAllocator ? pAllocator : &dev->base.base.alloc; in vn_CreateShaderModule()
34 vk_zalloc(alloc, sizeof(*mod), VN_DEFAULT_ALIGN, in vn_CreateShaderModule()
57 const VkAllocationCallbacks *alloc = in vn_DestroyShaderModule() local
58 pAllocator ? pAllocator : &dev->base.base.alloc; in vn_DestroyShaderModule()
66 vk_free(alloc, mod); in vn_DestroyShaderModule()
78 const VkAllocationCallbacks *alloc = in vn_CreatePipelineLayout() local
79 pAllocator ? pAllocator : &dev->base.base.alloc; in vn_CreatePipelineLayout()
82 vk_zalloc(alloc, sizeof(*layout), VN_DEFAULT_ALIGN, in vn_CreatePipelineLayout()
107 const VkAllocationCallbacks *alloc = in vn_DestroyPipelineLayout() local
[all …]
Dvn_image.c113 const VkAllocationCallbacks *alloc) in vn_image_deferred_info_init() argument
118 info = vk_zalloc(alloc, sizeof(*info), VN_DEFAULT_ALIGN, in vn_image_deferred_info_init()
145 alloc, size, VN_DEFAULT_ALIGN, VK_SYSTEM_ALLOCATION_SCOPE_OBJECT); in vn_image_deferred_info_init()
147 vk_free(alloc, info); in vn_image_deferred_info_init()
184 const VkAllocationCallbacks *alloc) in vn_image_deferred_info_fini() argument
190 vk_free(alloc, (void *)img->deferred_info->list.pViewFormats); in vn_image_deferred_info_fini()
192 vk_free(alloc, img->deferred_info); in vn_image_deferred_info_fini()
220 const VkAllocationCallbacks *alloc, in vn_image_create() argument
226 img = vk_zalloc(alloc, sizeof(*img), VN_DEFAULT_ALIGN, in vn_image_create()
236 vk_free(alloc, img); in vn_image_create()
[all …]
Dvn_buffer.c84 const VkAllocationCallbacks *alloc = &dev->base.base.alloc; in vn_buffer_cache_entries_create() local
92 entries = vk_zalloc(alloc, sizeof(*entries) * entry_count, in vn_buffer_cache_entries_create()
116 result = vn_CreateBuffer(dev_handle, &local_info, alloc, &buf_handle); in vn_buffer_cache_entries_create()
118 vk_free(alloc, entries); in vn_buffer_cache_entries_create()
127 vk_free(alloc, entries); in vn_buffer_cache_entries_create()
137 vn_DestroyBuffer(dev_handle, buf_handle, alloc); in vn_buffer_cache_entries_create()
149 const VkAllocationCallbacks *alloc = &dev->base.base.alloc; in vn_buffer_cache_entries_destroy() local
152 vk_free(alloc, entries); in vn_buffer_cache_entries_destroy()
159 const VkAllocationCallbacks *alloc = &dev->base.base.alloc; in vn_buffer_get_max_buffer_size() local
185 if (vn_CreateBuffer(dev_handle, &create_info, alloc, &buf_handle) == in vn_buffer_get_max_buffer_size()
[all …]
Dvn_render_pass.c120 const VkAllocationCallbacks *alloc) in vn_render_pass_create() argument
124 alloc, in vn_render_pass_create()
148 const VkAllocationCallbacks *alloc = in vn_CreateRenderPass() local
149 pAllocator ? pAllocator : &dev->base.base.alloc; in vn_CreateRenderPass()
157 vn_render_pass_create(dev, acquire_count, release_count, alloc); in vn_CreateRenderPass()
164 vk_alloc(alloc, sizeof(*temp_atts) * pCreateInfo->attachmentCount, in vn_CreateRenderPass()
167 vk_free(alloc, pass); in vn_CreateRenderPass()
184 vk_free(alloc, (void *)local_pass_info.pAttachments); in vn_CreateRenderPass()
198 const VkAllocationCallbacks *alloc = in vn_CreateRenderPass2() local
199 pAllocator ? pAllocator : &dev->base.base.alloc; in vn_CreateRenderPass2()
[all …]
Dvn_feedback.c40 const VkAllocationCallbacks *alloc, in vn_feedback_buffer_create() argument
50 feedback_buf = vk_zalloc(alloc, sizeof(*feedback_buf), VN_DEFAULT_ALIGN, in vn_feedback_buffer_create()
68 result = vn_CreateBuffer(dev_handle, &buf_create_info, alloc, in vn_feedback_buffer_create()
89 result = vn_AllocateMemory(dev_handle, &mem_alloc_info, alloc, in vn_feedback_buffer_create()
114 vn_FreeMemory(dev_handle, feedback_buf->memory, alloc); in vn_feedback_buffer_create()
117 vn_DestroyBuffer(dev_handle, feedback_buf->buffer, alloc); in vn_feedback_buffer_create()
120 vk_free(alloc, feedback_buf); in vn_feedback_buffer_create()
128 const VkAllocationCallbacks *alloc) in vn_feedback_buffer_destroy() argument
133 vn_FreeMemory(dev_handle, feedback_buf->memory, alloc); in vn_feedback_buffer_destroy()
134 vn_DestroyBuffer(dev_handle, feedback_buf->buffer, alloc); in vn_feedback_buffer_destroy()
[all …]
Dvn_device.c80 const VkAllocationCallbacks *alloc = &dev->base.base.alloc; in vn_device_init_queues() local
87 vk_zalloc(alloc, sizeof(*queues) * count, VN_DEFAULT_ALIGN, in vn_device_init_queues()
103 vk_free(alloc, queues); in vn_device_init_queues()
122 const VkAllocationCallbacks *alloc = &dev->base.base.alloc; in vn_device_queue_family_init() local
127 alloc, sizeof(*queue_families) * create_info->queueCreateInfoCount, in vn_device_queue_family_init()
156 vk_free(&dev->base.base.alloc, dev->queue_families); in vn_device_queue_family_fini()
178 const VkAllocationCallbacks *alloc, in merge_extension_names() argument
183 vk_alloc(alloc, sizeof(*merged) * (ext_count + extra_count), in merge_extension_names()
206 const VkAllocationCallbacks *alloc, in vn_device_fix_create_info() argument
308 extra_count, block_exts, block_count, alloc, in vn_device_fix_create_info()
[all …]
Dvn_descriptor_set.c27 const VkAllocationCallbacks *alloc = &dev->base.base.alloc; in vn_descriptor_set_layout_destroy() local
33 vk_free(alloc, layout); in vn_descriptor_set_layout_destroy()
55 const VkAllocationCallbacks *alloc) in vn_descriptor_set_destroy() argument
62 vk_free(alloc, set); in vn_descriptor_set_destroy()
195 const VkAllocationCallbacks *alloc = &dev->base.base.alloc; in vn_CreateDescriptorSetLayout() local
206 local_bindings = vk_alloc(alloc, binding_size, VN_DEFAULT_ALIGN, in vn_CreateDescriptorSetLayout()
237 vk_zalloc(alloc, layout_size, VN_DEFAULT_ALIGN, in vn_CreateDescriptorSetLayout()
240 vk_free(alloc, local_bindings); in vn_CreateDescriptorSetLayout()
249 vk_free(alloc, local_bindings); in vn_CreateDescriptorSetLayout()
281 const VkAllocationCallbacks *alloc = in vn_CreateDescriptorPool() local
[all …]
/third_party/flutter/skia/tests/
DResourceAllocatorTest.cpp80 GrResourceAllocator alloc(resourceProvider, &deinstantiateTracker SkDEBUGCODE(, 1)); in overlap_test()
82 alloc.addInterval(p1.get(), 0, 4, GrResourceAllocator::ActualUse::kYes); in overlap_test()
83 alloc.incOps(); in overlap_test()
84 alloc.addInterval(p2.get(), 1, 2, GrResourceAllocator::ActualUse::kYes); in overlap_test()
85 alloc.incOps(); in overlap_test()
86 alloc.markEndOfOpList(0); in overlap_test()
88 alloc.determineRecyclability(); in overlap_test()
92 alloc.assign(&startIndex, &stopIndex, &error); in overlap_test()
107 GrResourceAllocator alloc(resourceProvider, &deinstantiateTracker SkDEBUGCODE(, 1)); in non_overlap_test()
109 alloc.incOps(); in non_overlap_test()
[all …]
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/d3d11/
Dgstd3d11bufferpool.cpp48 GstD3D11Allocator *alloc[GST_VIDEO_MAX_PLANES]; member
107 for (i = 0; i < G_N_ELEMENTS (priv->alloc); i++) { in gst_d3d11_buffer_pool_clear_allocator()
108 if (priv->alloc[i]) { in gst_d3d11_buffer_pool_clear_allocator()
109 gst_d3d11_allocator_set_active (priv->alloc[i], FALSE); in gst_d3d11_buffer_pool_clear_allocator()
110 gst_clear_object (&priv->alloc[i]); in gst_d3d11_buffer_pool_clear_allocator()
254 GstD3D11Allocator *alloc; in gst_d3d11_buffer_pool_set_config() local
263 alloc = in gst_d3d11_buffer_pool_set_config()
266 if (!gst_d3d11_allocator_set_active (alloc, TRUE)) { in gst_d3d11_buffer_pool_set_config()
268 gst_object_unref (alloc); in gst_d3d11_buffer_pool_set_config()
272 pool_alloc = GST_D3D11_POOL_ALLOCATOR (alloc); in gst_d3d11_buffer_pool_set_config()
[all …]
/third_party/musl/libc-test/src/regression/
Dflockfile-list.c21 } alloc[100]; variable
29 if (idx >= length(alloc)) in malloc()
32 alloc[idx].pos = pos; in malloc()
33 alloc[idx].n = n; in malloc()
53 if (alloc[i].pos == pos) in findidx()
62 size_t m = alloc[findidx(p)].n; in realloc()
72 memset(p, 42, alloc[i].n); in free()
73 alloc[i].freed = 1; in free()
79 if (alloc[i].freed) in checkfreed()
80 for (size_t j=0; j<alloc[i].n; j++) in checkfreed()
[all …]
/third_party/node/test/parallel/
Dtest-buffer-compare.js6 const b = Buffer.alloc(1, 'a');
7 const c = Buffer.alloc(1, 'c');
8 const d = Buffer.alloc(2, 'aa');
27 assert.strictEqual(Buffer.compare(Buffer.alloc(0), Buffer.alloc(0)), 0);
28 assert.strictEqual(Buffer.compare(Buffer.alloc(0), Buffer.alloc(1)), -1);
29 assert.strictEqual(Buffer.compare(Buffer.alloc(1), Buffer.alloc(0)), 1);
31 assert.throws(() => Buffer.compare(Buffer.alloc(1), 'abc'), {
36 assert.throws(() => Buffer.compare('abc', Buffer.alloc(1)), {
42 assert.throws(() => Buffer.alloc(1).compare('abc'), {
Dtest-crypto-cipheriv-decipheriv.js167 crypto.createCipheriv('aes-128-ecb', Buffer.alloc(16), Buffer.alloc(0));
168 crypto.createCipheriv('aes-128-ecb', Buffer.alloc(16), null);
175 () => crypto.createCipheriv('aes-128-ecb', Buffer.alloc(16),
176 Buffer.alloc(n)),
181 crypto.createCipheriv('aes-128-cbc', Buffer.alloc(16), Buffer.alloc(16));
187 () => crypto.createCipheriv('aes-128-cbc', Buffer.alloc(16),
188 Buffer.alloc(n)),
194 crypto.createCipheriv('aes-128-cbc', Buffer.alloc(16), null);
199 () => crypto.createCipheriv('aes-128-gcm', Buffer.alloc(16),
200 Buffer.alloc(0)),
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/
Dunordered_set_constructor_test.h79 A alloc(0); in TYPED_TEST_P()
80 TypeParam m(123, hasher, equal, alloc); in TYPED_TEST_P()
83 EXPECT_EQ(m.get_allocator(), alloc); in TYPED_TEST_P()
91 EXPECT_EQ(cm.get_allocator(), alloc); in TYPED_TEST_P()
120 A alloc(0);
121 TypeParam m(123, alloc);
122 EXPECT_EQ(m.get_allocator(), alloc);
140 A alloc(0);
141 TypeParam m(123, hasher, alloc);
143 EXPECT_EQ(m.get_allocator(), alloc);
[all …]
Dunordered_map_constructor_test.h78 A alloc(0); in TYPED_TEST_P()
79 TypeParam m(123, hasher, equal, alloc); in TYPED_TEST_P()
82 EXPECT_EQ(m.get_allocator(), alloc); in TYPED_TEST_P()
111 A alloc(0);
112 TypeParam m(123, alloc);
113 EXPECT_EQ(m.get_allocator(), alloc);
131 A alloc(0);
132 TypeParam m(123, hasher, alloc);
134 EXPECT_EQ(m.get_allocator(), alloc);
161 A alloc(0);
[all …]
Dcontainer_memory_test.cc41 std::allocator<int8_t> alloc; in TEST() local
42 void* mem = Allocate<2>(&alloc, 3); in TEST()
45 Deallocate<2>(&alloc, mem, 3); in TEST()
49 std::allocator<int64_t> alloc; in TEST() local
50 void* mem = Allocate<2>(&alloc, 3); in TEST()
53 Deallocate<2>(&alloc, mem, 3); in TEST()
80 TypeCountingAllocator<int> alloc; in TEST() local
81 void* mem = Allocate<1>(&alloc, 1); in TEST()
84 Deallocate<1>(&alloc, mem, 1); in TEST()
93 Fixture() { ptr_ = std::allocator_traits<Alloc>::allocate(*alloc(), 1); } in Fixture()
[all …]
/third_party/rust/crates/nom/
DCargo.toml32 alloc = []
33 std = ["alloc", "memchr/std", "minimal-lexical/std"]
50 features = ["alloc", "std", "docsrs"]
63 required-features = ["alloc"]
76 required-features = ["alloc"]
80 required-features = ["alloc"]
84 required-features = ["alloc"]
91 required-features = ["alloc"]
95 required-features = ["alloc"]
105 required-features = ["alloc"]
[all …]
/third_party/mesa3d/src/intel/compiler/
Dbrw_vec4_live_variables.h105 const simple_allocator &alloc; variable
114 var_from_reg(const simple_allocator &alloc, const src_reg &reg,
117 assert(reg.file == VGRF && reg.nr < alloc.count && c < 4);
120 8 * alloc.offsets[reg.nr] + reg.offset / 4 +
123 assert(result < 8 * (alloc.offsets[reg.nr] + alloc.sizes[reg.nr]));
128 var_from_reg(const simple_allocator &alloc, const dst_reg &reg,
131 assert(reg.file == VGRF && reg.nr < alloc.count && c < 4);
134 8 * alloc.offsets[reg.nr] + reg.offset / 4 +
137 assert(result < 8 * (alloc.offsets[reg.nr] + alloc.sizes[reg.nr]));
/third_party/mesa3d/src/vulkan/runtime/
Dvk_object.c52 vk_free(&base->device->alloc, base->object_name); in vk_object_base_finish()
57 const VkAllocationCallbacks *alloc, in vk_object_alloc() argument
61 void *ptr = vk_alloc2(&device->alloc, alloc, size, 8, in vk_object_alloc()
73 const VkAllocationCallbacks *alloc, in vk_object_zalloc() argument
77 void *ptr = vk_zalloc2(&device->alloc, alloc, size, 8, in vk_object_zalloc()
90 const VkAllocationCallbacks *alloc, in vk_object_multialloc() argument
93 void *ptr = vk_multialloc_alloc2(ma, &device->alloc, alloc, in vk_object_multialloc()
106 const VkAllocationCallbacks *alloc, in vk_object_multizalloc() argument
109 void *ptr = vk_multialloc_zalloc2(ma, &device->alloc, alloc, in vk_object_multizalloc()
121 const VkAllocationCallbacks *alloc, in vk_object_free() argument
[all …]

12345678910>>...71