Home
last modified time | relevance | path

Searched refs:memory_ (Results 1 – 25 of 59) sorted by relevance

123

/external/tensorflow/tensorflow/lite/delegates/gpu/cl/
Dcl_memory.h36 : memory_(memory), has_ownership_(has_ownership) {} in CLMemory()
42 : memory_(image.memory_), has_ownership_(image.has_ownership_) { in CLMemory()
43 image.memory_ = nullptr; in CLMemory()
51 std::swap(memory_, image.memory_);
57 cl_mem memory() const { return memory_; } in memory()
59 bool is_valid() const { return memory_ != nullptr; } in is_valid()
66 cl_mem to_return = memory_; in Release()
67 memory_ = nullptr; in Release()
73 if (memory_ && has_ownership_) { in Invalidate()
74 clReleaseMemObject(memory_); in Invalidate()
[all …]
Dlinear_storage.cc27 if (memory_) { in Release()
28 clReleaseMemObject(memory_); in Release()
29 memory_ = nullptr; in Release()
35 memory_(storage.memory_), in LinearStorage()
38 storage.memory_ = nullptr; in LinearStorage()
44 std::swap(memory_, storage.memory_); in operator =()
65 resources->buffers.push_back({"buffer", memory_}); in GetGPUResources()
67 resources->images2d.push_back({"tex2d", memory_}); in GetGPUResources()
89 data_ptr, &memory_); in CreateFromTensorLinearDescriptor()
93 &memory_); in CreateFromTensorLinearDescriptor()
Dtensor.cc260 : memory_(memory), in Tensor()
268 : memory_(memory), in Tensor()
276 : memory_(memory), in Tensor()
284 : memory_(memory), in Tensor()
291 : memory_(tensor.memory_), in Tensor()
296 tensor.memory_ = nullptr; in Tensor()
303 std::swap(memory_, tensor.memory_); in operator =()
318 if (memory_owner_ && memory_) { in Release()
319 clReleaseMemObject(memory_); in Release()
320 memory_ = nullptr; in Release()
[all …]
Dgl_interop.cc158 if (queue_ && !memory_.empty()) { in Release()
161 queue_, memory_.size(), memory_.data(), wait_events.size(), in Release()
187 memory_.push_back(memory); in RegisterMemory()
191 auto it = std::find(memory_.begin(), memory_.end(), memory); in UnregisterMemory()
192 if (it != memory_.end()) { in UnregisterMemory()
193 memory_.erase(it); in UnregisterMemory()
232 return AcquiredGlObjects::Acquire(memory_, queue_, inbound_events, nullptr, in Start()
Dgl_interop.h102 : memory_(memory), queue_(queue) {} in AcquiredGlObjects()
104 std::vector<cl_mem> memory_; variable
130 bool is_enabled() const { return egl_display_ && !memory_.empty(); } in is_enabled()
139 std::vector<cl_mem> memory_; variable
/external/libchrome/base/memory/
Dshared_memory_mapping.cc39 : memory_(mapping.memory_), in SharedMemoryMapping()
43 mapping.memory_ = nullptr; in SharedMemoryMapping()
49 memory_ = mapping.memory_; in operator =()
53 mapping.memory_ = nullptr; in operator =()
65 : memory_(memory), size_(size), mapped_size_(mapped_size), guid_(guid) { in SharedMemoryMapping()
76 if (!UnmapViewOfFile(memory_)) in Unmap()
79 uintptr_t addr = reinterpret_cast<uintptr_t>(memory_); in Unmap()
85 mach_task_self(), reinterpret_cast<mach_vm_address_t>(memory_), size_); in Unmap()
88 if (munmap(memory_, size_) < 0) in Unmap()
Dshared_memory_posix.cc265 if (memory_) in MapAt()
296 memory_ = mmap(nullptr, bytes, PROT_READ | (read_only_ ? 0 : PROT_WRITE), in MapAt()
299 bool mmap_succeeded = memory_ && memory_ != reinterpret_cast<void*>(-1); in MapAt()
304 reinterpret_cast<uintptr_t>(memory_) & in MapAt()
309 memory_ = nullptr; in MapAt()
316 if (!memory_) in Unmap()
321 munmap(memory_, mapped_size_); in Unmap()
322 memory_ = nullptr; in Unmap()
Dshared_memory_mapping.h40 bool IsValid() const { return memory_ != nullptr; } in IsValid()
69 void* raw_memory_ptr() const { return memory_; } in raw_memory_ptr()
76 void* memory_ = nullptr; variable
/external/google-breakpad/src/processor/
Dstackwalker_ppc.cc54 if (memory_ && memory_->GetBase() + memory_->GetSize() - 1 > 0xffffffff) { in StackwalkerPPC()
59 HexString(memory_->GetBase()) << "+" << in StackwalkerPPC()
60 HexString(memory_->GetSize()); in StackwalkerPPC()
61 memory_ = NULL; in StackwalkerPPC()
87 if (!memory_ || !stack) { in GetCallerFrame()
108 if (!memory_->GetMemoryAtAddress(last_frame->context.gpr[1], in GetCallerFrame()
120 if (!memory_->GetMemoryAtAddress(stack_pointer + 8, &instruction) || in GetCallerFrame()
Dstackwalker_mips.cc58 if (memory_) { in StackwalkerMIPS()
60 if (0xffffffffffffffff - memory_->GetBase() < memory_->GetSize() - 1) { in StackwalkerMIPS()
62 << HexString(memory_->GetBase()) in StackwalkerMIPS()
64 << HexString(memory_->GetSize()); in StackwalkerMIPS()
65 memory_ = NULL; in StackwalkerMIPS()
68 if (0xffffffff - memory_->GetBase() < memory_->GetSize() - 1) { in StackwalkerMIPS()
70 << HexString(memory_->GetBase()) in StackwalkerMIPS()
72 << HexString(memory_->GetSize()); in StackwalkerMIPS()
73 memory_ = NULL; in StackwalkerMIPS()
124 if (!cfi_frame_info->FindCallerRegs(callee_registers, *memory_, in GetCallerByCFIFrameInfo()
[all …]
Dstackwalker_x86.cc96 if (memory_ && memory_->GetBase() + memory_->GetSize() - 1 > 0xffffffff) { in StackwalkerX86()
100 HexString(memory_->GetBase()) << "+" << in StackwalkerX86()
101 HexString(memory_->GetSize()); in StackwalkerX86()
102 memory_ = NULL; in StackwalkerX86()
375 PostfixEvaluator<uint32_t>(&dictionary, memory_); in GetCallerByWindowsFrameInfo()
463 if (has_skipped_frames || !memory_->GetMemoryAtAddress(ebp, &value)) { in GetCallerByWindowsFrameInfo()
471 if (!memory_->GetMemoryAtAddress(location, &ebp)) in GetCallerByWindowsFrameInfo()
474 if (memory_->GetMemoryAtAddress(ebp, &value)) { in GetCallerByWindowsFrameInfo()
524 .FindCallerRegisters(*memory_, *cfi_frame_info, in GetCallerByCFIFrameInfo()
574 if (memory_->GetMemoryAtAddress(last_ebp + 4, &caller_eip) && in GetCallerByEBPAtBase()
[all …]
Dstackwalker_amd64.cc135 .FindCallerRegisters(*memory_, *cfi_frame_info, in GetCallerByCFIFrameInfo()
183 if (memory_->GetMemoryAtAddress(last_rbp + 8, &caller_rip) && in GetCallerByFramePointerRecovery()
184 memory_->GetMemoryAtAddress(last_rbp, &caller_rbp)) { in GetCallerByFramePointerRecovery()
200 if (!memory_->GetMemoryAtAddress(caller_rbp, &unused)) { in GetCallerByFramePointerRecovery()
253 if (memory_->GetMemoryAtAddress(last_frame->context.rbp, &caller_rbp) && in GetCallerByStackScan()
271 if (!memory_ || !stack) { in GetCallerFrame()
Dstackwalker_ppc64.cc78 if (!memory_ || !stack) { in GetCallerFrame()
99 if (!memory_->GetMemoryAtAddress(last_frame->context.gpr[1], in GetCallerFrame()
111 if (!memory_->GetMemoryAtAddress(stack_pointer + 16, &instruction) || in GetCallerFrame()
Dstackwalker_sparc.cc77 if (!memory_ || !stack) { in GetCallerFrame()
103 if (!memory_->GetMemoryAtAddress(stack_pointer + 60, in GetCallerFrame()
109 if (!memory_->GetMemoryAtAddress(stack_pointer + 56, in GetCallerFrame()
Dstackwalker_arm64.cc123 if (!cfi_frame_info->FindCallerRegs(callee_registers, *memory_, in GetCallerByCFIFrameInfo()
218 if (last_fp && !memory_->GetMemoryAtAddress(last_fp, &caller_fp)) { in GetCallerByFramePointer()
225 if (last_fp && !memory_->GetMemoryAtAddress(last_fp + 8, &caller_lr)) { in GetCallerByFramePointer()
270 if (last_last_fp && !memory_->GetMemoryAtAddress(last_last_fp, &last_fp)) { in CorrectRegLRByFramePointer()
280 if (last_last_fp && !memory_->GetMemoryAtAddress(last_last_fp + 8, &last_lr)) { in CorrectRegLRByFramePointer()
292 if (!memory_ || !stack) { in GetCallerFrame()
Dpostfix_evaluator.h99 : dictionary_(dictionary), memory_(memory), stack_() {} in PostfixEvaluator()
168 const MemoryRegion *memory_; variable
Dstackwalker_arm.cc101 if (!cfi_frame_info->FindCallerRegs(callee_registers, *memory_, in GetCallerByCFIFrameInfo()
207 if (last_fp && !memory_->GetMemoryAtAddress(last_fp, &caller_fp)) { in GetCallerByFramePointer()
214 if (last_fp && !memory_->GetMemoryAtAddress(last_fp + 4, &caller_lr)) { in GetCallerByFramePointer()
243 if (!memory_ || !stack) { in GetCallerFrame()
/external/deqp-deps/amber/src/vulkan/
Dtransfer_buffer.cc36 if (memory_ != VK_NULL_HANDLE) { in ~TransferBuffer()
37 UnMapMemory(memory_); in ~TransferBuffer()
38 device_->GetPtrs()->vkFreeMemory(device_->GetVkDevice(), memory_, in ~TransferBuffer()
53 r = AllocateAndBindMemoryToVkBuffer(buffer_, &memory_, in Initialize()
84 return MapMemory(memory_); in Initialize()
/external/webrtc/modules/audio_processing/aec3/
Dmoving_average.cc26 memory_(num_elem * mem_len_, 0.f), in MovingAverage()
41 for (auto i = memory_.begin(); i < memory_.end(); i += num_elem_) { in Average()
54 memory_.begin() + mem_index_ * num_elem_); in Average()
/external/tensorflow/tensorflow/lite/delegates/gpu/metal/
Dmetal_spatial_tensor.cc176 : memory_(buffer), in MetalSpatialTensor()
189 : memory_(buffer), in MetalSpatialTensor()
197 : memory_(tensor.memory_), in MetalSpatialTensor()
203 tensor.memory_ = nullptr; in MetalSpatialTensor()
209 std::swap(memory_, tensor.memory_); in operator =()
220 if (memory_owner_ && memory_) { in Release()
221 memory_ = nullptr; in Release()
238 resources->buffers.push_back({"buffer", memory_}); in GetGPUResources()
281 resources->buffers.push_back({"buffer", memory_}); in GetGPUResources()
292 resources->buffers.push_back({"buffer", memory_}); in GetGPUResources()
[all …]
/external/google-breakpad/src/common/mac/
Dmacho_walker.cc53 memory_(NULL), in MachoWalker()
66 memory_(memory), in MachoWalker()
102 if (memory_) { in ReadBytes()
112 memcpy(buffer, static_cast<char *>(memory_) + offset, size); in ReadBytes()
Dmacho_id.cc57 : memory_(0), in MachoID()
66 : memory_(memory), in MachoID()
241 if (memory_) { in WalkHeader()
242 MachoWalker walker(memory_, memory_size_, callback, context); in WalkHeader()
/external/libchrome/libchrome_tools/patch/
Dtrace_event.patch174 reinterpret_cast<uintptr_t>(memory_) &
180 memory_ = nullptr;
183 if (!memory_)
189 munmap(memory_, mapped_size_);
190 memory_ = nullptr;
Dshared_memory_mapping.patch18 : memory_(memory), size_(size), mapped_size_(mapped_size), guid_(guid) {
32 if (!UnmapViewOfFile(memory_))
/external/webp/src/enc/
Dpicture_enc.c55 picture->memory_ = NULL; in WebPPictureResetBufferYUVA()
103 WebPSafeFree(picture->memory_); in WebPPictureAllocYUVA()
131 picture->memory_ = (void*)mem; in WebPPictureAllocYUVA()
171 WebPSafeFree(picture->memory_); in WebPPictureFree()

123