| /third_party/skia/src/gpu/vk/ |
| D | GrVkMemory.cpp | 48 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 …]
|
| D | GrVkMemory.h | 30 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/ |
| D | GPBUnknownFieldSetTest.m | 64 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 …]
|
| D | GPBDictionaryTests+Bool.m | 55 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 …]
|
| D | GPBMessageTests+Serialization.m | 56 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/ |
| D | vk_alloc.h | 44 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/ |
| D | vn_pipeline.c | 30 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 …]
|
| D | vn_image.c | 113 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 …]
|
| D | vn_buffer.c | 84 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 …]
|
| D | vn_feedback.c | 40 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 …]
|
| D | vn_render_pass.c | 120 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 …]
|
| D | vn_device.c | 80 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 …]
|
| D | vn_descriptor_set.c | 27 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/ |
| D | node_hash_policy.h | 22 // 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 …]
|
| D | unordered_map_constructor_test.h | 78 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 …]
|
| D | unordered_set_constructor_test.h | 79 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 …]
|
| D | container_memory_test.cc | 41 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 …]
|
| D | container_memory.h | 53 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 …]
|
| D | hash_policy_traits.h | 92 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 …]
|
| D | node_hash_policy_test.cc | 34 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/ |
| D | Cargo.toml | 32 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/ |
| D | memory.h | 426 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/ |
| D | flockfile-list.c | 21 } 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/ |
| D | vk_object.c | 52 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/ |
| D | allocator.h | 126 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 …]
|