/DragonOS-0.1.8/kernel/src/driver/virtio/ |
D | virtio_impl.rs | 24 ) -> (virtio_drivers::PhysAddr, NonNull<u8>) { in dma_alloc() 53 paddr: virtio_drivers::PhysAddr, in dma_dealloc() 78 unsafe fn mmio_phys_to_virt(_paddr: virtio_drivers::PhysAddr, _size: usize) -> NonNull<u8> { in mmio_phys_to_virt() 87 ) -> virtio_drivers::PhysAddr { in share() 95 _paddr: virtio_drivers::PhysAddr, in unshare()
|
D | transport_pci.rs | 265 descriptors: PhysAddr, in queue_set() 266 driver_area: PhysAddr, in queue_set() 267 device_area: PhysAddr, in queue_set()
|
/DragonOS-0.1.8/kernel/src/mm/ |
D | no_init.rs | 35 unsafe fn allocate(&mut self, _count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)> { in allocate() 39 unsafe fn free(&mut self, _address: PhysAddr, _count: PageFrameCount) { in free() 57 pub unsafe fn pseudo_map_phys(vaddr: VirtAddr, paddr: PhysAddr, count: PageFrameCount) { in pseudo_map_phys()
|
D | mod.rs | 85 pub struct PhysAddr(usize); struct 87 impl PhysAddr { implementation 117 impl Debug for PhysAddr { implementation 123 impl core::ops::Add<usize> for PhysAddr { implementation 132 impl core::ops::AddAssign<usize> for PhysAddr { implementation 139 impl core::ops::Add<PhysAddr> for PhysAddr { implementation 148 impl core::ops::AddAssign<PhysAddr> for PhysAddr { implementation 150 fn add_assign(&mut self, rhs: PhysAddr) { in add_assign() 155 impl core::ops::Sub<usize> for PhysAddr { implementation 164 impl core::ops::SubAssign<usize> for PhysAddr { implementation [all …]
|
D | page.rs | 33 pub unsafe fn new(base: VirtAddr, phys: PhysAddr, level: usize) -> Self { in new() 61 pub fn phys(&self) -> PhysAddr { in phys() 200 pub fn address(&self) -> Result<PhysAddr, PhysAddr> { in address() argument 485 pub unsafe fn new(table_kind: PageTableKind, table_paddr: PhysAddr, allocator: F) -> Self { in new() 560 phys: PhysAddr, in map_phys() 632 phys: PhysAddr, in map_linearly() 674 pub fn translate(&self, virt: VirtAddr) -> Option<(PhysAddr, PageFlags<Arch>)> { in translate() 712 ) -> Option<(PhysAddr, PageFlags<Arch>, PageFlush<Arch>)> { in unmap_phys() 760 ) -> Option<(PhysAddr, PageFlags<Arch>)> { in unmap_phys_inner()
|
D | kernel_mapper.rs | 101 mut paddr: PhysAddr, in map_phys_with_size()
|
/DragonOS-0.1.8/kernel/src/mm/allocator/ |
D | buddy.rs | 240 pub fn entry_virt_addr(base_addr: PhysAddr, j: usize) -> VirtAddr { in entry_virt_addr() 244 pub fn entry_addr(base_addr: PhysAddr, j: usize) -> PhysAddr { in entry_addr() 253 pub fn write_page(curr_page: PhysAddr, page_list: PageList<A>) { in write_page() 279 fn pop_front(&mut self, order: u8) -> Option<PhysAddr> { in pop_front() 407 fn buddy_alloc(&mut self, count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)> { in buddy_alloc() 437 unsafe fn buddy_free(&mut self, mut base: PhysAddr, order: u8) { in buddy_free() 636 unsafe fn allocate(&mut self, count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)> { in allocate() 650 unsafe fn free(&mut self, base: PhysAddr, count: PageFrameCount) { in free()
|
D | page_frame.rs | 27 pub fn phys_address(&self) -> PhysAddr { in phys_address() 287 unsafe fn allocate(&mut self, count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)>; in allocate() 290 unsafe fn free(&mut self, address: PhysAddr, count: PageFrameCount); in free() 292 unsafe fn allocate_one(&mut self) -> Option<PhysAddr> { in allocate_one() 296 unsafe fn free_one(&mut self, address: PhysAddr) { in free_one() 305 unsafe fn allocate(&mut self, count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)> { in allocate() 308 unsafe fn free(&mut self, address: PhysAddr, count: PageFrameCount) { in free() 311 unsafe fn allocate_one(&mut self) -> Option<PhysAddr> { in allocate_one() 314 unsafe fn free_one(&mut self, address: PhysAddr) { in free_one() 325 pub unsafe fn allocate_page_frames(count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)> { in allocate_page_frames()
|
D | bump.rs | 47 unsafe fn allocate(&mut self, count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)> { in allocate() 82 unsafe fn free(&mut self, _address: PhysAddr, _count: PageFrameCount) { in free()
|
/DragonOS-0.1.8/kernel/src/arch/x86_64/mm/ |
D | mod.rs | 172 unsafe fn table(_table_kind: PageTableKind) -> PhysAddr { in table() 181 unsafe fn set_table(_table_kind: PageTableKind, table: PhysAddr) { in set_table() 532 ) -> Option<(PhysAddr, PageFrameCount)> { in allocate() 542 address: crate::mm::PhysAddr, in free()
|