Lines Matching refs:length_mapped
79 uint64_t length_mapped = 0; in mm_map_proc_page_table() local
110 uint64_t pdpte_id = (((virt_addr_start + length_mapped) >> PAGE_1G_SHIFT) & 0x1ff); in mm_map_proc_page_table()
127 uint64_t pde_id = (((virt_addr_start + length_mapped) >> PAGE_2M_SHIFT) & 0x1ff); in mm_map_proc_page_table()
153 … uint64_t pte_id = (((virt_addr_start + length_mapped) >> PAGE_4K_SHIFT) & 0x1ff); 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()
166 length_mapped += PAGE_4K_SIZE; 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()
177 length_mapped += PAGE_2M_SIZE; 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()
182 length_mapped += PAGE_2M_SIZE; in mm_map_proc_page_table()