Searched refs:PAGE_2M_SHIFT (Results 1 – 7 of 7) sorted by relevance
29 tmp = phys_2_virt(((ul *)(*tmp & (~0xfffUL)) + (((ul)(vaddr) >> PAGE_2M_SHIFT) & 0x1ff))); in __mm_get_paddr()74 tmp = phys_2_virt(((ul *)(*tmp & (~0xfffUL)) + (((ul)(virt_addr) >> PAGE_2M_SHIFT) & 0x1ff))); in mm_check_mapped()105 if (likely((paddr >> PAGE_2M_SHIFT) < mm_total_2M_pages)) in mm_is_2M_page()
98 mm_total_2M_pages += ((addr_end - addr_start) >> PAGE_2M_SHIFT); in mm_init()108 …memory_management_struct.bits_size = max_addr >> PAGE_2M_SHIFT; … in mm_init()109 …memory_management_struct.bmp_len = (((unsigned long)(max_addr >> PAGE_2M_SHIFT) + sizeof(unsigned … in mm_init()119 memory_management_struct.count_pages = max_addr >> PAGE_2M_SHIFT; in mm_init()120 …memory_management_struct.pages_struct_len = ((max_addr >> PAGE_2M_SHIFT) * sizeof(struct Page) + s… in mm_init()158 z->count_pages_free = (addr_end - addr_start) >> PAGE_2M_SHIFT; in mm_init()164 z->count_pages = (addr_end - addr_start) >> PAGE_2M_SHIFT; in mm_init()165 …ges_group = (struct Page *)(memory_management_struct.pages_struct + (addr_start >> PAGE_2M_SHIFT)); in mm_init()180 …y_management_struct.bmp + ((p->addr_phys >> PAGE_2M_SHIFT) >> 6)) ^= (1UL << ((p->addr_phys >> PAG… in mm_init()207 …ul mms_max_page = (virt_2_phys(memory_management_struct.end_of_struct) >> PAGE_2M_SHIFT); // 内存管理单… in mm_init()[all …]
22 #define PAGE_2M_SHIFT 21 macro28 #define PAGE_2M_SIZE (1UL << PAGE_2M_SHIFT)43 …t_To_2M_Page(kaddr) (memory_management_struct.pages_struct + (virt_2_phys(kaddr) >> PAGE_2M_SHIFT))44 …_2M_Page(kaddr) (memory_management_struct.pages_struct + ((unsigned long)(kaddr) >> PAGE_2M_SHIFT))
33 ent->num_PDE = (length + PAGE_2M_SIZE - 1) >> PAGE_2M_SHIFT; in mm_calculate_entry_num()127 uint64_t pde_id = (((virt_addr_start + length_mapped) >> PAGE_2M_SHIFT) & 0x1ff); 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()251 uint64_t pde_id = (((virt_addr_start + length_unmapped) >> PAGE_2M_SHIFT) & 0x1ff); in mm_unmap_proc_table()
387 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()394 page_num = page->addr_phys >> PAGE_2M_SHIFT; in slab_init()412 page_num = page->addr_phys >> PAGE_2M_SHIFT; in slab_init()
9 #define PAGE_2M_SHIFT 21 macro15 #define PAGE_2M_SIZE (1UL << PAGE_2M_SHIFT)
257 int page_to_alloc = (PAGE_2M_ALIGN(vma_size)) >> PAGE_2M_SHIFT; in process_copy_mm()