Searched refs:m_ptr (Results 1 – 6 of 6) sorted by relevance
/aosp12/frameworks/rs/cpp/util/ |
H A D | StrongPointer.h | 110 T* m_ptr; variable 123 : m_ptr(other) in sp() 130 : m_ptr(other.m_ptr) in sp() 132 if (m_ptr) m_ptr->incStrong(this); in sp() 143 : m_ptr(other.m_ptr) in sp() 145 if (m_ptr) m_ptr->incStrong(this); in sp() 151 if (m_ptr) m_ptr->decStrong(this); in ~sp() 158 if (m_ptr) m_ptr->decStrong(this); 167 if (m_ptr) m_ptr->decStrong(this); 177 if (m_ptr) m_ptr->decStrong(this); [all …]
|
H A D | RefBase.h | 41 return m_ptr _op_ o.m_ptr; \ 251 return (m_ptr == o.m_ptr) && (m_refs == o.m_refs); 255 return m_ptr == o.m_ptr; 259 return (m_ptr == o.m_ptr) ? (m_refs > o.m_refs) : (m_ptr > o.m_ptr); 263 return (m_ptr == o.m_ptr) ? (m_refs > o.m_refs) : (m_ptr > o.m_ptr); 267 return (m_ptr == o.m_ptr) ? (m_refs < o.m_refs) : (m_ptr < o.m_ptr); 271 return (m_ptr == o.m_ptr) ? (m_refs < o.m_refs) : (m_ptr < o.m_ptr); 305 : m_ptr(other.m_ptr), m_refs(other.m_refs) in wp() 312 : m_ptr(other.m_ptr) in wp() 328 : m_ptr(other.m_ptr) in wp() [all …]
|
/aosp12/system/core/libutils/include/utils/ |
H A D | StrongPointer.h | 124 T* m_ptr; variable 273 : m_ptr(other.m_ptr) { in sp() 274 if (m_ptr) in sp() 279 sp<T>::sp(sp<T>&& other) noexcept : m_ptr(other.m_ptr) { in sp() 285 : m_ptr(other.m_ptr) { in sp() 286 if (m_ptr) in sp() 292 : m_ptr(other.m_ptr) { in sp() 304 if (m_ptr) in ~sp() 325 m_ptr = other.m_ptr; 344 if (m_ptr) m_ptr->decStrong(this); [all …]
|
H A D | RefBase.h | 490 if (m_ptr == o.m_ptr) { 493 return _wp_compare_<std::greater>(m_ptr, o.m_ptr); 499 if (m_ptr == o.m_ptr) { 502 return _wp_compare_<std::less>(m_ptr, o.m_ptr); 588 : m_ptr(other.m_ptr), m_refs(other.m_refs) in wp() 595 : m_ptr(other.m_ptr) in wp() 597 m_refs = m_ptr ? m_ptr->createWeak(this) : nullptr; in wp() 602 : m_ptr(other.m_ptr) in wp() 604 if (m_ptr) { in wp() 614 : m_ptr(other.m_ptr) in wp() [all …]
|
/aosp12/system/extras/mmap-perf/ |
H A D | mmapPerf.cpp | 50 void *m_ptr = nullptr; member in FileMap 68 if ((int)(uintptr_t)m_ptr == -1) { 75 madvise(m_ptr, m_size, MADV_RANDOM); 78 madvise(m_ptr, m_size, MADV_SEQUENTIAL); 82 uint8_t *targetPtr = (uint8_t*)m_ptr + 4096ull * i; 95 uint8_t *targetPtr = (uint8_t*)m_ptr + pageSize * j; in benchLinearRead() 99 uint8_t *targetPtr = (uint8_t*)m_ptr + pageSize * j; in benchLinearWrite() 103 int ret1 = msync(m_ptr, m_size, MS_SYNC | MS_INVALIDATE); in dropCache() 104 madvise(m_ptr, m_size, MADV_DONTNEED); in dropCache() 108 if (m_ptr) in ~FileMap() [all …]
|
/aosp12/system/extras/zram-perf/ |
H A D | zram-perf.cpp | 40 void *m_ptr; member in AlignedAlloc 43 posix_memalign(&m_ptr, align, size); in AlignedAlloc() 46 free(m_ptr); in ~AlignedAlloc() 49 return m_ptr; in ptr()
|