Lines Matching refs:ul
46 int mm_map_phys_addr(ul virt_addr_start, ul phys_addr_start, ul length, ul flags, bool use4k) in mm_map_phys_addr()
53 int mm_map_phys_addr_user(ul virt_addr_start, ul phys_addr_start, ul length, ul flags) in mm_map_phys_addr_user()
71 int mm_map_proc_page_table(ul proc_page_table_addr, bool is_phys, ul virt_addr_start, ul phys_addr_… in mm_map_proc_page_table()
90 pml4_ptr = phys_2_virt((ul *)((ul)proc_page_table_addr & (~0xfffUL))); in mm_map_proc_page_table()
92 pml4_ptr = (ul *)((ul)proc_page_table_addr & (~0xfffUL)); in mm_map_proc_page_table()
100 ul *pml4e_ptr = pml4_ptr + pml4e_id; in mm_map_proc_page_table()
105 ul *virt_addr = kmalloc(PAGE_4K_SIZE, 0); in mm_map_proc_page_table()
122 ul *virt_addr = kmalloc(PAGE_4K_SIZE, 0); in mm_map_proc_page_table()
135 ul *pde_ptr = pd_ptr + pde_id; in mm_map_proc_page_table()
165 …set_pt(pte_ptr, mk_pt((ul)phys_addr_start + length_mapped, flags | (user ? PAGE_USER_4K_PAGE : PAG… in mm_map_proc_page_table()
175 …if (likely((((ul)phys_addr_start + length_mapped) >> PAGE_2M_SHIFT) < mm_total_2M_pages)) // 校验是否为… in mm_map_proc_page_table()
176 free_pages(Phy_to_2M_Page((ul)phys_addr_start + length_mapped), 1); in mm_map_proc_page_table()
181 …set_pdt(pde_ptr, mk_pdt((ul)phys_addr_start + length_mapped, flags | (user ? PAGE_USER_PAGE : PAGE… in mm_map_proc_page_table()
203 void mm_unmap_proc_table(ul proc_page_table_addr, bool is_phys, ul virt_addr_start, ul length) in mm_unmap_proc_table()
215 pml4_ptr = phys_2_virt((ul *)((ul)proc_page_table_addr & (~0xfffUL))); in mm_unmap_proc_table()
217 pml4_ptr = (ul *)((ul)proc_page_table_addr & (~0xfffUL)); in mm_unmap_proc_table()
225 ul *pml4e_ptr = NULL; in mm_unmap_proc_table()
260 ul *pde_ptr = pd_ptr + pde_id; in mm_unmap_proc_table()