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/include/utils/ |
D | StrongPointer.h | 35 return m_ptr _op_ o.m_ptr; \ 38 return m_ptr _op_ o; \ 42 return m_ptr _op_ o.m_ptr; \ 46 return m_ptr _op_ o; \ 49 return m_ptr _op_ o.m_ptr; \ 53 return m_ptr _op_ o.m_ptr; \ 61 inline sp() : m_ptr(0) { } in sp() 91 inline T& operator* () const { return *m_ptr; } 92 inline T* operator-> () const { return m_ptr; } 93 inline T* get() const { return m_ptr; } in get() [all …]
|
D | RefBase.h | 40 return m_ptr _op_ o.m_ptr; \ 43 return m_ptr _op_ o; \ 47 return m_ptr _op_ o.m_ptr; \ 51 return m_ptr _op_ o; \ 222 inline wp() : m_ptr(0) { } in wp() 257 inline T* unsafe_get() const { return m_ptr; } in unsafe_get() 269 return (m_ptr == o.m_ptr) && (m_refs == o.m_refs); 273 return m_ptr == o.m_ptr; 277 return (m_ptr == o.m_ptr) ? (m_refs > o.m_refs) : (m_ptr > o.m_ptr); 281 return (m_ptr == o.m_ptr) ? (m_refs > o.m_refs) : (m_ptr > o.m_ptr); [all …]
|
/system/extras/mmap-perf/ |
D | mmapPerf.cpp | 49 void *m_ptr = nullptr; member in FileMap 66 m_ptr = mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_SHARED, m_fileFd.get(), 0); 67 if ((int)(uintptr_t)m_ptr == -1) { 68 … cout << "Error: mmap failed: " << (int)(uintptr_t)m_ptr << ": " << strerror(errno) << endl; 74 madvise(m_ptr, m_size, MADV_RANDOM); 77 madvise(m_ptr, m_size, MADV_SEQUENTIAL); 81 uint8_t *targetPtr = (uint8_t*)m_ptr + 4096ull * i; 86 uint8_t *targetPtr = (uint8_t*)m_ptr + pageSize * targetPage; in benchRandomRead() 90 uint8_t *targetPtr = (uint8_t*)m_ptr + pageSize * targetPage; in benchRandomWrite() 94 uint8_t *targetPtr = (uint8_t*)m_ptr + pageSize * j; in benchLinearRead() [all …]
|
/system/extras/zram-perf/ |
D | zram-perf.cpp | 31 void *m_ptr; member in AlignedAlloc 34 posix_memalign(&m_ptr, align, size); in AlignedAlloc() 37 free(m_ptr); in ~AlignedAlloc() 40 return m_ptr; in ptr()
|