Searched refs:virt (Results 1 – 4 of 4) sorted by relevance
79 pub unsafe fn virt(&self) -> VirtAddr { in virt() method96 return Some(self.virt().add(i * Arch::PAGE_ENTRY_SIZE)); in entry_virt()547 virt: VirtAddr, in map()553 return self.map_phys(virt, phys, flags); in map()559 virt: VirtAddr, in map_phys()564 if !(virt.check_aligned(Arch::PAGE_SIZE) && phys.check_aligned(Arch::PAGE_SIZE)) { in map_phys()567 virt, in map_phys()572 let virt = VirtAddr::new(virt.data() & (!Arch::PAGE_NEGATIVE_MASK)); in map_phys() localVariable580 let i = table.index_of(virt)?; in map_phys()586 kwarn!("Page {:?} already mapped", virt); in map_phys()[all …]
444 unsafe fn virt_2_phys(virt: VirtAddr) -> Option<PhysAddr> { in virt_2_phys()445 if let Some(paddr) = virt.data().checked_sub(Self::PHYS_OFFSET) { in virt_2_phys()453 fn virt_is_valid(virt: VirtAddr) -> bool; in virt_is_valid()
31 let virt = MMArch::phys_2_virt(paddr).unwrap(); in dma_alloc() localVariable33 core::ptr::write_bytes(virt.data() as *mut u8, 0, count.data() * MMArch::PAGE_SIZE); in dma_alloc()40 .remap(virt, dma_flags) in dma_alloc()
188 fn virt_is_valid(virt: VirtAddr) -> bool { in virt_is_valid()189 return virt.is_canonical(); in virt_is_valid()557 pub unsafe fn kernel_page_flags<A: MemoryManagementArch>(virt: VirtAddr) -> PageFlags<A> { in kernel_page_flags()560 if virt.data() >= info.kernel_code_start && virt.data() < info.kernel_code_end { in kernel_page_flags()563 } else if virt.data() >= info.kernel_data_end && virt.data() < info.kernel_rodata_end { in kernel_page_flags()