Home
last modified time | relevance | path

Searched refs:pageIndex (Results 1 – 7 of 7) sorted by relevance

/haiku/src/system/kernel/vm/
H A DVMAnonymousCache.cpp179 ReadPage(VMAnonymousCache* cache, page_num_t pageIndex, in ReadPage() argument
183 fPageIndex(pageIndex), in ReadPage()
203 WritePage(VMAnonymousCache* cache, page_num_t pageIndex, in WritePage() argument
207 fPageIndex(pageIndex), in WritePage()
408 void SetTo(page_num_t pageIndex, swap_addr_t slotIndex, bool newSlot) in SetTo() argument
410 fPageIndex = pageIndex; in SetTo()
524 for (off_t pageIndex = fromOffset >> PAGE_SHIFT; in _FreeSwapPageRange() local
525 pageIndex < toIndex && fAllocatedSwapSize > 0; pageIndex++) { in _FreeSwapPageRange()
530 swap_addr_t blockIndex = pageIndex & SWAP_BLOCK_MASK; in _FreeSwapPageRange()
532 swap_hash_key key = { this, pageIndex }; in _FreeSwapPageRange()
[all …]
H A DVMAnonymousCache.h86 void _SwapBlockBuild(off_t pageIndex,
88 void _SwapBlockFree(off_t pageIndex, uint32 count);
89 swap_addr_t _SwapBlockGetAddress(off_t pageIndex);
H A Dvm_page.cpp966 const off_t pageIndex = pageOffset / (off_t)sizeof(vm_page); in dump_page_long() local
967 if (pageIndex < 0) { in dump_page_long()
970 } else if ((page_num_t)pageIndex >= sNumPages) { in dump_page_long()
973 } else if ((pageIndex * (off_t)sizeof(vm_page)) != pageOffset) { in dump_page_long()
999 if (pageIndex < 0 || (page_num_t)pageIndex >= sNumPages) { in dump_page_long()
H A Dvm.cpp558 addr_t pageIndex = (pageAddress - area->Base()) / B_PAGE_SIZE; in set_area_page_protection() local
559 uint8& entry = area->page_protections[pageIndex / 2]; in set_area_page_protection()
560 if (pageIndex % 2 == 0) in set_area_page_protection()
573 uint32 pageIndex = (pageAddress - area->Base()) / B_PAGE_SIZE; in get_area_page_protection() local
574 uint32 protection = area->page_protections[pageIndex / 2]; in get_area_page_protection()
575 if (pageIndex % 2 == 0) in get_area_page_protection()
/haiku/src/system/kernel/
H A Dguarded_heap.cpp156 guarded_heap_page_protect(guarded_heap_area& area, size_t pageIndex, in guarded_heap_page_protect() argument
162 addr_t address = area.base + pageIndex * B_PAGE_SIZE; in guarded_heap_page_protect()
224 guarded_heap_free_page(guarded_heap_area& area, size_t pageIndex, in guarded_heap_free_page() argument
227 guarded_heap_page& page = area.pages[pageIndex]; in guarded_heap_free_page()
249 guarded_heap_page_protect(area, pageIndex, 0); in guarded_heap_free_page()
251 T(Free(area.heap, (void*)(area.base + pageIndex * B_PAGE_SIZE))); in guarded_heap_free_page()
292 size_t pageIndex = page - area.pages; in guarded_heap_area_allocate() local
293 if (pageIndex > area.page_count - pagesNeeded) in guarded_heap_area_allocate()
300 if ((area.pages[pageIndex + j].flags & GUARDED_HEAP_PAGE_FLAG_USED) in guarded_heap_area_allocate()
314 void* result = (void*)((area.base + pageIndex * B_PAGE_SIZE in guarded_heap_area_allocate()
[all …]
/haiku/src/system/libroot/posix/malloc/debug/
H A Dguarded_heap.cpp237 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()
[all …]
/haiku/src/system/kernel/cache/
H A Dfile_cache.cpp393 int32 pageIndex = 0; in read_into_cache() local
397 vm_page* page = pages[pageIndex++] = vm_page_allocate_page( in read_into_cache()
421 for (int32 i = 0; i < pageIndex; i++) { in read_into_cache()
432 for (int32 i = 0; i < pageIndex; i++) { in read_into_cache()
450 for (int32 i = pageIndex; i-- > 0;) { in read_into_cache()
508 int32 pageIndex = 0; in write_to_cache() local
521 vm_page* page = pages[pageIndex++] = vm_page_allocate_page( in write_to_cache()
623 for (int32 i = pageIndex; i-- > 0;) { in write_to_cache()