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
179 unsigned int i, level; in cpa_flush_range() local
197 pte_t *pte = lookup_address(addr, &level); in cpa_flush_range()
210 unsigned int i, level; in cpa_flush_array() local
235 pte = lookup_address(addr, &level); in cpa_flush_array()
294 unsigned int level; in static_protections() local
313 if (lookup_address(address, &level) && (level != PG_LEVEL_4K)) in static_protections()
328 unsigned int *level) in lookup_address_in_pgd() argument
333 *level = PG_LEVEL_NONE; in lookup_address_in_pgd()
342 *level = PG_LEVEL_1G; in lookup_address_in_pgd()
350 *level = PG_LEVEL_2M; in lookup_address_in_pgd()
354 *level = PG_LEVEL_4K; in lookup_address_in_pgd()
367 pte_t *lookup_address(unsigned long address, unsigned int *level) in lookup_address() argument
369 return lookup_address_in_pgd(pgd_offset_k(address), address, level); in lookup_address()
374 unsigned int *level) in _lookup_address_cpa() argument
378 address, level); in _lookup_address_cpa()
380 return lookup_address(address, level); in _lookup_address_cpa()
419 enum pg_level level; in slow_virt_to_phys() local
422 pte = lookup_address(virt_addr, &level); in slow_virt_to_phys()
430 switch (level) { in slow_virt_to_phys()
481 enum pg_level level; in try_preserve_large_page() local
491 tmp = _lookup_address_cpa(cpa, address, &level); in try_preserve_large_page()
495 switch (level) { in try_preserve_large_page()
509 psize = page_level_size(level); in try_preserve_large_page()
510 pmask = page_level_mask(level); in try_preserve_large_page()
615 unsigned int i, level; in __split_large_page() local
624 tmp = _lookup_address_cpa(cpa, address, &level); in __split_large_page()
632 switch (level) { in __split_large_page()
681 split_page_count(level); in __split_large_page()
1154 unsigned int level; in __change_page_attr() local
1167 kpte = _lookup_address_cpa(cpa, address, &level); in __change_page_attr()
1175 if (level == PG_LEVEL_4K) { in __change_page_attr()
1931 unsigned int level; in kernel_page_present() local
1937 pte = lookup_address((unsigned long)page_address(page), &level); in kernel_page_present()