/arch/powerpc/include/asm/nohash/ |
D | pgtable.h | 13 static inline int pte_write(pte_t pte) in pte_write() 17 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 18 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 19 static inline int pte_special(pte_t pte) { return pte_val(pte) & _PAGE_SPECIAL; } in pte_special() 20 static inline int pte_none(pte_t pte) { return (pte_val(pte) & ~_PTE_NONE_MASK) == 0; } in pte_none() 21 static inline pgprot_t pte_pgprot(pte_t pte) { return __pgprot(pte_val(pte) & PAGE_PROT_BITS); } in pte_pgprot() 29 static inline int pte_protnone(pte_t pte) in pte_protnone() 41 static inline int pte_present(pte_t pte) in pte_present() 55 static inline unsigned long pte_pfn(pte_t pte) { in pte_pfn() 59 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() [all …]
|
/arch/mips/include/asm/ |
D | pgtable.h | 137 # define pte_none(pte) (!(((pte).pte_high) & ~_PAGE_GLOBAL)) argument 139 # define pte_none(pte) (!(((pte).pte_low | (pte).pte_high) & ~_PAGE_GLOBAL)) argument 142 #define pte_present(pte) ((pte).pte_low & _PAGE_PRESENT) argument 143 #define pte_no_exec(pte) ((pte).pte_low & _PAGE_NO_EXEC) argument 145 static inline void set_pte(pte_t *ptep, pte_t pte) 188 #define pte_none(pte) (!(pte_val(pte) & ~_PAGE_GLOBAL)) argument 189 #define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT) argument 190 #define pte_no_exec(pte) (pte_val(pte) & _PAGE_NO_EXEC) argument 315 static inline int pte_write(pte_t pte) { return pte.pte_low & _PAGE_WRITE; } 316 static inline int pte_dirty(pte_t pte) { return pte.pte_low & _PAGE_MODIFIED; } [all …]
|
/arch/arm/include/asm/ |
D | pgtable.h | 55 #define pte_ERROR(pte) __pte_error(__FILE__, __LINE__, pte) argument 197 #define __pte_unmap(pte) do { } while (0) argument 200 #define __pte_unmap(pte) kunmap_atomic(pte) argument 208 #define pte_unmap(pte) __pte_unmap(pte) argument 210 #define pte_pfn(pte) ((pte_val(pte) & PHYS_MASK) >> PAGE_SHIFT) argument 213 #define pte_page(pte) pfn_to_page(pte_pfn(pte)) argument 218 #define pte_isset(pte, val) ((u32)(val) == (val) ? pte_val(pte) & (val) \ argument 220 #define pte_isclear(pte, val) (!(pte_val(pte) & (val))) argument 222 #define pte_none(pte) (!pte_val(pte)) argument 223 #define pte_present(pte) (pte_isset((pte), L_PTE_PRESENT)) argument [all …]
|
/arch/hexagon/include/asm/ |
D | pgtable.h | 175 #define pte_special(pte) 0 argument 176 #define pte_mkspecial(pte) (pte) argument 180 #define pte_mkhuge(pte) __pte((pte_val(pte) & ~0x3) | HVM_HUGEPAGE_SIZE) argument 189 #define pte_present_exec_user(pte) \ argument 295 static inline int pte_none(pte_t pte) in pte_none() 303 static inline int pte_present(pte_t pte) in pte_present() 315 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() 322 static inline pte_t pte_mkyoung(pte_t pte) in pte_mkyoung() 329 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() 336 static inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty() [all …]
|
D | pgalloc.h | 65 struct page *pte; in pte_alloc_one() local 85 static inline void pte_free(struct mm_struct *mm, struct page *pte) in pte_free() 91 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel() 97 pgtable_t pte) in pmd_populate() 117 pte_t *pte) in pmd_populate_kernel() 142 #define __pte_free_tlb(tlb, pte, addr) \ argument
|
/arch/m68k/include/asm/ |
D | mcf_pgtable.h | 158 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() 171 #define __pte_page(pte) ((unsigned long) (pte_val(pte) & PAGE_MASK)) argument 174 static inline int pte_none(pte_t pte) in pte_none() 179 static inline int pte_present(pte_t pte) in pte_present() 190 #define pte_pagenr(pte) ((__pte_page(pte) - PAGE_OFFSET) >> PAGE_SHIFT) argument 191 #define pte_page(pte) virt_to_page(__pte_page(pte)) argument 220 static inline int pte_read(pte_t pte) in pte_read() 225 static inline int pte_write(pte_t pte) in pte_write() 230 static inline int pte_exec(pte_t pte) in pte_exec() 235 static inline int pte_dirty(pte_t pte) in pte_dirty() [all …]
|
D | sun3_pgtable.h | 104 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() 117 #define __pte_page(pte) \ argument 122 static inline int pte_none (pte_t pte) { return !pte_val (pte); } in pte_none() 123 static inline int pte_present (pte_t pte) { return pte_val (pte) & SUN3_PAGE_VALID; } in pte_present() 129 #define pte_pfn(pte) (pte_val(pte) & SUN3_PAGE_PGNUM_MASK) argument 133 #define pte_page(pte) virt_to_page(__pte_page(pte)) argument 166 static inline int pte_write(pte_t pte) { return pte_val(pte) & SUN3_PAGE_WRITEABLE; } in pte_write() 167 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & SUN3_PAGE_MODIFIED; } in pte_dirty() 168 static inline int pte_young(pte_t pte) { return pte_val(pte) & SUN3_PAGE_ACCESSED; } in pte_young() 169 static inline int pte_special(pte_t pte) { return 0; } in pte_special() [all …]
|
D | motorola_pgtable.h | 102 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() 124 #define __pte_page(pte) ((unsigned long)__va(pte_val(pte) & PAGE_MASK)) argument 129 #define pte_none(pte) (!pte_val(pte)) argument 130 #define pte_present(pte) (pte_val(pte) & (_PAGE_PRESENT | _PAGE_PROTNONE)) argument 133 #define pte_page(pte) virt_to_page(__va(pte_val(pte))) argument 134 #define pte_pfn(pte) (pte_val(pte) >> PAGE_SHIFT) argument 167 static inline int pte_write(pte_t pte) { return !(pte_val(pte) & _PAGE_RONLY); } in pte_write() 168 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 169 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 170 static inline int pte_special(pte_t pte) { return 0; } in pte_special() [all …]
|
/arch/nios2/include/asm/ |
D | pgalloc.h | 16 pte_t *pte) in pmd_populate_kernel() 22 pgtable_t pte) in pmd_populate() 43 pte_t *pte; in pte_alloc_one_kernel() local 53 struct page *pte; in pte_alloc_one() local 66 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel() 71 static inline void pte_free(struct mm_struct *mm, struct page *pte) in pte_free() 77 #define __pte_free_tlb(tlb, pte, addr) \ argument
|
D | pgtable.h | 109 static inline int pte_write(pte_t pte) \ in pte_write() 111 static inline int pte_dirty(pte_t pte) \ in pte_dirty() 113 static inline int pte_young(pte_t pte) \ in pte_young() 115 static inline int pte_special(pte_t pte) { return 0; } in pte_special() 128 static inline int pte_none(pte_t pte) in pte_none() 133 static inline int pte_present(pte_t pte) \ in pte_present() 140 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() 146 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() 152 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() 158 static inline pte_t pte_mkwrite(pte_t pte) in pte_mkwrite() [all …]
|
/arch/s390/include/asm/ |
D | hugetlb.h | 58 pte_t pte, int dirty) in huge_ptep_set_access_flags() 71 pte_t pte = huge_ptep_get_and_clear(mm, addr, ptep); in huge_ptep_set_wrprotect() local 80 static inline int huge_pte_none(pte_t pte) in huge_pte_none() 85 static inline int huge_pte_write(pte_t pte) in huge_pte_write() 90 static inline int huge_pte_dirty(pte_t pte) in huge_pte_dirty() 95 static inline pte_t huge_pte_mkwrite(pte_t pte) in huge_pte_mkwrite() 100 static inline pte_t huge_pte_mkdirty(pte_t pte) in huge_pte_mkdirty() 105 static inline pte_t huge_pte_wrprotect(pte_t pte) in huge_pte_wrprotect() 110 static inline pte_t huge_pte_modify(pte_t pte, pgprot_t newprot) in huge_pte_modify()
|
/arch/cris/include/asm/ |
D | pgalloc.h | 7 #define pmd_populate_kernel(mm, pmd, pte) pmd_set(pmd, pte) argument 8 #define pmd_populate(mm, pmd, pte) pmd_set(pmd, page_address(pte)) argument 27 pte_t *pte = (pte_t *)__get_free_page(GFP_KERNEL|__GFP_ZERO); in pte_alloc_one_kernel() local 33 struct page *pte; in pte_alloc_one() local 44 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel() 49 static inline void pte_free(struct mm_struct *mm, pgtable_t pte) in pte_free() 55 #define __pte_free_tlb(tlb,pte,address) \ argument
|
D | pgtable.h | 114 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write() 115 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_MODIFIED; } in pte_dirty() 116 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 117 static inline int pte_special(pte_t pte) { return 0; } in pte_special() 119 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() 125 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() 131 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() 137 static inline pte_t pte_mkwrite(pte_t pte) in pte_mkwrite() 145 static inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty() 153 static inline pte_t pte_mkyoung(pte_t pte) in pte_mkyoung() [all …]
|
/arch/score/include/asm/ |
D | pgalloc.h | 7 pte_t *pte) in pmd_populate_kernel() 13 pgtable_t pte) in pmd_populate() 43 pte_t *pte; in pte_alloc_one_kernel() local 53 struct page *pte; in pte_alloc_one() local 66 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel() 71 static inline void pte_free(struct mm_struct *mm, pgtable_t pte) in pte_free() 77 #define __pte_free_tlb(tlb, pte, buf) \ argument
|
/arch/mn10300/include/asm/ |
D | pgalloc.h | 22 #define pmd_populate_kernel(mm, pmd, pte) \ argument 26 void pmd_populate(struct mm_struct *mm, pmd_t *pmd, struct page *pte) in pmd_populate() 42 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel() 47 static inline void pte_free(struct mm_struct *mm, struct page *pte) in pte_free() 54 #define __pte_free_tlb(tlb, pte, addr) tlb_remove_page((tlb), (pte)) argument
|
/arch/um/include/asm/ |
D | pgtable.h | 123 static inline int pte_none(pte_t pte) in pte_none() 132 static inline int pte_read(pte_t pte) in pte_read() 138 static inline int pte_exec(pte_t pte){ in pte_exec() 143 static inline int pte_write(pte_t pte) in pte_write() 149 static inline int pte_dirty(pte_t pte) in pte_dirty() 154 static inline int pte_young(pte_t pte) in pte_young() 159 static inline int pte_newpage(pte_t pte) in pte_newpage() 164 static inline int pte_newprot(pte_t pte) in pte_newprot() 169 static inline int pte_special(pte_t pte) in pte_special() 180 static inline pte_t pte_mknewprot(pte_t pte) in pte_mknewprot() [all …]
|
/arch/openrisc/include/asm/ |
D | pgtable.h | 237 static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_READ; } in pte_read() 238 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write() 239 static inline int pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec() 240 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 241 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 242 static inline int pte_special(pte_t pte) { return 0; } in pte_special() 243 static inline pte_t pte_mkspecial(pte_t pte) { return pte; } in pte_mkspecial() 245 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() 251 static inline pte_t pte_rdprotect(pte_t pte) in pte_rdprotect() 257 static inline pte_t pte_exprotect(pte_t pte) in pte_exprotect() [all …]
|
D | pgalloc.h | 30 #define pmd_populate_kernel(mm, pmd, pte) \ argument 34 struct page *pte) in pmd_populate() 79 struct page *pte; in pte_alloc_one() local 91 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel() 96 static inline void pte_free(struct mm_struct *mm, struct page *pte) in pte_free() 103 #define __pte_free_tlb(tlb, pte, addr) tlb_remove_page((tlb), (pte)) argument
|
/arch/metag/include/asm/ |
D | pgalloc.h | 7 #define pmd_populate_kernel(mm, pmd, pte) \ argument 10 #define pmd_populate(mm, pmd, pte) \ argument 45 pte_t *pte = (pte_t *)__get_free_page(GFP_KERNEL | __GFP_ZERO); in pte_alloc_one_kernel() local 52 struct page *pte; in pte_alloc_one() local 63 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel() 68 static inline void pte_free(struct mm_struct *mm, pgtable_t pte) in pte_free() 74 #define __pte_free_tlb(tlb, pte, addr) \ argument
|
/arch/m32r/include/asm/ |
D | pgalloc.h | 8 #define pmd_populate_kernel(mm, pmd, pte) \ argument 12 pgtable_t pte) in pmd_populate() 36 pte_t *pte = (pte_t *)__get_free_page(GFP_KERNEL|__GFP_ZERO); in pte_alloc_one_kernel() local 44 struct page *pte = alloc_page(GFP_KERNEL|__GFP_ZERO); in pte_alloc_one() local 55 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel() 60 static inline void pte_free(struct mm_struct *mm, pgtable_t pte) in pte_free() 66 #define __pte_free_tlb(tlb, pte, addr) pte_free((tlb)->mm, (pte)) argument 77 #define pgd_populate(mm, pmd, pte) BUG() argument
|
/arch/powerpc/mm/ |
D | pgtable.c | 44 static inline int pte_looks_normal(pte_t pte) in pte_looks_normal() 62 static struct page *maybe_pte_to_page(pte_t pte) in maybe_pte_to_page() 83 static pte_t set_pte_filter(pte_t pte) in set_pte_filter() 102 static pte_t set_access_flags_filter(pte_t pte, struct vm_area_struct *vma, in set_access_flags_filter() 114 static 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() 187 pte_t pte) in set_pte_at()
|
/arch/powerpc/include/asm/book3s/32/ |
D | pgtable.h | 272 #define pte_unmap(pte) kunmap_atomic(pte) argument 283 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) >> 3 }) argument 299 static inline int pte_write(pte_t pte) { return !!(pte_val(pte) & _PAGE_RW);} in pte_write() 300 static inline int pte_dirty(pte_t pte) { return !!(pte_val(pte) & _PAGE_DIRTY); } in pte_dirty() 301 static inline int pte_young(pte_t pte) { return !!(pte_val(pte) & _PAGE_ACCESSED); } in pte_young() 302 static inline int pte_special(pte_t pte) { return !!(pte_val(pte) & _PAGE_SPECIAL); } in pte_special() 303 static inline int pte_none(pte_t pte) { return (pte_val(pte) & ~_PTE_NONE_MASK) == 0; } in pte_none() 304 static inline pgprot_t pte_pgprot(pte_t pte) { return __pgprot(pte_val(pte) & PAGE_PROT_BITS); } in pte_pgprot() 306 static inline int pte_present(pte_t pte) in pte_present() 323 static inline unsigned long pte_pfn(pte_t pte) in pte_pfn() [all …]
|
/arch/sparc/include/asm/ |
D | pgtable_64.h | 249 pte_t pte = pfn_pte(page_nr, pgprot); in pfn_pmd() local 257 static inline unsigned long pte_pfn(pte_t pte) in pte_pfn() 278 static inline pte_t pte_modify(pte_t pte, pgprot_t prot) in pte_modify() 339 pte_t pte = __pte(pmd_val(pmd)); in pmd_modify() local 396 static inline pte_t pte_mkhuge(pte_t pte) in pte_mkhuge() 401 static inline bool is_hugetlb_pte(pte_t pte) in is_hugetlb_pte() 414 pte_t pte = __pte(pmd_val(pmd)); in pmd_mkhuge() local 423 static inline bool is_hugetlb_pte(pte_t pte) in is_hugetlb_pte() 429 static inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty() 453 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() [all …]
|
/arch/powerpc/kvm/ |
D | book3s_mmu_hpte.c | 67 void kvmppc_mmu_hpte_cache_map(struct kvm_vcpu *vcpu, struct hpte_cache *pte) in kvmppc_mmu_hpte_cache_map() 108 struct hpte_cache *pte = container_of(head, struct hpte_cache, rcu_head); in free_pte_rcu() local 112 static void invalidate_pte(struct kvm_vcpu *vcpu, struct hpte_cache *pte) in invalidate_pte() 146 struct hpte_cache *pte; in kvmppc_mmu_pte_flush_all() local 165 struct hpte_cache *pte; in kvmppc_mmu_pte_flush_page() local 184 struct hpte_cache *pte; in kvmppc_mmu_pte_flush_long() local 227 struct hpte_cache *pte; in kvmppc_mmu_pte_vflush_short() local 248 struct hpte_cache *pte; in kvmppc_mmu_pte_vflush_64k() local 270 struct hpte_cache *pte; in kvmppc_mmu_pte_vflush_long() local 312 struct hpte_cache *pte; in kvmppc_mmu_pte_pflush() local [all …]
|
/arch/x86/include/asm/ |
D | pgtable.h | 58 #define set_pte(ptep, pte) native_set_pte(ptep, pte) argument 59 #define set_pte_at(mm, addr, ptep, pte) native_set_pte_at(mm, addr, ptep, pte) argument 62 #define set_pte_atomic(ptep, pte) \ argument 109 static inline int pte_dirty(pte_t pte) in pte_dirty() 128 static inline int pte_young(pte_t pte) in pte_young() 143 static inline int pte_write(pte_t pte) in pte_write() 148 static inline int pte_huge(pte_t pte) in pte_huge() 153 static inline int pte_global(pte_t pte) in pte_global() 158 static inline int pte_exec(pte_t pte) in pte_exec() 163 static inline int pte_special(pte_t pte) in pte_special() [all …]
|