Searched refs:page_idx_to_addr (Results 1 – 3 of 3) sorted by relevance
31 use crate::pagesize::page_idx_to_addr;227 page_idx_to_addr(region.head_page_idx) in create()228 ..(page_idx_to_addr(region.head_page_idx + region.file.num_pages())), in create()360 let page_addr = page_idx_to_addr(page_idx); in handle_page_remove()416 if page_idx_to_addr(region.head_page_idx) != base_addr { in move_to_staging()711 let page_addr = page_idx_to_addr(region.head_page_idx + idx_range.start); in swap_in()727 let page_addr = page_idx_to_addr(region.head_page_idx + idx_range.start); in swap_in()
73 pub fn page_idx_to_addr(page_idx: usize) -> usize { in page_idx_to_addr() function133 assert_eq!(page_idx_to_addr(10), 10 * pagesize()); in test_page_idx_to_addr()
388 fn page_idx_to_addr(page_idx: usize) -> usize { in page_idx_to_addr() function421 *(page_idx_to_addr(i) as *mut u8) = 1; in move_to_staging_hugepage_chunks()427 *(page_idx_to_addr(i) as *mut u8) = 2; in move_to_staging_hugepage_chunks()433 *(page_idx_to_addr(i) as *mut u8) = 3; in move_to_staging_hugepage_chunks()436 *(page_idx_to_addr(i) as *mut u8) = 4; in move_to_staging_hugepage_chunks()442 *(page_idx_to_addr(i) as *mut u8) = 5; in move_to_staging_hugepage_chunks()468 let ptr = (page_idx_to_addr(i)) as *mut u8; in move_to_staging_hugepage_chunks()474 let ptr = (page_idx_to_addr(i)) as *mut u8; in move_to_staging_hugepage_chunks()