/linux/arch/powerpc/mm/book3s64/ |
A D | hash_64k.c | 69 } while (!pte_xchg(ptep, __pte(old_pte), __pte(new_pte))); in __hash_page_4K() 89 rpte = __real_pte(__pte(old_pte), ptep, PTRS_PER_PTE); in __hash_page_4K() 129 *ptep = __pte(new_pte & ~H_PAGE_BUSY); in __hash_page_4K() 150 pa = pte_pfn(__pte(old_pte)) << HW_PAGE_SHIFT; in __hash_page_4K() 152 pa = pte_pfn(__pte(old_pte)) << PAGE_SHIFT; in __hash_page_4K() 210 *ptep = __pte(old_pte); in __hash_page_4K() 219 *ptep = __pte(new_pte & ~H_PAGE_BUSY); in __hash_page_4K() 261 } while (!pte_xchg(ptep, __pte(old_pte), __pte(new_pte))); in __hash_page_64K() 286 pa = pte_pfn(__pte(old_pte)) << PAGE_SHIFT; in __hash_page_64K() 322 *ptep = __pte(old_pte); in __hash_page_64K() [all …]
|
A D | hash_hugetlbpage.c | 63 } while(!pte_xchg(ptep, __pte(old_pte), __pte(new_pte))); in __hash_page_huge() 74 rpte = __real_pte(__pte(old_pte), ptep, offset); in __hash_page_huge() 81 rflags = hash_page_do_lazy_icache(rflags, __pte(old_pte), trap); in __hash_page_huge() 97 pa = pte_pfn(__pte(old_pte)) << PAGE_SHIFT; in __hash_page_huge() 110 *ptep = __pte(old_pte); in __hash_page_huge() 122 *ptep = __pte(new_pte & ~H_PAGE_BUSY); in __hash_page_huge() 138 return __pte(pte_val); in huge_ptep_modify_prot_start()
|
A D | hash_4k.c | 51 } while (!pte_xchg(ptep, __pte(old_pte), __pte(new_pte))); in __hash_page_4K() 58 rpte = __real_pte(__pte(old_pte), ptep, PTRS_PER_PTE); in __hash_page_4K() 62 rflags = hash_page_do_lazy_icache(rflags, __pte(old_pte), trap); in __hash_page_4K() 79 pa = pte_pfn(__pte(old_pte)) << PAGE_SHIFT; in __hash_page_4K() 114 *ptep = __pte(old_pte); in __hash_page_4K() 122 *ptep = __pte(new_pte & ~H_PAGE_BUSY); in __hash_page_4K()
|
/linux/drivers/iommu/amd/ |
A D | io_pgtable.c | 249 u64 __pte, __npte; in alloc_pte() local 252 __pte = *pte; in alloc_pte() 253 pte_level = PM_PTE_LEVEL(__pte); in alloc_pte() 259 if (IOMMU_PTE_PRESENT(__pte) && in alloc_pte() 287 if (cmpxchg64(pte, __pte, __npte) != __pte) in alloc_pte() 301 pte = IOMMU_PTE_PAGE(__pte); in alloc_pte() 397 u64 __pte, *pte; in iommu_v1_map_page() local 427 __pte |= IOMMU_PTE_IR; in iommu_v1_map_page() 429 __pte |= IOMMU_PTE_IW; in iommu_v1_map_page() 432 pte[i] = __pte; in iommu_v1_map_page() [all …]
|
/linux/arch/powerpc/include/asm/book3s/32/ |
A D | pgtable.h | 458 return __pte(pte_val(pte) & ~_PAGE_RW); in pte_wrprotect() 463 return __pte(pte_val(pte) & ~_PAGE_EXEC); in pte_exprotect() 468 return __pte(pte_val(pte) & ~_PAGE_DIRTY); in pte_mkclean() 473 return __pte(pte_val(pte) & ~_PAGE_ACCESSED); in pte_mkold() 478 return __pte(pte_val(pte) | _PAGE_EXEC); in pte_mkexec() 488 return __pte(pte_val(pte) | _PAGE_RW); in pte_mkwrite() 493 return __pte(pte_val(pte) | _PAGE_DIRTY); in pte_mkdirty() 498 return __pte(pte_val(pte) | _PAGE_ACCESSED); in pte_mkyoung() 503 return __pte(pte_val(pte) | _PAGE_SPECIAL); in pte_mkspecial() 513 return __pte(pte_val(pte) & ~_PAGE_USER); in pte_mkprivileged() [all …]
|
/linux/arch/sparc/include/asm/ |
A D | pgtable_64.h | 338 pte_t pte = __pte(pmd_val(pmd)); in pmd_modify() 422 pte_t pte = __pte(pmd_val(pmd)); in pmd_mkhuge() 458 return __pte(val); in pte_mkdirty() 482 return __pte(val); in pte_mkclean() 500 return __pte(val | mask); in pte_mkwrite() 524 return __pte(val); in pte_wrprotect() 685 pte_t pte = __pte(pmd_val(pmd)); in pmd_large() 692 pte_t pte = __pte(pmd_val(pmd)); in pmd_pfn() 700 pte_t pte = __pte(pmd_val(pmd)); in pmd_write() 710 pte_t pte = __pte(pmd_val(pmd)); in pmd_dirty() [all …]
|
A D | pgtable_32.h | 176 set_pte(ptep, __pte(0)); in __pte_clear() 201 set_pte((pte_t *)&pmd_val(*pmdp), __pte(0)); in pmd_clear() 221 set_pte((pte_t *)pudp, __pte(0)); in pud_clear() 245 return __pte(pte_val(pte) & ~SRMMU_WRITE); in pte_wrprotect() 250 return __pte(pte_val(pte) & ~SRMMU_DIRTY); in pte_mkclean() 255 return __pte(pte_val(pte) & ~SRMMU_REF); in pte_mkold() 260 return __pte(pte_val(pte) | SRMMU_WRITE); in pte_mkwrite() 265 return __pte(pte_val(pte) | SRMMU_DIRTY); in pte_mkdirty() 270 return __pte(pte_val(pte) | SRMMU_REF); in pte_mkyoung() 301 return __pte(((page) >> 4) | pgprot_val(pgprot)); in mk_pte_phys() [all …]
|
/linux/arch/ia64/include/asm/ |
A D | pgtable.h | 245 ({ pte_t __pte; pte_val(__pte) = ((pfn) << PAGE_SHIFT) | pgprot_val(pgprot); __pte; }) 254 ({ pte_t __pte; pte_val(__pte) = physpage + pgprot_val(pgprot); __pte; }) 300 #define pte_wrprotect(pte) (__pte(pte_val(pte) & ~_PAGE_AR_RW)) 301 #define pte_mkwrite(pte) (__pte(pte_val(pte) | _PAGE_AR_RW)) 302 #define pte_mkold(pte) (__pte(pte_val(pte) & ~_PAGE_A)) 303 #define pte_mkyoung(pte) (__pte(pte_val(pte) | _PAGE_A)) 304 #define pte_mkclean(pte) (__pte(pte_val(pte) & ~_PAGE_D)) 305 #define pte_mkdirty(pte) (__pte(pte_val(pte) | _PAGE_D)) 306 #define pte_mkhuge(pte) (__pte(pte_val(pte))) 399 return __pte(xchg((long *) ptep, 0)); in ptep_get_and_clear() [all …]
|
/linux/arch/powerpc/include/asm/nohash/64/ |
A D | pgtable.h | 103 return __pte(pte_val(pte) | _PAGE_RW); in pte_mkwrite() 108 return __pte(pte_val(pte) | _PAGE_DIRTY); in pte_mkdirty() 113 return __pte(pte_val(pte) | _PAGE_ACCESSED); in pte_mkyoung() 118 return __pte(pte_val(pte) & ~_PAGE_RW); in pte_wrprotect() 136 return __pte(pmd_val(pmd)); in pmd_pte() 170 return __pte(pud_val(pud)); in pud_pte() 193 *ptep = __pte((old & ~clr) | set); in pte_update() 259 return __pte(old); in ptep_get_and_clear() 279 *ptep = __pte(old | bits); in __ptep_set_access_flags() 308 #define __swp_entry_to_pte(x) __pte((x).val)
|
/linux/arch/powerpc/include/asm/nohash/ |
A D | pgtable.h | 122 return __pte(((pte_basic_t)(pfn) << PTE_RPN_SHIFT) | in pfn_pte() 130 return __pte(pte_val(pte) & ~_PAGE_EXEC); in pte_exprotect() 135 return __pte(pte_val(pte) & ~_PAGE_DIRTY); in pte_mkclean() 140 return __pte(pte_val(pte) & ~_PAGE_ACCESSED); in pte_mkold() 145 return __pte(pte_val(pte) | _PAGE_SPECIAL); in pte_mkspecial() 151 return __pte(pte_val(pte)); in pte_mkhuge() 158 return __pte(pte_val(pte) & ~_PAGE_USER); in pte_mkprivileged() 165 return __pte(pte_val(pte) | _PAGE_USER); in pte_mkuser() 171 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot)); in pte_modify()
|
A D | pte-book3e.h | 105 return __pte((pte_val(pte) & ~_PAGE_USER) | _PAGE_PRIVILEGED); in pte_mkprivileged() 112 return __pte((pte_val(pte) & ~_PAGE_PRIVILEGED) | _PAGE_USER); in pte_mkuser() 120 return __pte((pte_val(pte) & ~_PAGE_BAP_SX) | _PAGE_BAP_UX); in pte_mkexec() 122 return __pte((pte_val(pte) & ~_PAGE_BAP_UX) | _PAGE_BAP_SX); in pte_mkexec()
|
/linux/arch/riscv/include/asm/ |
A D | pgtable.h | 245 return __pte(pmd_val(pmd)); in pmd_pte() 250 return __pte(pud_val(pud)); in pud_pte() 313 return __pte(pte_val(pte) & ~(_PAGE_WRITE)); in pte_wrprotect() 320 return __pte(pte_val(pte) | _PAGE_WRITE); in pte_mkwrite() 327 return __pte(pte_val(pte) | _PAGE_DIRTY); in pte_mkdirty() 332 return __pte(pte_val(pte) & ~(_PAGE_DIRTY)); in pte_mkclean() 337 return __pte(pte_val(pte) | _PAGE_ACCESSED); in pte_mkyoung() 342 return __pte(pte_val(pte) & ~(_PAGE_ACCESSED)); in pte_mkold() 347 return __pte(pte_val(pte) | _PAGE_SPECIAL); in pte_mkspecial() 432 set_pte_at(mm, addr, ptep, __pte(0)); in pte_clear() [all …]
|
A D | kfence.h | 54 set_pte(pte, __pte(pte_val(*pte) & ~_PAGE_PRESENT)); in kfence_protect_page() 56 set_pte(pte, __pte(pte_val(*pte) | _PAGE_PRESENT)); in kfence_protect_page()
|
/linux/arch/xtensa/mm/ |
A D | mmu.c | 108 write_dtlb_entry(__pte(xtensa_kio_paddr + CA_WRITEBACK), in init_kio() 110 write_itlb_entry(__pte(xtensa_kio_paddr + CA_WRITEBACK), in init_kio() 112 write_dtlb_entry(__pte(xtensa_kio_paddr + CA_BYPASS), in init_kio() 114 write_itlb_entry(__pte(xtensa_kio_paddr + CA_BYPASS), in init_kio()
|
/linux/arch/powerpc/include/asm/nohash/32/ |
A D | pgtable.h | 175 return __pte(pte_val(pte) | _PAGE_RW); in pte_mkwrite() 181 return __pte(pte_val(pte) | _PAGE_DIRTY); in pte_mkdirty() 186 return __pte(pte_val(pte) | _PAGE_ACCESSED); in pte_mkyoung() 192 return __pte(pte_val(pte) & ~_PAGE_RW); in pte_wrprotect() 199 return __pte(pte_val(pte) | _PAGE_EXEC); in pte_mkexec() 282 *p = __pte(new); in pte_update() 307 return __pte(pte_update(mm, addr, ptep, ~0, 0, 0)); in ptep_get_and_clear()
|
A D | pte-8xx.h | 92 return __pte(pte_val(pte) | _PAGE_RO); in pte_wrprotect() 106 return __pte(pte_val(pte) & ~_PAGE_RO); in pte_mkwrite() 120 return __pte(pte_val(pte) | _PAGE_SH); in pte_mkprivileged() 127 return __pte(pte_val(pte) & ~_PAGE_SH); in pte_mkuser() 134 return __pte(pte_val(pte) | _PAGE_SPS | _PAGE_HUGE); in pte_mkhuge()
|
A D | hugetlb-8xx.h | 62 unsigned long clr = ~pte_val(pte_wrprotect(__pte(~0))); in huge_ptep_set_wrprotect() 63 unsigned long set = pte_val(pte_wrprotect(__pte(0))); in huge_ptep_set_wrprotect() 74 return __pte(pte_val(entry) & ~_PAGE_HUGE); in arch_make_huge_pte()
|
/linux/arch/mips/include/asm/ |
A 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
|
/linux/arch/sh/include/asm/ |
A 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
|
/linux/arch/csky/include/asm/ |
A 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) | \ 261 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | in pte_modify()
|
/linux/arch/parisc/include/asm/ |
A 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()
|
A D | pgtable.h | 312 #define pte_clear(mm, addr, xp) set_pte_at(mm, addr, xp, __pte(0)) 364 #define pte_mkhuge(pte) (__pte(pte_val(pte) | \ 378 pte_t __pte; \ 380 pte_val(__pte) = ((((addr)>>PAGE_SHIFT)<<PFN_PTE_SHIFT) + pgprot_val(pgprot)); \ 382 __pte; \ 453 set_pte_at(mm, addr, ptep, __pte(0)); in ptep_get_and_clear()
|
/linux/arch/x86/include/asm/ |
A 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()
|
/linux/arch/arm/include/asm/ |
A D | pgtable-2level-types.h | 31 #define __pte(x) ((pte_t) { (x) } ) macro 49 #define __pte(x) (x) macro
|
A D | pgtable-3level-types.h | 34 #define __pte(x) ((pte_t) { (x) } ) macro 51 #define __pte(x) (x) macro
|