Home
last modified time | relevance | path

Searched refs:kChunkShift (Results 1 – 2 of 2) sorted by relevance

/external/perfetto/src/tracing/core/
Dshared_memory_abi.cc168 auto cur_chunk_state = (layout >> (chunk_idx * kChunkShift)) & kChunkMask; in TryAcquireChunk()
173 next_layout &= ~(kChunkMask << (chunk_idx * kChunkShift)); in TryAcquireChunk()
174 next_layout |= (desired_chunk_state << (chunk_idx * kChunkShift)); in TryAcquireChunk()
213 layout >>= kChunkShift; in GetFreeChunks()
237 ((layout >> (chunk_idx * kChunkShift)) & kChunkMask); in ReleaseChunk()
253 next_layout &= ~(kChunkMask << (chunk_idx * kChunkShift)); in ReleaseChunk()
254 next_layout |= (desired_chunk_state << (chunk_idx * kChunkShift)); in ReleaseChunk()
282 ((layout >> (chunk_idx * kChunkShift)) & kChunkMask); in TryAcquireAllChunksForReading()
288 next_layout |= kChunkBeingRead << (chunk_idx * kChunkShift); in TryAcquireAllChunksForReading()
291 next_layout |= kChunkFree << (chunk_idx * kChunkShift); in TryAcquireAllChunksForReading()
/external/perfetto/include/perfetto/tracing/core/
Dshared_memory_abi.h255 static constexpr uint32_t kChunkShift = 2; variable
448 (kAllChunksComplete & ((1 << (num_chunks * kChunkShift)) - 1)); in is_page_complete()
515 return static_cast<ChunkState>((layout >> (chunk_idx * kChunkShift)) & in GetChunkState()