Lines Matching refs:flags
203 if page.read_irqsave().flags.contains(PageFlags::PG_DIRTY) { in shrink_list()
243 mapper.get_entry(virt, 0).unwrap().flags().set_write(false), in page_writeback()
280 if page.read_irqsave().flags().contains(PageFlags::PG_DIRTY) { in flush_dirty_pages()
344 flags: PageFlags, field
361 flags: PageFlags::empty(), in new()
437 pub fn flags(&self) -> &PageFlags { in flags() method
438 &self.flags in flags()
442 pub fn set_flags(&mut self, flags: PageFlags) { in set_flags()
443 self.flags = flags in set_flags()
447 pub fn add_flags(&mut self, flags: PageFlags) { in add_flags()
448 self.flags = self.flags.union(flags); in add_flags()
452 pub fn remove_flags(&mut self, flags: PageFlags) { in remove_flags()
453 self.flags = self.flags.difference(flags); in remove_flags()
627 let mut new_flags = entry.flags().set_write(false); in clone()
654 new_table.set_entry(i, PageEntry::new(phys, entry.flags())); in clone()
665 let entry = PageEntry::new(table.phys(), old_entry.flags()); in clone()
689 pub fn new(paddr: PhysAddr, flags: EntryFlags<Arch>) -> Self { in new()
691 data: MMArch::make_entry(paddr, flags.data()), in new()
737 pub fn flags(&self) -> EntryFlags<Arch> { in flags() method
742 pub fn set_flags(&mut self, flags: EntryFlags<Arch>) { in set_flags()
743 self.data = (self.data & !Arch::ENTRY_FLAGS_MASK) | flags.data(); in set_flags()
1181 flags: EntryFlags<Arch>, in map()
1198 return self.map_phys(virt, phys, flags); in map()
1206 flags: EntryFlags<Arch>, in map_phys()
1222 let entry = PageEntry::new(phys, flags); in map_phys()
1246 let flags: EntryFlags<Arch> = in map_phys() localVariable
1250 table.set_entry(i, PageEntry::new(frame, flags)); in map_phys()
1263 flags: EntryFlags<Arch>, in map_huge_page()
1302 PageEntry::new(phys, flags.set_huge_page(true)), in map_huge_page()
1329 let flags: EntryFlags<Arch> = in allocate_table() localVariable
1332 table.set_entry(i, PageEntry::new(frame, flags)); in allocate_table()
1421 let entry = PageEntry::new(table.phys(), old_entry.flags()); in clone_user_mapping()
1432 flags: EntryFlags<Arch>, in map_linearly()
1435 return self.map_phys(virt, phys, flags).map(|flush| (virt, flush)); in map_linearly()
1452 flags: EntryFlags<Arch>, in remap()
1458 entry.set_flags(flags); in remap()
1477 let flags = entry.flags(); in translate() localVariable
1478 return Some((paddr, flags)); in translate()
1521 .map(|(paddr, flags)| (paddr, flags, PageFlush::<Arch>::new(virt))); in unmap_phys()
1569 return Some((entry.address().ok()?, entry.flags())); in unmap_phys_inner()