/external/skia/src/gpu/vk/ |
D | GrVkMemory.cpp | 38 GrVkAlloc* alloc) { in AllocAndBindBufferMemory() argument 63 allocator->getAllocInfo(memory, alloc); in AllocAndBindBufferMemory() 67 alloc->fMemory, in AllocAndBindBufferMemory() 68 alloc->fOffset)); in AllocAndBindBufferMemory() 70 FreeBufferMemory(gpu, type, *alloc); in AllocAndBindBufferMemory() 78 const GrVkAlloc& alloc) { in FreeBufferMemory() argument 79 if (alloc.fBackendMemory) { in FreeBufferMemory() 81 allocator->freeMemory(alloc.fBackendMemory); in FreeBufferMemory() 83 GR_VK_CALL(gpu->vkInterface(), FreeMemory(gpu->device(), alloc.fMemory, nullptr)); in FreeBufferMemory() 92 GrVkAlloc* alloc) { in AllocAndBindImageMemory() argument [all …]
|
/external/skqp/src/gpu/vk/ |
D | GrVkMemory.cpp | 38 GrVkAlloc* alloc) { in AllocAndBindBufferMemory() argument 63 allocator->getAllocInfo(memory, alloc); in AllocAndBindBufferMemory() 67 alloc->fMemory, in AllocAndBindBufferMemory() 68 alloc->fOffset)); in AllocAndBindBufferMemory() 70 FreeBufferMemory(gpu, type, *alloc); in AllocAndBindBufferMemory() 78 const GrVkAlloc& alloc) { in FreeBufferMemory() argument 79 if (alloc.fBackendMemory) { in FreeBufferMemory() 81 allocator->freeMemory(alloc.fBackendMemory); in FreeBufferMemory() 83 GR_VK_CALL(gpu->vkInterface(), FreeMemory(gpu->device(), alloc.fMemory, nullptr)); in FreeBufferMemory() 92 GrVkAlloc* alloc) { in AllocAndBindImageMemory() argument [all …]
|
D | GrVkBuffer.cpp | 24 GrVkAlloc alloc; in Create() local 69 &alloc)) { in Create() 73 const GrVkBuffer::Resource* resource = new GrVkBuffer::Resource(buffer, alloc, desc.fType); in Create() 76 GrVkMemory::FreeBufferMemory(gpu, desc.fType, alloc); in Create() 171 const GrVkAlloc& alloc = this->alloc(); in internalMap() local 172 SkASSERT(alloc.fSize > 0); in internalMap() 173 SkASSERT(alloc.fSize >= size); in internalMap() 176 fMapPtr = GrVkMemory::MapAlloc(gpu, alloc); in internalMap() 191 const GrVkAlloc& alloc = this->alloc(); in internalUnmap() local 192 SkASSERT(alloc.fSize > 0); in internalUnmap() [all …]
|
/external/mesa3d/src/vulkan/util/ |
D | vk_alloc.h | 32 vk_alloc(const VkAllocationCallbacks *alloc, in vk_alloc() argument 36 return alloc->pfnAllocation(alloc->pUserData, size, align, scope); in vk_alloc() 40 vk_zalloc(const VkAllocationCallbacks *alloc, in vk_zalloc() argument 44 void *mem = vk_alloc(alloc, size, align, scope); in vk_zalloc() 54 vk_realloc(const VkAllocationCallbacks *alloc, in vk_realloc() argument 58 return alloc->pfnReallocation(alloc->pUserData, ptr, size, align, scope); in vk_realloc() 62 vk_free(const VkAllocationCallbacks *alloc, void *data) in vk_free() argument 67 alloc->pfnFree(alloc->pUserData, data); in vk_free() 72 const VkAllocationCallbacks *alloc, in vk_alloc2() argument 76 if (alloc) in vk_alloc2() [all …]
|
/external/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/ |
D | alloc_function.pass.cpp | 29 void test_FunctionObject(AllocType& alloc) in test_FunctionObject() argument 41 std::function<FuncType> f2(std::allocator_arg, alloc, f); in test_FunctionObject() 53 void test_FreeFunction(AllocType& alloc) in test_FreeFunction() argument 65 std::function<FuncType> f2(std::allocator_arg, alloc, f); in test_FreeFunction() 75 void test_MemFunClass(AllocType& alloc) in test_MemFunClass() argument 87 std::function<FuncType> f2(std::allocator_arg, alloc, f); in test_MemFunClass() 97 void test_for_alloc(Alloc& alloc) in test_for_alloc() argument 100 test_FunctionObject<int()>(alloc); in test_for_alloc() 101 test_FunctionObject<int(int)>(alloc); in test_for_alloc() 102 test_FunctionObject<int(int, int)>(alloc); in test_for_alloc() [all …]
|
D | alloc_F.pass.cpp | 41 void test_FunctionObject(AllocType& alloc) in test_FunctionObject() argument 48 std::function<FuncType> f2(std::allocator_arg, alloc, target); in test_FunctionObject() 61 void test_FreeFunction(AllocType& alloc) in test_FreeFunction() argument 67 std::function<FuncType> f2(std::allocator_arg, alloc, target); in test_FreeFunction() 78 void test_MemFunClass(AllocType& alloc) in test_MemFunClass() argument 84 std::function<FuncType> f2(std::allocator_arg, alloc, target); in test_MemFunClass() 94 void test_for_alloc(Alloc& alloc) { in test_for_alloc() argument 95 test_FunctionObject<int()>(alloc); in test_for_alloc() 96 test_FunctionObject<int(int)>(alloc); in test_for_alloc() 97 test_FunctionObject<int(int, int)>(alloc); in test_for_alloc() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/InstCombine/ |
D | compare-alloca.ll | 6 %alloc = alloca i64 7 %cmp = icmp eq i64* %arg, %alloc 14 %alloc = alloca i64 15 %cmp = icmp eq i64* %alloc, %arg 22 %alloc = alloca i64 23 %cmp = icmp ne i64* %arg, %alloc 30 %alloc = alloca i64, i64 8 32 %q = getelementptr i64, i64* %alloc, i64 3 41 %alloc = alloca i64 42 call void @escape(i64* %alloc) [all …]
|
/external/llvm/test/Transforms/InstCombine/ |
D | compare-alloca.ll | 6 %alloc = alloca i64 7 %cmp = icmp eq i64* %arg, %alloc 14 %alloc = alloca i64 15 %cmp = icmp eq i64* %alloc, %arg 22 %alloc = alloca i64 23 %cmp = icmp ne i64* %arg, %alloc 30 %alloc = alloca i64, i64 8 32 %q = getelementptr i64, i64* %alloc, i64 3 41 %alloc = alloca i64 42 call void @escape(i64* %alloc) [all …]
|
/external/grpc-grpc-java/alts/src/test/java/io/grpc/alts/internal/ |
D | AltsTsiFrameProtectorTest.java | 77 ByteBufAllocator alloc = ByteBufAllocator.DEFAULT; in parserHeader_frameLengthNegativeFails() local 81 new AltsTsiFrameProtector.Unprotector(crypter, alloc); in parserHeader_frameLengthNegativeFails() 86 unprotector.unprotect(in, out, alloc); in parserHeader_frameLengthNegativeFails() 97 ByteBufAllocator alloc = ByteBufAllocator.DEFAULT; in parserHeader_frameTooSmall() local 101 new AltsTsiFrameProtector.Unprotector(crypter, alloc); in parserHeader_frameTooSmall() 108 unprotector.unprotect(in, out, alloc); in parserHeader_frameTooSmall() 119 ByteBufAllocator alloc = ByteBufAllocator.DEFAULT; in parserHeader_frameTooLarge() local 123 new AltsTsiFrameProtector.Unprotector(crypter, alloc); in parserHeader_frameTooLarge() 133 unprotector.unprotect(in, out, alloc); in parserHeader_frameTooLarge() 144 ByteBufAllocator alloc = ByteBufAllocator.DEFAULT; in parserHeader_frameTypeInvalid() local [all …]
|
D | TsiTest.java | 63 private static final UnpooledByteBufAllocator alloc = UnpooledByteBufAllocator.DEFAULT; field in TsiTest 138 alloc); in sendMessage() 148 receiver.unprotect(buf, unprotectOut, alloc); in sendMessage() 163 TsiFrameProtector clientProtector = handshakers.getClient().createFrameProtector(alloc); in pingPongTest() 164 TsiFrameProtector serverProtector = handshakers.getServer().createFrameProtector(alloc); in pingPongTest() 184 handshakers.getClient().createFrameProtector(frameSize, alloc); in pingPongExactFrameSizeTest() 186 handshakers.getServer().createFrameProtector(frameSize, alloc); in pingPongExactFrameSizeTest() 200 TsiFrameProtector clientProtector = handshakers.getClient().createFrameProtector(alloc); in pingPongSmallBufferTest() 201 TsiFrameProtector serverProtector = handshakers.getServer().createFrameProtector(alloc); in pingPongSmallBufferTest() 218 handshakers.getClient().createFrameProtector(frameProtectorOverhead + 3, alloc); in pingPongSmallFrameTest() [all …]
|
/external/perfetto/tools/sanitizers_unittests/ |
D | sanitizers_unittest.cc | 33 void* alloc = malloc(16); in TEST() 34 volatile char* mem = reinterpret_cast<volatile char*>(alloc); in TEST() 37 free(alloc); in TEST() 84 void* alloc = malloc(16); in TEST() 85 reinterpret_cast<volatile char*>(alloc)[0] = 1; in TEST() 86 alloc = malloc(16); in TEST() 87 reinterpret_cast<volatile char*>(alloc)[0] = 2; in TEST() 88 free(alloc); in TEST() 97 std::unique_ptr<int> alloc(new int(1)); in TEST() 98 *reinterpret_cast<volatile char*>(alloc.get()) = 1; in TEST() [all …]
|
/external/mesa3d/src/intel/vulkan/ |
D | anv_wsi_x11.c | 43 &device->instance->alloc, in anv_GetPhysicalDeviceXcbPresentationSupportKHR() 59 &device->instance->alloc, in anv_GetPhysicalDeviceXlibPresentationSupportKHR() 72 const VkAllocationCallbacks *alloc; in anv_CreateXcbSurfaceKHR() local 76 alloc = pAllocator; in anv_CreateXcbSurfaceKHR() 78 alloc = &instance->alloc; in anv_CreateXcbSurfaceKHR() 80 return wsi_create_xcb_surface(alloc, pCreateInfo, pSurface); in anv_CreateXcbSurfaceKHR() 90 const VkAllocationCallbacks *alloc; in anv_CreateXlibSurfaceKHR() local 95 alloc = pAllocator; in anv_CreateXlibSurfaceKHR() 97 alloc = &instance->alloc; in anv_CreateXlibSurfaceKHR() 99 return wsi_create_xlib_surface(alloc, pCreateInfo, pSurface); in anv_CreateXlibSurfaceKHR()
|
D | anv_wsi.c | 42 &physical_device->instance->alloc); in anv_init_wsi() 49 &physical_device->instance->alloc); in anv_finish_wsi() 63 vk_free2(&instance->alloc, pAllocator, surface); in anv_DestroySurfaceKHR() 78 &device->instance->alloc, in anv_GetPhysicalDeviceSurfaceSupportKHR() 151 const VkAllocationCallbacks *alloc; in anv_CreateSwapchainKHR() local 154 alloc = pAllocator; in anv_CreateSwapchainKHR() 156 alloc = &device->alloc; in anv_CreateSwapchainKHR() 159 pCreateInfo, alloc, pSwapchain); in anv_CreateSwapchainKHR() 168 const VkAllocationCallbacks *alloc; in anv_DestroySwapchainKHR() local 171 alloc = pAllocator; in anv_DestroySwapchainKHR() [all …]
|
/external/mesa3d/src/amd/vulkan/ |
D | radv_wsi_x11.c | 47 &device->instance->alloc, in radv_GetPhysicalDeviceXcbPresentationSupportKHR() 63 &device->instance->alloc, in radv_GetPhysicalDeviceXlibPresentationSupportKHR() 76 const VkAllocationCallbacks *alloc; in radv_CreateXcbSurfaceKHR() local 80 alloc = pAllocator; in radv_CreateXcbSurfaceKHR() 82 alloc = &instance->alloc; in radv_CreateXcbSurfaceKHR() 84 return wsi_create_xcb_surface(alloc, pCreateInfo, pSurface); in radv_CreateXcbSurfaceKHR() 94 const VkAllocationCallbacks *alloc; in radv_CreateXlibSurfaceKHR() local 99 alloc = pAllocator; in radv_CreateXlibSurfaceKHR() 101 alloc = &instance->alloc; in radv_CreateXlibSurfaceKHR() 103 return wsi_create_xlib_surface(alloc, pCreateInfo, pSurface); in radv_CreateXlibSurfaceKHR()
|
D | radv_wsi.c | 44 &physical_device->instance->alloc); in radv_init_wsi() 51 &physical_device->instance->alloc); in radv_finish_wsi() 62 vk_free2(&instance->alloc, pAllocator, surface); in radv_DestroySurfaceKHR() 77 &device->instance->alloc, in radv_GetPhysicalDeviceSurfaceSupportKHR() 154 const VkAllocationCallbacks *alloc; in radv_CreateSwapchainKHR() local 156 alloc = pAllocator; in radv_CreateSwapchainKHR() 158 alloc = &device->alloc; in radv_CreateSwapchainKHR() 164 alloc, in radv_CreateSwapchainKHR() 174 const VkAllocationCallbacks *alloc; in radv_DestroySwapchainKHR() local 177 alloc = pAllocator; in radv_DestroySwapchainKHR() [all …]
|
/external/libcxx/test/std/containers/sequences/vector.bool/ |
D | construct_iter_iter_alloc.pass.cpp | 40 std::allocator<bool> alloc; in main() local 41 … test<std::vector<bool> >(input_iterator<const bool*>(a), input_iterator<const bool*>(an), alloc); in main() 42 …st<std::vector<bool> >(forward_iterator<const bool*>(a), forward_iterator<const bool*>(an), alloc); in main() 43 …or<bool> >(bidirectional_iterator<const bool*>(a), bidirectional_iterator<const bool*>(an), alloc); in main() 44 …or<bool> >(random_access_iterator<const bool*>(a), random_access_iterator<const bool*>(an), alloc); in main() 45 test<std::vector<bool> >(a, an, alloc); in main() 49 min_allocator<bool> alloc; in main() local 50 …ol, min_allocator<bool>> >(input_iterator<const bool*>(a), input_iterator<const bool*>(an), alloc); in main() 51 …min_allocator<bool>> >(forward_iterator<const bool*>(a), forward_iterator<const bool*>(an), alloc); in main() 52 …r<bool>> >(bidirectional_iterator<const bool*>(a), bidirectional_iterator<const bool*>(an), alloc); in main() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/Coroutines/ |
D | no-suspend.ll | 14 %need.dyn.alloc = call i1 @llvm.coro.alloc(token %id) 15 br i1 %need.dyn.alloc, label %dyn.alloc, label %coro.begin 16 dyn.alloc: 18 %alloc = call i8* @malloc(i32 %size) 21 %phi = phi i8* [ null, %entry ], [ %alloc, %dyn.alloc ] 51 %need.dyn.alloc = call i1 @llvm.coro.alloc(token %id) 52 br i1 %need.dyn.alloc, label %dyn.alloc, label %coro.begin 53 dyn.alloc: 55 %alloc = call i8* @malloc(i32 %size) 58 %phi = phi i8* [ null, %entry ], [ %alloc, %dyn.alloc ] [all …]
|
/external/mesa3d/src/intel/compiler/ |
D | brw_vec4_live_variables.h | 66 vec4_live_variables(const simple_allocator &alloc, cfg_t *cfg); 79 const simple_allocator &alloc; variable 88 var_from_reg(const simple_allocator &alloc, const src_reg ®, 91 assert(reg.file == VGRF && reg.nr < alloc.count && c < 4); 94 8 * alloc.offsets[reg.nr] + reg.offset / 4 + 97 assert(result < 8 * (alloc.offsets[reg.nr] + alloc.sizes[reg.nr])); 102 var_from_reg(const simple_allocator &alloc, const dst_reg ®, 105 assert(reg.file == VGRF && reg.nr < alloc.count && c < 4); 108 8 * alloc.offsets[reg.nr] + reg.offset / 4 + 111 assert(result < 8 * (alloc.offsets[reg.nr] + alloc.sizes[reg.nr]));
|
D | brw_vec4_live_variables.cpp | 81 const unsigned v = var_from_reg(alloc, inst->src[i], c, j); in setup_def_use() 104 const unsigned v = var_from_reg(alloc, inst->dst, c, i); in setup_def_use() 183 vec4_live_variables::vec4_live_variables(const simple_allocator &alloc, in vec4_live_variables() argument 185 : alloc(alloc), cfg(cfg) in vec4_live_variables() 189 num_vars = alloc.total_size * 8; in vec4_live_variables() 239 int *start = ralloc_array(mem_ctx, int, this->alloc.total_size * 8); in calculate_live_intervals() 240 int *end = ralloc_array(mem_ctx, int, this->alloc.total_size * 8); in calculate_live_intervals() 246 for (unsigned i = 0; i < this->alloc.total_size * 8; i++) { in calculate_live_intervals() 260 const unsigned v = var_from_reg(alloc, inst->src[i], c, j); in calculate_live_intervals() 272 const unsigned v = var_from_reg(alloc, inst->dst, c, i); in calculate_live_intervals() [all …]
|
/external/perfetto/src/profiling/memory/ |
D | bookkeeping.cc | 54 Allocation& alloc = it->second; in RecordMalloc() local 55 PERFETTO_DCHECK(alloc.sequence_number != sequence_number); in RecordMalloc() 56 if (alloc.sequence_number < sequence_number) { in RecordMalloc() 65 if (alloc.sequence_number > committed_sequence_number_) { in RecordMalloc() 68 alloc.AddToCallstackAllocations(); in RecordMalloc() 71 alloc.SubtractFromCallstackAllocations(); in RecordMalloc() 73 alloc.total_size = size; in RecordMalloc() 74 alloc.sequence_number = sequence_number; in RecordMalloc() 75 alloc.callstack_allocations = MaybeCreateCallstackAllocations(node); in RecordMalloc() 144 const CallstackAllocations& alloc = it->second; in Dump() local [all …]
|
/external/curl/lib/ |
D | escape.c | 82 size_t alloc; in curl_easy_escape() local 93 alloc = (inlength?(size_t)inlength:strlen(string)) + 1; in curl_easy_escape() 94 newlen = alloc; in curl_easy_escape() 96 ns = malloc(alloc); in curl_easy_escape() 100 length = alloc-1; in curl_easy_escape() 110 if(newlen > alloc) { in curl_easy_escape() 111 alloc *= 2; in curl_easy_escape() 112 testing_ptr = Curl_saferealloc(ns, alloc); in curl_easy_escape() 152 size_t alloc = (length?length:strlen(string)) + 1; in Curl_urldecode() local 153 char *ns = malloc(alloc); in Curl_urldecode() [all …]
|
/external/openssh/ |
D | sshbuf.c | 41 buf->alloc > buf->max_size || in sshbuf_check_sanity() 42 buf->size > buf->alloc || in sshbuf_check_sanity() 76 ret->alloc = SSHBUF_SIZE_INIT; in sshbuf_new() 81 if ((ret->cd = ret->d = calloc(1, ret->alloc)) == NULL) { in sshbuf_new() 96 ret->alloc = ret->size = ret->max_size = len; in sshbuf_from() 138 ret->alloc = SSHBUF_SIZE_INIT; in sshbuf_init() 143 if ((ret->cd = ret->d = calloc(1, ret->alloc)) == NULL) in sshbuf_init() 144 ret->alloc = 0; in sshbuf_init() 178 explicit_bzero(buf->d, buf->alloc); in sshbuf_free() 197 explicit_bzero(buf->d, buf->alloc); in sshbuf_reset() [all …]
|
/external/deqp/external/vulkancts/modules/vulkan/pipeline/ |
D | vktPipelineMakeUtil.cpp | 205 …MovePtr<Allocation> alloc = allocator.allocate(getImageMemoryRequirements(vk, device, image), requ… in bindImage() local 206 VK_CHECK(vk.bindImageMemory(device, image, alloc->getMemory(), alloc->getOffset())); in bindImage() 207 return alloc; in bindImage() 212 …MovePtr<Allocation> alloc(allocator.allocate(getBufferMemoryRequirements(vk, device, buffer), requ… in bindBuffer() local 213 VK_CHECK(vk.bindBufferMemory(device, buffer, alloc->getMemory(), alloc->getOffset())); in bindBuffer() 214 return alloc; in bindBuffer() 219 MovePtr<Allocation> alloc(allocateDedicated(vki, vkd, physDevice, device, image, requirement)); in bindImageDedicated() local 220 VK_CHECK(vkd.bindImageMemory(device, image, alloc->getMemory(), alloc->getOffset())); in bindImageDedicated() 221 return alloc; in bindImageDedicated() 226 MovePtr<Allocation> alloc(allocateDedicated(vki, vkd, physDevice, device, buffer, requirement)); in bindBufferDedicated() local [all …]
|
/external/libxml2/ |
D | buf.c | 47 xmlBufferAllocationScheme alloc; /* The realloc method */ member 136 ret->alloc = xmlBufferAllocScheme; in xmlBufCreate() 168 ret->alloc = xmlBufferAllocScheme; in xmlBufCreateSize() 201 if (buf->alloc == XML_BUFFER_ALLOC_IMMUTABLE) in xmlBufDetach() 251 ret->alloc = XML_BUFFER_ALLOC_IMMUTABLE; in xmlBufCreateStatic() 275 return(buf->alloc); in xmlBufGetAllocationScheme() 297 if ((buf->alloc == XML_BUFFER_ALLOC_IMMUTABLE) || in xmlBufSetAllocationScheme() 298 (buf->alloc == XML_BUFFER_ALLOC_IO)) in xmlBufSetAllocationScheme() 305 buf->alloc = scheme; in xmlBufSetAllocationScheme() 307 buf->buffer->alloc = scheme; in xmlBufSetAllocationScheme() [all …]
|
/external/clang/test/SemaObjC/ |
D | class-message-protocol-lookup.m | 7 + (id)alloc; class 15 + (id)alloc; class 21 …Class<TestProtocol> c = [c alloc]; // expected-warning {{class method '+alloc' not found (return … 23 Class<Test2Protocol> c2 = [c2 alloc]; // ok 25 + (id)alloc { return 0; } class 30 …Class<TestProtocol> c = [c alloc]; // expected-warning {{class method '+alloc' not found (return … 32 Class<Test2Protocol> c2 = [c2 alloc]; // ok
|