Searched refs:page_layout (Results 1 – 4 of 4) sorted by relevance
513 uint32_t page_layout,534 uint16_t GetChunkSizeForLayout(uint32_t page_layout) const { in GetChunkSizeForLayout() argument535 return chunk_sizes_[(page_layout & kLayoutMask) >> kLayoutShift]; in GetChunkSizeForLayout()538 static ChunkState GetChunkStateFromLayout(uint32_t page_layout, in GetChunkStateFromLayout() argument540 return static_cast<ChunkState>((page_layout >> (chunk_idx * kChunkShift)) & in GetChunkStateFromLayout()544 static constexpr uint32_t GetNumChunksForLayout(uint32_t page_layout) { in GetNumChunksForLayout() argument545 return kNumChunksForLayout[(page_layout & kLayoutMask) >> kLayoutShift]; in GetNumChunksForLayout()552 static uint32_t GetUsedChunks(uint32_t page_layout) { in GetUsedChunks() argument553 const uint32_t num_chunks = GetNumChunksForLayout(page_layout); in GetUsedChunks()556 res |= ((page_layout & kChunkMask) != kChunkFree) ? (1 << i) : 0; in GetUsedChunks()[all …]
82 uint32_t page_layout = abi->GetPageLayout(page_idx); in TEST_P() local83 size_t num_chunks = SharedMemoryABI::GetNumChunksForLayout(page_layout); in TEST_P()
143 uint32_t page_layout, in GetChunkUnchecked() argument145 const size_t num_chunks = GetNumChunksForLayout(page_layout); in GetChunkUnchecked()148 const uint16_t chunk_size = GetChunkSizeForLayout(page_layout); in GetChunkUnchecked()
79 uint32_t page_layout = abi->GetPageLayout(page_idx); in VerifyPackets() local80 size_t num_chunks = SharedMemoryABI::GetNumChunksForLayout(page_layout); in VerifyPackets()