Home
last modified time | relevance | path

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

12345678910>>...13

/arch/powerpc/include/asm/nohash/
Dpgtable.h43 static inline int pte_write(pte_t pte) in pte_write()
49 static inline int pte_read(pte_t pte) { return 1; } in pte_read()
51 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty()
52 static inline int pte_special(pte_t pte) { return pte_val(pte) & _PAGE_SPECIAL; } in pte_special()
53 static inline int pte_none(pte_t pte) { return (pte_val(pte) & ~_PTE_NONE_MASK) == 0; } in pte_none()
54 static inline bool pte_hashpte(pte_t pte) { return false; } in pte_hashpte()
55 static inline bool pte_ci(pte_t pte) { return pte_val(pte) & _PAGE_NO_CACHE; } in pte_ci()
56 static inline bool pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec()
64 static inline int pte_protnone(pte_t pte) in pte_protnone()
75 static inline int pte_present(pte_t pte) in pte_present()
[all …]
/arch/mips/include/asm/
Dpgtable.h132 # define pte_none(pte) (!(((pte).pte_high) & ~_PAGE_GLOBAL)) argument
134 # define pte_none(pte) (!(((pte).pte_low | (pte).pte_high) & ~_PAGE_GLOBAL)) argument
137 #define pte_present(pte) ((pte).pte_low & _PAGE_PRESENT) argument
138 #define pte_no_exec(pte) ((pte).pte_low & _PAGE_NO_EXEC) argument
140 static inline void set_pte(pte_t *ptep, pte_t pte)
183 #define pte_none(pte) (!(pte_val(pte) & ~_PAGE_GLOBAL)) argument
184 #define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT) argument
185 #define pte_no_exec(pte) (pte_val(pte) & _PAGE_NO_EXEC) argument
270 static inline int pte_special(pte_t pte)
275 static inline pte_t pte_mkspecial(pte_t pte)
[all …]
/arch/m68k/include/asm/
Dmcf_pgtable.h161 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify()
174 #define __pte_page(pte) ((unsigned long) (pte_val(pte) & PAGE_MASK)) argument
177 static inline int pte_none(pte_t pte) in pte_none()
182 static inline int pte_present(pte_t pte) in pte_present()
193 #define pte_pagenr(pte) ((__pte_page(pte) - PAGE_OFFSET) >> PAGE_SHIFT) argument
194 #define pte_page(pte) virt_to_page(__pte_page(pte)) argument
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()
[all …]
Dsun3_pgtable.h105 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()
162 static inline pte_t pte_wrprotect(pte_t pte) { pte_val(pte) &= ~SUN3_PAGE_WRITEABLE; return pte; } in pte_wrprotect()
[all …]
Dmotorola_pgtable.h116 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()
178 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young()
180 static inline pte_t pte_wrprotect(pte_t pte) { pte_val(pte) |= _PAGE_RONLY; return pte; } in pte_wrprotect()
[all …]
/arch/arm/include/asm/
Dpgtable.h61 #define pte_ERROR(pte) __pte_error(__FILE__, __LINE__, pte) argument
183 #define pte_pfn(pte) ((pte_val(pte) & PHYS_MASK) >> PAGE_SHIFT) argument
186 #define pte_page(pte) pfn_to_page(pte_pfn(pte)) argument
191 #define pte_isset(pte, val) ((u32)(val) == (val) ? pte_val(pte) & (val) \ argument
193 #define pte_isclear(pte, val) (!(pte_val(pte) & (val))) argument
195 #define pte_none(pte) (!pte_val(pte)) argument
196 #define pte_present(pte) (pte_isset((pte), L_PTE_PRESENT)) argument
197 #define pte_valid(pte) (pte_isset((pte), L_PTE_VALID)) argument
198 #define pte_accessible(mm, pte) (mm_tlb_flush_pending(mm) ? pte_present(pte) : pte_valid(pte)) argument
199 #define pte_write(pte) (pte_isclear((pte), L_PTE_RDONLY)) argument
[all …]
Dpgalloc.h41 #define pud_populate(mm,pmd,pte) do { } while (0) argument
43 #define pud_populate(mm,pmd,pte) BUG() argument
50 static inline void clean_pte_table(pte_t *pte) in clean_pte_table()
80 pte_t *pte = __pte_alloc_one_kernel(mm); in pte_alloc_one_kernel() local
97 struct page *pte; in pte_alloc_one() local
107 static inline void __pmd_populate(pmd_t *pmdp, phys_addr_t pte, in __pmd_populate()
/arch/hexagon/include/asm/
Dpgtable.h160 #define pte_mkhuge(pte) __pte((pte_val(pte) & ~0x3) | HVM_HUGEPAGE_SIZE) argument
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()
281 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean()
288 static inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty()
295 static inline int pte_young(pte_t pte) in pte_young()
301 static inline int pte_dirty(pte_t pte) in pte_dirty()
[all …]
/arch/s390/include/asm/
Dhugetlb.h63 pte_t pte, int dirty) in huge_ptep_set_access_flags()
76 pte_t pte = huge_ptep_get_and_clear(mm, addr, ptep); in huge_ptep_set_wrprotect() local
85 static inline int huge_pte_none(pte_t pte) in huge_pte_none()
90 static inline int huge_pte_write(pte_t pte) in huge_pte_write()
95 static inline int huge_pte_dirty(pte_t pte) in huge_pte_dirty()
100 static inline pte_t huge_pte_mkwrite(pte_t pte) in huge_pte_mkwrite()
105 static inline pte_t huge_pte_mkdirty(pte_t pte) in huge_pte_mkdirty()
110 static inline pte_t huge_pte_wrprotect(pte_t pte) in huge_pte_wrprotect()
115 static inline pte_t huge_pte_modify(pte_t pte, pgprot_t newprot) in huge_pte_modify()
/arch/powerpc/include/asm/book3s/32/
Dpgtable.h56 static inline bool pte_user(pte_t pte) in pte_user()
387 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) >> 3 }) argument
391 static inline int pte_write(pte_t pte) { return !!(pte_val(pte) & _PAGE_RW);} in pte_write()
392 static inline int pte_read(pte_t pte) { return 1; } in pte_read()
393 static inline int pte_dirty(pte_t pte) { return !!(pte_val(pte) & _PAGE_DIRTY); } in pte_dirty()
394 static inline int pte_young(pte_t pte) { return !!(pte_val(pte) & _PAGE_ACCESSED); } in pte_young()
395 static inline int pte_special(pte_t pte) { return !!(pte_val(pte) & _PAGE_SPECIAL); } in pte_special()
396 static inline int pte_none(pte_t pte) { return (pte_val(pte) & ~_PTE_NONE_MASK) == 0; } in pte_none()
397 static inline bool pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec()
399 static inline int pte_present(pte_t pte) in pte_present()
[all …]
/arch/microblaze/include/asm/
Dpgtable.h235 #define pte_none(pte) ((pte_val(pte) & ~_PTE_NONE_MASK) == 0) argument
236 #define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT) argument
259 static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_USER; } in pte_read()
260 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_RW; } in pte_write()
261 static inline int pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec()
262 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty()
263 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young()
265 static inline void pte_uncache(pte_t pte) { pte_val(pte) |= _PAGE_NO_CACHE; } in pte_uncache()
266 static inline void pte_cache(pte_t pte) { pte_val(pte) &= ~_PAGE_NO_CACHE; } in pte_cache()
268 static inline pte_t pte_rdprotect(pte_t pte) \ in pte_rdprotect()
[all …]
/arch/um/include/asm/
Dpgtable.h124 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()
176 static inline pte_t pte_mknewprot(pte_t pte) in pte_mknewprot()
182 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean()
[all …]
Dpgalloc.h15 #define pmd_populate_kernel(mm, pmd, pte) \ argument
18 #define pmd_populate(mm, pmd, pte) \ argument
28 #define __pte_free_tlb(tlb,pte, address) \ argument
/arch/openrisc/include/asm/
Dpgtable.h232 static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_READ; } in pte_read()
233 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write()
234 static inline int pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec()
235 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty()
236 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young()
238 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect()
244 static inline pte_t pte_rdprotect(pte_t pte) in pte_rdprotect()
250 static inline pte_t pte_exprotect(pte_t pte) in pte_exprotect()
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()
[all …]
Dpgalloc.h28 #define pmd_populate_kernel(mm, pmd, pte) \ argument
32 struct page *pte) in pmd_populate()
69 #define __pte_free_tlb(tlb, pte, addr) \ argument
/arch/nios2/include/asm/
Dpgtable.h103 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 …]
Dpgalloc.h18 pte_t *pte) in pmd_populate_kernel()
24 pgtable_t pte) in pmd_populate()
36 #define __pte_free_tlb(tlb, pte, addr) \ argument
/arch/sparc/include/asm/
Dpgtable_64.h248 pte_t pte = pfn_pte(page_nr, pgprot); in pfn_pmd() local
256 static inline unsigned long pte_pfn(pte_t pte) in pte_pfn()
277 static inline pte_t pte_modify(pte_t pte, pgprot_t prot) in pte_modify()
338 pte_t pte = __pte(pmd_val(pmd)); in pmd_modify() local
397 static inline pte_t pte_mkhuge(pte_t pte) in pte_mkhuge()
402 static inline bool is_default_hugetlb_pte(pte_t pte) in is_default_hugetlb_pte()
422 pte_t pte = __pte(pmd_val(pmd)); in pmd_mkhuge() local
431 static inline bool is_hugetlb_pte(pte_t pte) in is_hugetlb_pte()
437 static inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty()
461 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean()
[all …]
/arch/powerpc/kvm/
Dbook3s_mmu_hpte.c56 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 …]
/arch/csky/include/asm/
Dpgtable.h36 #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
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()
[all …]
Dpgalloc.h14 pte_t *pte) in pmd_populate_kernel()
20 pgtable_t pte) in pmd_populate()
29 pte_t *pte; in pte_alloc_one_kernel() local
64 #define __pte_free_tlb(tlb, pte, address) \ argument
/arch/powerpc/mm/
Dpgtable.c49 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()
239 pte_t pte, int dirty) in huge_ptep_set_access_flags()
279 void set_huge_pte_at(struct mm_struct *mm, unsigned long addr, pte_t *ptep, pte_t pte) in set_huge_pte_at()
/arch/xtensa/include/asm/
Dpgtable.h249 # define pte_none(pte) (pte_val(pte) == (_PAGE_CA_INVALID | _PAGE_USER)) argument
251 # define pte_present(pte) ((pte_val(pte) & _PAGE_CA_MASK) != _PAGE_CA_INVALID) argument
253 # define pte_present(pte) \ argument
265 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITABLE; } in pte_write()
266 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty()
267 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young()
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()
[all …]
/arch/powerpc/include/asm/nohash/32/
Dpte-8xx.h90 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect()
97 static inline int pte_read(pte_t pte) in pte_read()
104 static inline int pte_write(pte_t pte) in pte_write()
111 static inline pte_t pte_mkwrite(pte_t pte) in pte_mkwrite()
118 static inline bool pte_user(pte_t pte) in pte_user()
125 static inline pte_t pte_mkprivileged(pte_t pte) in pte_mkprivileged()
132 static inline pte_t pte_mkuser(pte_t pte) in pte_mkuser()
139 static inline pte_t pte_mkhuge(pte_t pte) in pte_mkhuge()
177 static inline unsigned long pte_leaf_size(pte_t pte) in pte_leaf_size()
/arch/powerpc/include/asm/book3s/64/
Dpgtable.h361 #define pte_pagesize_index(mm, addr, pte) MMU_PAGE_4K argument
419 static inline int __pte_write(pte_t pte) in __pte_write()
426 static inline bool pte_savedwrite(pte_t pte) in pte_savedwrite()
439 static inline bool pte_savedwrite(pte_t pte) in pte_savedwrite()
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()
519 static inline int pte_special(pte_t pte) in pte_special()
524 static inline bool pte_exec(pte_t pte) in pte_exec()
[all …]

12345678910>>...13