Home
last modified time | relevance | path

Searched defs:vaddr (Results 1 – 25 of 29) sorted by relevance

12

/DragonOS/kernel/src/mm/
H A Dno_init.rs75 let vaddr = VirtAddr::new(p); in allocate_page() localVariable
112 let vaddr = EARLY_IOREMAP_PAGES.lock_irqsave().allocate_page()?; in allocate() localVariable
121 let vaddr = MMA::phys_2_virt(address); in free() localVariable
177 let vaddr = vaddr + i * MMArch::PAGE_SIZE; in pseudo_map_phys_with_flags() localVariable
205 let vaddr = vaddr + i * MMArch::PAGE_SIZE; in pseudo_unmap_phys() localVariable
H A Dc_adapter.rs38 let vaddr = VirtAddr::new(ptr as usize); in do_kmalloc() localVariable
60 let vaddr = VirtAddr::new(vaddr); in kfree() localVariable
H A Dmmio_buddy.rs151 let vaddr = self.calculate_block_vaddr(region.vaddr, exp - 1); in split_block() localVariable
423 let vaddr: VirtAddr = list_guard.list.back().unwrap().vaddr; in merge_all_exp() localVariable
581 vaddr: VirtAddr, field
589 pub fn vaddr(&self) -> VirtAddr { in vaddr() method
623 vaddr: VirtAddr, field
654 pub fn vaddr(&self) -> VirtAddr { in vaddr() method
744 let vaddr = vaddr_base + offset; in map_any_phys() localVariable
H A Dearly_ioremap.rs112 let vaddr = Self::idx_to_virt(start_slot); in map() localVariable
178 let vaddr = Self::idx_to_virt(idx); in unmap() localVariable
/DragonOS/kernel/src/arch/riscv64/mm/
H A Dinit.rs110 let vaddr = unsafe { MMArch::phys_2_virt(paddr) }.unwrap(); in riscv_mm_init() localVariable
189 let vaddr = VirtAddr::new(base.data() + i * MMArch::PAGE_SIZE); in remap_at_low_address() localVariable
210 let vaddr = VirtAddr::new(base.data() + i * MMArch::PAGE_SIZE); in unmap_at_low_address() localVariable
/DragonOS/kernel/src/driver/firmware/efi/
H A Dmemmap.rs19 pub(super) vaddr: Option<VirtAddr>, field
83 let vaddr = self.inner.vaddr? + self.offset; in next() localVariable
117 let mut vaddr = EarlyIoRemap::map( in do_efi_memmap_init() localVariable
H A Dtables.rs108 let vaddr = EarlyIoRemap::map_not_aligned(prev_paddr, MMArch::PAGE_SIZE, true) in parse_config_tables() localVariable
403 let vaddr = EarlyIoRemap::map_not_aligned(table_paddr, table_map_size, true); in match_table() localVariable
/DragonOS/kernel/src/arch/x86_64/include/asm/
H A Dasm.h333 static __always_inline void __write8b(uint64_t vaddr, uint64_t value) in __write8b()
346 static __always_inline void __write4b(uint64_t vaddr, uint32_t value) in __write4b()
359 static __always_inline uint64_t __read8b(uint64_t vaddr) in __read8b()
376 static __always_inline uint32_t __read4b(uint64_t vaddr) in __read4b()
/DragonOS/kernel/src/driver/virtio/
H A Dvirtio_impl.rs66 let vaddr = VirtAddr::new(vaddr.as_ptr() as usize); in dma_dealloc() localVariable
96 let vaddr = VirtAddr::new(buffer.as_ptr() as *mut u8 as usize); in share() localVariable
H A Dtransport_mmio.rs53 let vaddr = mmio_guard.vaddr() + page_offset; in new() localVariable
H A Dtransport_pci.rs532 let vaddr = (bar_info in get_bar_region() localVariable
542 let vaddr = NonNull::new(vaddr.data() as *mut u8).unwrap(); in get_bar_region() localVariable
/DragonOS/kernel/src/debug/
H A Dkallsyms.c20 #define symbol_to_write(vaddr, tv, etv) \ argument
29 uint64_t vaddr; member
/DragonOS/kernel/src/arch/x86_64/smp/
H A Dmod.rs41 vaddr: usize, field
49 let vaddr = if let Some(t) = smp_cpu_manager() in smp_ap_start() localVariable
270 let vaddr = unsafe { in arch_init() localVariable
/DragonOS/kernel/src/arch/riscv64/driver/
H A Dof.rs34 let vaddr = mmio_guard.vaddr() + offset; in map_fdt() localVariable
/DragonOS/kernel/src/arch/riscv64/interrupt/
H A Dhandle.rs151 let vaddr = trap_frame.badaddr; in do_trap_insn_page_fault() localVariable
165 let vaddr = trap_frame.badaddr; in do_trap_load_page_fault() localVariable
/DragonOS/kernel/src/driver/pci/
H A Dpci_irq.rs577 let vaddr: crate::mm::VirtAddr = msix_bar in msix_install() localVariable
700 let vaddr = msix_bar in msix_uninstall() localVariable
829 let vaddr = msix_bar.virtual_address().unwrap() in msix_mask() localVariable
950 let vaddr = msix_bar.virtual_address().unwrap() in msix_unmask() localVariable
1065 let vaddr = pending_bar.virtual_address().unwrap() in msix_check_pending() localVariable
/DragonOS/kernel/src/driver/net/
H A Ddma.rs55 let vaddr = VirtAddr::new(vaddr.as_ptr() as usize); in dma_dealloc() localVariable
/DragonOS/kernel/src/arch/x86_64/kvm/vmx/
H A Dvcpu.rs107 let vaddr = VirtAddr::new(vmxon_region.as_ref() as *const _ as _); in alloc() localVariable
111 let vaddr = VirtAddr::new(vmcs_region.as_ref() as *const _ as _); in alloc() localVariable
115 let vaddr = VirtAddr::new(msr_bitmap.as_ref() as *const _ as _); in alloc() localVariable
/DragonOS/kernel/src/arch/x86_64/process/
H A Dtable.rs69 let vaddr = vaddr.data() as u64; in set_tss_descriptor() localVariable
/DragonOS/kernel/src/arch/x86_64/mm/
H A Dmod.rs505 let vaddr = unsafe { MMArch::phys_2_virt(paddr) }.unwrap(); in allocator_init() localVariable
599 let vaddr = unsafe { MMArch::phys_2_virt(paddr).unwrap() }; in test_buddy() localVariable
714 let vaddr = VirtAddr::new(i * MMArch::PAGE_SIZE); in remap_at_low_address() localVariable
728 let vaddr = VirtAddr::new(i * MMArch::PAGE_SIZE); in unmap_at_low_address() localVariable
/DragonOS/kernel/src/mm/allocator/
H A Dbump.rs119 let vaddr = MMA::phys_2_virt(p.phys_address()).unwrap(); in ensure_early_mapping() localVariable
/DragonOS/kernel/src/driver/open_firmware/
H A Dfdt.rs299 let vaddr = boot_params().read().fdt(); in early_init_fdt_scan_reserved_mem() localVariable
303 let vaddr = vaddr.unwrap(); in early_init_fdt_scan_reserved_mem() localVariable
/DragonOS/tools/debugging/logmonitor/src/backend/
H A Dloader.rs106 pub fn vaddr(&self) -> usize { in vaddr() method
/DragonOS/kernel/crates/klog_types/src/
H A Dlib.rs130 pub vaddr: Option<usize>, field
/DragonOS/kernel/src/syscall/
H A Dmod.rs668 let vaddr = VirtAddr::new(kstat as usize); in handle() localVariable
1151 let vaddr = VirtAddr::new(args[1]); in handle() localVariable
1157 let vaddr = VirtAddr::new(args[0]); in handle() localVariable

12