/DragonOS-0.1.9/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 | 313 descriptors: PhysAddr, in queue_set() 314 driver_area: PhysAddr, in queue_set() 315 device_area: PhysAddr, in queue_set()
|
/DragonOS-0.1.9/kernel/src/mm/allocator/ |
D | buddy.rs | 186 pub fn entry_virt_addr(base_addr: PhysAddr, j: usize) -> VirtAddr { in entry_virt_addr() 190 pub fn entry_addr(base_addr: PhysAddr, j: usize) -> PhysAddr { in entry_addr() 199 pub fn write_page(curr_page: PhysAddr, page_list: PageList<A>) { in write_page() 225 fn pop_front(&mut self, order: u8) -> Option<PhysAddr> { in pop_front() 352 fn buddy_alloc(&mut self, count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)> { in buddy_alloc() 382 unsafe fn buddy_free(&mut self, mut base: PhysAddr, order: u8) { in buddy_free() 581 unsafe fn allocate(&mut self, count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)> { in allocate() 595 unsafe fn free(&mut self, base: PhysAddr, count: PageFrameCount) { in free()
|
D | page_frame.rs | 37 pub fn phys_address(&self) -> PhysAddr { in phys_address() 304 unsafe fn allocate(&mut self, count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)>; in allocate() 307 unsafe fn free(&mut self, address: PhysAddr, count: PageFrameCount); in free() 309 unsafe fn allocate_one(&mut self) -> Option<PhysAddr> { in allocate_one() 313 unsafe fn free_one(&mut self, address: PhysAddr) { in free_one() 322 unsafe fn allocate(&mut self, count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)> { in allocate() 325 unsafe fn free(&mut self, address: PhysAddr, count: PageFrameCount) { in free() 328 unsafe fn allocate_one(&mut self) -> Option<PhysAddr> { in allocate_one() 331 unsafe fn free_one(&mut self, address: PhysAddr) { in free_one() 342 pub unsafe fn allocate_page_frames(count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)> { in allocate_page_frames()
|
D | bump.rs | 104 unsafe fn ensure_early_mapping(&self, start_paddr: PhysAddr, count: PageFrameCount) { in ensure_early_mapping() 131 unsafe fn allocate(&mut self, count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)> { in allocate() 171 unsafe fn free(&mut self, _address: PhysAddr, _count: PageFrameCount) { in free()
|
/DragonOS-0.1.9/kernel/src/mm/ |
D | mod.rs | 128 pub struct PhysAddr(usize); struct 130 impl PhysAddr { implementation 163 impl Debug for PhysAddr { implementation 169 impl core::ops::Add<usize> for PhysAddr { implementation 178 impl core::ops::AddAssign<usize> for PhysAddr { implementation 185 impl core::ops::Add<PhysAddr> for PhysAddr { implementation 194 impl core::ops::AddAssign<PhysAddr> for PhysAddr { implementation 196 fn add_assign(&mut self, rhs: PhysAddr) { in add_assign() 201 impl core::ops::BitOrAssign<usize> for PhysAddr { implementation 208 impl core::ops::BitOrAssign<PhysAddr> for PhysAddr { implementation [all …]
|
D | memblock.rs | 55 pub fn add_block(&self, base: PhysAddr, size: usize) -> Result<(), SystemError> { in add_block() 65 base: PhysAddr, in add_range() 173 base: PhysAddr, in do_insert_area() 229 pub fn remove_block(&self, base: PhysAddr, size: usize) -> Result<(), SystemError> { in remove_block() 274 base: PhysAddr, in isolate_range() 351 pub fn mark_nomap(&self, base: PhysAddr, size: usize) -> Result<(), SystemError> { in mark_nomap() 357 mut base: PhysAddr, in set_or_clear_flags() 382 pub fn reserve_block(&self, base: PhysAddr, size: usize) -> Result<(), SystemError> { in reserve_block() 387 pub fn is_overlapped(&self, base: PhysAddr, size: usize) -> bool { in is_overlapped() 393 pub fn is_overlapped_with_reserved(&self, base: PhysAddr, size: usize) -> bool { in is_overlapped_with_reserved() [all …]
|
D | no_init.rs | 110 unsafe fn allocate(&mut self, count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)> { in allocate() 117 unsafe fn free(&mut self, address: PhysAddr, count: PageFrameCount) { in free() 143 pub unsafe fn pseudo_map_phys(vaddr: VirtAddr, paddr: PhysAddr, count: PageFrameCount) { in pseudo_map_phys() 152 pub unsafe fn pseudo_map_phys_ro(vaddr: VirtAddr, paddr: PhysAddr, count: PageFrameCount) { in pseudo_map_phys_ro() 161 paddr: PhysAddr, in pseudo_map_phys_with_flags()
|
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() 181 pub fn new(paddr: PhysAddr, flags: PageFlags<Arch>) -> Self { in new() 207 pub fn address(&self) -> Result<PhysAddr, PhysAddr> { in address() argument 526 pub unsafe fn new(table_kind: PageTableKind, table_paddr: PhysAddr, allocator: F) -> Self { in new() 601 phys: PhysAddr, in map_phys() 668 phys: PhysAddr, in map_linearly() 710 pub fn translate(&self, virt: VirtAddr) -> Option<(PhysAddr, PageFlags<Arch>)> { in translate() 749 ) -> Option<(PhysAddr, PageFlags<Arch>, PageFlush<Arch>)> { in unmap_phys() 797 ) -> Option<(PhysAddr, PageFlags<Arch>)> { in unmap_phys_inner()
|
D | early_ioremap.rs | 44 mut phys: PhysAddr, in map_not_aligned() 77 phys: PhysAddr, in map()
|
D | kernel_mapper.rs | 105 mut paddr: PhysAddr, in map_phys_with_size()
|
D | mmio_buddy.rs | 668 pub unsafe fn map_phys(&self, paddr: PhysAddr, length: usize) -> Result<(), SystemError> { in map_phys()
|
/DragonOS-0.1.9/kernel/src/arch/riscv64/mm/ |
D | mod.rs | 105 unsafe fn table(_table_kind: PageTableKind) -> PhysAddr { in table() 114 unsafe fn set_table(_table_kind: PageTableKind, table: PhysAddr) { in set_table() 147 unsafe fn virt_2_phys(virt: VirtAddr) -> Option<PhysAddr> { in virt_2_phys() 161 fn make_entry(paddr: PhysAddr, page_flags: usize) -> usize { in make_entry() 191 unsafe fn allocate(&mut self, count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)> { in allocate() 199 unsafe fn free(&mut self, address: crate::mm::PhysAddr, count: PageFrameCount) { in free()
|
/DragonOS-0.1.9/kernel/src/arch/riscv64/pci/ |
D | mod.rs | 16 fn address_pci_to_physical(pci_address: PciAddr) -> crate::mm::PhysAddr { in address_pci_to_physical()
|
/DragonOS-0.1.9/kernel/src/arch/ |
D | mod.rs | 33 fn address_pci_to_physical(pci_address: PciAddr) -> PhysAddr; in address_pci_to_physical()
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/pci/ |
D | pci.rs | 42 fn address_pci_to_physical(pci_address: PciAddr) -> PhysAddr { in address_pci_to_physical()
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/mm/ |
D | mod.rs | 181 unsafe fn table(table_kind: PageTableKind) -> PhysAddr { in table() 199 unsafe fn set_table(_table_kind: PageTableKind, table: PhysAddr) { in set_table() 291 unsafe fn virt_2_phys(virt: VirtAddr) -> Option<PhysAddr> { in virt_2_phys() 300 fn make_entry(paddr: PhysAddr, page_flags: usize) -> usize { in make_entry() 603 unsafe fn allocate(&mut self, count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)> { in allocate() 611 unsafe fn free(&mut self, address: crate::mm::PhysAddr, count: PageFrameCount) { in free()
|
/DragonOS-0.1.9/kernel/src/driver/firmware/efi/ |
D | init.rs | 189 fn efi_vaddr_2_paddr(efi_vaddr: usize) -> PhysAddr { in efi_vaddr_2_paddr()
|
D | tables.rs | 45 firmware_vendor: PhysAddr, in report_systable_header()
|
/DragonOS-0.1.9/kernel/src/init/ |
D | mod.rs | 106 pub fn fdt_paddr(&self) -> Option<PhysAddr> { in fdt_paddr()
|
/DragonOS-0.1.9/kernel/src/driver/acpi/ |
D | mod.rs | 118 fn rsdp_paddr(rsdp_vaddr: u64) -> PhysAddr { in rsdp_paddr()
|
/DragonOS-0.1.9/kernel/src/driver/open_firmware/ |
D | fdt.rs | 338 base: PhysAddr, in early_init_dt_reserve_memory()
|