Home
last modified time | relevance | path

Searched full:alloc (Results 1 – 25 of 1988) sorted by relevance

12345678910>>...80

/third_party/skia/src/gpu/vk/
DGrVkMemory.cpp48 GrVkAlloc* alloc, argument
51 GrVkAlloc* alloc) {
71 allocator->getAllocInfo(memory, alloc);
74 alloc->fBytes = size;
80 GR_VK_CALL_RESULT(gpu, err, BindBufferMemory(gpu->device(), buffer, alloc->fMemory,
81 alloc->fOffset));
83 FreeBufferMemory(gpu, *alloc);
93 GrVkAlloc* alloc) { argument
137 alloc->fMemory = memory;
138 alloc->fOffset = 0;
[all …]
DGrVkMemory.h30 GrVkAlloc* alloc,
33 GrVkAlloc* alloc);
39 GrVkAlloc* alloc);
41 void FreeBufferMemory(const GrVkGpu* gpu, const GrVkAlloc& alloc);
46 GrVkAlloc* alloc,
48 void FreeImageMemory(const GrVkGpu* gpu, const GrVkAlloc& alloc);
54 void* MapAlloc(GrVkGpu* gpu, const GrVkAlloc& alloc);
55 void UnmapAlloc(const GrVkGpu* gpu, const GrVkAlloc& alloc);
60 void FlushMappedAlloc(GrVkGpu* gpu, const GrVkAlloc& alloc, VkDeviceSize offset,
62 void InvalidateMappedAlloc(GrVkGpu* gpu, const GrVkAlloc& alloc, VkDeviceSize offset,
/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 …]
DGPBDictionaryTests+Bool.m55 GPBBoolUInt32Dictionary *dict = [[GPBBoolUInt32Dictionary alloc] init];
67 GPBBoolUInt32Dictionary *dict = [[GPBBoolUInt32Dictionary alloc] init];
88 [[GPBBoolUInt32Dictionary alloc] initWithUInt32s:kValues
142 [[GPBBoolUInt32Dictionary alloc] initWithUInt32s:kValues1
147 [[GPBBoolUInt32Dictionary alloc] initWithUInt32s:kValues1
152 [[GPBBoolUInt32Dictionary alloc] initWithUInt32s:kValues2
157 [[GPBBoolUInt32Dictionary alloc] initWithUInt32s:kValues1
162 [[GPBBoolUInt32Dictionary alloc] initWithUInt32s:kValues3
193 [[GPBBoolUInt32Dictionary alloc] initWithUInt32s:kValues
214 [[GPBBoolUInt32Dictionary alloc] initWithUInt32s:kValues
[all …]
DGPBMessageTests+Serialization.m56 Message3 *msg = [[Message3 alloc] init];
119 //% Message3Optional *msg = [[Message3Optional alloc] init];
160 Message3Optional *msg = [[Message3Optional alloc] init];
176 Message3Optional *msg = [[Message3Optional alloc] init];
192 Message3Optional *msg = [[Message3Optional alloc] init];
208 Message3Optional *msg = [[Message3Optional alloc] init];
224 Message3Optional *msg = [[Message3Optional alloc] init];
240 Message3Optional *msg = [[Message3Optional alloc] init];
256 Message3Optional *msg = [[Message3Optional alloc] init];
272 Message3Optional *msg = [[Message3Optional alloc] init];
[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/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_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_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_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/skia/third_party/externals/abseil-cpp/absl/container/internal/
Dnode_hash_policy.h22 // template <class Alloc, class... Args>
23 // value_type* new_element(Alloc* alloc, Args&&... args) const;
26 // template <class Alloc>
27 // void delete_element(Alloc* alloc, value_type* node) const;
55 template <class Alloc, class... Args>
56 static void construct(Alloc* alloc, slot_type* slot, Args&&... args) { in construct()
57 *slot = Policy::new_element(alloc, std::forward<Args>(args)...); in construct()
60 template <class Alloc>
61 static void destroy(Alloc* alloc, slot_type* slot) { in destroy()
62 Policy::delete_element(alloc, *slot); in destroy()
[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 …]
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 …]
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()
90 using Alloc = std::allocator<std::string>; typedef in absl::container_internal::__anon20385a430111::Fixture
[all …]
Dcontainer_memory.h53 template <size_t Alignment, class Alloc>
54 void* Allocate(Alloc* alloc, size_t n) { in Allocate() argument
58 using A = typename absl::allocator_traits<Alloc>::template rebind_alloc<M>; in Allocate()
59 using AT = typename absl::allocator_traits<Alloc>::template rebind_traits<M>; in Allocate()
63 A my_mem_alloc(*alloc); in Allocate()
71 // Allocate<Alignment>(alloc, n).
72 template <size_t Alignment, class Alloc>
73 void Deallocate(Alloc* alloc, void* p, size_t n) { in Deallocate() argument
77 using A = typename absl::allocator_traits<Alloc>::template rebind_alloc<M>; in Deallocate()
78 using AT = typename absl::allocator_traits<Alloc>::template rebind_traits<M>; in Deallocate()
[all …]
Dhash_policy_traits.h92 template <class Alloc, class... Args>
93 static void construct(Alloc* alloc, slot_type* slot, Args&&... args) {
94 Policy::construct(alloc, slot, std::forward<Args>(args)...);
99 template <class Alloc>
100 static void destroy(Alloc* alloc, slot_type* slot) {
101 Policy::destroy(alloc, slot);
115 template <class Alloc>
116 static void transfer(Alloc* alloc, slot_type* new_slot, slot_type* old_slot) {
117 transfer_impl(alloc, new_slot, old_slot, 0);
190 template <class Alloc, class P = Policy>
[all …]
Dnode_hash_policy_test.cc34 template <class Alloc>
35 static int* new_element(Alloc* alloc, int value) { in new_element()
39 template <class Alloc>
40 static void delete_element(Alloc* alloc, int* elem) { in delete_element()
48 std::allocator<int> alloc; member
54 NodePolicy::construct(&alloc, &a, 42); in TEST_F()
56 NodePolicy::destroy(&alloc, &a); in TEST_F()
62 NodePolicy::transfer(&alloc, &a, &b); in TEST_F()
/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/skia/third_party/externals/abseil-cpp/absl/memory/
Dmemory.h426 template <typename Alloc>
428 using allocator_type = Alloc;
431 // Alloc::value_type
432 using value_type = typename Alloc::value_type;
435 // Alloc::pointer if present, otherwise value_type*
437 Alloc, value_type*>;
440 // Alloc::const_pointer if present, otherwise
443 memory_internal::ExtractOrT<memory_internal::GetConstPointer, Alloc,
448 // Alloc::void_pointer if present, otherwise
451 memory_internal::GetVoidPointer, Alloc,
[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/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 …]
/third_party/nghttp2/src/
Dallocator.h126 void *alloc(size_t size) { in alloc() function
155 // that |ptr| was returned from alloc() or realloc().
163 // this is equivalent to alloc(size). If |ptr| is not nullptr,
165 // returned from alloc() or realloc(). If the allocated size is
171 return alloc(size); in realloc()
181 auto res = alloc(nalloclen); in realloc()
201 StringRef make_string_ref(BlockAllocator &alloc, const StringRef &src) { in make_string_ref() argument
202 auto dst = static_cast<uint8_t *>(alloc.alloc(src.size() + 1)); in make_string_ref()
241 StringRef concat_string_ref(BlockAllocator &alloc, Args &&...args) { in concat_string_ref() argument
243 auto dst = static_cast<uint8_t *>(alloc.alloc(len + 1)); in concat_string_ref()
[all …]

12345678910>>...80