Home
last modified time | relevance | path

Searched refs:old_prot (Results 1 – 3 of 3) sorted by relevance

/linux/arch/x86/mm/
H A Dmem_encrypt_amd.c316 pgprot_t old_prot, new_prot; in __set_clr_pte_enc() local
320 pfn = pg_level_to_pfn(level, kpte, &old_prot); in __set_clr_pte_enc()
324 new_prot = old_prot; in __set_clr_pte_enc()
331 if (pgprot_val(old_prot) == pgprot_val(new_prot)) in __set_clr_pte_enc()
/linux/arch/x86/mm/pat/
H A Dset_memory.c883 pgprot_t old_prot, new_prot, req_prot, chk_prot; in __should_split_large_page() local
898 old_prot = pmd_pgprot(*(pmd_t *)kpte); in __should_split_large_page()
903 old_prot = pud_pgprot(*(pud_t *)kpte); in __should_split_large_page()
930 req_prot = pgprot_large_2_4k(old_prot); in __should_split_large_page()
964 chk_prot = static_protections(old_prot, lpaddr, old_pfn, numpages, in __should_split_large_page()
967 if (WARN_ON_ONCE(pgprot_val(chk_prot) != pgprot_val(old_prot))) { in __should_split_large_page()
985 if (pgprot_val(req_prot) == pgprot_val(old_prot)) { in __should_split_large_page()
1003 new_prot = verify_rwx(old_prot, new_prot, lpaddr, old_pfn, numpages, in __should_split_large_page()
1648 pgprot_t old_prot = pte_pgprot(old_pte); in __change_page_attr() local
1660 new_prot = verify_rwx(old_prot, new_prot, address, pfn, 1, in __change_page_attr()
/linux/drivers/target/
H A Dtarget_core_configfs.c845 int old_prot = da->pi_prot_type, ret; in pi_prot_type_store() local
887 if (flag && !old_prot) { in pi_prot_type_store()
890 da->pi_prot_type = old_prot; in pi_prot_type_store()
895 } else if (!flag && old_prot) { in pi_prot_type_store()