Lines Matching defs:AllocationRingBuffer
188 AllocationRingBuffer *RB = getRingBuffer();
196 AllocationRingBuffer *RB = getRingBuffer();
843 AllocationRingBuffer *RB = getRingBuffer();
849 AllocationRingBuffer *RB = getRingBuffer();
868 AllocationRingBuffer *RB = getRingBuffer();
976 struct AllocationRingBuffer {
994 static_assert(sizeof(AllocationRingBuffer) %
995 alignof(typename AllocationRingBuffer::Entry) ==
1002 // Pointer to memory mapped area starting with AllocationRingBuffer struct,
1006 AllocationRingBuffer *getRingBuffer() {
1007 return reinterpret_cast<AllocationRingBuffer *>(
1391 AllocationRingBuffer *RB = getRingBuffer();
1399 void storeRingBufferEntry(AllocationRingBuffer *RB, void *Ptr,
1404 typename AllocationRingBuffer::Entry *Entry =
1428 AllocationRingBuffer *RB = getRingBuffer();
1445 AllocationRingBuffer *RB = getRingBuffer();
1555 reinterpret_cast<const AllocationRingBuffer *>(RingBufferPtr);
1631 static typename AllocationRingBuffer::Entry *
1632 getRingBufferEntry(AllocationRingBuffer *RB, uptr N) {
1634 &reinterpret_cast<char *>(RB)[sizeof(AllocationRingBuffer)];
1635 return &reinterpret_cast<typename AllocationRingBuffer::Entry *>(
1638 static const typename AllocationRingBuffer::Entry *
1639 getRingBufferEntry(const AllocationRingBuffer *RB, uptr N) {
1641 &reinterpret_cast<const char *>(RB)[sizeof(AllocationRingBuffer)];
1642 return &reinterpret_cast<const typename AllocationRingBuffer::Entry *>(
1692 auto *RB = reinterpret_cast<AllocationRingBuffer *>(MemMap.getBase());
1704 AllocationRingBuffer *RB = getRingBuffer();
1721 return sizeof(AllocationRingBuffer) +
1722 RingBufferElements * sizeof(typename AllocationRingBuffer::Entry);
1726 if (Bytes < sizeof(AllocationRingBuffer)) {
1729 return (Bytes - sizeof(AllocationRingBuffer)) /
1730 sizeof(typename AllocationRingBuffer::Entry);