Home
last modified time | relevance | path

Searched refs:p4d_p (Results 1 – 2 of 2) sorted by relevance

/arch/x86/kernel/
Dhead64.c213 p4dval_t p4d, *p4d_p; in __early_make_pgtable() local
231 p4d_p = pgd_p; in __early_make_pgtable()
233 p4d_p = (p4dval_t *)((pgd & PTE_PFN_MASK) + __START_KERNEL_map - phys_base); in __early_make_pgtable()
240 p4d_p = (p4dval_t *)early_dynamic_pgts[next_early_pgt++]; in __early_make_pgtable()
241 memset(p4d_p, 0, sizeof(*p4d_p) * PTRS_PER_P4D); in __early_make_pgtable()
242 *pgd_p = (pgdval_t)p4d_p - __START_KERNEL_map + phys_base + _KERNPG_TABLE; in __early_make_pgtable()
244 p4d_p += p4d_index(address); in __early_make_pgtable()
245 p4d = *p4d_p; in __early_make_pgtable()
257 *p4d_p = (p4dval_t)pud_p - __START_KERNEL_map + phys_base + _KERNPG_TABLE; in __early_make_pgtable()
/arch/x86/mm/
Dmem_encrypt.c267 p4d_t *p4d_p; in sme_prepare_pgd() local
274 p4d_p = (p4d_t *)(native_pgd_val(*pgd_p) & ~PTE_FLAGS_MASK); in sme_prepare_pgd()
281 p4d_p = ppd->pgtable_area; in sme_prepare_pgd()
282 memset(p4d_p, 0, sizeof(*p4d_p) * PTRS_PER_P4D); in sme_prepare_pgd()
283 ppd->pgtable_area += sizeof(*p4d_p) * PTRS_PER_P4D; in sme_prepare_pgd()
285 pgd = native_make_pgd((pgdval_t)p4d_p + PGD_FLAGS); in sme_prepare_pgd()
297 p4d_p += p4d_index(ppd->vaddr); in sme_prepare_pgd()
298 if (native_p4d_val(*p4d_p)) { in sme_prepare_pgd()
299 pud_p = (pud_t *)(native_p4d_val(*p4d_p) & ~PTE_FLAGS_MASK); in sme_prepare_pgd()
308 native_set_p4d(p4d_p, p4d); in sme_prepare_pgd()