Lines Matching refs:pageIndex

237 guarded_heap_page_protect(guarded_heap_area& area, size_t pageIndex,  in guarded_heap_page_protect()  argument
240 guarded_heap_page_protect_raw(area.base + pageIndex * B_PAGE_SIZE, in guarded_heap_page_protect()
362 guarded_heap_free_page(guarded_heap_area& area, size_t pageIndex, in guarded_heap_free_page() argument
365 guarded_heap_page& page = area.pages[pageIndex]; in guarded_heap_free_page()
376 guarded_heap_page_protect(area, pageIndex, 0); in guarded_heap_free_page()
406 size_t pageIndex = page - area.pages; in guarded_heap_area_allocate() local
407 if (pageIndex > area.page_count - pagesNeeded) in guarded_heap_area_allocate()
414 if ((area.pages[pageIndex + j].flags & GUARDED_HEAP_PAGE_FLAG_USED) in guarded_heap_area_allocate()
425 void* result = (void*)((area.base + pageIndex * B_PAGE_SIZE in guarded_heap_area_allocate()
428 guarded_heap_page_allocate(area, pageIndex, pagesNeeded, size, in guarded_heap_area_allocate()
637 size_t pageIndex = ((addr_t)address - area.base) / B_PAGE_SIZE; in guarded_heap_area_page_index_for() local
638 guarded_heap_page& page = area.pages[pageIndex]; in guarded_heap_area_page_index_for()
641 " which is not marked in use", address, pageIndex); in guarded_heap_area_page_index_for()
647 " which is a guard page", address, pageIndex); in guarded_heap_area_page_index_for()
653 " which is not an allocation first page", address, pageIndex); in guarded_heap_area_page_index_for()
659 " which is a dead page", address, pageIndex); in guarded_heap_area_page_index_for()
663 return pageIndex; in guarded_heap_area_page_index_for()
670 size_t pageIndex = guarded_heap_area_page_index_for(area, address); in guarded_heap_area_free() local
671 if (pageIndex >= area.page_count) in guarded_heap_area_free()
675 guarded_heap_page* page = &area.pages[pageIndex]; in guarded_heap_area_free()
678 guarded_heap_free_page(area, pageIndex); in guarded_heap_area_free()
689 pageIndex++; in guarded_heap_area_free()
690 page = &area.pages[pageIndex]; in guarded_heap_area_free()
694 guarded_heap_free_page(area, pageIndex); in guarded_heap_area_free()
770 size_t pageIndex = guarded_heap_area_page_index_for(*area, address); in guarded_heap_realloc() local
771 if (pageIndex >= area->page_count) in guarded_heap_realloc()
774 guarded_heap_page& page = area->pages[pageIndex]; in guarded_heap_realloc()
854 size_t pageIndex = ((addr_t)address - area->base) / B_PAGE_SIZE; in dump_guarded_heap_page() local
855 guarded_heap_page& page = area->pages[pageIndex]; in dump_guarded_heap_page()
859 for (ssize_t candidateIndex = (ssize_t)pageIndex; in dump_guarded_heap_page()