Lines Matching refs:level
59 void update_page_count(int level, unsigned long pages) in update_page_count() argument
63 direct_pages_count[level] += pages; in update_page_count()
67 static void split_page_count(int level) in split_page_count() argument
69 direct_pages_count[level]--; in split_page_count()
70 direct_pages_count[level - 1] += PTRS_PER_PTE; in split_page_count()
89 static inline void split_page_count(int level) { } in split_page_count() argument
180 unsigned int i, level; in cpa_flush_range() local
198 pte_t *pte = lookup_address(addr, &level); in cpa_flush_range()
211 unsigned int i, level; in cpa_flush_array() local
236 pte = lookup_address(addr, &level); in cpa_flush_array()
295 unsigned int level; in static_protections() local
314 if (lookup_address(address, &level) && (level != PG_LEVEL_4K)) in static_protections()
329 unsigned int *level) in lookup_address_in_pgd() argument
334 *level = PG_LEVEL_NONE; in lookup_address_in_pgd()
343 *level = PG_LEVEL_1G; in lookup_address_in_pgd()
351 *level = PG_LEVEL_2M; in lookup_address_in_pgd()
355 *level = PG_LEVEL_4K; in lookup_address_in_pgd()
368 pte_t *lookup_address(unsigned long address, unsigned int *level) in lookup_address() argument
370 return lookup_address_in_pgd(pgd_offset_k(address), address, level); in lookup_address()
375 unsigned int *level) in _lookup_address_cpa() argument
379 address, level); in _lookup_address_cpa()
381 return lookup_address(address, level); in _lookup_address_cpa()
420 enum pg_level level; in slow_virt_to_phys() local
425 pte = lookup_address(virt_addr, &level); in slow_virt_to_phys()
427 psize = page_level_size(level); in slow_virt_to_phys()
428 pmask = page_level_mask(level); in slow_virt_to_phys()
468 enum pg_level level; in try_preserve_large_page() local
478 tmp = _lookup_address_cpa(cpa, address, &level); in try_preserve_large_page()
482 switch (level) { in try_preserve_large_page()
487 psize = page_level_size(level); in try_preserve_large_page()
488 pmask = page_level_mask(level); in try_preserve_large_page()
598 unsigned int i, level; in __split_large_page() local
607 tmp = _lookup_address_cpa(cpa, address, &level); in __split_large_page()
617 if (level == PG_LEVEL_2M) in __split_large_page()
621 if (level == PG_LEVEL_1G) { in __split_large_page()
655 split_page_count(level); in __split_large_page()
1127 unsigned int level; in __change_page_attr() local
1140 kpte = _lookup_address_cpa(cpa, address, &level); in __change_page_attr()
1148 if (level == PG_LEVEL_4K) { in __change_page_attr()
1868 unsigned int level; in kernel_page_present() local
1874 pte = lookup_address((unsigned long)page_address(page), &level); in kernel_page_present()