Lines Matching refs:data
111 Arch::write::<usize>(entry_virt, entry.data()); in set_entry()
140 let addr = VirtAddr::new(addr.data() & Arch::PAGE_ADDRESS_MASK); in index_of()
147 return Some((addr.data() >> shift) & MMArch::PAGE_ENTRY_MASK); in index_of()
169 data: usize, field
175 f.write_fmt(format_args!("PageEntry({:#x})", self.data)) in fmt()
181 pub fn new(data: usize) -> Self { in new()
183 data, in new()
189 pub fn data(&self) -> usize { in data() method
190 self.data in data()
201 let paddr = PhysAddr::new(self.data & Arch::PAGE_ADDRESS_MASK); in address()
212 unsafe { PageFlags::from_data(self.data & Arch::ENTRY_FLAGS_MASK) } in flags()
217 self.data = (self.data & !Arch::ENTRY_FLAGS_MASK) | flags.data(); in set_flags()
222 return self.data & Arch::ENTRY_FLAG_PRESENT != 0; in present()
229 data: usize, field
271 pub fn data(&self) -> usize { in data() method
272 self.data in data()
276 pub const unsafe fn from_data(data: usize) -> Self { in from_data()
278 data: data, in from_data()
315 self.data |= flag; in update_flags()
317 self.data &= !flag; in update_flags()
325 return self.data & flag == flag; in has_flag()
368 return self.data & (Arch::ENTRY_FLAG_READWRITE | Arch::ENTRY_FLAG_READONLY) in has_write()
394 return self.data & (Arch::ENTRY_FLAG_EXEC | Arch::ENTRY_FLAG_NO_EXEC) in has_execute()
453 .field("bits", &format_args!("{:#0x}", self.data)) in fmt()
572 let virt = VirtAddr::new(virt.data() & (!Arch::PAGE_NEGATIVE_MASK)); in map_phys()
577 let entry = PageEntry::new(phys.data() | flags.data()); in map_phys()
619 table.set_entry(i, PageEntry::new(frame.data() | flags.data())); in map_phys()