Home
last modified time | relevance | path

Searched refs:alloc (Results 1 - 25 of 1199) sorted by relevance

12345678910>>...48

/third_party/skia/src/gpu/vk/
H A DGrVkMemory.cpp48 GrVkAlloc* alloc,
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) {
137 alloc->fMemory = memory;
138 alloc
44 AllocAndBindBufferMemory(GrVkGpu* gpu, VkBuffer buffer, BufferUsage usage, GrVkAlloc* alloc, size_t size) global() argument
90 ImportAndBindBufferMemory(GrVkGpu* gpu, OH_NativeBuffer *nativeBuffer, VkBuffer buffer, GrVkAlloc* alloc) global() argument
146 FreeBufferMemory(const GrVkGpu* gpu, const GrVkAlloc& alloc) global() argument
162 AllocAndBindImageMemory(GrVkGpu* gpu, VkImage image, GrMemoryless memoryless, GrVkAlloc* alloc, int memorySize) global() argument
231 FreeImageMemory(const GrVkGpu* gpu, const GrVkAlloc& alloc) global() argument
243 MapAlloc(GrVkGpu* gpu, const GrVkAlloc& alloc) global() argument
258 UnmapAlloc(const GrVkGpu* gpu, const GrVkAlloc& alloc) global() argument
267 GetNonCoherentMappedMemoryRange(const GrVkAlloc& alloc, VkDeviceSize offset, VkDeviceSize size, VkDeviceSize alignment, VkMappedMemoryRange* range) global() argument
290 FlushMappedAlloc(GrVkGpu* gpu, const GrVkAlloc& alloc, VkDeviceSize offset, VkDeviceSize size) global() argument
305 InvalidateMappedAlloc(GrVkGpu* gpu, const GrVkAlloc& alloc, VkDeviceSize offset, VkDeviceSize size) global() argument
[all...]
H A 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, VkDeviceSiz
[all...]
/third_party/mesa3d/src/vulkan/util/
H A 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 in vk_free()
83 vk_strdup(const VkAllocationCallbacks *alloc, const char *s, VkSystemAllocationScope scope) vk_strdup() argument
100 vk_vasprintf(const VkAllocationCallbacks *alloc, VkSystemAllocationScope scope, const char *fmt, va_list args) vk_vasprintf() argument
113 vk_asprintf(const VkAllocationCallbacks *alloc, VkSystemAllocationScope scope, const char *fmt, ...) vk_asprintf() argument
126 vk_alloc2(const VkAllocationCallbacks *parent_alloc, const VkAllocationCallbacks *alloc, size_t size, size_t align, VkSystemAllocationScope scope) vk_alloc2() argument
138 vk_zalloc2(const VkAllocationCallbacks *parent_alloc, const VkAllocationCallbacks *alloc, size_t size, size_t align, VkSystemAllocationScope scope) vk_zalloc2() argument
153 vk_free2(const VkAllocationCallbacks *parent_alloc, const VkAllocationCallbacks *alloc, void *data) vk_free2() argument
230 vk_multialloc_alloc(struct vk_multialloc *ma, const VkAllocationCallbacks *alloc, VkSystemAllocationScope scope) vk_multialloc_alloc() argument
269 vk_multialloc_alloc2(struct vk_multialloc *ma, const VkAllocationCallbacks *parent_alloc, const VkAllocationCallbacks *alloc, VkSystemAllocationScope scope) vk_multialloc_alloc2() argument
278 vk_multialloc_zalloc(struct vk_multialloc *ma, const VkAllocationCallbacks *alloc, VkSystemAllocationScope scope) vk_multialloc_zalloc() argument
293 vk_multialloc_zalloc2(struct vk_multialloc *ma, const VkAllocationCallbacks *parent_alloc, const VkAllocationCallbacks *alloc, VkSystemAllocationScope scope) vk_multialloc_zalloc2() argument
[all...]
/third_party/mesa3d/src/virtio/vulkan/
H A Dvn_image.c113 const VkAllocationCallbacks *alloc) in vn_image_deferred_info_init()
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()
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()
226 img = vk_zalloc(alloc, sizeof(*img), VN_DEFAULT_ALIGN, in vn_image_create()
236 vk_free(alloc, im in vn_image_create()
111 vn_image_deferred_info_init(struct vn_image *img, const VkImageCreateInfo *create_info, const VkAllocationCallbacks *alloc) vn_image_deferred_info_init() argument
183 vn_image_deferred_info_fini(struct vn_image *img, const VkAllocationCallbacks *alloc) vn_image_deferred_info_fini() argument
218 vn_image_create(struct vn_device *dev, const VkImageCreateInfo *create_info, const VkAllocationCallbacks *alloc, struct vn_image **out_img) vn_image_create() argument
256 vn_image_create_deferred(struct vn_device *dev, const VkImageCreateInfo *create_info, const VkAllocationCallbacks *alloc, struct vn_image **out_img) vn_image_create_deferred() argument
293 const VkAllocationCallbacks *alloc = vn_CreateImage() local
349 const VkAllocationCallbacks *alloc = vn_DestroyImage() local
447 const VkAllocationCallbacks *alloc = &dev->base.base.alloc; vn_BindImageMemory2() local
582 const VkAllocationCallbacks *alloc = vn_CreateImageView() local
621 const VkAllocationCallbacks *alloc = vn_DestroyImageView() local
642 const VkAllocationCallbacks *alloc = vn_CreateSampler() local
669 const VkAllocationCallbacks *alloc = vn_DestroySampler() local
691 const VkAllocationCallbacks *alloc = vn_CreateSamplerYcbcrConversion() local
739 const VkAllocationCallbacks *alloc = vn_DestroySamplerYcbcrConversion() local
[all...]
H A 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
130 const VkAllocationCallbacks *alloc = vn_CreatePipelineCache() local
171 const VkAllocationCallbacks *alloc = vn_DestroyPipelineCache() local
261 vn_fix_graphics_pipeline_create_info( struct vn_device *dev, uint32_t create_info_count, const VkGraphicsPipelineCreateInfo *create_infos, const VkAllocationCallbacks *alloc, VkGraphicsPipelineCreateInfo **out) vn_fix_graphics_pipeline_create_info() argument
375 const VkAllocationCallbacks *alloc = vn_CreateGraphicsPipelines() local
426 const VkAllocationCallbacks *alloc = vn_CreateComputePipelines() local
462 const VkAllocationCallbacks *alloc = vn_DestroyPipeline() local
[all...]
H A 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, entrie in vn_buffer_cache_entries_destroy()
159 const VkAllocationCallbacks *alloc = &dev->base.base.alloc; vn_buffer_get_max_buffer_size() local
328 vn_buffer_create(struct vn_device *dev, const VkBufferCreateInfo *create_info, const VkAllocationCallbacks *alloc, struct vn_buffer **out_buf) vn_buffer_create() argument
363 const VkAllocationCallbacks *alloc = vn_CreateBuffer() local
397 const VkAllocationCallbacks *alloc = vn_DestroyBuffer() local
465 const VkAllocationCallbacks *alloc = &dev->base.base.alloc; vn_BindBufferMemory2() local
508 const VkAllocationCallbacks *alloc = vn_CreateBufferView() local
535 const VkAllocationCallbacks *alloc = vn_DestroyBufferView() local
[all...]
H A Dvn_render_pass.c120 const VkAllocationCallbacks *alloc) in vn_render_pass_create()
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()
117 vn_render_pass_create(struct vn_device *dev, uint32_t acquire_count, uint32_t release_count, const VkAllocationCallbacks *alloc) vn_render_pass_create() argument
248 const VkAllocationCallbacks *alloc = vn_DestroyRenderPass() local
285 const VkAllocationCallbacks *alloc = vn_CreateFramebuffer() local
323 const VkAllocationCallbacks *alloc = vn_DestroyFramebuffer() local
[all...]
H A 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()
183 vk_alloc(alloc, sizeo in merge_extension_names()
172 merge_extension_names(const char *const *exts, uint32_t ext_count, const char *const *extra_exts, uint32_t extra_count, const char *const *block_exts, uint32_t block_count, const VkAllocationCallbacks *alloc, const char *const **out_exts, uint32_t *out_count) merge_extension_names() argument
204 vn_device_fix_create_info(const struct vn_device *dev, const VkDeviceCreateInfo *dev_info, const VkAllocationCallbacks *alloc, VkDeviceCreateInfo *local_info) vn_device_fix_create_info() argument
324 const VkAllocationCallbacks *alloc = &dev->base.base.alloc; vn_device_feedback_pool_init() local
342 vn_device_init(struct vn_device *dev, struct vn_physical_device *physical_dev, const VkDeviceCreateInfo *create_info, const VkAllocationCallbacks *alloc) vn_device_init() argument
432 const VkAllocationCallbacks *alloc = vn_CreateDevice() local
471 const VkAllocationCallbacks *alloc = vn_DestroyDevice() local
[all...]
H A Dvn_feedback.c40 const VkAllocationCallbacks *alloc, in vn_feedback_buffer_create()
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()
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()
38 vn_feedback_buffer_create(struct vn_device *dev, uint32_t size, const VkAllocationCallbacks *alloc, struct vn_feedback_buffer **out_feedback_buf) vn_feedback_buffer_create() argument
126 vn_feedback_buffer_destroy(struct vn_device *dev, struct vn_feedback_buffer *feedback_buf, const VkAllocationCallbacks *alloc) vn_feedback_buffer_destroy() argument
158 vn_feedback_pool_init(struct vn_device *dev, struct vn_feedback_pool *pool, uint32_t size, const VkAllocationCallbacks *alloc) vn_feedback_pool_init() argument
435 const VkAllocationCallbacks *alloc = &dev->base.base.alloc; vn_feedback_cmd_pools_init() local
481 const VkAllocationCallbacks *alloc = &dev->base.base.alloc; vn_feedback_cmd_pools_fini() local
[all...]
H A 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()
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_binding in vn_CreateDescriptorSetLayout()
53 vn_descriptor_set_destroy(struct vn_device *dev, struct vn_descriptor_set *set, const VkAllocationCallbacks *alloc) vn_descriptor_set_destroy() argument
281 const VkAllocationCallbacks *alloc = vn_CreateDescriptorPool() local
346 const VkAllocationCallbacks *alloc; vn_DestroyDescriptorPool() local
463 const VkAllocationCallbacks *alloc = &pool->allocator; vn_ResetDescriptorPool() local
488 const VkAllocationCallbacks *alloc = &pool->allocator; vn_AllocateDescriptorSets() local
607 const VkAllocationCallbacks *alloc = &pool->allocator; vn_FreeDescriptorSets() local
626 vn_update_descriptor_sets_alloc(uint32_t write_count, uint32_t image_count, uint32_t buffer_count, uint32_t view_count, uint32_t iub_count, const VkAllocationCallbacks *alloc, VkSystemAllocationScope scope) vn_update_descriptor_sets_alloc() argument
663 vn_update_descriptor_sets_parse_writes(uint32_t write_count, const VkWriteDescriptorSet *writes, const VkAllocationCallbacks *alloc) vn_update_descriptor_sets_parse_writes() argument
771 const VkAllocationCallbacks *alloc = &dev->base.base.alloc; vn_UpdateDescriptorSets() local
792 vn_update_descriptor_sets_parse_template( const VkDescriptorUpdateTemplateCreateInfo *create_info, const VkAllocationCallbacks *alloc, struct vn_descriptor_update_template_entry *entries) vn_update_descriptor_sets_parse_template() argument
914 const VkAllocationCallbacks *alloc = vn_CreateDescriptorUpdateTemplate() local
955 const VkAllocationCallbacks *alloc = vn_DestroyDescriptorUpdateTemplate() local
[all...]
H A Dvn_android.h35 const VkAllocationCallbacks *alloc,
53 const VkAllocationCallbacks *alloc,
60 const VkAllocationCallbacks *alloc,
68 const VkAllocationCallbacks *alloc);
79 const VkAllocationCallbacks *alloc,
101 UNUSED const VkAllocationCallbacks *alloc, in vn_android_image_from_anb()
132 UNUSED const VkAllocationCallbacks *alloc, in vn_android_image_from_ahb()
142 UNUSED const VkAllocationCallbacks *alloc, in vn_android_device_import_ahb()
153 UNUSED const VkAllocationCallbacks *alloc) in vn_android_device_allocate_ahb()
173 UNUSED const VkAllocationCallbacks *alloc, in vn_android_buffer_from_ahb()
98 vn_android_image_from_anb(UNUSED struct vn_device *dev, UNUSED const VkImageCreateInfo *image_info, UNUSED const VkNativeBufferANDROID *anb_info, UNUSED const VkAllocationCallbacks *alloc, UNUSED struct vn_image **out_img) vn_android_image_from_anb() argument
130 vn_android_image_from_ahb(UNUSED struct vn_device *dev, UNUSED const VkImageCreateInfo *create_info, UNUSED const VkAllocationCallbacks *alloc, UNUSED struct vn_image **out_img) vn_android_image_from_ahb() argument
139 vn_android_device_import_ahb(UNUSED struct vn_device *dev, UNUSED struct vn_device_memory *mem, UNUSED const VkMemoryAllocateInfo *alloc_info, UNUSED const VkAllocationCallbacks *alloc, UNUSED struct AHardwareBuffer *ahb, UNUSED bool internal_ahb) vn_android_device_import_ahb() argument
150 vn_android_device_allocate_ahb(UNUSED struct vn_device *dev, UNUSED struct vn_device_memory *mem, UNUSED const VkMemoryAllocateInfo *alloc_info, UNUSED const VkAllocationCallbacks *alloc) vn_android_device_allocate_ahb() argument
171 vn_android_buffer_from_ahb(UNUSED struct vn_device *dev, UNUSED const VkBufferCreateInfo *create_info, UNUSED const VkAllocationCallbacks *alloc, UNUSED struct vn_buffer **out_buf) vn_android_buffer_from_ahb() argument
[all...]
/third_party/node/test/parallel/
H A Dtest-crypto-cipheriv-decipheriv.js159 crypto.createCipheriv('aes-128-ecb', Buffer.alloc(16), Buffer.alloc(0));
160 crypto.createCipheriv('aes-128-ecb', Buffer.alloc(16), null);
167 () => crypto.createCipheriv('aes-128-ecb', Buffer.alloc(16),
168 Buffer.alloc(n)),
173 crypto.createCipheriv('aes-128-cbc', Buffer.alloc(16), Buffer.alloc(16));
179 () => crypto.createCipheriv('aes-128-cbc', Buffer.alloc(16),
180 Buffer.alloc(n)),
186 crypto.createCipheriv('aes-128-cbc', Buffer.alloc(1
[all...]
/third_party/mesa3d/src/intel/compiler/
H A Dbrw_vec4_live_variables.h105 const simple_allocator &alloc; member in brw::vec4_live_variables
114 var_from_reg(const simple_allocator &alloc, const src_reg &reg, in var_from_reg() argument
117 assert(reg.file == VGRF && reg.nr < alloc.count && c < 4); in var_from_reg()
120 8 * alloc.offsets[reg.nr] + reg.offset / 4 + in var_from_reg()
123 assert(result < 8 * (alloc.offsets[reg.nr] + alloc.sizes[reg.nr])); in var_from_reg()
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
[all...]
H A Dbrw_vec4_reg_allocate.cpp44 unsigned int hw_reg_mapping[this->alloc.count]; in reg_allocate_trivial()
45 bool virtual_grf_used[this->alloc.count]; in reg_allocate_trivial()
51 for (unsigned i = 0; i < this->alloc.count; i++) { in reg_allocate_trivial()
66 next = hw_reg_mapping[0] + this->alloc.sizes[0]; in reg_allocate_trivial()
67 for (unsigned i = 1; i < this->alloc.count; i++) { in reg_allocate_trivial()
70 next += this->alloc.sizes[i]; in reg_allocate_trivial()
159 unsigned int hw_reg_mapping[alloc.count]; in reg_allocate()
171 int node_count = alloc.count; in reg_allocate()
177 for (unsigned i = 0; i < alloc.count; i++) { in reg_allocate()
178 int size = this->alloc in reg_allocate()
[all...]
/third_party/musl/libc-test/src/regression/
H A 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[ in checkfreed()
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/
H A 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(),
99 Alloc* alloc() { return &alloc_; } alloc() function in absl::container_internal::__anon19174::Fixture
242 alloc; TEST() local
[all...]
H A 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); in BucketCountAllocTest()
121 TypeParam m(123, alloc); in BucketCountAllocTest()
122 EXPECT_EQ(m.get_allocator(), alloc); in BucketCountAllocTest()
140 A alloc(0); in BucketCountHashAllocTest()
141 TypeParam m(123, hasher, alloc); in BucketCountHashAllocTest()
143 EXPECT_EQ(m.get_allocator(), alloc); in BucketCountHashAllocTest()
[all...]
H A 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); in BucketCountAllocTest()
112 TypeParam m(123, alloc); in BucketCountAllocTest()
113 EXPECT_EQ(m.get_allocator(), alloc); in BucketCountAllocTest()
131 A alloc(0); in BucketCountHashAllocTest()
132 TypeParam m(123, hasher, alloc); in BucketCountHashAllocTest()
134 EXPECT_EQ(m.get_allocator(), alloc); in BucketCountHashAllocTest()
161 A alloc( in AllocTest()
[all...]
H A Dhash_policy_traits.h93 static void construct(Alloc* alloc, slot_type* slot, Args&&... args) { in construct()
94 Policy::construct(alloc, slot, std::forward<Args>(args)...); in construct()
100 static void destroy(Alloc* alloc, slot_type* slot) { in destroy()
101 Policy::destroy(alloc, slot); in destroy()
116 static void transfer(Alloc* alloc, slot_type* new_slot, slot_type* old_slot) { in transfer()
117 transfer_impl(alloc, new_slot, old_slot, 0); in transfer()
191 static auto transfer_impl(Alloc* alloc, slot_type* new_slot,
193 -> decltype((void)P::transfer(alloc, new_slot, old_slot)) { in decltype()
194 P::transfer(alloc, new_slot, old_slot); in decltype()
197 static void transfer_impl(Alloc* alloc, slot_typ
[all...]
H A Dcontainer_memory.h54 void* Allocate(Alloc* alloc, size_t n) { in Allocate() argument
63 A my_mem_alloc(*alloc); in Allocate()
71 // Allocate<Alignment>(alloc, n).
73 void Deallocate(Alloc* alloc, void* p, size_t n) { in Deallocate() argument
82 A my_mem_alloc(*alloc); in Deallocate()
92 void ConstructFromTupleImpl(Alloc* alloc, T* ptr, Tuple&& t, in ConstructFromTupleImpl() argument
95 *alloc, ptr, std::get<I>(std::forward<Tuple>(t))...); in ConstructFromTupleImpl()
148 void ConstructFromTuple(Alloc* alloc, T* ptr, Tuple&& t) { in ConstructFromTuple() argument
150 alloc, ptr, std::forward<Tuple>(t), in ConstructFromTuple()
381 static void construct(Allocator* alloc, slot_typ
[all...]
/third_party/mesa3d/src/vulkan/runtime/
H A Dvk_object.c52 vk_free(&base->device->alloc, base->object_name); in vk_object_base_finish()
57 const VkAllocationCallbacks *alloc, in vk_object_alloc()
61 void *ptr = vk_alloc2(&device->alloc, alloc, size, 8, in vk_object_alloc()
73 const VkAllocationCallbacks *alloc, in vk_object_zalloc()
77 void *ptr = vk_zalloc2(&device->alloc, alloc, size, 8, in vk_object_zalloc()
90 const VkAllocationCallbacks *alloc, in vk_object_multialloc()
93 void *ptr = vk_multialloc_alloc2(ma, &device->alloc, alloc, in vk_object_multialloc()
56 vk_object_alloc(struct vk_device *device, const VkAllocationCallbacks *alloc, size_t size, VkObjectType obj_type) vk_object_alloc() argument
72 vk_object_zalloc(struct vk_device *device, const VkAllocationCallbacks *alloc, size_t size, VkObjectType obj_type) vk_object_zalloc() argument
88 vk_object_multialloc(struct vk_device *device, struct vk_multialloc *ma, const VkAllocationCallbacks *alloc, VkObjectType obj_type) vk_object_multialloc() argument
104 vk_object_multizalloc(struct vk_device *device, struct vk_multialloc *ma, const VkAllocationCallbacks *alloc, VkObjectType obj_type) vk_object_multizalloc() argument
120 vk_object_free(struct vk_device *device, const VkAllocationCallbacks *alloc, void *data) vk_object_free() argument
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
H A DvktPipelineMakeUtil.cpp45 MovePtr<Allocation> alloc(allocateDedicated(vki, vkd, physDevice, device, image, requirement)); in bindImageDedicated()
46 VK_CHECK(vkd.bindImageMemory(device, image, alloc->getMemory(), alloc->getOffset())); in bindImageDedicated()
47 return alloc; in bindImageDedicated()
52 MovePtr<Allocation> alloc(allocateDedicated(vki, vkd, physDevice, device, buffer, requirement)); in bindBufferDedicated()
53 VK_CHECK(vkd.bindBufferMemory(device, buffer, alloc->getMemory(), alloc->getOffset())); in bindBufferDedicated()
54 return alloc; in bindBufferDedicated()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/pipeline/
H A DvktPipelineMakeUtil.cpp45 MovePtr<Allocation> alloc(allocateDedicated(vki, vkd, physDevice, device, image, requirement)); in bindImageDedicated()
46 VK_CHECK(vkd.bindImageMemory(device, image, alloc->getMemory(), alloc->getOffset())); in bindImageDedicated()
47 return alloc; in bindImageDedicated()
52 MovePtr<Allocation> alloc(allocateDedicated(vki, vkd, physDevice, device, buffer, requirement)); in bindBufferDedicated()
53 VK_CHECK(vkd.bindBufferMemory(device, buffer, alloc->getMemory(), alloc->getOffset())); in bindBufferDedicated()
54 return alloc; in bindBufferDedicated()
/third_party/python/Python/
H A Dhashtable.c198 ht->alloc.free(entry); in _Py_hashtable_steal()
222 entry = ht->alloc.malloc(sizeof(_Py_hashtable_entry_t)); in _Py_hashtable_set()
236 ht->alloc.free(entry); in _Py_hashtable_set()
288 _Py_slist_t *new_buckets = ht->alloc.malloc(buckets_size); in hashtable_rehash()
308 ht->alloc.free(ht->buckets); in hashtable_rehash()
322 _Py_hashtable_allocator_t alloc; in _Py_hashtable_new_full() local
324 alloc.malloc = PyMem_Malloc; in _Py_hashtable_new_full()
325 alloc.free = PyMem_Free; in _Py_hashtable_new_full()
328 alloc = *allocator; in _Py_hashtable_new_full()
331 _Py_hashtable_t *ht = (_Py_hashtable_t *)alloc in _Py_hashtable_new_full()
[all...]
/third_party/json/docs/examples/
H A Dget_allocator.cpp8 auto alloc = json::get_allocator(); in main() local
9 using traits_t = std::allocator_traits<decltype(alloc)>; in main()
11 json* j = traits_t::allocate(alloc, 1); in main()
12 traits_t::construct(alloc, j, "Hello, world!"); in main()
16 traits_t::destroy(alloc, j); in main()
17 traits_t::deallocate(alloc, j, 1); in main()

Completed in 19 milliseconds

12345678910>>...48