/kernel/linux/linux-5.10/arch/powerpc/mm/book3s64/ |
D | hash_64k.c | 69 } while (!pte_xchg(ptep, __pte(old_pte), __pte(new_pte))); in __hash_page_4K() 84 rflags = hash_page_do_lazy_icache(rflags, __pte(old_pte), trap); 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() 264 rpte = __real_pte(__pte(old_pte), ptep, PTRS_PER_PTE); in __hash_page_64K() [all …]
|
D | hash_hugetlbpage.c | 67 } while(!pte_xchg(ptep, __pte(old_pte), __pte(new_pte))); in __hash_page_huge() 78 rpte = __real_pte(__pte(old_pte), ptep, offset); in __hash_page_huge() 85 rflags = hash_page_do_lazy_icache(rflags, __pte(old_pte), trap); in __hash_page_huge() 101 pa = pte_pfn(__pte(old_pte)) << PAGE_SHIFT; in __hash_page_huge() 114 *ptep = __pte(old_pte); in __hash_page_huge() 126 *ptep = __pte(new_pte & ~H_PAGE_BUSY); in __hash_page_huge() 142 return __pte(pte_val); in huge_ptep_modify_prot_start()
|
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()
|
/kernel/linux/linux-5.10/arch/sparc/include/asm/ |
D | pgtable_64.h | 244 return __pte(paddr | pgprot_val(prot)); in pfn_pte() 335 return __pte((pte_val(pte) & mask) | (pgprot_val(prot) & ~mask)); in pte_modify() 341 pte_t pte = __pte(pmd_val(pmd)); in pmd_modify() 403 return __pte(pte_val(pte) | __pte_default_huge_mask()); in pte_mkhuge() 426 pte_t pte = __pte(pmd_val(pmd)); in pmd_mkhuge() 462 return __pte(val); in pte_mkdirty() 486 return __pte(val); in pte_mkclean() 504 return __pte(val | mask); in pte_mkwrite() 528 return __pte(val); in pte_wrprotect() 548 return __pte(pte_val(pte) & ~mask); in pte_mkold() [all …]
|
D | pgtable_32.h | 177 set_pte(ptep, __pte(0)); in __pte_clear() 202 set_pte((pte_t *)&pmd_val(*pmdp), __pte(0)); in pmd_clear() 222 set_pte((pte_t *)pudp, __pte(0)); in pud_clear() 246 return __pte(pte_val(pte) & ~SRMMU_WRITE); in pte_wrprotect() 251 return __pte(pte_val(pte) & ~SRMMU_DIRTY); in pte_mkclean() 256 return __pte(pte_val(pte) & ~SRMMU_REF); in pte_mkold() 261 return __pte(pte_val(pte) | SRMMU_WRITE); in pte_mkwrite() 266 return __pte(pte_val(pte) | SRMMU_DIRTY); in pte_mkdirty() 271 return __pte(pte_val(pte) | SRMMU_REF); in pte_mkyoung() 297 return __pte((page_to_pfn(page) << (PAGE_SHIFT-4)) | pgprot_val(pgprot)); in mk_pte() [all …]
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/book3s/32/ |
D | pgtable.h | 310 return __pte(pte_update(mm, addr, ptep, ~_PAGE_HASHPTE, 0, 0)); in ptep_get_and_clear() 408 return __pte(((pte_basic_t)(pfn) << PTE_RPN_SHIFT) | in pfn_pte() 420 return __pte(pte_val(pte) & ~_PAGE_RW); in pte_wrprotect() 425 return __pte(pte_val(pte) & ~_PAGE_EXEC); in pte_exprotect() 430 return __pte(pte_val(pte) & ~_PAGE_DIRTY); in pte_mkclean() 435 return __pte(pte_val(pte) & ~_PAGE_ACCESSED); in pte_mkold() 440 return __pte(pte_val(pte) | _PAGE_EXEC); in pte_mkexec() 450 return __pte(pte_val(pte) | _PAGE_RW); in pte_mkwrite() 455 return __pte(pte_val(pte) | _PAGE_DIRTY); in pte_mkdirty() 460 return __pte(pte_val(pte) | _PAGE_ACCESSED); in pte_mkyoung() [all …]
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/nohash/64/ |
D | pgtable.h | 105 return __pte(pte_val(pte) | _PAGE_RW); in pte_mkwrite() 110 return __pte(pte_val(pte) | _PAGE_DIRTY); in pte_mkdirty() 115 return __pte(pte_val(pte) | _PAGE_ACCESSED); in pte_mkyoung() 120 return __pte(pte_val(pte) & ~_PAGE_RW); in pte_wrprotect() 125 return __pte(pte_val(pte) | _PAGE_EXEC); in pte_mkexec() 143 return __pte(pmd_val(pmd)); in pmd_pte() 173 return __pte(pud_val(pud)); in pud_pte() 196 *ptep = __pte((old & ~clr) | set); in pte_update() 262 return __pte(old); in ptep_get_and_clear() 282 *ptep = __pte(old | bits); in __ptep_set_access_flags() [all …]
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/nohash/32/ |
D | pgtable.h | 177 return __pte(pte_val(pte) | _PAGE_RW); in pte_mkwrite() 183 return __pte(pte_val(pte) | _PAGE_DIRTY); in pte_mkdirty() 188 return __pte(pte_val(pte) | _PAGE_ACCESSED); in pte_mkyoung() 194 return __pte(pte_val(pte) & ~_PAGE_RW); in pte_wrprotect() 200 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() 314 unsigned long clr = ~pte_val(pte_wrprotect(__pte(~0))); in ptep_set_wrprotect() 315 unsigned long set = pte_val(pte_wrprotect(__pte(0))); in ptep_set_wrprotect() 325 pte_t pte_set = pte_mkyoung(pte_mkdirty(pte_mkwrite(pte_mkexec(__pte(0))))); in __ptep_set_access_flags() [all …]
|
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()
|
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() 75 return __pte(pte_val(entry) & ~_PAGE_HUGE); in arch_make_huge_pte()
|
/kernel/linux/linux-5.10/arch/ia64/include/asm/ |
D | pgtable.h | 251 ({ pte_t __pte; pte_val(__pte) = ((pfn) << PAGE_SHIFT) | pgprot_val(pgprot); __pte; }) 260 ({ pte_t __pte; pte_val(__pte) = physpage + pgprot_val(pgprot); __pte; }) 263 (__pte((pte_val(_pte) & ~_PAGE_CHG_MASK) | (pgprot_val(newprot) & _PAGE_CHG_MASK))) 306 #define pte_wrprotect(pte) (__pte(pte_val(pte) & ~_PAGE_AR_RW)) 307 #define pte_mkwrite(pte) (__pte(pte_val(pte) | _PAGE_AR_RW)) 308 #define pte_mkold(pte) (__pte(pte_val(pte) & ~_PAGE_A)) 309 #define pte_mkyoung(pte) (__pte(pte_val(pte) | _PAGE_A)) 310 #define pte_mkclean(pte) (__pte(pte_val(pte) & ~_PAGE_D)) 311 #define pte_mkdirty(pte) (__pte(pte_val(pte) | _PAGE_D)) 312 #define pte_mkhuge(pte) (__pte(pte_val(pte))) [all …]
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/nohash/ |
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()
|
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()
|
/kernel/linux/linux-5.10/arch/riscv/include/asm/ |
D | pgtable.h | 222 return __pte((pfn << _PAGE_PFN_SHIFT) | pgprot_val(prot)); in pfn_pte() 272 return __pte(pte_val(pte) & ~(_PAGE_WRITE)); in pte_wrprotect() 279 return __pte(pte_val(pte) | _PAGE_WRITE); in pte_mkwrite() 286 return __pte(pte_val(pte) | _PAGE_DIRTY); in pte_mkdirty() 291 return __pte(pte_val(pte) & ~(_PAGE_DIRTY)); in pte_mkclean() 296 return __pte(pte_val(pte) | _PAGE_ACCESSED); in pte_mkyoung() 301 return __pte(pte_val(pte) & ~(_PAGE_ACCESSED)); in pte_mkold() 306 return __pte(pte_val(pte) | _PAGE_SPECIAL); in pte_mkspecial() 317 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot)); in pte_modify() 368 set_pte_at(mm, addr, ptep, __pte(0)); in pte_clear() [all …]
|
/kernel/linux/linux-5.10/arch/xtensa/mm/ |
D | mmu.c | 107 write_dtlb_entry(__pte(xtensa_kio_paddr + CA_WRITEBACK), in init_kio() 109 write_itlb_entry(__pte(xtensa_kio_paddr + CA_WRITEBACK), in init_kio() 111 write_dtlb_entry(__pte(xtensa_kio_paddr + CA_BYPASS), in init_kio() 113 write_itlb_entry(__pte(xtensa_kio_paddr + CA_BYPASS), in init_kio()
|
/kernel/linux/linux-5.10/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
|
/kernel/linux/linux-5.10/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
|
/kernel/linux/linux-5.10/arch/csky/include/asm/ |
D | pgtable.h | 37 (((unsigned int) addr & PAGE_OFFSET) ? __pte(_PAGE_GLOBAL) : __pte(0))) 41 #define pfn_pte(pfn, prot) __pte(((unsigned long long)(pfn) << PAGE_SHIFT) \ 58 #define __mk_pte(page_nr, pgprot) __pte(((page_nr) << PAGE_SHIFT) | \ 262 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | in pte_modify()
|
/kernel/linux/linux-5.10/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
|
/kernel/linux/linux-5.10/arch/parisc/include/asm/ |
D | pgtable.h | 314 #define pte_clear(mm, addr, xp) set_pte_at(mm, addr, xp, __pte(0)) 366 #define pte_mkhuge(pte) (__pte(pte_val(pte) | \ 380 pte_t __pte; \ 382 pte_val(__pte) = ((((addr)>>PAGE_SHIFT)<<PFN_PTE_SHIFT) + pgprot_val(pgprot)); \ 384 __pte; \ 455 set_pte_at(mm, addr, ptep, __pte(0)); in ptep_get_and_clear()
|
/kernel/linux/linux-5.10/arch/riscv/kernel/ |
D | efi.c | 69 pte = __pte(val); in set_permissions() 73 pte = __pte(val); in set_permissions()
|
/kernel/linux/linux-5.10/arch/alpha/include/asm/ |
D | page.h | 41 #define __pte(x) ((pte_t) { (x) } ) macro 60 #define __pte(x) (x) macro
|
/kernel/linux/linux-5.10/arch/m68k/include/asm/ |
D | sun3_pgtable.h | 130 ({ pte_t __pte; pte_val(__pte) = pfn | pgprot_val(pgprot); __pte; })
|
/kernel/linux/linux-5.10/arch/arc/include/asm/ |
D | page.h | 61 #define __pte(x) ((pte_t) { (x) }) macro 80 #define __pte(x) (x) macro
|