/bionic/libc/stdio/ |
fmemopen.cpp | 41 char* allocation; member in struct:fmemopen_cookie 108 free(ck->allocation); 126 if (ck->buf == nullptr) ck->buf = ck->allocation = static_cast<char*>(calloc(capacity, 1));
|
/external/deqp/external/vulkancts/modules/vulkan/api/ |
vktApiComputeInstanceResultBuffer.cpp | 61 de::MovePtr<Allocation> *outAllocation, 79 de::MovePtr<Allocation> allocation = allocator.allocate(requirements, MemoryRequirement::HostVisible); local 81 VK_CHECK(vki.bindBufferMemory(device, *buffer, allocation->getMemory(), allocation->getOffset())); 84 void* mapPtr = allocation->getHostPtr(); 89 flushAlloc(vki, device, *allocation); 91 *outAllocation = allocation;
|
vktApiBufferComputeInstance.cpp | 42 de::MovePtr<Allocation>* outAllocation) 65 de::MovePtr<Allocation> allocation = allocator.allocate(requirements, MemoryRequirement::HostVisible); local 67 VK_CHECK(vki.bindBufferMemory(device, *buffer, allocation->getMemory(), allocation->getOffset())); 69 void* const mapPtr = allocation->getHostPtr(); 78 flushAlloc(vki, device, *allocation); 80 *outAllocation = allocation; 88 de::MovePtr<Allocation>* outAllocation, 112 de::MovePtr<Allocation> allocation = allocator.allocate(requirements, MemoryRequirement::HostVisible) local [all...] |
/external/deqp/external/vulkancts/modules/vulkan/binding_model/ |
vktBindingDescriptorUpdateTests.cpp | 87 de::MovePtr<vk::Allocation> allocation = allocator.allocate(requirements, vk::MemoryRequirement::Any); local 89 VK_CHECK(vki.bindBufferMemory(device, *buffer, allocation->getMemory(), allocation->getOffset()));
|
/external/expat/tests/ |
memcheck.c | 46 void * allocation; member in struct:allocation_entry 67 entry->allocation = malloc(size); 68 if (entry->allocation == NULL) { 84 return entry->allocation; 93 if (entry->allocation == ptr) { 113 /* This is the relevant allocation. Unlink it */ 145 /* Find the allocation entry for this memory */ 154 entry->allocation = realloc(ptr, size); 155 if (entry->allocation == NULL) { 171 entry->allocation = realloc(ptr, size) [all...] |
/external/swiftshader/src/Common/ |
Memory.cpp | 46 struct Allocation 57 void *allocation; local 58 int result = posix_memalign(&allocation, alignment, bytes); 62 allocation = nullptr; 64 return allocation; 66 unsigned char *block = new unsigned char[bytes + sizeof(Allocation) + alignment]; 71 aligned = (unsigned char*)((uintptr_t)(block + sizeof(Allocation) + alignment - 1) & -(intptr_t)alignment); 72 Allocation *allocation = (Allocation*)(aligned - sizeof(Allocation)) [all...] |
/external/swiftshader/src/System/ |
Memory.cpp | 46 struct Allocation 57 void *allocation; local 58 int result = posix_memalign(&allocation, alignment, bytes); 62 allocation = nullptr; 64 return allocation; 66 unsigned char *block = new unsigned char[bytes + sizeof(Allocation) + alignment]; 71 aligned = (unsigned char*)((uintptr_t)(block + sizeof(Allocation) + alignment - 1) & -(intptr_t)alignment); 72 Allocation *allocation = (Allocation*)(aligned - sizeof(Allocation)) [all...] |
/external/tensorflow/tensorflow/compiler/xrt/ |
xrt_state.h | 42 // A reference-counted wrapper around a buffer allocation. This maps an XLA 47 XRTBufferAllocation(const se::DeviceMemoryBase& allocation, 53 const se::DeviceMemoryBase& allocation(); 62 // Returns the expected size of the allocation. Since DiscardAllocation() will 75 // Entry in the resource manager corresponding to an allocation handle returned 93 XRTTupleAllocation** allocation); 98 XRTTupleAllocation** allocation); 102 // sub-shape will be shared between parent and the returned allocation, 107 XRTTupleAllocation** allocation, 111 // contains an allocation and indicates whether or not the allocation's handl 114 XRTTupleAllocation* allocation; member in struct:tensorflow::XRTTupleAllocation::ExpandedTupleInput [all...] |
/external/tensorflow/tensorflow/core/framework/ |
log_memory.cc | 51 MemoryLogTensorAllocation allocation; local 52 allocation.set_step_id(step_id); 53 allocation.set_kernel_name(kernel_name); 54 tensor.FillDescription(allocation.mutable_tensor()); 55 OutputToLog(allocation); 80 MemoryLogRawAllocation allocation; local 81 allocation.set_step_id(step_id); 82 allocation.set_operation(operation); 83 allocation.set_num_bytes(static_cast<int64>(num_bytes)); 84 allocation.set_ptr(reinterpret_cast<uintptr_t>(ptr)) [all...] |
/external/v8/src/heap/ |
local-allocator-inl.h | 67 AllocationResult allocation; local 71 allocation = new_space_lab_.AllocateRawAligned(object_size, alignment); 72 if (allocation.IsRetry()) { 76 allocation = new_space_lab_.AllocateRawAligned(object_size, alignment); 77 CHECK(!allocation.IsRetry()); 80 return allocation;
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
ClearObjectTest.java | 19 import android.renderscript.Allocation; 42 public void forEach(int testId, Allocation mIn, Allocation mOut) throws RSRuntimeException { 64 Allocation mIn = Allocation.createSized(mRS, Element.I32(mRS), ObjectNum); 65 Allocation mOut = Allocation.createSized(mRS, Element.I32(mRS), ObjectNum); 83 Allocation mOut = Allocation.createSized(mRS, Element.I32(mRS), ObjectNum); 84 Allocation mIn = Allocation.createSized(mRS, Element.I32(mRS), ObjectNum) 104 Allocation allocation = Allocation.createTyped(mRS, mIn.getType()); local [all...] |
IsObjectTest.java | 20 import android.renderscript.Allocation; 29 private Allocation mIn; 30 private Allocation mOut; 34 Allocation allocation; field in class:IsObjectTest 47 allocation = Allocation.createTyped(mRS, type); 61 allocation.destroy(); 78 mOut = Allocation.createSized(mRS, Element.I32(mRS), ObjectNum); 98 mOut = Allocation.createSized(mRS, Element.I32(mRS), ObjectNum) [all...] |
SetObjectTest.java | 20 import android.renderscript.Allocation; 28 private Allocation mIn; 29 private Allocation mOut; 33 Allocation allocation; field in class:SetObjectTest 46 allocation = Allocation.createTyped(mRS, type); 62 allocation.destroy(); 79 mOut = Allocation.createSized(mRS, Element.I32(mRS), ObjectNum); 99 mOut = Allocation.createSized(mRS, Element.I32(mRS), ObjectNum) [all...] |
/art/libartbase/base/ |
arena_allocator_test.cc | 60 // Reuse the previous arena and allocate more than previous allocation including red zone. 64 // Verify that the allocation was made on the same arena. 142 void* allocation = allocator.Alloc(size); local 143 EXPECT_TRUE(IsAligned<ArenaAllocator::kAlignment>(allocation)) 144 << reinterpret_cast<uintptr_t>(allocation); 154 // Case 1: small aligned allocation, aligned extend inside arena. 167 // Case 2: small aligned allocation, non-aligned extend inside arena. 180 // Case 3: small non-aligned allocation, aligned extend inside arena. 193 // Case 4: small non-aligned allocation, aligned non-extend inside arena. 209 // Case 5: large allocation, aligned extend into next arena [all...] |
/external/tensorflow/tensorflow/lite/ |
model.h | 133 const Allocation* allocation() const { return allocation_.get(); } function in class:tflite::FlatBufferModel 140 // Loads a model from a given allocation. FlatBufferModel will take over the 141 // ownership of `allocation`, and delete it in destructor. The ownership of 145 FlatBufferModel(std::unique_ptr<Allocation> allocation, 153 // allocated memory of the data allocated by allocation's internals. 160 std::unique_ptr<Allocation> allocation_; 216 const Allocation* allocation_ = nullptr;
|
/cts/tests/tests/rscpp/librscpptest/ |
rs_jni_object.cpp | 50 sp<Allocation> mOut = Allocation::createSized(mRS, Element::I32(mRS), ObjectNum); 78 sp<Allocation> mOut = Allocation::createSized(mRS, Element::I32(mRS), ObjectNum); 105 sp<Allocation> mOut = Allocation::createSized(mRS, Element::I32(mRS), ObjectNum); 106 sp<Allocation> mIn = Allocation::createSized(mRS, Element::I32(mRS), ObjectNum); 107 sp<Allocation> allocation = Allocation::createTyped(mRS, mIn->getType()) local [all...] |
/external/adhd/cras/src/server/ |
cras_a2dp_info.c | 17 uint8_t frequency = 0, mode = 0, subbands = 0, allocation, blocks = 0, local 39 allocation = SBC_AM_LOUDNESS; 41 allocation = SBC_AM_SNR; 70 allocation, blocks, bitpool);
|
/external/skia/src/gpu/vk/ |
GrVkAMDMemoryAllocator.cpp | 83 VmaAllocation allocation; local 84 VkResult result = vmaAllocateMemoryForImage(fAllocator, image, &info, &allocation, nullptr); 88 *backendMemory = (GrVkBackendMemory)allocation; 138 VmaAllocation allocation; local 139 VkResult result = vmaAllocateMemoryForBuffer(fAllocator, buffer, &info, &allocation, nullptr); 144 result = vmaAllocateMemoryForBuffer(fAllocator, buffer, &info, &allocation, nullptr); 151 *backendMemory = (GrVkBackendMemory)allocation; 156 const VmaAllocation allocation = (const VmaAllocation)memoryHandle; local 157 vmaFreeMemory(fAllocator, allocation); 162 const VmaAllocation allocation = (const VmaAllocation)memoryHandle local 204 const VmaAllocation allocation = (const VmaAllocation)memoryHandle; local 211 const VmaAllocation allocation = (const VmaAllocation)memoryHandle; local [all...] |
/external/skqp/src/gpu/vk/ |
GrVkAMDMemoryAllocator.cpp | 83 VmaAllocation allocation; local 84 VkResult result = vmaAllocateMemoryForImage(fAllocator, image, &info, &allocation, nullptr); 88 *backendMemory = (GrVkBackendMemory)allocation; 138 VmaAllocation allocation; local 139 VkResult result = vmaAllocateMemoryForBuffer(fAllocator, buffer, &info, &allocation, nullptr); 144 result = vmaAllocateMemoryForBuffer(fAllocator, buffer, &info, &allocation, nullptr); 151 *backendMemory = (GrVkBackendMemory)allocation; 156 const VmaAllocation allocation = (const VmaAllocation)memoryHandle; local 157 vmaFreeMemory(fAllocator, allocation); 162 const VmaAllocation allocation = (const VmaAllocation)memoryHandle local 204 const VmaAllocation allocation = (const VmaAllocation)memoryHandle; local 211 const VmaAllocation allocation = (const VmaAllocation)memoryHandle; local [all...] |
/external/tensorflow/tensorflow/compiler/xla/service/ |
allocation_tracker.cc | 127 return NotFound("no allocation record for global data handle: %d", 203 return NotFound("no allocation record for global data handle: %d", 237 Allocation& allocation = it->second; local 238 TF_RET_CHECK(allocation.ref_count >= 1); 239 if (allocation.ref_count == 1) { 240 allocation.device_memory.Free(); 243 allocation.ref_count--;
|
/external/tensorflow/tensorflow/compiler/xla/service/gpu/ |
buffer_allocations.cc | 48 const BufferAllocation& allocation = buffer_assignment->GetAllocation(i); local 50 if (allocation.is_entry_computation_parameter()) { 52 } else if (allocation.is_constant()) { 74 // Allocate each allocation that might escape, or is the temp buffer. 76 if (allocation.maybe_live_out() || allocation.IsPreallocatedTempBuffer()) { 77 const int64 buffer_size = allocation.size(); 97 if (allocation.IsPreallocatedTempBuffer()) { 135 const BufferAllocation& allocation = buffer_assignment_->GetAllocation(i); local 136 se::DeviceMemoryBase buffer_address = GetDeviceAddress(allocation.index()) [all...] |
gpu_executable.cc | 207 const BufferAllocation& allocation = assignment_->GetAllocation(i); local 208 if (allocation.is_constant()) { 212 llvm_ir::ConstantBufferAllocationToGlobalName(allocation), 215 << llvm_ir::ConstantBufferAllocationToGlobalName(allocation) 220 llvm_ir::LiteralForConstantAllocation(allocation); 226 literal.untyped_data(), allocation.size(), &global)); 253 const BufferAllocation& allocation = assignment_->GetAllocation(i); local 254 if (allocation.is_entry_computation_parameter()) { 255 auto param_no = allocation.parameter_number(); 257 arguments[param_no]->buffer(allocation.param_shape_index()) [all...] |
/external/webrtc/webrtc/call/ |
bitrate_allocator.cc | 43 ObserverBitrateMap allocation = AllocateBitrates(); local 44 for (const auto& kv : allocation) { 88 ObserverBitrateMap allocation = AllocateBitrates(); local 90 for (auto& kv : allocation) { 150 ObserverBitrateMap allocation; local 163 allocation[max_it->second.observer] = max_it->first; 165 allocation[max_it->second.observer] = observer_allowance; 171 return allocation; 176 ObserverBitrateMap allocation; local 180 allocation[observer.first] = observer.second.min_bitrate [all...] |
/external/swiftshader/src/Reactor/ |
ExecutableMemory.cpp | 49 struct Allocation 60 void *allocation; local 61 int result = posix_memalign(&allocation, alignment, bytes); 65 allocation = nullptr; 67 return allocation; 69 unsigned char *block = new unsigned char[bytes + sizeof(Allocation) + alignment]; 74 aligned = (unsigned char*)((uintptr_t)(block + sizeof(Allocation) + alignment - 1) & -(intptr_t)alignment); 75 Allocation *allocation = (Allocation*)(aligned - sizeof(Allocation)) [all...] |
/external/tensorflow/tensorflow/compiler/xla/service/cpu/ |
cpu_executable.cc | 88 auto& allocation = assignment_->GetAllocation(i); local 90 VLOG(3) << allocation.ToString(); 92 if (allocation.is_entry_computation_parameter()) { 93 unowning_buffers[i] = arguments[allocation.parameter_number()]->buffer( 94 allocation.param_shape_index()); 95 VLOG(3) << "allocation #" << i << " is a parameter"; 99 if (allocation.is_constant()) { 100 VLOG(3) << "allocation #" << i << " is a constant"; 104 if (allocation.is_thread_local()) { 109 int64 buffer_size = allocation.size() [all...] |