Searched refs:paddr (Results 1 – 8 of 8) sorted by relevance
/DragonOS-0.1.7/kernel/src/driver/acpi/ |
D | acpi.c | 140 uint64_t paddr = 0; in acpi_init() local 181 paddr = (uint64_t)rsdt_phys_base; in acpi_init() 182 mm_map(&initial_mm, acpi_rsdt_virt_addr_base, PAGE_2M_SIZE, paddr); in acpi_init() 203 paddr = (uint64_t)acpi_RSDT_entry_phys_base; in acpi_init() 204 mm_map(&initial_mm, acpi_description_header_base, PAGE_2M_SIZE, paddr); in acpi_init() 219 paddr = (uint64_t)rsdt_phys_base; in acpi_init() 220 mm_map(&initial_mm, acpi_rsdt_virt_addr_base, PAGE_2M_SIZE, paddr); in acpi_init() 242 paddr = (uint64_t)acpi_RSDT_entry_phys_base; in acpi_init() 243 mm_map(&initial_mm, acpi_description_header_base, PAGE_2M_SIZE, paddr); in acpi_init()
|
/DragonOS-0.1.7/kernel/src/mm/ |
D | utils.c | 103 int8_t mm_is_2M_page(uint64_t paddr) in mm_is_2M_page() argument 105 if (likely((paddr >> PAGE_2M_SHIFT) < mm_total_2M_pages)) in mm_is_2M_page()
|
D | mmap.c | 360 int mm_map_vma(struct vm_area_struct *vma, uint64_t paddr, uint64_t offset, uint64_t length) in mm_map_vma() argument 373 pg = __create_mmio_page_struct(paddr); in mm_map_vma() 378 pg = Phy_to_2M_Page(paddr); in mm_map_vma() 412 …_proc_page_table((uint64_t)vma->vm_mm->pgd, true, vma->vm_start + offset, paddr, len_4k, page_flag… in mm_map_vma() 431 …e_table((uint64_t)vma->vm_mm->pgd, true, vma->vm_start + offset + mapped, paddr + mapped, len_2m, … in mm_map_vma() 447 …e_table((uint64_t)vma->vm_mm->pgd, true, vma->vm_start + offset + mapped, paddr + mapped, len_4k, … in mm_map_vma() 473 int mm_map(struct mm_struct *mm, uint64_t vaddr, uint64_t length, uint64_t paddr) in mm_map() argument 496 retval = mm_map_vma(vma, paddr + mapped, offset, m_len); in mm_map() 516 int mm_unmap_vma(struct mm_struct *mm, struct vm_area_struct *vma, uint64_t *paddr) in mm_unmap_vma() argument 522 if (paddr != NULL) in mm_unmap_vma() [all …]
|
D | internal.h | 76 struct Page* __create_mmio_page_struct(uint64_t paddr);
|
D | mm.h | 467 int mm_map_vma(struct vm_area_struct *vma, uint64_t paddr, uint64_t offset, uint64_t length); 478 int mm_map(struct mm_struct *mm, uint64_t vaddr, uint64_t length, uint64_t paddr); 488 int mm_unmap_vma(struct mm_struct *mm, struct vm_area_struct *vma, uint64_t *paddr); 508 int8_t mm_is_2M_page(uint64_t paddr);
|
D | mm.c | 678 struct Page *__create_mmio_page_struct(uint64_t paddr) in __create_mmio_page_struct() argument 683 p->addr_phys = paddr; in __create_mmio_page_struct()
|
/DragonOS-0.1.7/kernel/src/driver/virtio/ |
D | virtio_impl.rs | 30 unsafe fn dma_dealloc(paddr: PhysAddr, _vaddr: NonNull<u8>, pages: usize) -> i32 { in dma_dealloc() 34 + (paddr >> PAGE_2M_SHIFT) * size_of::<Page>()) as *mut Page; in dma_dealloc()
|
/DragonOS-0.1.7/kernel/src/process/ |
D | process.c | 315 uint64_t paddr = virt_2_phys((uint64_t)kmalloc(PAGE_4K_SIZE, 0)); in process_load_elf_file() local 322 kfree(phys_2_virt(paddr)); in process_load_elf_file() 324 mm_map(current_pcb->mm, virt_base + off, PAGE_4K_SIZE, paddr); in process_load_elf_file()
|