Lines Matching refs:page_idx
81 for (size_t page_idx = 0; page_idx <= 4; page_idx++) {
82 uint8_t* const page_start = buf() + page_idx * page_size();
85 SharedMemoryABI::GetNumChunksForLayout(abi.GetPageLayout(page_idx));
93 abi.GetChunkState(page_idx, chunk_idx));
105 chunk = abi.TryAcquireChunkForWriting(page_idx, chunk_idx, &header);
108 abi.GetChunkState(page_idx, chunk_idx));
146 ASSERT_FALSE(abi.TryAcquireChunkForWriting(page_idx, chunk_idx, &header)
155 ASSERT_EQ(page_idx, res);
156 ASSERT_EQ(chunk_idx == num_chunks - 1, abi.is_page_complete(page_idx));
158 abi.GetChunkState(page_idx, chunk_idx));
164 chunk = abi.TryAcquireChunkForReading(page_idx, chunk_idx);
167 abi.GetChunkState(page_idx, chunk_idx));
177 ASSERT_EQ(page_idx, res);
178 ASSERT_EQ(chunk_idx == num_chunks - 1, abi.is_page_free(page_idx));
180 abi.GetChunkState(page_idx, chunk_idx));