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.cc180 auto cur_chunk_state = (layout >> (chunk_idx * kChunkShift)) & kChunkMask; in TryAcquireChunk()
185 next_layout &= ~(kChunkMask << (chunk_idx * kChunkShift)); in TryAcquireChunk()
186 next_layout |= (desired_chunk_state << (chunk_idx * kChunkShift)); in TryAcquireChunk()
225 layout >>= kChunkShift; in GetFreeChunks()
254 ((layout >> (chunk_idx * kChunkShift)) & kChunkMask); in ReleaseChunk()
270 next_layout &= ~(kChunkMask << (chunk_idx * kChunkShift)); in ReleaseChunk()
271 next_layout |= (desired_chunk_state << (chunk_idx * kChunkShift)); in ReleaseChunk()
/external/perfetto/include/perfetto/ext/tracing/core/
Dshared_memory_abi.h262 static constexpr uint32_t kChunkShift = 2; variable
473 (kAllChunksComplete & ((1 << (num_chunks * kChunkShift)) - 1)); in is_page_complete()
547 return static_cast<ChunkState>((page_layout >> (chunk_idx * kChunkShift)) & in GetChunkStateFromLayout()
564 page_layout >>= kChunkShift; in GetUsedChunks()