/linux/arch/powerpc/include/asm/nohash/ |
A D | pgtable.h | 43 static inline int pte_write(pte_t pte) in pte_write() 62 static inline int pte_protnone(pte_t pte) in pte_protnone() 73 static inline int pte_present(pte_t pte) in pte_present() 78 static inline bool pte_hw_valid(pte_t pte) in pte_hw_valid() 89 static inline bool pte_user(pte_t pte) in pte_user() 128 static inline pte_t pte_exprotect(pte_t pte) in pte_exprotect() 133 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() 138 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() 149 static inline pte_t pte_mkhuge(pte_t pte) in pte_mkhuge() 163 static inline pte_t pte_mkuser(pte_t pte) in pte_mkuser() [all …]
|
/linux/arch/mips/include/asm/ |
A D | pgtable.h | 269 static inline int pte_special(pte_t pte) 280 static inline int pte_special(pte_t pte) 311 static inline pte_t pte_mkclean(pte_t pte) 320 static inline pte_t pte_mkold(pte_t pte) 329 static inline pte_t pte_mkwrite(pte_t pte) 340 static inline pte_t pte_mkdirty(pte_t pte) 351 static inline pte_t pte_mkyoung(pte_t pte) 378 static inline pte_t pte_mkold(pte_t pte) 413 static inline pte_t pte_mkhuge(pte_t pte) 560 pte_t pte = *ptep; local [all …]
|
/linux/arch/m68k/include/asm/ |
A D | mcf_pgtable.h | 177 static inline int pte_none(pte_t pte) in pte_none() 182 static inline int pte_present(pte_t pte) in pte_present() 215 static inline int pte_read(pte_t pte) in pte_read() 220 static inline int pte_write(pte_t pte) in pte_write() 225 static inline int pte_exec(pte_t pte) in pte_exec() 230 static inline int pte_dirty(pte_t pte) in pte_dirty() 235 static inline int pte_young(pte_t pte) in pte_young() 258 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() 264 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() 276 static inline pte_t pte_mkread(pte_t pte) in pte_mkread() [all …]
|
A D | sun3_pgtable.h | 105 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() 113 #define __pte_page(pte) \ argument 121 static inline int pte_none (pte_t pte) { return !pte_val (pte); } in pte_none() 122 static inline int pte_present (pte_t pte) { return pte_val (pte) & SUN3_PAGE_VALID; } in pte_present() 128 #define pte_pfn(pte) (pte_val(pte) & SUN3_PAGE_PGNUM_MASK) argument 132 #define pte_page(pte) virt_to_page(__pte_page(pte)) argument 158 static inline int pte_write(pte_t pte) { return pte_val(pte) & SUN3_PAGE_WRITEABLE; } in pte_write() 159 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & SUN3_PAGE_MODIFIED; } in pte_dirty() 160 static inline int pte_young(pte_t pte) { return pte_val(pte) & SUN3_PAGE_ACCESSED; } in pte_young() 172 static inline pte_t pte_mkcache(pte_t pte) { return pte; } in pte_mkcache() [all …]
|
A D | motorola_pgtable.h | 116 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() 132 #define __pte_page(pte) ((unsigned long)__va(pte_val(pte) & PAGE_MASK)) argument 137 #define pte_none(pte) (!pte_val(pte)) argument 138 #define pte_present(pte) (pte_val(pte) & (_PAGE_PRESENT | _PAGE_PROTNONE)) argument 141 #define pte_page(pte) virt_to_page(__va(pte_val(pte))) argument 142 #define pte_pfn(pte) (pte_val(pte) >> PAGE_SHIFT) argument 176 static inline int pte_write(pte_t pte) { return !(pte_val(pte) & _PAGE_RONLY); } in pte_write() 177 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 186 static inline pte_t pte_mknocache(pte_t pte) in pte_mknocache() 191 static inline pte_t pte_mkcache(pte_t pte) in pte_mkcache() [all …]
|
/linux/arch/arm/include/asm/ |
A D | pgtable.h | 184 #define pte_page(pte) pfn_to_page(pte_pfn(pte)) argument 193 #define pte_none(pte) (!pte_val(pte)) argument 202 #define pte_valid_user(pte) \ argument 240 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() 245 static inline pte_t pte_mkwrite(pte_t pte) in pte_mkwrite() 250 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() 255 static inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty() 260 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() 265 static inline pte_t pte_mkyoung(pte_t pte) in pte_mkyoung() 270 static inline pte_t pte_mkexec(pte_t pte) in pte_mkexec() [all …]
|
/linux/arch/hexagon/include/asm/ |
A D | pgtable.h | 169 #define pte_present_exec_user(pte) \ argument 247 static inline int pte_none(pte_t pte) in pte_none() 255 static inline int pte_present(pte_t pte) in pte_present() 267 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() 274 static inline pte_t pte_mkyoung(pte_t pte) in pte_mkyoung() 295 static inline int pte_young(pte_t pte) in pte_young() 301 static inline int pte_dirty(pte_t pte) in pte_dirty() 329 static inline pte_t pte_mkexec(pte_t pte) in pte_mkexec() 336 static inline int pte_read(pte_t pte) in pte_read() 342 static inline int pte_write(pte_t pte) in pte_write() [all …]
|
/linux/arch/powerpc/include/asm/book3s/32/ |
A D | pgtable.h | 56 static inline bool pte_user(pte_t pte) in pte_user() 398 static inline int pte_present(pte_t pte) in pte_present() 403 static inline bool pte_hw_valid(pte_t pte) in pte_hw_valid() 408 static inline bool pte_hashpte(pte_t pte) in pte_hashpte() 413 static inline bool pte_ci(pte_t pte) in pte_ci() 471 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() 476 static inline pte_t pte_mkexec(pte_t pte) in pte_mkexec() 481 static inline pte_t pte_mkpte(pte_t pte) in pte_mkpte() 506 static inline pte_t pte_mkhuge(pte_t pte) in pte_mkhuge() 516 static inline pte_t pte_mkuser(pte_t pte) in pte_mkuser() [all …]
|
/linux/arch/microblaze/include/asm/ |
A D | pgtable.h | 268 static inline pte_t pte_rdprotect(pte_t pte) \ in pte_rdprotect() 274 static inline pte_t pte_mkclean(pte_t pte) \ in pte_mkclean() 276 static inline pte_t pte_mkold(pte_t pte) \ in pte_mkold() 279 static inline pte_t pte_mkread(pte_t pte) \ in pte_mkread() 281 static inline pte_t pte_mkexec(pte_t pte) \ in pte_mkexec() 283 static inline pte_t pte_mkwrite(pte_t pte) \ in pte_mkwrite() 285 static inline pte_t pte_mkdirty(pte_t pte) \ in pte_mkdirty() 287 static inline pte_t pte_mkyoung(pte_t pte) \ in pte_mkyoung() 297 pte_t pte; in mk_pte_phys() local 348 pte_t *ptep, pte_t pte) in set_pte() [all …]
|
/linux/arch/sparc/include/asm/ |
A D | pgtable_64.h | 338 pte_t pte = __pte(pmd_val(pmd)); in pmd_modify() local 422 pte_t pte = __pte(pmd_val(pmd)); in pmd_mkhuge() local 685 pte_t pte = __pte(pmd_val(pmd)); in pmd_large() local 692 pte_t pte = __pte(pmd_val(pmd)); in pmd_pfn() local 700 pte_t pte = __pte(pmd_val(pmd)); in pmd_write() local 710 pte_t pte = __pte(pmd_val(pmd)); in pmd_dirty() local 717 pte_t pte = __pte(pmd_val(pmd)); in pmd_young() local 724 pte_t pte = __pte(pmd_val(pmd)); in pmd_trans_huge() local 731 pte_t pte = __pte(pmd_val(pmd)); in pmd_mkold() local 740 pte_t pte = __pte(pmd_val(pmd)); in pmd_wrprotect() local [all …]
|
/linux/arch/um/include/asm/ |
A D | pgtable.h | 124 static inline int pte_none(pte_t pte) in pte_none() 133 static inline int pte_read(pte_t pte) in pte_read() 139 static inline int pte_exec(pte_t pte){ in pte_exec() 144 static inline int pte_write(pte_t pte) in pte_write() 150 static inline int pte_dirty(pte_t pte) in pte_dirty() 155 static inline int pte_young(pte_t pte) in pte_young() 160 static inline int pte_newpage(pte_t pte) in pte_newpage() 165 static inline int pte_newprot(pte_t pte) in pte_newprot() 188 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() 203 static inline pte_t pte_mkread(pte_t pte) in pte_mkread() [all …]
|
/linux/arch/openrisc/include/asm/ |
A D | pgtable.h | 238 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() 256 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() 262 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() 268 static inline pte_t pte_mkwrite(pte_t pte) in pte_mkwrite() 274 static inline pte_t pte_mkread(pte_t pte) in pte_mkread() 280 static inline pte_t pte_mkexec(pte_t pte) in pte_mkexec() 286 static inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty() 292 static inline pte_t pte_mkyoung(pte_t pte) in pte_mkyoung() 311 pte_t pte; in __mk_pte() local 389 unsigned long address, pte_t *pte) in update_tlb() [all …]
|
/linux/arch/s390/include/asm/ |
A D | hugetlb.h | 61 pte_t pte, int dirty) in huge_ptep_set_access_flags() 74 pte_t pte = huge_ptep_get_and_clear(mm, addr, ptep); in huge_ptep_set_wrprotect() local 83 static inline int huge_pte_none(pte_t pte) in huge_pte_none() 88 static inline int huge_pte_write(pte_t pte) in huge_pte_write() 93 static inline int huge_pte_dirty(pte_t pte) in huge_pte_dirty() 98 static inline pte_t huge_pte_mkwrite(pte_t pte) in huge_pte_mkwrite() 103 static inline pte_t huge_pte_mkdirty(pte_t pte) in huge_pte_mkdirty() 108 static inline pte_t huge_pte_wrprotect(pte_t pte) in huge_pte_wrprotect() 113 static inline pte_t huge_pte_modify(pte_t pte, pgprot_t newprot) in huge_pte_modify()
|
/linux/arch/nios2/include/asm/ |
A D | pgtable.h | 103 static inline int pte_write(pte_t pte) \ in pte_write() 105 static inline int pte_dirty(pte_t pte) \ in pte_dirty() 107 static inline int pte_young(pte_t pte) \ in pte_young() 121 static inline int pte_none(pte_t pte) in pte_none() 126 static inline int pte_present(pte_t pte) \ in pte_present() 133 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() 139 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() 145 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() 151 static inline pte_t pte_mkwrite(pte_t pte) in pte_mkwrite() 157 static inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty() [all …]
|
/linux/arch/csky/include/asm/ |
A D | pgtable.h | 103 static inline void set_pte(pte_t *p, pte_t pte) in set_pte() 160 static inline int pte_read(pte_t pte) in pte_read() 165 static inline int pte_write(pte_t pte) in pte_write() 170 static inline int pte_dirty(pte_t pte) in pte_dirty() 175 static inline int pte_young(pte_t pte) in pte_young() 180 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() 186 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() 192 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() 198 static inline pte_t pte_mkwrite(pte_t pte) in pte_mkwrite() 206 static inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty() [all …]
|
/linux/arch/powerpc/kvm/ |
A D | book3s_mmu_hpte.c | 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 323 struct hpte_cache *pte; in kvmppc_mmu_hpte_cache_next() local [all …]
|
/linux/include/asm-generic/ |
A D | hugetlb.h | 10 static inline unsigned long huge_pte_write(pte_t pte) in huge_pte_write() 15 static inline unsigned long huge_pte_dirty(pte_t pte) in huge_pte_dirty() 20 static inline pte_t huge_pte_mkwrite(pte_t pte) in huge_pte_mkwrite() 25 static inline pte_t huge_pte_mkdirty(pte_t pte) in huge_pte_mkdirty() 30 static inline pte_t huge_pte_modify(pte_t pte, pgprot_t newprot) in huge_pte_modify() 54 pte_t *ptep, pte_t pte) in set_huge_pte_at() 77 static inline int huge_pte_none(pte_t pte) in huge_pte_none() 84 static inline pte_t huge_pte_wrprotect(pte_t pte) in huge_pte_wrprotect() 116 pte_t pte, int dirty) in huge_ptep_set_access_flags()
|
A 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/arch/powerpc/include/asm/book3s/64/ |
A D | pgtable.h | 445 static inline int pte_write(pte_t pte) in pte_write() 450 static inline int pte_read(pte_t pte) in pte_read() 509 static inline int pte_dirty(pte_t pte) in pte_dirty() 514 static inline int pte_young(pte_t pte) in pte_young() 524 static inline bool pte_exec(pte_t pte) in pte_exec() 615 static inline bool pte_user(pte_t pte) in pte_user() 837 static inline int pte_none(pte_t pte) in pte_none() 890 static inline bool pte_ci(pte_t pte) in pte_ci() 984 static inline pud_t pte_pud(pte_t pte) in pte_pud() 1031 static inline p4d_t pte_p4d(pte_t pte) in pte_p4d() [all …]
|
/linux/arch/x86/include/asm/ |
A D | pgtable.h | 67 #define set_pte_atomic(ptep, pte) \ argument 124 static inline int pte_dirty(pte_t pte) in pte_dirty() 129 static inline int pte_young(pte_t pte) in pte_young() 154 static inline int pte_write(pte_t pte) in pte_write() 159 static inline int pte_huge(pte_t pte) in pte_huge() 164 static inline int pte_global(pte_t pte) in pte_global() 169 static inline int pte_exec(pte_t pte) in pte_exec() 224 static inline int pmd_large(pmd_t pte) in pmd_large() 725 static inline int pte_none(pte_t pte) in pte_none() 1007 pte_t *ptep, pte_t pte) in set_pte_at() [all …]
|
/linux/arch/arm64/include/asm/ |
A D | pgtable.h | 88 #define pte_none(pte) (!pte_val(pte)) argument 124 #define pte_valid_not_user(pte) \ argument 134 #define pte_accessible(mm, pte) \ argument 214 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() 229 static inline pte_t pte_mkcont(pte_t pte) in pte_mkcont() 288 pte_t pte) in __check_racy_pte_update() 316 pte_t *ptep, pte_t pte) in set_pte_at() 375 static inline pud_t pte_pud(pte_t pte) in pte_pud() 390 static inline pmd_t pte_pmd(pte_t pte) in pte_pmd() 808 pte_t old_pte, pte; in __ptep_test_and_clear_young() local [all …]
|
/linux/arch/alpha/include/asm/ |
A D | pgtable.h | 206 #define pte_pfn(pte) (pte_val(pte) >> 32) argument 208 #define pte_page(pte) pfn_to_page(pte_pfn(pte)) argument 220 extern inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() 244 extern inline int pte_none(pte_t pte) { return !pte_val(pte); } in pte_none() 245 extern inline int pte_present(pte_t pte) { return pte_val(pte) & _PAGE_VALID; } in pte_present() 265 extern inline int pte_write(pte_t pte) { return !(pte_val(pte) & _PAGE_FOW); } in pte_write() 266 extern inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 267 extern inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 272 extern inline pte_t pte_mkwrite(pte_t pte) { pte_val(pte) &= ~_PAGE_FOW; return pte; } in pte_mkwrite() 324 { pte_t pte; pte_val(pte) = (type << 32) | (offset << 40); return pte; } in mk_swap_pte() local [all …]
|
/linux/arch/xtensa/include/asm/ |
A D | pgtable.h | 253 # define pte_present(pte) \ argument 269 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() 271 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() 273 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() 275 static inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty() 277 static inline pte_t pte_mkyoung(pte_t pte) in pte_mkyoung() 279 static inline pte_t pte_mkwrite(pte_t pte) in pte_mkwrite() 291 #define pte_pfn(pte) (pte_val(pte) >> PAGE_SHIFT) argument 341 pte_t pte = *ptep; in ptep_test_and_clear_young() local 351 pte_t pte = *ptep; in ptep_get_and_clear() local [all …]
|
/linux/arch/powerpc/mm/ |
A D | pgtable.c | 49 static inline int pte_looks_normal(pte_t pte) in pte_looks_normal() 61 static struct page *maybe_pte_to_page(pte_t pte) in maybe_pte_to_page() 82 static pte_t set_pte_filter_hash(pte_t pte) in set_pte_filter_hash() 103 static pte_t set_pte_filter_hash(pte_t pte) { return pte; } in set_pte_filter_hash() 111 static inline pte_t set_pte_filter(pte_t pte) in set_pte_filter() 142 static pte_t set_access_flags_filter(pte_t pte, struct vm_area_struct *vma, in set_access_flags_filter() 188 pte_t pte) in set_pte_at() 230 pte_t pte, int dirty) in huge_ptep_set_access_flags() 270 void set_huge_pte_at(struct mm_struct *mm, unsigned long addr, pte_t *ptep, pte_t pte) in set_huge_pte_at()
|
/linux/arch/nds32/include/asm/ |
A D | pgtable.h | 182 #define pte_pfn(pte) (pte_val(pte) >> PAGE_SHIFT) argument 185 #define pte_none(pte) !(pte_val(pte)) argument 187 #define pte_page(pte) (pfn_to_page(pte_pfn(pte))) argument 213 static inline void set_pte(pte_t * ptep, pte_t pte) in set_pte() 238 #define pte_present(pte) (pte_val(pte) & _PAGE_V) argument 247 #define pte_exec(pte) (pte_val(pte) & _PAGE_E) argument 248 #define pte_dirty(pte) (pte_val(pte) & _PAGE_D) argument 249 #define pte_young(pte) (pte_val(pte) & _PAGE_YOUNG) argument 254 #define pte_file(pte) (pte_val(pte) & _PAGE_FILE) argument 263 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() [all …]
|