Home
last modified time | relevance | path

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

/Linux-v6.6/arch/x86/mm/
Dmem_encrypt_amd.c351 pgprot_t old_prot, new_prot; in __set_clr_pte_enc() local
355 pfn = pg_level_to_pfn(level, kpte, &old_prot); in __set_clr_pte_enc()
359 new_prot = old_prot; in __set_clr_pte_enc()
366 if (pgprot_val(old_prot) == pgprot_val(new_prot)) in __set_clr_pte_enc()
/Linux-v6.6/arch/x86/mm/pat/
Dset_memory.c845 pgprot_t old_prot, new_prot, req_prot, chk_prot; in __should_split_large_page() local
859 old_prot = pmd_pgprot(*(pmd_t *)kpte); in __should_split_large_page()
864 old_prot = pud_pgprot(*(pud_t *)kpte); in __should_split_large_page()
891 req_prot = pgprot_large_2_4k(old_prot); in __should_split_large_page()
925 chk_prot = static_protections(old_prot, lpaddr, old_pfn, numpages, in __should_split_large_page()
928 if (WARN_ON_ONCE(pgprot_val(chk_prot) != pgprot_val(old_prot))) { in __should_split_large_page()
946 if (pgprot_val(req_prot) == pgprot_val(old_prot)) { in __should_split_large_page()
964 new_prot = verify_rwx(old_prot, new_prot, lpaddr, old_pfn, numpages); in __should_split_large_page()
1606 pgprot_t old_prot = pte_pgprot(old_pte); in __change_page_attr() local
1618 new_prot = verify_rwx(old_prot, new_prot, address, pfn, 1); in __change_page_attr()
/Linux-v6.6/drivers/target/
Dtarget_core_configfs.c825 int old_prot = da->pi_prot_type, ret; in pi_prot_type_store() local
867 if (flag && !old_prot) { in pi_prot_type_store()
870 da->pi_prot_type = old_prot; in pi_prot_type_store()
875 } else if (!flag && old_prot) { in pi_prot_type_store()