Home
last modified time | relevance | path

Searched refs:virt_2_phys (Results 1 – 12 of 12) sorted by relevance

/DragonOS-0.1.7/kernel/src/driver/virtio/
Dvirtio_impl.rs6 use crate::mm::virt_2_phys;
53 virt_2_phys(vaddr) in share()
/DragonOS-0.1.7/kernel/src/mm/
Dmod.rs9 pub fn virt_2_phys(addr: usize) -> usize { in virt_2_phys() function
Dmm.h40 #define virt_2_phys(addr) ((unsigned long)(addr)-PAGE_OFFSET) macro
43 #define Virt_To_2M_Page(kaddr) (memory_management_struct.pages_struct + (virt_2_phys(kaddr) >> PAGE…
Dmmap.c107 … set_pml4t(pml4e_ptr, mk_pml4t(virt_2_phys(virt_addr), (user ? PAGE_USER_PGT : PAGE_KERNEL_PGT))); in mm_map_proc_page_table()
124 … set_pdpt(pdpte_ptr, mk_pdpt(virt_2_phys(virt_addr), (user ? PAGE_USER_DIR : PAGE_KERNEL_DIR))); in mm_map_proc_page_table()
145 … set_pdt(pde_ptr, mk_pdt(virt_2_phys(vaddr), (user ? PAGE_USER_PDE : PAGE_KERNEL_PDE))); in mm_map_proc_page_table()
Dmm.c207 …ul mms_max_page = (virt_2_phys(memory_management_struct.end_of_struct) >> PAGE_2M_SHIFT); // 内存管理单… in mm_init()
513 set_pml4t(tmp, mk_pml4t(virt_2_phys(pdpt), PAGE_KERNEL_PGT)); in page_table_init()
Dslab.c387 ul tmp_page_mms_end = virt_2_phys(memory_management_struct.end_of_struct) >> PAGE_2M_SHIFT; in slab_init()
390 for (int i = PAGE_2M_ALIGN(virt_2_phys(tmp_addr)) >> PAGE_2M_SHIFT; i <= tmp_page_mms_end; ++i) in slab_init()
/DragonOS-0.1.7/kernel/src/driver/disk/ahci/
Dmod.rs12 use crate::mm::virt_2_phys;
109 let fb = virt_2_phys(ahci_port_base_vaddr + (32 << 10) + (j << 8)); in ahci_rust_init()
110 let clb = virt_2_phys(ahci_port_base_vaddr + (j << 10)); in ahci_rust_init()
114 virt_2_phys( in ahci_rust_init()
Dahcidisk.rs1 use super::{_port, hba::HbaCmdTable, virt_2_phys};
113 volatile_write!(cmdtbl.prdt_entry[i].dba, virt_2_phys(buf_ptr) as u64); in read_at()
122 volatile_write!(cmdtbl.prdt_entry[las].dba, virt_2_phys(buf_ptr) as u64); in read_at()
250 volatile_write!(cmdtbl.prdt_entry[i].dba, virt_2_phys(buf_ptr) as u64); in write_at()
259 volatile_write!(cmdtbl.prdt_entry[las].dba, virt_2_phys(buf_ptr) as u64); in write_at()
/DragonOS-0.1.7/kernel/src/driver/usb/xhci/
Dxhci.c580 *(uint64_t *)(table_vaddr) = virt_2_phys(seg_vaddr); in xhci_create_event_ring()
771 … xhci_write_intr_reg64(cid, 0, XHCI_IR_DEQUEUE, virt_2_phys(last_event_ring_vaddr) | (1 << 3)); in xhci_hc_irq_handler()
900 virt_2_phys(device_context_vaddr)); in xhci_initialize_slot()
945 ep_ctx.tr_dequeue_ptr = virt_2_phys(xhci_hc[id].ports[port_id].ep_info[ep_num].ep_ring_vbase); in xhci_initialize_ep()
1027 trb.buf_paddr = virt_2_phys(input_ctx_buffer); in xhci_set_address()
1114 trb.buf_paddr = virt_2_phys(buf_vaddr); in xhci_data_stage()
1139 trb.buf_paddr = virt_2_phys(status_vaddr); in xhci_data_stage()
1177 trb.buf_paddr = virt_2_phys(status_buf_vaddr); in xhci_status_stage()
1758 trb.buf_paddr = virt_2_phys(input_ctx_buffer); in xhci_configure_endpoint()
1933 virt_2_phys(xhci_hc[id].current_event_ring_vaddr) | in xhci_hc_init_intr()
[all …]
/DragonOS-0.1.7/kernel/src/process/
Dfork.c206 new_mms->pgd = (pml4t_t *)virt_2_phys(kmalloc(PAGE_4K_SIZE, 0)); in process_copy_mm()
262 mm_map_vma(new_vma, virt_2_phys(va), 0, map_size); in process_copy_mm()
Dprocess.c315 uint64_t paddr = virt_2_phys((uint64_t)kmalloc(PAGE_4K_SIZE, 0)); in process_load_elf_file()
428 new_mms->pgd = (pml4t_t *)virt_2_phys(kmalloc(PAGE_4K_SIZE, 0)); in do_execve()
/DragonOS-0.1.7/kernel/src/libs/libUI/
Dscreen_manager.c77 …free_pages(Phy_to_2M_Page(virt_2_phys(buf->vaddr)), PAGE_2M_ALIGN(video_frame_buffer_info.size) / … in __destroy_buffer()