Home
last modified time | relevance | path

Searched defs:VirtAddr (Results 1 – 25 of 43) sorted by relevance

12

/DragonOS/kernel/src/libs/futex/
H A Dsyscall.rs16 uaddr: VirtAddr, in do_futex()
20 uaddr2: VirtAddr, in do_futex()
115 pub fn set_robust_list(head_uaddr: VirtAddr, len: usize) -> Result<usize, SystemError> { in set_robust_list()
125 head_uaddr: VirtAddr, in get_robust_list()
126 len_ptr_uaddr: VirtAddr, in get_robust_list()
H A Dfutex.rs221 uaddr: VirtAddr, in futex_wait()
351 uaddr: VirtAddr, in futex_wake()
385 uaddr1: VirtAddr, in futex_requeue()
387 uaddr2: VirtAddr, in futex_requeue()
459 uaddr1: VirtAddr, in futex_wake_op()
461 uaddr2: VirtAddr, in futex_wake_op()
502 uaddr: VirtAddr, in get_futex_key()
608 uaddr: VirtAddr, in arch_futex_atomic_op_inuser()
662 pub fn futex_uaddr(&self, entry: VirtAddr) -> VirtAddr { in futex_uaddr()
667 pub fn pending_uaddr(&self) -> Option<VirtAddr> { in pending_uaddr()
[all …]
/DragonOS/kernel/src/arch/x86_64/interrupt/
H A Dentry.rs546 pub unsafe fn set_intr_gate(irq: u32, ist: u8, vaddr: VirtAddr) { in set_intr_gate()
553 pub unsafe fn set_trap_gate(irq: u32, ist: u8, vaddr: VirtAddr) { in set_trap_gate()
560 pub unsafe fn set_system_trap_gate(irq: u32, ist: u8, vaddr: VirtAddr) { in set_system_trap_gate()
577 unsafe fn set_gate(gate: &mut [u64], attr: u8, ist: u8, handler: VirtAddr) { in set_gate()
/DragonOS/kernel/src/arch/x86_64/mm/
H A Dfault.rs73 address: VirtAddr, in show_fault_oops()
138 address: VirtAddr, in page_fault_oops()
155 address: VirtAddr, in do_kern_addr_fault()
178 address: VirtAddr, in do_user_addr_fault()
H A Dmod.rs179 unsafe fn invalidate_page(address: VirtAddr) { in invalidate_page()
290 unsafe fn write<T>(address: VirtAddr, value: T) { in write()
294 unsafe fn write_bytes(address: VirtAddr, value: u8, count: usize) { in write_bytes()
298 unsafe fn phys_2_virt(phys: PhysAddr) -> Option<VirtAddr> { in phys_2_virt()
444 impl VirtAddr { implementation
/DragonOS/kernel/src/mm/
H A Dno_init.rs68 pub fn allocate_page(&mut self) -> Option<VirtAddr> { in allocate_page()
83 pub fn free_page(&mut self, addr: VirtAddr) { in free_page()
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()
160 vaddr: VirtAddr, in pseudo_map_phys_with_flags()
193 pub unsafe fn pseudo_unmap_phys(vaddr: VirtAddr, count: PageFrameCount) { in pseudo_unmap_phys()
H A Dmod.rs282 pub struct VirtAddr(usize); struct
284 impl VirtAddr { impl
329 impl Add<VirtAddr> for VirtAddr { implementation
338 impl Add<usize> for VirtAddr { implementation
347 impl Sub<VirtAddr> for VirtAddr { implementation
356 impl Sub<usize> for VirtAddr { implementation
365 impl AddAssign<usize> for VirtAddr { implementation
372 impl AddAssign<VirtAddr> for VirtAddr { implementation
374 fn add_assign(&mut self, rhs: VirtAddr) { in add_assign()
379 impl SubAssign<usize> for VirtAddr { implementation
[all …]
H A Dsyscall.rs253 pub fn brk(new_addr: VirtAddr) -> Result<VirtAddr, SystemError> { in brk()
274 pub fn sbrk(incr: isize) -> Result<VirtAddr, SystemError> { in sbrk()
300 start_vaddr: VirtAddr, in mmap()
368 old_vaddr: VirtAddr, in mremap()
372 new_vaddr: VirtAddr, in mremap()
450 pub fn munmap(start_vaddr: VirtAddr, len: usize) -> Result<usize, SystemError> { in munmap()
481 start_vaddr: VirtAddr, in mprotect()
516 start_vaddr: VirtAddr, in madvise()
551 pub fn msync(start: VirtAddr, len: usize, flags: usize) -> Result<usize, SystemError> { in msync()
H A Dmmio_buddy.rs125 fn give_back_block(&self, vaddr: VirtAddr, exp: u32) -> Result<i32, SystemError> { in give_back_block()
334 fn calculate_block_vaddr(&self, vaddr: VirtAddr, exp: u32) -> VirtAddr { in calculate_block_vaddr()
352 vaddr: VirtAddr, in pop_buddy_block()
531 pub fn release_mmio(&self, vaddr: VirtAddr, length: usize) -> Result<i32, SystemError> { in release_mmio()
589 pub fn vaddr(&self) -> VirtAddr { in vaddr()
629 pub unsafe fn from_raw(vaddr: VirtAddr, size: usize, mapped: bool) -> Self { in from_raw()
654 pub fn vaddr(&self) -> VirtAddr { in vaddr()
740 ) -> Result<VirtAddr, SystemError> { in map_any_phys()
H A Dearly_ioremap.rs47 ) -> Result<VirtAddr, SystemError> { in map_not_aligned()
80 ) -> Result<(VirtAddr, usize), SystemError> { in map()
194 fn idx_to_virt(idx: usize) -> VirtAddr { in idx_to_virt()
H A Dpage.rs475 pub unsafe fn new(base: VirtAddr, phys: PhysAddr, level: usize) -> Self { in new()
509 pub fn base(&self) -> VirtAddr { in base()
521 pub unsafe fn virt(&self) -> VirtAddr { in virt()
526 pub fn entry_base(&self, i: usize) -> Option<VirtAddr> { in entry_base()
536 pub unsafe fn entry_virt(&self, i: usize) -> Option<VirtAddr> { in entry_virt()
1180 virt: VirtAddr, in map()
1204 virt: VirtAddr, in map_phys()
1262 virt: VirtAddr, in map_huge_page()
1318 virt: VirtAddr, in allocate_table()
1345 pub fn get_table(&self, virt: VirtAddr, level: usize) -> Option<PageTable<Arch>> { in get_table()
[all …]
H A Ducontext.rs248 start_vaddr: VirtAddr, in map_anonymous()
324 start_vaddr: VirtAddr, in file_mapping()
439 addr: Option<VirtAddr>, in mmap()
515 old_vaddr: VirtAddr, in mremap()
519 new_vaddr: VirtAddr, in mremap()
521 ) -> Result<VirtAddr, SystemError> { in mremap()
754 pub unsafe fn set_brk(&mut self, new_brk: VirtAddr) -> Result<VirtAddr, SystemError> { in set_brk()
786 pub unsafe fn sbrk(&mut self, incr: isize) -> Result<VirtAddr, SystemError> { in sbrk()
927 pub fn find_free(&self, min_vaddr: VirtAddr, size: usize) -> Option<VirtRegion> { in find_free()
954 min_vaddr: VirtAddr, in find_free_at()
[all …]
H A Dfault.rs69 address: VirtAddr, in new()
96 pub fn address(&self) -> VirtAddr { in address()
102 pub fn address_aligned_down(&self) -> VirtAddr { in address_aligned_down()
H A Dkernel_mapper.rs104 mut vaddr: VirtAddr, in map_phys_with_size()
/DragonOS/kernel/src/arch/riscv64/process/
H A Dsyscall.rs16 user_sp: VirtAddr, in arch_do_execve()
17 argv_ptr: VirtAddr, in arch_do_execve()
/DragonOS/kernel/src/libs/
H A Delf.rs120 start: VirtAddr, in set_elf_brk()
121 end: VirtAddr, in set_elf_brk()
152 fn elf_page_start(&self, addr: VirtAddr) -> VirtAddr { in elf_page_start()
156 fn elf_page_align_up(&self, addr: VirtAddr) -> VirtAddr { in elf_page_align_up()
205 mut addr_to_map: VirtAddr, in load_elf_segment()
209 ) -> Result<(VirtAddr, bool), SystemError> { in load_elf_segment()
326 mut vaddr: VirtAddr, in do_load_file()
377 entrypoint_vaddr: VirtAddr, in create_auxv()
378 phdr_vaddr: Option<VirtAddr>, in create_auxv()
/DragonOS/kernel/src/arch/x86_64/process/
H A Dsyscall.rs22 user_sp: VirtAddr, in arch_do_execve()
23 argv_ptr: VirtAddr, in arch_do_execve()
H A Dtable.rs63 unsafe fn set_tss_descriptor(index: u16, vaddr: VirtAddr) { in set_tss_descriptor()
/DragonOS/kernel/src/net/event_poll/
H A Dsyscall.rs35 events: VirtAddr, in epoll_wait()
93 epoll_event: VirtAddr, in epoll_pwait()
/DragonOS/kernel/src/driver/firmware/efi/
H A Dtables.rs260 vendor_table_vaddr: Option<VirtAddr>, in post_process()
283 vendor_table_vaddr: Option<VirtAddr>, in post_process()
313 _vendor_table_vaddr: Option<VirtAddr>, in post_process()
342 _vendor_table_vaddr: Option<VirtAddr>, in post_process()
372 _vendor_table_vaddr: Option<VirtAddr>, in post_process()
/DragonOS/kernel/src/arch/riscv64/mm/
H A Dmod.rs49 address: VirtAddr, in remote_invalidate_page()
162 unsafe fn invalidate_page(address: VirtAddr) { in invalidate_page()
216 unsafe fn phys_2_virt(phys: PhysAddr) -> Option<VirtAddr> { in phys_2_virt()
327 impl VirtAddr { implementation
/DragonOS/kernel/src/process/
H A Dexec.rs47 pub fn entry_point(&self) -> VirtAddr { in entry_point()
225 ) -> Result<(VirtAddr, VirtAddr), SystemError> { in push_at() argument
/DragonOS/kernel/src/arch/x86_64/syscall/
H A Dmod.rs37 pub fn set_kstack(&mut self, kstack: VirtAddr) { in set_kstack()
/DragonOS/kernel/src/arch/riscv64/init/
H A Dmod.rs41 pub fn arch_fdt(&self) -> VirtAddr { in arch_fdt()
/DragonOS/kernel/src/driver/serial/
H A Dmod.rs35 fn membase(&self) -> Option<VirtAddr> { in membase()

12