/arch/powerpc/mm/book3s64/ |
D | hash_64k.c | 71 } while (!pte_xchg(ptep, __pte(old_pte), __pte(new_pte))); in __hash_page_4K() 86 rflags = hash_page_do_lazy_icache(rflags, __pte(old_pte), trap); in __hash_page_4K() 91 rpte = __real_pte(__pte(old_pte), ptep, PTRS_PER_PTE); in __hash_page_4K() 131 *ptep = __pte(new_pte & ~H_PAGE_BUSY); in __hash_page_4K() 152 pa = pte_pfn(__pte(old_pte)) << HW_PAGE_SHIFT; in __hash_page_4K() 154 pa = pte_pfn(__pte(old_pte)) << PAGE_SHIFT; in __hash_page_4K() 212 *ptep = __pte(old_pte); in __hash_page_4K() 224 *ptep = __pte(new_pte & ~H_PAGE_BUSY); in __hash_page_4K() 266 } while (!pte_xchg(ptep, __pte(old_pte), __pte(new_pte))); in __hash_page_64K() 269 rpte = __real_pte(__pte(old_pte), ptep, PTRS_PER_PTE); in __hash_page_64K() [all …]
|
D | hugetlbpage.c | 64 } while(!pte_xchg(ptep, __pte(old_pte), __pte(new_pte))); in __hash_page_huge() 75 rpte = __real_pte(__pte(old_pte), ptep, offset); in __hash_page_huge() 82 rflags = hash_page_do_lazy_icache(rflags, __pte(old_pte), trap); in __hash_page_huge() 98 pa = pte_pfn(__pte(old_pte)) << PAGE_SHIFT; in __hash_page_huge() 111 *ptep = __pte(old_pte); in __hash_page_huge() 123 *ptep = __pte(new_pte & ~H_PAGE_BUSY); in __hash_page_huge() 140 return __pte(pte_val); in huge_ptep_modify_prot_start()
|
D | hash_4k.c | 53 } while (!pte_xchg(ptep, __pte(old_pte), __pte(new_pte))); in __hash_page_4K() 60 rpte = __real_pte(__pte(old_pte), ptep, PTRS_PER_PTE); in __hash_page_4K() 64 rflags = hash_page_do_lazy_icache(rflags, __pte(old_pte), trap); in __hash_page_4K() 81 pa = pte_pfn(__pte(old_pte)) << PAGE_SHIFT; in __hash_page_4K() 116 *ptep = __pte(old_pte); in __hash_page_4K() 127 *ptep = __pte(new_pte & ~H_PAGE_BUSY); in __hash_page_4K()
|
/arch/sparc/include/asm/ |
D | pgtable_32.h | 160 set_pte(ptep, __pte(0)); in __pte_clear() 185 set_pte((pte_t *)&pmd_val(*pmdp), __pte(0)); in pmd_clear() 205 set_pte((pte_t *)pudp, __pte(0)); in pud_clear() 229 return __pte(pte_val(pte) & ~SRMMU_WRITE); in pte_wrprotect() 234 return __pte(pte_val(pte) & ~SRMMU_DIRTY); in pte_mkclean() 239 return __pte(pte_val(pte) & ~SRMMU_REF); in pte_mkold() 244 return __pte(pte_val(pte) | SRMMU_WRITE); in pte_mkwrite_novma() 249 return __pte(pte_val(pte) | SRMMU_DIRTY); in pte_mkdirty() 254 return __pte(pte_val(pte) | SRMMU_REF); in pte_mkyoung() 281 return __pte((page_to_pfn(page) << (PAGE_SHIFT-4)) | pgprot_val(pgprot)); in mk_pte() [all …]
|
D | pgtable_64.h | 226 return __pte(paddr | pgprot_val(prot)); in pfn_pte() 317 return __pte((pte_val(pte) & mask) | (pgprot_val(prot) & ~mask)); in pte_modify() 323 pte_t pte = __pte(pmd_val(pmd)); in pmd_modify() 420 return __pte(pte_val(pte) | __pte_default_huge_mask()); in pte_mkhuge() 443 pte_t pte = __pte(pmd_val(pmd)); in pmd_mkhuge() 475 return __pte(val); in __pte_mkhwwrite() 493 pte = __pte(val | mask); in pte_mkdirty() 518 return __pte(val); in pte_mkclean() 536 pte = __pte(val | mask); in pte_mkwrite_novma() 561 return __pte(val); in pte_wrprotect() [all …]
|
/arch/powerpc/include/asm/nohash/ |
D | pgtable.h | 104 return __pte(((pte_basic_t)(pfn) << PTE_RPN_SHIFT) | in pfn_pte() 110 return __pte(pte_val(pte) & ~_PAGE_EXEC); in pte_exprotect() 115 return __pte(pte_val(pte) & ~_PAGE_DIRTY); in pte_mkclean() 120 return __pte(pte_val(pte) & ~_PAGE_ACCESSED); in pte_mkold() 125 return __pte(pte_val(pte) | _PAGE_SPECIAL); in pte_mkspecial() 131 return __pte(pte_val(pte)); in pte_mkhuge() 138 return __pte(pte_val(pte) & ~_PAGE_USER); in pte_mkprivileged() 145 return __pte(pte_val(pte) | _PAGE_USER); in pte_mkuser() 151 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot)); in pte_modify() 161 return __pte(pte_val(pte) | _PAGE_SWP_EXCLUSIVE); in pte_swp_mkexclusive() [all …]
|
D | pte-e500.h | 104 return __pte((pte_val(pte) & ~_PAGE_USER) | _PAGE_PRIVILEGED); in pte_mkprivileged() 111 return __pte((pte_val(pte) & ~_PAGE_PRIVILEGED) | _PAGE_USER); in pte_mkuser() 119 return __pte((pte_val(pte) & ~_PAGE_BAP_SX) | _PAGE_BAP_UX); in pte_mkexec() 121 return __pte((pte_val(pte) & ~_PAGE_BAP_UX) | _PAGE_BAP_SX); in pte_mkexec()
|
/arch/powerpc/include/asm/book3s/32/ |
D | pgtable.h | 311 *p = __pte((old & ~(pte_basic_t)clr) | set); in pte_update() 339 return __pte(pte_update(mm, addr, ptep, ~_PAGE_HASHPTE, 0, 0)); in ptep_get_and_clear() 396 return __pte(pte_val(pte) | _PAGE_SWP_EXCLUSIVE); in pte_swp_mkexclusive() 401 return __pte(pte_val(pte) & ~_PAGE_SWP_EXCLUSIVE); in pte_swp_clear_exclusive() 461 return __pte(((pte_basic_t)(pfn) << PTE_RPN_SHIFT) | in pfn_pte() 468 return __pte(pte_val(pte) & ~_PAGE_RW); in pte_wrprotect() 473 return __pte(pte_val(pte) & ~_PAGE_EXEC); in pte_exprotect() 478 return __pte(pte_val(pte) & ~_PAGE_DIRTY); in pte_mkclean() 483 return __pte(pte_val(pte) & ~_PAGE_ACCESSED); in pte_mkold() 488 return __pte(pte_val(pte) | _PAGE_EXEC); in pte_mkexec() [all …]
|
/arch/ia64/include/asm/ |
D | pgtable.h | 215 ({ pte_t __pte; pte_val(__pte) = ((pfn) << PAGE_SHIFT) | pgprot_val(pgprot); __pte; }) 224 ({ pte_t __pte; pte_val(__pte) = physpage + pgprot_val(pgprot); __pte; }) 227 (__pte((pte_val(_pte) & ~_PAGE_CHG_MASK) | (pgprot_val(newprot) & _PAGE_CHG_MASK))) 271 #define pte_wrprotect(pte) (__pte(pte_val(pte) & ~_PAGE_AR_RW)) 272 #define pte_mkwrite_novma(pte) (__pte(pte_val(pte) | _PAGE_AR_RW)) 273 #define pte_mkold(pte) (__pte(pte_val(pte) & ~_PAGE_A)) 274 #define pte_mkyoung(pte) (__pte(pte_val(pte) | _PAGE_A)) 275 #define pte_mkclean(pte) (__pte(pte_val(pte) & ~_PAGE_D)) 276 #define pte_mkdirty(pte) (__pte(pte_val(pte) | _PAGE_D)) 277 #define pte_mkhuge(pte) (__pte(pte_val(pte))) [all …]
|
/arch/powerpc/include/asm/nohash/64/ |
D | pgtable.h | 90 return __pte(pte_val(pte) | _PAGE_RW); in pte_mkwrite_novma() 95 return __pte(pte_val(pte) | _PAGE_DIRTY); in pte_mkdirty() 100 return __pte(pte_val(pte) | _PAGE_ACCESSED); in pte_mkyoung() 105 return __pte(pte_val(pte) & ~_PAGE_RW); in pte_wrprotect() 123 return __pte(pmd_val(pmd)); in pmd_pte() 158 return __pte(pud_val(pud)); in pud_pte() 181 *ptep = __pte((old & ~clr) | set); in pte_update() 247 return __pte(old); in ptep_get_and_clear() 267 *ptep = __pte(old | bits); in __ptep_set_access_flags() 308 #define __swp_entry_to_pte(x) __pte((x).val)
|
/arch/xtensa/mm/ |
D | mmu.c | 110 write_dtlb_entry(__pte(xtensa_kio_paddr + CA_WRITEBACK), in init_kio() 112 write_itlb_entry(__pte(xtensa_kio_paddr + CA_WRITEBACK), in init_kio() 114 write_dtlb_entry(__pte(xtensa_kio_paddr + CA_BYPASS), in init_kio() 116 write_itlb_entry(__pte(xtensa_kio_paddr + CA_BYPASS), in init_kio()
|
/arch/powerpc/include/asm/nohash/32/ |
D | hugetlb-8xx.h | 63 unsigned long clr = ~pte_val(pte_wrprotect(__pte(~0))); in huge_ptep_set_wrprotect() 64 unsigned long set = pte_val(pte_wrprotect(__pte(0))); in huge_ptep_set_wrprotect() 75 return __pte(pte_val(entry) | _PAGE_SPS); in arch_make_huge_pte() 77 return __pte(pte_val(entry) | _PAGE_SPS | _PAGE_HUGE); in arch_make_huge_pte()
|
D | pte-8xx.h | 92 return __pte(pte_val(pte) | _PAGE_RO); in pte_wrprotect() 113 return __pte(pte_val(pte) & ~_PAGE_RO); in pte_mkwrite_novma() 127 return __pte(pte_val(pte) | _PAGE_SH); in pte_mkprivileged() 134 return __pte(pte_val(pte) & ~_PAGE_SH); in pte_mkuser() 141 return __pte(pte_val(pte) | _PAGE_SPS | _PAGE_HUGE); in pte_mkhuge()
|
D | pgtable.h | 176 return __pte(pte_val(pte) | _PAGE_RW); in pte_mkwrite_novma() 182 return __pte(pte_val(pte) | _PAGE_DIRTY); in pte_mkdirty() 187 return __pte(pte_val(pte) | _PAGE_ACCESSED); in pte_mkyoung() 193 return __pte(pte_val(pte) & ~_PAGE_RW); in pte_wrprotect() 200 return __pte(pte_val(pte) | _PAGE_EXEC); in pte_mkexec() 289 *p = __pte(new); in pte_update() 314 return __pte(pte_update(mm, addr, ptep, ~0, 0, 0)); in ptep_get_and_clear()
|
/arch/mips/include/asm/ |
D | page.h | 126 #define __pte(x) ({ pte_t __pte = {(x), ((unsigned long long)(x)) >> 32}; __pte; }) macro 130 #define __pte(x) ((pte_t) { (x) } ) macro 135 #define __pte(x) ((pte_t) { (x) } ) macro
|
/arch/riscv/include/asm/ |
D | kfence.h | 21 set_pte(pte, __pte(pte_val(*pte) & ~_PAGE_PRESENT)); in kfence_protect_page() 23 set_pte(pte, __pte(pte_val(*pte) | _PAGE_PRESENT)); in kfence_protect_page()
|
D | pgtable.h | 285 return __pte(pmd_val(pmd)); in pmd_pte() 290 return __pte(pud_val(pud)); in pud_pte() 311 return __pte((pte_val(pte) & napot_mask) | napot_bit | _PAGE_NAPOT); in pte_mknapot() 345 return __pte((pfn << _PAGE_PFN_SHIFT) | prot_val); in pfn_pte() 399 return __pte(pte_val(pte) & ~(_PAGE_WRITE)); in pte_wrprotect() 406 return __pte(pte_val(pte) | _PAGE_WRITE); in pte_mkwrite_novma() 413 return __pte(pte_val(pte) | _PAGE_DIRTY); in pte_mkdirty() 418 return __pte(pte_val(pte) & ~(_PAGE_DIRTY)); in pte_mkclean() 423 return __pte(pte_val(pte) | _PAGE_ACCESSED); in pte_mkyoung() 428 return __pte(pte_val(pte) & ~(_PAGE_ACCESSED)); in pte_mkold() [all …]
|
/arch/parisc/include/asm/ |
D | kfence.h | 35 set_pte(pte, __pte(pte_val(*pte) & ~_PAGE_PRESENT)); in kfence_protect_page() 37 set_pte(pte, __pte(pte_val(*pte) | _PAGE_PRESENT)); in kfence_protect_page()
|
/arch/sh/include/asm/ |
D | page.h | 81 #define __pte(x) \ macro 82 ({ pte_t __pte = {(x), ((unsigned long long)(x)) >> 32}; __pte; }) 88 #define __pte(x) ((pte_t) { (x) } ) macro
|
/arch/x86/include/asm/ |
D | kfence.h | 57 set_pte(pte, __pte(pte_val(*pte) & ~_PAGE_PRESENT)); in kfence_protect_page() 59 set_pte(pte, __pte(pte_val(*pte) | _PAGE_PRESENT)); in kfence_protect_page()
|
/arch/loongarch/include/asm/ |
D | kfence.h | 50 set_pte(pte, __pte(pte_val(*pte) & ~(_PAGE_VALID | _PAGE_PRESENT))); in kfence_protect_page() 52 set_pte(pte, __pte(pte_val(*pte) | (_PAGE_VALID | _PAGE_PRESENT))); in kfence_protect_page()
|
/arch/arm/include/asm/ |
D | pgtable-2level-types.h | 31 #define __pte(x) ((pte_t) { (x) } ) macro 49 #define __pte(x) (x) macro
|
D | pgtable-3level-types.h | 34 #define __pte(x) ((pte_t) { (x) } ) macro 51 #define __pte(x) (x) macro
|
/arch/csky/include/asm/ |
D | pgtable.h | 35 (((unsigned int) addr >= PAGE_OFFSET) ? __pte(_PAGE_GLOBAL) : __pte(0))) 39 #define pfn_pte(pfn, prot) __pte(((unsigned long long)(pfn) << PAGE_SHIFT) \ 46 #define __mk_pte(page_nr, pgprot) __pte(((page_nr) << PAGE_SHIFT) | \ 259 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | in pte_modify()
|
/arch/powerpc/include/asm/ |
D | pgtable-types.h | 20 #define __pte(x) ((pte_t) { (x) }) macro 26 #define __pte(x) ((pte_t)(x)) macro
|