Lines Matching refs:table

496             Arch::table(table_kind),  in top_level_table()
663 let table = next_table.clone(allocator, copy_on_write)?; in clone() localVariable
665 let entry = PageEntry::new(table.phys(), old_entry.flags()); in clone()
1139 let table_paddr = Arch::table(table_kind); in current()
1146 return unsafe { self.table().phys() == Arch::table(self.table_kind) }; in is_current()
1157 pub fn table(&self) -> PageTable<Arch> { in table() method
1223 let mut table = self.table(); in map_phys() localVariable
1225 let i = table.index_of(virt)?; in map_phys()
1228 if table.level() == 0 { in map_phys()
1231 table.set_entry(i, entry); in map_phys()
1235 let next_table = table.next_level_table(i); in map_phys()
1237 table = next_table; in map_phys()
1250 table.set_entry(i, PageEntry::new(frame, flags)); in map_phys()
1253 table = table.next_level_table(i)?; in map_phys()
1273 let mut table = self.table(); in map_huge_page() localVariable
1275 let i = table.index_of(virt)?; in map_huge_page()
1277 let next_table = table.next_level_table(i); in map_huge_page()
1279 table = next_table; in map_huge_page()
1286 if table.level == 0 || table.level > 2 { in map_huge_page()
1291 Arch::PAGE_ENTRY_NUM.pow(table.level as u32), in map_huge_page()
1300 table.set_entry( in map_huge_page()
1301 table.index_of(virt)?, in map_huge_page()
1321 let table = self.get_table(virt, level + 1)?; in allocate_table() localVariable
1322 let i = table.index_of(virt)?; in allocate_table()
1332 table.set_entry(i, PageEntry::new(frame, flags)); in allocate_table()
1333 table.next_level_table(i) in allocate_table()
1346 let mut table = self.table(); in get_table() localVariable
1353 if table.level == level { in get_table()
1354 return Some(table); in get_table()
1356 let i = table.index_of(virt)?; in get_table()
1359 table = table.next_level_table(i)?; in get_table()
1374 let table = self.get_table(virt, level)?; in get_entry() localVariable
1375 let i = table.index_of(virt)?; in get_entry()
1376 let entry = unsafe { table.entry(i) }?; in get_entry()
1413 let old_table = umapper.table(); in clone_user_mapping()
1414 let new_table = self.table(); in clone_user_mapping()
1419 let table = next_table.clone(allocator, copy_on_write).unwrap(); in clone_user_mapping() localVariable
1421 let entry = PageEntry::new(table.phys(), old_entry.flags()); in clone_user_mapping()
1519 let table = self.table(); in unmap_phys() localVariable
1520 return unmap_phys_inner(virt, &table, unmap_parents, self.allocator_mut()) in unmap_phys()
1530 let mut table = self.table(); in visit() localVariable
1533 let i = table.index_of(virt)?; in visit()
1534 if table.level() == 0 { in visit()
1535 return Some(f(&mut table, i)); in visit()
1537 table = table.next_level_table(i)?; in visit()
1558 table: &PageTable<Arch>, in unmap_phys_inner()
1563 let i = table.index_of(vaddr)?; in unmap_phys_inner()
1566 if table.level() == 0 { in unmap_phys_inner()
1567 let entry = table.entry(i)?; in unmap_phys_inner()
1568 table.set_entry(i, PageEntry::from_usize(0)); in unmap_phys_inner()
1572 let subtable = table.next_level_table(i)?; in unmap_phys_inner()
1587 table.set_entry(i, PageEntry::from_usize(0)); in unmap_phys_inner()