/external/tensorflow/tensorflow/compiler/xla/service/ |
D | owning_device_memory.h | 48 : mem_(mem), device_ordinal_(device_ordinal), allocator_(allocator) { in OwningDeviceMemory() 53 : mem_(other.mem_), in OwningDeviceMemory() 56 other.mem_ = se::DeviceMemoryBase(); in OwningDeviceMemory() 64 mem_ = other.mem_; 68 other.mem_ = se::DeviceMemoryBase(); 93 const void* opaque() const { return mem_.opaque(); } in opaque() 94 void* opaque() { return mem_.opaque(); } in opaque() 96 uint64 size() const { return mem_.size(); } in size() 101 bool is_null() const { return mem_.is_null(); } in is_null() 114 se::DeviceMemoryBase mem(mem_); in Forget() [all …]
|
D | maybe_owning_device_memory.cc | 22 return absl::get<OwningDeviceMemory>(mem_).AsDeviceMemoryBase(); in AsDeviceMemoryBase() 24 return absl::get<se::DeviceMemoryBase>(mem_); in AsDeviceMemoryBase() 29 return absl::holds_alternative<OwningDeviceMemory>(mem_); in HasOwnership() 36 OwningDeviceMemory result = std::move(absl::get<OwningDeviceMemory>(mem_)); in Release() 37 mem_ = result.AsDeviceMemoryBase(); in Release()
|
D | maybe_owning_device_memory.h | 33 : mem_(std::move(owned)) {} in MaybeOwningDeviceMemory() 35 : mem_(unowned) {} in MaybeOwningDeviceMemory() 40 mem_ = unowned; 45 mem_ = std::move(owned); 65 absl::variant<OwningDeviceMemory, se::DeviceMemoryBase> mem_;
|
D | owning_device_memory.cc | 26 auto status = allocator_->Deallocate(device_ordinal_, mem_); in Free() 28 LOG(WARNING) << "Deallocating buffer " << mem_.opaque() << " failed."; in Free() 32 mem_ = se::DeviceMemoryBase(); in Free()
|
/external/webp/src/dec/ |
D | idec_dec.c | 72 MemBuffer mem_; // input memory buffer. member 113 MemBuffer* const mem = &idec->mem_; in DoRemap() 167 MemBuffer* const mem = &idec->mem_; in AppendToMemBuffer() 205 MemBuffer* const mem = &idec->mem_; in RemapMemBuffer() 294 MemBuffer* const mem = &idec->mem_; in ChangeState() 304 MemBuffer* const mem = &idec->mem_; in DecodeWebPHeaders() 343 const uint8_t* data = idec->mem_.buf_ + idec->mem_.start_; in DecodeVP8FrameHeader() 344 const size_t curr_size = MemDataSize(&idec->mem_); in DecodeVP8FrameHeader() 357 idec->mem_.part0_size_ = (bits >> 5) + VP8_FRAME_HEADER_SIZE; in DecodeVP8FrameHeader() 370 MemBuffer* const mem = &idec->mem_; in CopyParts0Data() [all …]
|
D | frame_dec.c | 710 WebPSafeFree(dec->mem_); in AllocateMemory() 712 dec->mem_ = WebPSafeMalloc(needed, sizeof(uint8_t)); in AllocateMemory() 713 if (dec->mem_ == NULL) { in AllocateMemory() 721 mem = (uint8_t*)dec->mem_; in AllocateMemory() 772 assert(mem <= (uint8_t*)dec->mem_ + dec->mem_size_); in AllocateMemory()
|
D | vp8i_dec.h | 245 void* mem_; member
|
D | vp8_dec.c | 714 WebPSafeFree(dec->mem_); in VP8Clear() 715 dec->mem_ = NULL; in VP8Clear()
|
/external/perfetto/src/traced/probes/ftrace/ |
D | page_pool.h | 93 return reinterpret_cast<uint8_t*>(mem_.Get()) + i * base::kPageSize; in At() 106 mem_.AdviseDontNeed(mem_.Get(), kBlockSize); in Clear() 112 PageBlock() { mem_ = base::PagedMemory::Allocate(kBlockSize); } in PageBlock() 114 base::PagedMemory mem_; variable
|
/external/perfetto/src/tracing/test/ |
D | test_shared_memory.h | 42 void* start() const override { return mem_.Get(); } in start() 45 base::PagedMemory mem_; variable
|
D | test_shared_memory.cc | 27 mem_ = base::PagedMemory::Allocate(size); in TestSharedMemory()
|
/external/perfetto/src/trace_processor/ |
D | string_pool.h | 93 Block() : mem_(base::PagedMemory::Allocate(kBlockSize)) {} in Block() 105 return static_cast<uint8_t*>(mem_.Get()) + offset; in Get() 123 base::PagedMemory mem_; member
|
/external/webp/src/demux/ |
D | demux.c | 62 MemBuffer mem_; member 313 MemBuffer* const mem = &dmux->mem_; in ParseAnimationFrame() 394 MemBuffer* const mem = &dmux->mem_; in ParseSingleImage() 408 status = StoreFrame(1, 0, &dmux->mem_, frame); in ParseSingleImage() 440 MemBuffer* const mem = &dmux->mem_; in ParseVP8XChunks() 530 MemBuffer* const mem = &dmux->mem_; in ParseVP8X() 659 dmux->mem_ = *mem; in InitDemux() 738 if (!memcmp(parser->id, GetBuffer(&dmux->mem_), TAG_SIZE)) { in WebPDemuxInternal() 829 const uint8_t* const mem_buf = dmux->mem_.buf_; in SynthesizeFrame() 891 const uint8_t* const mem_buf = dmux->mem_.buf_; in ChunkCount() [all …]
|
/external/perfetto/src/profiling/memory/ |
D | shared_ring_buffer.h | 96 bool is_valid() const { return !!mem_; } in is_valid() 178 inline uint8_t* at(uint64_t pos) { return mem_ + (pos & (size_ - 1)); } in at() 182 uint8_t* mem_ = nullptr; // Start of the contents (i.e. meta_ + kPageSize). variable
|
D | shared_ring_buffer.cc | 167 mem_ = region + kMetaPageSize; in Initialize() 294 std::tie(meta_, mem_, size_) = std::tie(other.meta_, other.mem_, other.size_); in operator =() 295 std::tie(other.meta_, other.mem_, other.size_) = in operator =()
|
D | unwinding.cc | 125 : mem_(std::move(mem)), sp_(sp), stack_end_(sp + size), stack_(stack) {} in StackOverlayMemory() 134 return mem_->Read(addr, dst, size); in Read()
|
D | unwinding.h | 90 std::shared_ptr<unwindstack::Memory> mem_;
|
/external/webp/src/utils/ |
D | quant_levels_dec_utils.c | 55 void* mem_; // all memory member 227 p->mem_ = (void*)mem; in InitParams() 259 WebPSafeFree(p->mem_); in CleanupParams()
|
/external/webp/src/mux/ |
D | anim_encode.c | 780 WebPMemoryWriter mem_; member 808 WebPMemoryWriterInit(&candidate->mem_); in EncodeCandidate() 816 if (!EncodeFrame(&config, sub_frame, &candidate->mem_)) { in EncodeCandidate() 825 WebPMemoryWriterClear(&candidate->mem_); in EncodeCandidate() 1019 const size_t candidate_size = candidates[i].mem_.size; in PickBestCandidate() 1034 GetEncodedData(&candidates[i].mem_, &dst->bitstream); in PickBestCandidate() 1047 WebPMemoryWriterClear(&candidates[i].mem_); in PickBestCandidate() 1179 WebPMemoryWriterClear(&candidates[i].mem_); in SetFrame()
|
/external/libevent/test/ |
D | regress.c | 2950 check_dummy_mem_ok(void *mem_) in check_dummy_mem_ok() argument 2952 char *mem = mem_; in check_dummy_mem_ok() 2966 dummy_realloc(void *mem_, size_t len) in dummy_realloc() argument 2968 char *mem = mem_; in dummy_realloc() 2971 tt_want(check_dummy_mem_ok(mem_)); in dummy_realloc() 2978 dummy_free(void *mem_) in dummy_free() argument 2980 char *mem = mem_; in dummy_free() 2981 tt_want(check_dummy_mem_ok(mem_)); in dummy_free()
|
/external/mesa3d/src/gallium/drivers/nouveau/codegen/ |
D | nv50_ir_util.h | 57 new ((f)->getProgram()->mem_##obj.allocate()) obj(f, args) 73 new ((p)->mem_##obj.allocate()) obj(p, args)
|