Home
last modified time | relevance | path

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

/DragonOS-0.1.3/kernel/src/driver/disk/ahci/
Dahci.c302 port->clb = virt_2_phys(ahci_port_base_vaddr + (portno << 10)); in port_rebase()
308 port->fb = virt_2_phys(ahci_port_base_vaddr + (32 << 10) + (portno << 8)); in port_rebase()
320 … cmdheader[i].ctba = virt_2_phys((ahci_port_base_vaddr + (40 << 10) + (portno << 13) + (i << 8))); in port_rebase()
361 cmdtbl->prdt_entry[i].dba = virt_2_phys(buf); in ahci_read()
369 cmdtbl->prdt_entry[i].dba = virt_2_phys(buf); in ahci_read()
457 cmdtbl->prdt_entry[i].dba = virt_2_phys(buf); in ahci_write()
463 cmdtbl->prdt_entry[i].dba = virt_2_phys(buf); in ahci_write()
/DragonOS-0.1.3/kernel/src/driver/usb/xhci/
Dxhci.c580 *(uint64_t *)(table_vaddr) = virt_2_phys(seg_vaddr); in xhci_create_event_ring()
769 … xhci_write_intr_reg64(cid, 0, XHCI_IR_DEQUEUE, virt_2_phys(last_event_ring_vaddr) | (1 << 3)); in xhci_hc_irq_handler()
898 virt_2_phys(device_context_vaddr)); in xhci_initialize_slot()
943 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()
1025 trb.buf_paddr = virt_2_phys(input_ctx_buffer); in xhci_set_address()
1112 trb.buf_paddr = virt_2_phys(buf_vaddr); in xhci_data_stage()
1137 trb.buf_paddr = virt_2_phys(status_vaddr); in xhci_data_stage()
1175 trb.buf_paddr = virt_2_phys(status_buf_vaddr); in xhci_status_stage()
1756 trb.buf_paddr = virt_2_phys(input_ctx_buffer); in xhci_configure_endpoint()
1931 virt_2_phys(xhci_hc[id].current_event_ring_vaddr) | in xhci_hc_init_intr()
[all …]
/DragonOS-0.1.3/kernel/src/mm/
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.3/kernel/src/process/
Dfork.c233 new_mms->pgd = (pml4t_t *)virt_2_phys(kmalloc(PAGE_4K_SIZE, 0)); in process_copy_mm()
289 mm_map_vma(new_vma, virt_2_phys(va), 0, map_size); in process_copy_mm()
Dprocess.c297 uint64_t paddr = virt_2_phys((uint64_t)kmalloc(PAGE_4K_SIZE, 0)); in process_load_elf_file()
380 new_mms->pgd = (pml4t_t *)virt_2_phys(kmalloc(PAGE_4K_SIZE, 0)); in do_execve()
/DragonOS-0.1.3/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()