/linux-6.6.21/arch/powerpc/include/asm/nohash/ |
D | pgtable.h | 23 static inline int pte_write(pte_t pte) in pte_write() 29 static inline int pte_read(pte_t pte) { return 1; } in pte_read() 31 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 32 static inline int pte_special(pte_t pte) { return pte_val(pte) & _PAGE_SPECIAL; } in pte_special() 33 static inline int pte_none(pte_t pte) { return (pte_val(pte) & ~_PTE_NONE_MASK) == 0; } in pte_none() 34 static inline bool pte_hashpte(pte_t pte) { return false; } in pte_hashpte() 35 static inline bool pte_ci(pte_t pte) { return pte_val(pte) & _PAGE_NO_CACHE; } in pte_ci() 36 static inline bool pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec() 44 static inline int pte_protnone(pte_t pte) in pte_protnone() 55 static inline int pte_present(pte_t pte) in pte_present() [all …]
|
/linux-6.6.21/arch/mips/include/asm/ |
D | pgtable.h | 111 # define pte_none(pte) (!(((pte).pte_high) & ~_PAGE_GLOBAL)) argument 113 # define pte_none(pte) (!(((pte).pte_low | (pte).pte_high) & ~_PAGE_GLOBAL)) argument 116 #define pte_present(pte) ((pte).pte_low & _PAGE_PRESENT) argument 117 #define pte_no_exec(pte) ((pte).pte_low & _PAGE_NO_EXEC) argument 119 static inline void set_pte(pte_t *ptep, pte_t pte) 162 #define pte_none(pte) (!(pte_val(pte) & ~_PAGE_GLOBAL)) argument 163 #define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT) argument 164 #define pte_no_exec(pte) (pte_val(pte) & _PAGE_NO_EXEC) argument 205 pte_t *ptep, pte_t pte, unsigned int nr) 262 static inline int pte_special(pte_t pte) [all …]
|
/linux-6.6.21/arch/arm/include/asm/ |
D | pgtable.h | 61 #define pte_ERROR(pte) __pte_error(__FILE__, __LINE__, pte) argument 166 #define pte_pfn(pte) ((pte_val(pte) & PHYS_MASK) >> PAGE_SHIFT) argument 169 #define pte_page(pte) pfn_to_page(pte_pfn(pte)) argument 174 #define pte_isset(pte, val) ((u32)(val) == (val) ? pte_val(pte) & (val) \ argument 176 #define pte_isclear(pte, val) (!(pte_val(pte) & (val))) argument 178 #define pte_none(pte) (!pte_val(pte)) argument 179 #define pte_present(pte) (pte_isset((pte), L_PTE_PRESENT)) argument 180 #define pte_valid(pte) (pte_isset((pte), L_PTE_VALID)) argument 181 #define pte_accessible(mm, pte) (mm_tlb_flush_pending(mm) ? pte_present(pte) : pte_valid(pte)) argument 182 #define pte_write(pte) (pte_isclear((pte), L_PTE_RDONLY)) argument [all …]
|
/linux-6.6.21/arch/m68k/include/asm/ |
D | mcf_pgtable.h | 105 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() 118 #define __pte_page(pte) ((void *) (pte_val(pte) & PAGE_MASK)) argument 121 static inline int pte_none(pte_t pte) in pte_none() 126 static inline int pte_present(pte_t pte) in pte_present() 137 #define pte_page(pte) virt_to_page(__pte_page(pte)) argument 158 static inline int pte_read(pte_t pte) in pte_read() 163 static inline int pte_write(pte_t pte) in pte_write() 168 static inline int pte_exec(pte_t pte) in pte_exec() 173 static inline int pte_dirty(pte_t pte) in pte_dirty() 178 static inline int pte_young(pte_t pte) in pte_young() [all …]
|
D | sun3_pgtable.h | 85 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() 93 #define __pte_page(pte) \ argument 101 static inline int pte_none (pte_t pte) { return !pte_val (pte); } in pte_none() 102 static inline int pte_present (pte_t pte) { return pte_val (pte) & SUN3_PAGE_VALID; } in pte_present() 109 #define pte_pfn(pte) (pte_val(pte) & SUN3_PAGE_PGNUM_MASK) argument 113 #define pte_page(pte) virt_to_page(__pte_page(pte)) argument 140 static inline int pte_write(pte_t pte) { return pte_val(pte) & SUN3_PAGE_WRITEABLE; } in pte_write() 141 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & SUN3_PAGE_MODIFIED; } in pte_dirty() 142 static inline int pte_young(pte_t pte) { return pte_val(pte) & SUN3_PAGE_ACCESSED; } in pte_young() 144 static inline pte_t pte_wrprotect(pte_t pte) { pte_val(pte) &= ~SUN3_PAGE_WRITEABLE; return pte; } in pte_wrprotect() [all …]
|
D | motorola_pgtable.h | 90 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() 106 #define __pte_page(pte) ((unsigned long)__va(pte_val(pte) & PAGE_MASK)) argument 111 #define pte_none(pte) (!pte_val(pte)) argument 112 #define pte_present(pte) (pte_val(pte) & (_PAGE_PRESENT | _PAGE_PROTNONE)) argument 116 #define pte_page(pte) virt_to_page(__va(pte_val(pte))) argument 117 #define pte_pfn(pte) (pte_val(pte) >> PAGE_SHIFT) argument 152 static inline int pte_write(pte_t pte) { return !(pte_val(pte) & _PAGE_RONLY); } in pte_write() 153 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 154 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 156 static inline pte_t pte_wrprotect(pte_t pte) { pte_val(pte) |= _PAGE_RONLY; return pte; } in pte_wrprotect() [all …]
|
/linux-6.6.21/arch/hexagon/include/asm/ |
D | pgtable.h | 136 #define pte_mkhuge(pte) __pte((pte_val(pte) & ~0x3) | HVM_HUGEPAGE_SIZE) argument 145 #define pte_present_exec_user(pte) \ argument 228 static inline int pte_none(pte_t pte) in pte_none() 236 static inline int pte_present(pte_t pte) in pte_present() 248 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() 255 static inline pte_t pte_mkyoung(pte_t pte) in pte_mkyoung() 262 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() 269 static inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty() 276 static inline int pte_young(pte_t pte) in pte_young() 282 static inline int pte_dirty(pte_t pte) in pte_dirty() [all …]
|
/linux-6.6.21/arch/microblaze/include/asm/ |
D | pgtable.h | 221 #define pte_none(pte) ((pte_val(pte) & ~_PTE_NONE_MASK) == 0) argument 222 #define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT) argument 245 static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_USER; } in pte_read() 246 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_RW; } in pte_write() 247 static inline int pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec() 248 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 249 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 251 static inline void pte_uncache(pte_t pte) { pte_val(pte) |= _PAGE_NO_CACHE; } in pte_uncache() 252 static inline void pte_cache(pte_t pte) { pte_val(pte) &= ~_PAGE_NO_CACHE; } in pte_cache() 254 static inline pte_t pte_rdprotect(pte_t pte) \ in pte_rdprotect() [all …]
|
/linux-6.6.21/arch/um/include/asm/ |
D | pgtable.h | 111 static inline int pte_none(pte_t pte) in pte_none() 120 static inline int pte_read(pte_t pte) in pte_read() 126 static inline int pte_exec(pte_t pte){ in pte_exec() 131 static inline int pte_write(pte_t pte) in pte_write() 137 static inline int pte_dirty(pte_t pte) in pte_dirty() 142 static inline int pte_young(pte_t pte) in pte_young() 147 static inline int pte_newpage(pte_t pte) in pte_newpage() 152 static inline int pte_newprot(pte_t pte) in pte_newprot() 163 static inline pte_t pte_mknewprot(pte_t pte) in pte_mknewprot() 169 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() [all …]
|
/linux-6.6.21/arch/nios2/include/asm/ |
D | pgtable.h | 84 static inline int pte_write(pte_t pte) \ in pte_write() 86 static inline int pte_dirty(pte_t pte) \ in pte_dirty() 88 static inline int pte_young(pte_t pte) \ in pte_young() 102 static inline int pte_none(pte_t pte) in pte_none() 107 static inline int pte_present(pte_t pte) \ in pte_present() 114 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() 120 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() 126 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() 132 static inline pte_t pte_mkwrite_novma(pte_t pte) in pte_mkwrite_novma() 138 static inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty() [all …]
|
/linux-6.6.21/arch/s390/include/asm/ |
D | hugetlb.h | 65 pte_t pte, int dirty) in huge_ptep_set_access_flags() 78 pte_t pte = huge_ptep_get_and_clear(mm, addr, ptep); in huge_ptep_set_wrprotect() local 87 static inline int huge_pte_none(pte_t pte) in huge_pte_none() 92 static inline int huge_pte_none_mostly(pte_t pte) in huge_pte_none_mostly() 97 static inline int huge_pte_write(pte_t pte) in huge_pte_write() 102 static inline int huge_pte_dirty(pte_t pte) in huge_pte_dirty() 107 static inline pte_t huge_pte_mkwrite(pte_t pte) in huge_pte_mkwrite() 112 static inline pte_t huge_pte_mkdirty(pte_t pte) in huge_pte_mkdirty() 117 static inline pte_t huge_pte_wrprotect(pte_t pte) in huge_pte_wrprotect() 122 static inline pte_t huge_pte_modify(pte_t pte, pgprot_t newprot) in huge_pte_modify() [all …]
|
/linux-6.6.21/arch/openrisc/include/asm/ |
D | pgtable.h | 217 static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_READ; } in pte_read() 218 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write() 219 static inline int pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec() 220 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 221 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 223 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() 229 static inline pte_t pte_rdprotect(pte_t pte) in pte_rdprotect() 235 static inline pte_t pte_exprotect(pte_t pte) in pte_exprotect() 241 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() 247 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() [all …]
|
/linux-6.6.21/arch/powerpc/include/asm/book3s/32/ |
D | pgtable.h | 59 static inline bool pte_user(pte_t pte) in pte_user() 386 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) >> 3 }) argument 389 static inline int pte_swp_exclusive(pte_t pte) in pte_swp_exclusive() 394 static inline pte_t pte_swp_mkexclusive(pte_t pte) in pte_swp_mkexclusive() 399 static inline pte_t pte_swp_clear_exclusive(pte_t pte) in pte_swp_clear_exclusive() 405 static inline int pte_write(pte_t pte) { return !!(pte_val(pte) & _PAGE_RW);} in pte_write() 406 static inline int pte_read(pte_t pte) { return 1; } in pte_read() 407 static inline int pte_dirty(pte_t pte) { return !!(pte_val(pte) & _PAGE_DIRTY); } in pte_dirty() 408 static inline int pte_young(pte_t pte) { return !!(pte_val(pte) & _PAGE_ACCESSED); } in pte_young() 409 static inline int pte_special(pte_t pte) { return !!(pte_val(pte) & _PAGE_SPECIAL); } in pte_special() [all …]
|
/linux-6.6.21/arch/sparc/include/asm/ |
D | pgtable_64.h | 233 pte_t pte = pfn_pte(page_nr, pgprot); in pfn_pmd() local 241 static inline unsigned long pte_pfn(pte_t pte) in pte_pfn() 262 static inline pte_t pte_modify(pte_t pte, pgprot_t prot) in pte_modify() 323 pte_t pte = __pte(pmd_val(pmd)); in pmd_modify() local 361 static inline unsigned long pte_dirty(pte_t pte) in pte_dirty() 379 static inline unsigned long pte_write(pte_t pte) in pte_write() 418 static inline pte_t pte_mkhuge(pte_t pte) in pte_mkhuge() 423 static inline bool is_default_hugetlb_pte(pte_t pte) in is_default_hugetlb_pte() 443 pte_t pte = __pte(pmd_val(pmd)); in pmd_mkhuge() local 452 static inline bool is_hugetlb_pte(pte_t pte) in is_hugetlb_pte() [all …]
|
D | pgtable_32.h | 148 static inline int pte_present(pte_t pte) in pte_present() 153 static inline int pte_none(pte_t pte) in pte_none() 212 static inline int pte_write(pte_t pte) in pte_write() 217 static inline int pte_dirty(pte_t pte) in pte_dirty() 222 static inline int pte_young(pte_t pte) in pte_young() 227 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() 232 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() 237 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() 242 static inline pte_t pte_mkwrite_novma(pte_t pte) in pte_mkwrite_novma() 247 static inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty() [all …]
|
/linux-6.6.21/include/asm-generic/ |
D | hugetlb.h | 13 static inline unsigned long huge_pte_write(pte_t pte) in huge_pte_write() 18 static inline unsigned long huge_pte_dirty(pte_t pte) in huge_pte_dirty() 23 static inline pte_t huge_pte_mkwrite(pte_t pte) in huge_pte_mkwrite() 29 static inline pte_t huge_pte_wrprotect(pte_t pte) in huge_pte_wrprotect() 35 static inline pte_t huge_pte_mkdirty(pte_t pte) in huge_pte_mkdirty() 40 static inline pte_t huge_pte_modify(pte_t pte, pgprot_t newprot) in huge_pte_modify() 45 static inline pte_t huge_pte_mkuffd_wp(pte_t pte) in huge_pte_mkuffd_wp() 50 static inline pte_t huge_pte_clear_uffd_wp(pte_t pte) in huge_pte_clear_uffd_wp() 55 static inline int huge_pte_uffd_wp(pte_t pte) in huge_pte_uffd_wp() 79 pte_t *ptep, pte_t pte, unsigned long sz) in set_huge_pte_at() [all …]
|
D | pgtable_uffd.h | 5 static __always_inline int pte_uffd_wp(pte_t pte) in pte_uffd_wp() 15 static __always_inline pte_t pte_mkuffd_wp(pte_t pte) in pte_mkuffd_wp() 25 static __always_inline pte_t pte_clear_uffd_wp(pte_t pte) in pte_clear_uffd_wp() 35 static __always_inline pte_t pte_swp_mkuffd_wp(pte_t pte) in pte_swp_mkuffd_wp() 40 static __always_inline int pte_swp_uffd_wp(pte_t pte) in pte_swp_uffd_wp() 45 static __always_inline pte_t pte_swp_clear_uffd_wp(pte_t pte) in pte_swp_clear_uffd_wp()
|
/linux-6.6.21/arch/csky/include/asm/ |
D | pgtable.h | 36 #define pte_none(pte) (!(pte_val(pte) & ~_PAGE_GLOBAL)) argument 37 #define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT) argument 42 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) argument 85 static inline void set_pte(pte_t *p, pte_t pte) in set_pte() 141 static inline int pte_read(pte_t pte) in pte_read() 146 static inline int pte_write(pte_t pte) in pte_write() 151 static inline int pte_dirty(pte_t pte) in pte_dirty() 156 static inline int pte_young(pte_t pte) in pte_young() 161 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() 167 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() [all …]
|
/linux-6.6.21/arch/xtensa/include/asm/ |
D | pgtable.h | 235 # define pte_none(pte) (pte_val(pte) == (_PAGE_CA_INVALID | _PAGE_USER)) argument 237 # define pte_present(pte) ((pte_val(pte) & _PAGE_CA_MASK) != _PAGE_CA_INVALID) argument 239 # define pte_present(pte) \ argument 251 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITABLE; } in pte_write() 252 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 253 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 255 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() 257 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() 259 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() 261 static inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty() [all …]
|
/linux-6.6.21/arch/arm64/include/asm/ |
D | pgtable.h | 77 static inline phys_addr_t __pte_to_phys(pte_t pte) in __pte_to_phys() 87 #define __pte_to_phys(pte) (pte_val(pte) & PTE_ADDR_MASK) argument 91 #define pte_pfn(pte) (__pte_to_phys(pte) >> PAGE_SHIFT) argument 95 #define pte_none(pte) (!pte_val(pte)) argument 97 #define pte_page(pte) (pfn_to_page(pte_pfn(pte))) argument 102 #define pte_present(pte) (!!(pte_val(pte) & (PTE_VALID | PTE_PROT_NONE))) argument 103 #define pte_young(pte) (!!(pte_val(pte) & PTE_AF)) argument 104 #define pte_special(pte) (!!(pte_val(pte) & PTE_SPECIAL)) argument 105 #define pte_write(pte) (!!(pte_val(pte) & PTE_WRITE)) argument 106 #define pte_rdonly(pte) (!!(pte_val(pte) & PTE_RDONLY)) argument [all …]
|
/linux-6.6.21/arch/alpha/include/asm/ |
D | pgtable.h | 192 #define pte_pfn(pte) (pte_val(pte) >> PFN_PTE_SHIFT) argument 194 #define pte_page(pte) pfn_to_page(pte_pfn(pte)) argument 204 { pte_t pte; pte_val(pte) = (PHYS_TWIDDLE(physpfn) << 32) | pgprot_val(pgprot); return pte; } in pfn_pte() local 206 extern inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() 231 extern inline int pte_none(pte_t pte) { return !pte_val(pte); } in pte_none() 232 extern inline int pte_present(pte_t pte) { return pte_val(pte) & _PAGE_VALID; } in pte_present() 252 extern inline int pte_write(pte_t pte) { return !(pte_val(pte) & _PAGE_FOW); } in pte_write() 253 extern inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 254 extern inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 256 extern inline pte_t pte_wrprotect(pte_t pte) { pte_val(pte) |= _PAGE_FOW; return pte; } in pte_wrprotect() [all …]
|
/linux-6.6.21/arch/x86/include/asm/ |
D | pgtable.h | 69 #define set_pte(ptep, pte) native_set_pte(ptep, pte) argument 71 #define set_pte_atomic(ptep, pte) \ argument 128 static inline bool pte_dirty(pte_t pte) in pte_dirty() 133 static inline bool pte_shstk(pte_t pte) in pte_shstk() 139 static inline int pte_young(pte_t pte) in pte_young() 172 static inline int pte_write(pte_t pte) in pte_write() 197 static inline int pte_huge(pte_t pte) in pte_huge() 202 static inline int pte_global(pte_t pte) in pte_global() 207 static inline int pte_exec(pte_t pte) in pte_exec() 212 static inline int pte_special(pte_t pte) in pte_special() [all …]
|
/linux-6.6.21/arch/powerpc/kvm/ |
D | book3s_mmu_hpte.c | 56 void kvmppc_mmu_hpte_cache_map(struct kvm_vcpu *vcpu, struct hpte_cache *pte) in kvmppc_mmu_hpte_cache_map() 97 struct hpte_cache *pte = container_of(head, struct hpte_cache, rcu_head); in free_pte_rcu() local 101 static void invalidate_pte(struct kvm_vcpu *vcpu, struct hpte_cache *pte) in invalidate_pte() 135 struct hpte_cache *pte; in kvmppc_mmu_pte_flush_all() local 154 struct hpte_cache *pte; in kvmppc_mmu_pte_flush_page() local 173 struct hpte_cache *pte; in kvmppc_mmu_pte_flush_long() local 216 struct hpte_cache *pte; in kvmppc_mmu_pte_vflush_short() local 237 struct hpte_cache *pte; in kvmppc_mmu_pte_vflush_64k() local 259 struct hpte_cache *pte; in kvmppc_mmu_pte_vflush_long() local 301 struct hpte_cache *pte; in kvmppc_mmu_pte_pflush() local [all …]
|
/linux-6.6.21/arch/parisc/include/asm/ |
D | pgtable.h | 315 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 316 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 317 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write() 318 static inline int pte_special(pte_t pte) { return pte_val(pte) & _PAGE_SPECIAL; } in pte_special() 320 static inline pte_t pte_mkclean(pte_t pte) { pte_val(pte) &= ~_PAGE_DIRTY; return pte; } in pte_mkclean() 321 static inline pte_t pte_mkold(pte_t pte) { pte_val(pte) &= ~_PAGE_ACCESSED; return pte; } in pte_mkold() 322 static inline pte_t pte_wrprotect(pte_t pte) { pte_val(pte) &= ~_PAGE_WRITE; return pte; } in pte_wrprotect() 323 static inline pte_t pte_mkdirty(pte_t pte) { pte_val(pte) |= _PAGE_DIRTY; return pte; } in pte_mkdirty() 324 static inline pte_t pte_mkyoung(pte_t pte) { pte_val(pte) |= _PAGE_ACCESSED; return pte; } in pte_mkyoung() 325 static inline pte_t pte_mkwrite_novma(pte_t pte) { pte_val(pte) |= _PAGE_WRITE; return pte; } in pte_mkwrite_novma() [all …]
|
/linux-6.6.21/arch/loongarch/include/asm/ |
D | pgtable.h | 282 { pte_t pte; pte_val(pte) = ((type & 0x7f) << 16) | (offset << 24); return pte; } in mk_swap_pte() local 287 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) argument 292 static inline int pte_swp_exclusive(pte_t pte) in pte_swp_exclusive() 297 static inline pte_t pte_swp_mkexclusive(pte_t pte) in pte_swp_mkexclusive() 303 static inline pte_t pte_swp_clear_exclusive(pte_t pte) in pte_swp_clear_exclusive() 311 #define pte_none(pte) (!(pte_val(pte) & ~_PAGE_GLOBAL)) argument 312 #define pte_present(pte) (pte_val(pte) & (_PAGE_PRESENT | _PAGE_PROTNONE)) argument 313 #define pte_no_exec(pte) (pte_val(pte) & _PAGE_NO_EXEC) argument 373 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write() 374 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() [all …]
|