Lines Matching refs:page_idx
142 SharedMemoryABI::Chunk SharedMemoryABI::GetChunkUnchecked(size_t page_idx,
151 Chunk chunk(page_start(page_idx) + chunk_offset_in_page, chunk_size,
158 size_t page_idx,
164 PageHeader* phdr = page_header(page_idx);
189 Chunk chunk = GetChunkUnchecked(page_idx, layout, chunk_idx);
205 bool SharedMemoryABI::TryPartitionPage(size_t page_idx, PageLayout layout) {
209 PageHeader* phdr = page_header(page_idx);
217 uint32_t SharedMemoryABI::GetFreeChunks(size_t page_idx) {
219 page_header(page_idx)->layout.load(std::memory_order_relaxed);
234 size_t page_idx;
236 std::tie(page_idx, chunk_idx) = GetPageAndChunkIndex(chunk);
244 PageHeader* phdr = page_header(page_idx);
279 return page_idx;
320 const size_t page_idx = rel_addr / page_size_;
327 PERFETTO_DCHECK(chunk_idx < GetNumChunksForLayout(GetPageLayout(page_idx)));
328 return std::make_pair(page_idx, chunk_idx);