Home
last modified time | relevance | path

Searched defs:pte (Results 1 – 25 of 341) sorted by relevance

12345678910>>...14

/arch/powerpc/include/asm/
Dpgtable.h33 static inline int pte_write(pte_t pte) in pte_write()
35 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty()
36 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young()
37 static inline int pte_special(pte_t pte) { return pte_val(pte) & _PAGE_SPECIAL; } in pte_special()
38 static inline int pte_none(pte_t pte) { return (pte_val(pte) & ~_PTE_NONE_MASK) == 0; } in pte_none()
39 static inline pgprot_t pte_pgprot(pte_t pte) { return __pgprot(pte_val(pte) & PAGE_PROT_BITS); } in pte_pgprot()
47 static inline int pte_protnone(pte_t pte) in pte_protnone()
59 static inline int pte_present(pte_t pte) in pte_present()
73 static inline unsigned long pte_pfn(pte_t pte) { in pte_pfn()
81 static inline pte_t pte_wrprotect(pte_t pte) { in pte_wrprotect()
[all …]
/arch/mips/include/asm/
Dpgtable.h135 #define pte_none(pte) (!(((pte).pte_high) & ~_PAGE_GLOBAL)) argument
136 #define pte_present(pte) ((pte).pte_low & _PAGE_PRESENT) argument
137 #define pte_no_exec(pte) ((pte).pte_low & _PAGE_NO_EXEC) argument
139 static inline void set_pte(pte_t *ptep, pte_t pte) in set_pte()
170 #define pte_none(pte) (!(pte_val(pte) & ~_PAGE_GLOBAL)) argument
171 #define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT) argument
172 #define pte_no_exec(pte) (pte_val(pte) & _PAGE_NO_EXEC) argument
285 static inline int pte_write(pte_t pte) { return pte.pte_low & _PAGE_WRITE; } in pte_write()
286 static inline int pte_dirty(pte_t pte) { return pte.pte_low & _PAGE_MODIFIED; } in pte_dirty()
287 static inline int pte_young(pte_t pte) { return pte.pte_low & _PAGE_ACCESSED; } in pte_young()
[all …]
/arch/arm/include/asm/
Dpgtable.h55 #define pte_ERROR(pte) __pte_error(__FILE__, __LINE__, pte) argument
195 #define __pte_unmap(pte) do { } while (0) argument
198 #define __pte_unmap(pte) kunmap_atomic(pte) argument
206 #define pte_unmap(pte) __pte_unmap(pte) argument
208 #define pte_pfn(pte) ((pte_val(pte) & PHYS_MASK) >> PAGE_SHIFT) argument
211 #define pte_page(pte) pfn_to_page(pte_pfn(pte)) argument
216 #define pte_isset(pte, val) ((u32)(val) == (val) ? pte_val(pte) & (val) \ argument
218 #define pte_isclear(pte, val) (!(pte_val(pte) & (val))) argument
220 #define pte_none(pte) (!pte_val(pte)) argument
221 #define pte_present(pte) (pte_isset((pte), L_PTE_PRESENT)) argument
[all …]
/arch/hexagon/include/asm/
Dpgtable.h175 #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 …]
Dpgalloc.h65 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/
Dmcf_pgtable.h158 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 …]
Dsun3_pgtable.h104 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 …]
Dmotorola_pgtable.h102 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/
Dpgalloc.h16 pte_t *pte) in pmd_populate_kernel()
22 pgtable_t pte) in pmd_populate()
43 pte_t *pte; in pte_alloc_one_kernel() local
54 struct page *pte; in pte_alloc_one() local
67 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel()
72 static inline void pte_free(struct mm_struct *mm, struct page *pte) in pte_free()
78 #define __pte_free_tlb(tlb, pte, addr) \ argument
Dpgtable.h109 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/
Dhugetlb.h55 pte_t pte, int dirty) in huge_ptep_set_access_flags()
68 pte_t pte = huge_ptep_get_and_clear(mm, addr, ptep); in huge_ptep_set_wrprotect() local
77 static inline int huge_pte_none(pte_t pte) in huge_pte_none()
82 static inline int huge_pte_write(pte_t pte) in huge_pte_write()
87 static inline int huge_pte_dirty(pte_t pte) in huge_pte_dirty()
92 static inline pte_t huge_pte_mkwrite(pte_t pte) in huge_pte_mkwrite()
97 static inline pte_t huge_pte_mkdirty(pte_t pte) in huge_pte_mkdirty()
102 static inline pte_t huge_pte_wrprotect(pte_t pte) in huge_pte_wrprotect()
107 static inline pte_t huge_pte_modify(pte_t pte, pgprot_t newprot) in huge_pte_modify()
/arch/cris/include/asm/
Dpgalloc.h7 #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_REPEAT|__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
Dpgtable.h114 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/
Dpgalloc.h7 pte_t *pte) in pmd_populate_kernel()
13 pgtable_t pte) in pmd_populate()
43 pte_t *pte; in pte_alloc_one_kernel() local
54 struct page *pte; in pte_alloc_one() local
67 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel()
72 static inline void pte_free(struct mm_struct *mm, pgtable_t pte) in pte_free()
78 #define __pte_free_tlb(tlb, pte, buf) \ argument
/arch/um/include/asm/
Dpgtable.h123 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 …]
Dpgalloc.h13 #define pmd_populate_kernel(mm, pmd, pte) \ argument
16 #define pmd_populate(mm, pmd, pte) \ argument
31 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel()
36 static inline void pte_free(struct mm_struct *mm, pgtable_t pte) in pte_free()
42 #define __pte_free_tlb(tlb,pte, address) \ argument
/arch/mn10300/include/asm/
Dpgalloc.h22 #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/openrisc/include/asm/
Dpgtable.h237 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 …]
Dpgalloc.h30 #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/powerpc/mm/
Dpgtable.c44 static inline int pte_looks_normal(pte_t pte) in pte_looks_normal()
51 static struct page *maybe_pte_to_page(pte_t pte) in maybe_pte_to_page()
72 static pte_t set_pte_filter(pte_t pte) in set_pte_filter()
88 static pte_t set_access_flags_filter(pte_t pte, struct vm_area_struct *vma, in set_access_flags_filter()
100 static pte_t set_pte_filter(pte_t pte) in set_pte_filter()
128 static pte_t set_access_flags_filter(pte_t pte, struct vm_area_struct *vma, in set_access_flags_filter()
173 pte_t pte) in set_pte_at()
/arch/metag/include/asm/
Dpgalloc.h7 #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_REPEAT | in pte_alloc_one_kernel() local
53 struct page *pte; in pte_alloc_one() local
64 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel()
69 static inline void pte_free(struct mm_struct *mm, pgtable_t pte) in pte_free()
75 #define __pte_free_tlb(tlb, pte, addr) \ argument
/arch/m32r/include/asm/
Dpgalloc.h8 #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/kvm/
Dbook3s_mmu_hpte.c67 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/sparc/include/asm/
Dpgtable_64.h249 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()
409 pte_t pte = __pte(pmd_val(pmd)); in pmd_mkhuge() local
418 static inline bool is_hugetlb_pte(pte_t pte) in is_hugetlb_pte()
424 static inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty()
448 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean()
[all …]
/arch/microblaze/include/asm/
Dpgtable.h40 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) argument
85 static inline int pte_special(pte_t pte) { return 0; } in pte_special()
87 static inline pte_t pte_mkspecial(pte_t pte) { return pte; } in pte_mkspecial()
296 #define pte_none(pte) ((pte_val(pte) & ~_PTE_NONE_MASK) == 0) argument
297 #define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT) argument
332 static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_USER; } in pte_read()
333 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_RW; } in pte_write()
334 static inline int pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec()
335 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty()
336 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young()
[all …]

12345678910>>...14