Lines Matching refs:kpte
253 static unsigned long pg_level_to_pfn(int level, pte_t *kpte, pgprot_t *ret_prot) in pg_level_to_pfn() argument
260 pfn = pte_pfn(*kpte); in pg_level_to_pfn()
261 prot = pte_pgprot(*kpte); in pg_level_to_pfn()
264 pfn = pmd_pfn(*(pmd_t *)kpte); in pg_level_to_pfn()
265 prot = pmd_pgprot(*(pmd_t *)kpte); in pg_level_to_pfn()
268 pfn = pud_pfn(*(pud_t *)kpte); in pg_level_to_pfn()
269 prot = pud_pgprot(*(pud_t *)kpte); in pg_level_to_pfn()
300 pte_t *kpte; in enc_dec_hypercall() local
302 kpte = lookup_address(vaddr, &level); in enc_dec_hypercall()
303 if (!kpte || pte_none(*kpte)) { in enc_dec_hypercall()
308 pfn = pg_level_to_pfn(level, kpte, NULL); in enc_dec_hypercall()
350 static void __init __set_clr_pte_enc(pte_t *kpte, int level, bool enc) in __set_clr_pte_enc() argument
356 pfn = pg_level_to_pfn(level, kpte, &old_prot); in __set_clr_pte_enc()
395 set_pte_atomic(kpte, new_pte); in __set_clr_pte_enc()
412 pte_t *kpte; in early_set_memory_enc_dec() local
419 kpte = lookup_address(vaddr, &level); in early_set_memory_enc_dec()
420 if (!kpte || pte_none(*kpte)) { in early_set_memory_enc_dec()
426 __set_clr_pte_enc(kpte, level, enc); in early_set_memory_enc_dec()
442 __set_clr_pte_enc(kpte, level, enc); in early_set_memory_enc_dec()