Home
last modified time | relevance | path

Searched refs:mem_ (Results 1 – 21 of 21) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/service/
Dmaybe_owning_device_memory.cc25 return *absl::get<tensorflow::se::OwningDeviceMemory>(mem_); in AsDeviceMemoryBase()
27 return absl::get<tensorflow::se::DeviceMemoryBase>(mem_); in AsDeviceMemoryBase()
32 return absl::holds_alternative<tensorflow::se::OwningDeviceMemory>(mem_); in HasOwnership()
40 return std::move(absl::get<tensorflow::se::OwningDeviceMemory>(mem_)); in Release()
45 return HasOwnership() ? &absl::get<tensorflow::se::OwningDeviceMemory>(mem_) in AsOwningDeviceMemory()
Dmaybe_owning_device_memory.h32 : mem_(std::move(owned)) {} in MaybeOwningDeviceMemory()
34 : mem_(unowned) {} in MaybeOwningDeviceMemory()
39 mem_ = unowned;
44 mem_ = std::move(owned);
70 mem_;
/external/webp/src/dec/
Didec_dec.c72 MemBuffer mem_; // input memory buffer. member
113 MemBuffer* const mem = &idec->mem_; in DoRemap()
167 MemBuffer* const mem = &idec->mem_; in AppendToMemBuffer()
208 MemBuffer* const mem = &idec->mem_; in RemapMemBuffer()
299 MemBuffer* const mem = &idec->mem_; in ChangeState()
309 MemBuffer* const mem = &idec->mem_; in DecodeWebPHeaders()
348 const uint8_t* data = idec->mem_.buf_ + idec->mem_.start_; in DecodeVP8FrameHeader()
349 const size_t curr_size = MemDataSize(&idec->mem_); in DecodeVP8FrameHeader()
362 idec->mem_.part0_size_ = (bits >> 5) + VP8_FRAME_HEADER_SIZE; in DecodeVP8FrameHeader()
375 MemBuffer* const mem = &idec->mem_; in CopyParts0Data()
[all …]
Dframe_dec.c710 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()
Dvp8i_dec.h245 void* mem_; member
Dvp8_dec.c715 WebPSafeFree(dec->mem_); in VP8Clear()
716 dec->mem_ = NULL; in VP8Clear()
/external/perfetto/src/tracing/internal/
Din_process_tracing_backend.cc47 base::PagedMemory mem_; member in perfetto::internal::__anon2ffc25410111::InProcessShm
59 : mem_(base::PagedMemory::Allocate(size)) {} in InProcessShm()
62 return mem_.Get(); in start()
66 return mem_.size(); in size()
/external/perfetto/src/tracing/test/
Dtest_shared_memory.h42 void* start() const override { return mem_.Get(); } in start()
45 base::PagedMemory mem_; variable
Dtest_shared_memory.cc27 mem_ = base::PagedMemory::Allocate(size); in TestSharedMemory()
/external/webp/src/demux/
Ddemux.c62 MemBuffer mem_; member
313 MemBuffer* const mem = &dmux->mem_; in ParseAnimationFrame()
399 MemBuffer* const mem = &dmux->mem_; in ParseSingleImage()
413 status = StoreFrame(1, 0, &dmux->mem_, frame); in ParseSingleImage()
445 MemBuffer* const mem = &dmux->mem_; in ParseVP8XChunks()
535 MemBuffer* const mem = &dmux->mem_; in ParseVP8X()
664 dmux->mem_ = *mem; in InitDemux()
743 if (!memcmp(parser->id, GetBuffer(&dmux->mem_), TAG_SIZE)) { in WebPDemuxInternal()
834 const uint8_t* const mem_buf = dmux->mem_.buf_; in SynthesizeFrame()
896 const uint8_t* const mem_buf = dmux->mem_.buf_; in ChunkCount()
[all …]
/external/perfetto/src/profiling/memory/
Dshared_ring_buffer.cc180 mem_ = region + kMetaPageSize; in Initialize()
317 std::tie(meta_, mem_, size_, size_mask_) = in operator =()
318 std::tie(other.meta_, other.mem_, other.size_, other.size_mask_); in operator =()
319 std::tie(other.meta_, other.mem_, other.size_, other.size_mask_) = in operator =()
Dshared_ring_buffer.h109 bool is_valid() const { return !!mem_; } in is_valid()
256 inline uint8_t* at(uint64_t pos) { return mem_ + (pos & size_mask_); } in at()
260 uint8_t* mem_ = nullptr; // Start of the contents (i.e. meta_ + kPageSize). variable
/external/perfetto/src/trace_processor/containers/
Dstring_pool.h159 : mem_(base::PagedMemory::Allocate(size, in Block()
173 return static_cast<uint8_t*>(mem_.Get()) + offset; in Get()
188 base::PagedMemory mem_;
Dstring_pool.cc106 mem_.EnsureCommitted(max_pos); in TryInsert()
/external/webp/src/utils/
Dquant_levels_dec_utils.c55 void* mem_; // all memory member
227 p->mem_ = (void*)mem; in InitParams()
259 WebPSafeFree(p->mem_); in CleanupParams()
/external/perfetto/src/profiling/common/
Dunwind_support.cc34 : mem_(std::move(mem)), sp_(sp), stack_end_(sp + size), stack_(stack) {} in StackOverlayMemory()
43 return mem_->Read(addr, dst, size); in Read()
Dunwind_support.h88 std::shared_ptr<unwindstack::Memory> mem_;
/external/webp/src/mux/
Danim_encode.c780 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/mesa3d/src/gallium/drivers/nouveau/codegen/
Dnv50_ir_util.h57 new ((f)->getProgram()->mem_##obj.allocate()) obj(f, args)
73 new ((p)->mem_##obj.allocate()) obj(p, args)
/external/libevent/test/
Dregress.c3021 check_dummy_mem_ok(void *mem_) in check_dummy_mem_ok() argument
3023 char *mem = mem_; in check_dummy_mem_ok()
3037 dummy_realloc(void *mem_, size_t len) in dummy_realloc() argument
3039 char *mem = mem_; in dummy_realloc()
3042 tt_want(check_dummy_mem_ok(mem_)); in dummy_realloc()
3049 dummy_free(void *mem_) in dummy_free() argument
3051 char *mem = mem_; in dummy_free()
3052 tt_want(check_dummy_mem_ok(mem_)); in dummy_free()
/external/perfetto/docs/design-docs/
Dheapprofd-design.md98 return mem_->Read(addr, dst, size);