Lines Matching refs:new
59 static void pgt_set(unsigned long *old, unsigned long new, unsigned long addr, in pgt_set() argument
78 crdte(*old, new, table, dtt, addr, S390_lowcore.kernel_asce); in pgt_set()
80 cspg(old, *old, new); in pgt_set()
82 csp((unsigned int *)old + 1, *old, new); in pgt_set()
89 pte_t *ptep, new; in walk_pte_level() local
95 new = *ptep; in walk_pte_level()
96 if (pte_none(new)) in walk_pte_level()
99 new = pte_wrprotect(new); in walk_pte_level()
101 new = pte_mkwrite_novma(pte_mkdirty(new)); in walk_pte_level()
103 new = set_pte_bit(new, __pgprot(_PAGE_NOEXEC)); in walk_pte_level()
105 new = clear_pte_bit(new, __pgprot(_PAGE_NOEXEC)); in walk_pte_level()
107 new = set_pte_bit(new, __pgprot(_PAGE_INVALID)); in walk_pte_level()
109 new = __pte(pte_val(new) & PAGE_MASK); in walk_pte_level()
110 new = set_pte_bit(new, PAGE_KERNEL); in walk_pte_level()
112 new = clear_pte_bit(new, __pgprot(_PAGE_NOEXEC)); in walk_pte_level()
114 pgt_set((unsigned long *)ptep, pte_val(new), addr, CRDTE_DTT_PAGE); in walk_pte_level()
126 pmd_t new; in split_pmd_page() local
144 new = __pmd(__pa(pt_dir) | _SEGMENT_ENTRY); in split_pmd_page()
145 pgt_set((unsigned long *)pmdp, pmd_val(new), addr, CRDTE_DTT_SEGMENT); in split_pmd_page()
154 pmd_t new = *pmdp; in modify_pmd_page() local
157 new = pmd_wrprotect(new); in modify_pmd_page()
159 new = pmd_mkwrite_novma(pmd_mkdirty(new)); in modify_pmd_page()
161 new = set_pmd_bit(new, __pgprot(_SEGMENT_ENTRY_NOEXEC)); in modify_pmd_page()
163 new = clear_pmd_bit(new, __pgprot(_SEGMENT_ENTRY_NOEXEC)); in modify_pmd_page()
165 new = set_pmd_bit(new, __pgprot(_SEGMENT_ENTRY_INVALID)); in modify_pmd_page()
167 new = __pmd(pmd_val(new) & PMD_MASK); in modify_pmd_page()
168 new = set_pmd_bit(new, SEGMENT_KERNEL); in modify_pmd_page()
170 new = clear_pmd_bit(new, __pgprot(_SEGMENT_ENTRY_NOEXEC)); in modify_pmd_page()
172 pgt_set((unsigned long *)pmdp, pmd_val(new), addr, CRDTE_DTT_SEGMENT); in modify_pmd_page()
215 pud_t new; in split_pud_page() local
233 new = __pud(__pa(pm_dir) | _REGION3_ENTRY); in split_pud_page()
234 pgt_set((unsigned long *)pudp, pud_val(new), addr, CRDTE_DTT_REGION3); in split_pud_page()
243 pud_t new = *pudp; in modify_pud_page() local
246 new = pud_wrprotect(new); in modify_pud_page()
248 new = pud_mkwrite(pud_mkdirty(new)); in modify_pud_page()
250 new = set_pud_bit(new, __pgprot(_REGION_ENTRY_NOEXEC)); in modify_pud_page()
252 new = clear_pud_bit(new, __pgprot(_REGION_ENTRY_NOEXEC)); in modify_pud_page()
254 new = set_pud_bit(new, __pgprot(_REGION_ENTRY_INVALID)); in modify_pud_page()
256 new = __pud(pud_val(new) & PUD_MASK); in modify_pud_page()
257 new = set_pud_bit(new, REGION3_KERNEL); in modify_pud_page()
259 new = clear_pud_bit(new, __pgprot(_REGION_ENTRY_NOEXEC)); in modify_pud_page()
261 pgt_set((unsigned long *)pudp, pud_val(new), addr, CRDTE_DTT_REGION3); in modify_pud_page()