Searched refs:m_ptr (Results 1 – 5 of 5) sorted by relevance
/system/core/libpixelflinger/codeflinger/tinyutils/ |
D | smartpointer.h | 32 return m_ptr _op_ o.m_ptr; \ 35 return m_ptr _op_ o; \ 39 return m_ptr _op_ o.m_ptr; \ 43 return m_ptr _op_ o; \ 52 inline sp() : m_ptr(0) { } in sp() 74 inline T& operator* () const { return *m_ptr; } 75 inline T* operator-> () const { return m_ptr; } 76 inline T* get() const { return m_ptr; } in get() 90 T* m_ptr; variable 98 : m_ptr(other) in sp() [all …]
|
/system/core/libutils/include/utils/ |
D | StrongPointer.h | 33 inline sp() : m_ptr(nullptr) { } in sp() 69 inline T& operator* () const { return *m_ptr; } 70 inline T* operator-> () const { return m_ptr; } 71 inline T* get() const { return m_ptr; } in get() 72 inline explicit operator bool () const { return m_ptr != nullptr; } 90 T* m_ptr; variable 187 result.m_ptr = t; in make() 194 : m_ptr(other) { in sp() 203 : m_ptr(other.m_ptr) { in sp() 204 if (m_ptr) in sp() [all …]
|
D | RefBase.h | 196 return m_ptr _op_ o; \ 200 return m_ptr _op_ o; \ 213 return _wp_compare_<_compare_>(m_ptr, o); \ 366 inline wp() : m_ptr(nullptr), m_refs(nullptr) { } in wp() 401 inline T* unsafe_get() const { return m_ptr; } in unsafe_get() 422 return m_ptr == nullptr; 435 if (m_ptr == o.m_ptr) { 438 return _wp_compare_<std::greater>(m_ptr, o.m_ptr); 444 if (m_ptr == o.m_ptr) { 447 return _wp_compare_<std::less>(m_ptr, o.m_ptr); [all …]
|
/system/extras/mmap-perf/ |
D | mmapPerf.cpp | 50 void *m_ptr = nullptr; member in FileMap 67 m_ptr = mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_SHARED, m_fileFd.get(), 0); 68 if ((int)(uintptr_t)m_ptr == -1) { 69 … cout << "Error: mmap failed: " << (int)(uintptr_t)m_ptr << ": " << strerror(errno) << endl; 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; 87 uint8_t *targetPtr = (uint8_t*)m_ptr + pageSize * targetPage; in benchRandomRead() 91 uint8_t *targetPtr = (uint8_t*)m_ptr + pageSize * targetPage; in benchRandomWrite() 95 uint8_t *targetPtr = (uint8_t*)m_ptr + pageSize * j; in benchLinearRead() [all …]
|
/system/extras/zram-perf/ |
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()
|