Home
last modified time | relevance | path

Searched defs:PhysAddr (Results 1 – 25 of 27) sorted by relevance

12

/DragonOS/kernel/src/driver/virtio/
H A Dvirtio_impl.rs24 ) -> (virtio_drivers::PhysAddr, NonNull<u8>) { in dma_alloc()
55 paddr: virtio_drivers::PhysAddr, in dma_dealloc()
86 unsafe fn mmio_phys_to_virt(paddr: virtio_drivers::PhysAddr, _size: usize) -> NonNull<u8> { in mmio_phys_to_virt()
95 ) -> virtio_drivers::PhysAddr { in share()
103 _paddr: virtio_drivers::PhysAddr, in unshare()
H A Dtransport.rs152 descriptors: virtio_drivers::PhysAddr, in queue_set()
153 driver_area: virtio_drivers::PhysAddr, in queue_set()
154 device_area: virtio_drivers::PhysAddr, in queue_set()
H A Dtransport_mmio.rs131 descriptors: virtio_drivers::PhysAddr, in queue_set()
132 driver_area: virtio_drivers::PhysAddr, in queue_set()
133 device_area: virtio_drivers::PhysAddr, in queue_set()
H A Dtransport_pci.rs315 descriptors: PhysAddr, in queue_set()
316 driver_area: PhysAddr, in queue_set()
317 device_area: PhysAddr, in queue_set()
/DragonOS/kernel/src/mm/allocator/
H A Dbuddy.rs187 pub fn entry_virt_addr(base_addr: PhysAddr, j: usize) -> VirtAddr { in entry_virt_addr()
191 pub fn entry_addr(base_addr: PhysAddr, j: usize) -> PhysAddr { in entry_addr()
200 pub fn write_page(curr_page: PhysAddr, page_list: PageList<A>) { in write_page()
226 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()
579 unsafe fn allocate(&mut self, count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)> { in allocate()
593 unsafe fn free(&mut self, base: PhysAddr, count: PageFrameCount) { in free()
H A Dpage_frame.rs39 pub fn phys_address(&self) -> PhysAddr { in phys_address()
311 unsafe fn allocate(&mut self, count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)>; in allocate()
314 unsafe fn free(&mut self, address: PhysAddr, count: PageFrameCount); in free()
316 unsafe fn allocate_one(&mut self) -> Option<PhysAddr> { in allocate_one()
320 unsafe fn free_one(&mut self, address: PhysAddr) { in free_one()
329 unsafe fn allocate(&mut self, count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)> { in allocate()
332 unsafe fn free(&mut self, address: PhysAddr, count: PageFrameCount) { in free()
335 unsafe fn allocate_one(&mut self) -> Option<PhysAddr> { in allocate_one()
338 unsafe fn free_one(&mut self, address: PhysAddr) { in free_one()
349 pub unsafe fn allocate_page_frames(count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)> { in allocate_page_frames()
H A Dbump.rs102 unsafe fn ensure_early_mapping(&self, start_paddr: PhysAddr, count: PageFrameCount) { in ensure_early_mapping()
132 unsafe fn allocate(&mut self, count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)> { in allocate()
172 unsafe fn free(&mut self, _address: PhysAddr, _count: PageFrameCount) { in free()
/DragonOS/kernel/src/mm/
H A Dmemblock.rs56 pub fn add_block(&self, base: PhysAddr, size: usize) -> Result<(), SystemError> { in add_block()
66 base: PhysAddr, in add_range()
174 base: PhysAddr, in do_insert_area()
230 pub fn remove_block(&self, base: PhysAddr, size: usize) -> Result<(), SystemError> { in remove_block()
275 base: PhysAddr, in isolate_range()
352 pub fn mark_nomap(&self, base: PhysAddr, size: usize) -> Result<(), SystemError> { in mark_nomap()
357 pub fn mark_mirror(&self, base: PhysAddr, size: usize) -> Result<(), SystemError> { in mark_mirror()
363 mut base: PhysAddr, in set_or_clear_flags()
388 pub fn reserve_block(&self, base: PhysAddr, size: usize) -> Result<(), SystemError> { in reserve_block()
393 pub fn is_overlapped(&self, base: PhysAddr, size: usize) -> bool { in is_overlapped()
[all …]
H A Dmod.rs160 pub struct PhysAddr(usize); struct
162 impl PhysAddr { implementation
195 impl Debug for PhysAddr { implementation
201 impl core::ops::Add<usize> for PhysAddr { implementation
210 impl core::ops::AddAssign<usize> for PhysAddr { implementation
217 impl core::ops::Add<PhysAddr> for PhysAddr { implementation
226 impl core::ops::AddAssign<PhysAddr> for PhysAddr { implementation
228 fn add_assign(&mut self, rhs: PhysAddr) { in add_assign()
233 impl core::ops::BitOrAssign<usize> for PhysAddr { implementation
240 impl core::ops::BitOrAssign<PhysAddr> for PhysAddr { implementation
[all …]
H A Dno_init.rs110 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()
H A Dpage.rs94 pub fn insert(&mut self, paddr: PhysAddr, page: &Arc<Page>) { in insert()
98 pub fn remove_page(&mut self, paddr: &PhysAddr) { in remove_page()
179 pub fn insert_page(&mut self, paddr: PhysAddr, page: &Arc<Page>) { in insert_page()
457 pub fn phys_address(&self) -> PhysAddr { in phys_address()
475 pub unsafe fn new(base: VirtAddr, phys: PhysAddr, level: usize) -> Self { in new()
503 pub fn phys(&self) -> PhysAddr { in phys()
689 pub fn new(paddr: PhysAddr, flags: EntryFlags<Arch>) -> Self { in new()
715 pub fn address(&self) -> Result<PhysAddr, PhysAddr> { in address() argument
1118 pub unsafe fn new(table_kind: PageTableKind, table_paddr: PhysAddr, allocator: F) -> Self { in new()
1205 phys: PhysAddr, in map_phys()
[all …]
H A Dearly_ioremap.rs44 mut phys: PhysAddr, in map_not_aligned()
77 phys: PhysAddr, in map()
H A Dmmio_buddy.rs668 pub unsafe fn map_phys(&self, paddr: PhysAddr, length: usize) -> Result<(), SystemError> { in map_phys()
695 paddr: PhysAddr, in map_phys_with_flags()
738 paddr: PhysAddr, in map_any_phys()
H A Dkernel_mapper.rs105 mut paddr: PhysAddr, in map_phys_with_size()
/DragonOS/kernel/src/arch/riscv64/mm/
H A Dmod.rs170 unsafe fn table(_table_kind: PageTableKind) -> PhysAddr { in table()
179 unsafe fn set_table(_table_kind: PageTableKind, table: PhysAddr) { in set_table()
231 unsafe fn virt_2_phys(virt: VirtAddr) -> Option<PhysAddr> { in virt_2_phys()
245 fn make_entry(paddr: PhysAddr, page_flags: usize) -> usize { in make_entry()
350 unsafe fn allocate(&mut self, count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)> { in allocate()
358 unsafe fn free(&mut self, address: crate::mm::PhysAddr, count: PageFrameCount) { in free()
/DragonOS/kernel/src/arch/
H A Dmod.rs33 fn address_pci_to_physical(pci_address: PciAddr) -> PhysAddr; in address_pci_to_physical()
/DragonOS/kernel/src/arch/riscv64/pci/
H A Dmod.rs28 fn address_pci_to_physical(pci_address: PciAddr) -> crate::mm::PhysAddr { in address_pci_to_physical()
/DragonOS/kernel/src/arch/x86_64/mm/
H A Dmod.rs62 pub(super) fn x86_64_set_kernel_load_base_paddr(paddr: PhysAddr) { in x86_64_set_kernel_load_base_paddr()
194 unsafe fn table(table_kind: PageTableKind) -> PhysAddr { in table()
211 unsafe fn set_table(_table_kind: PageTableKind, table: PhysAddr) { in set_table()
306 unsafe fn virt_2_phys(virt: VirtAddr) -> Option<PhysAddr> { in virt_2_phys()
315 fn make_entry(paddr: PhysAddr, page_flags: usize) -> usize { in make_entry()
651 unsafe fn allocate(&mut self, mut count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)> { in allocate()
660 unsafe fn free(&mut self, address: crate::mm::PhysAddr, count: PageFrameCount) { in free()
/DragonOS/kernel/src/driver/pci/
H A Decam.rs33 physical_address_base: PhysAddr, in new()
/DragonOS/kernel/src/arch/x86_64/pci/
H A Dpci.rs68 fn address_pci_to_physical(pci_address: PciAddr) -> PhysAddr { in address_pci_to_physical()
/DragonOS/kernel/src/driver/firmware/efi/
H A Dinit.rs224 fn efi_vaddr_2_paddr(efi_vaddr: usize) -> PhysAddr { in efi_vaddr_2_paddr()
/DragonOS/kernel/src/driver/acpi/
H A Dmod.rs119 fn rsdp_paddr(rsdp_instance: &acpi::rsdp::Rsdp) -> PhysAddr { in rsdp_paddr()
/DragonOS/kernel/src/init/
H A Dboot.rs111 pub fn fdt_paddr(&self) -> Option<PhysAddr> { in fdt_paddr()
/DragonOS/kernel/src/driver/open_firmware/
H A Dfdt.rs365 base: PhysAddr, in early_init_dt_reserve_memory()
/DragonOS/kernel/src/ipc/
H A Dshm.rs391 pub fn new(kern_ipc_perm: KernIpcPerm, shm_start_paddr: PhysAddr, shm_size: usize) -> Self { in new()
405 pub fn start_paddr(&self) -> PhysAddr { in start_paddr()

12