Home
last modified time | relevance | path

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

123456789

/linux/arch/powerpc/include/asm/nohash/
H A Dpgtable.h37 static inline unsigned long pte_huge_size(pte_t pte) in pte_huge_size()
159 static inline pte_t pte_mkwrite_novma(pte_t pte) in pte_mkwrite_novma()
168 static inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty()
173 static inline pte_t pte_mkyoung(pte_t pte) in pte_mkyoung()
179 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect()
186 static inline pte_t pte_mkexec(pte_t pte) in pte_mkexec()
193 static inline int pte_write(pte_t pte) in pte_write()
198 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty()
199 static inline int pte_special(pte_t pte) { return pte_val(pte) & _PAGE_SPECIAL; } in pte_special()
200 static inline int pte_none(pte_t pte) { return (pte_val(pte) & ~_PTE_NONE_MASK) == 0; } in pte_none()
[all …]
/linux/arch/m68k/include/asm/
H A Dmcf_pgtable.h99 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify()
112 #define __pte_page(pte) ((void *) (pte_val(pte) & PAGE_MASK)) argument
115 static inline int pte_none(pte_t pte) in pte_none()
120 static inline int pte_present(pte_t pte) in pte_present()
131 #define pte_page(pte) virt_to_page(__pte_page(pte)) argument
152 static inline int pte_read(pte_t pte) in pte_read()
157 static inline int pte_write(pte_t pte) in pte_write()
162 static inline int pte_exec(pte_t pte) in pte_exec()
167 static inline int pte_dirty(pte_t pte) in pte_dirty()
172 static inline int pte_young(pte_t pte) in pte_young()
[all …]
H A Dsun3_pgtable.h79 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify()
87 #define __pte_page(pte) \ argument
95 static inline int pte_none (pte_t pte) { return !pte_val (pte); } in pte_none()
96 static inline int pte_present (pte_t pte) { return pte_val (pte) & SUN3_PAGE_VALID; } in pte_present()
103 #define pte_pfn(pte) (pte_val(pte) & SUN3_PAGE_PGNUM_MASK) argument
107 #define pte_page(pte) virt_to_page(__pte_page(pte)) argument
134 static inline int pte_write(pte_t pte) { return pte_val(pte) & SUN3_PAGE_WRITEABLE; } in pte_write()
135 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & SUN3_PAGE_MODIFIED; } in pte_dirty()
136 static inline int pte_young(pte_t pte) { return pte_val(pte) & SUN3_PAGE_ACCESSED; } in pte_young()
138 static inline pte_t pte_wrprotect(pte_t pte) { pte_val(pte) &= ~SUN3_PAGE_WRITEABLE; return pte; } in pte_wrprotect()
[all …]
H A Dmotorola_pgtable.h84 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify()
100 #define __pte_page(pte) ((unsigned long)__va(pte_val(pte) & PAGE_MASK)) argument
105 #define pte_none(pte) (!pte_val(pte)) argument
106 #define pte_present(pte) (pte_val(pte) & (_PAGE_PRESENT | _PAGE_PROTNONE)) argument
110 #define pte_page(pte) virt_to_page(__va(pte_val(pte))) argument
111 #define pte_pfn(pte) (pte_val(pte) >> PAGE_SHIFT) argument
146 static inline int pte_write(pte_t pte) { return !(pte_val(pte) & _PAGE_RONLY); } in pte_write()
147 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty()
148 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young()
150 static inline pte_t pte_wrprotect(pte_t pte) { pte_val(pte) |= _PAGE_RONLY; return pte; } in pte_wrprotect()
[all …]
H A Dmcf_pgalloc.h8 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel()
35 #define pmd_populate(mm, pmd, pte) (pmd_val(*pmd) = (unsigned long)(pte)) argument
51 pte_t *pte; in pte_alloc_one() local
/linux/arch/powerpc/include/asm/book3s/32/
H A Dpgtable.h366 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) >> 3 }) argument
369 static inline bool pte_swp_exclusive(pte_t pte) in pte_swp_exclusive()
374 static inline pte_t pte_swp_mkexclusive(pte_t pte) in pte_swp_mkexclusive()
379 static inline pte_t pte_swp_clear_exclusive(pte_t pte) in pte_swp_clear_exclusive()
385 static inline bool pte_read(pte_t pte) in pte_read()
390 static inline bool pte_write(pte_t pte) in pte_write()
395 static inline int pte_dirty(pte_t pte) { return !!(pte_val(pte) & _PAGE_DIRTY); } in pte_dirty()
396 static inline int pte_young(pte_t pte) { return !!(pte_val(pte) & _PAGE_ACCESSED); } in pte_young()
397 static inline int pte_special(pte_t pte) { return !!(pte_val(pte) & _PAGE_SPECIAL); } in pte_special()
398 static inline int pte_none(pte_t pte) { return (pte_val(pte) & ~_PTE_NONE_MASK) == 0; } in pte_none()
[all …]
/linux/arch/parisc/include/asm/
H A Dpgtable.h304 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty()
305 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young()
306 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write()
307 static inline int pte_special(pte_t pte) { return pte_val(pte) & _PAGE_SPECIAL; } in pte_special()
309 static inline pte_t pte_mkclean(pte_t pte) { pte_val(pte) &= ~_PAGE_DIRTY; return pte; } in pte_mkclean()
310 static inline pte_t pte_mkold(pte_t pte) { pte_val(pte) &= ~_PAGE_ACCESSED; return pte; } in pte_mkold()
311 static inline pte_t pte_wrprotect(pte_t pte) { pte_val(pte) &= ~_PAGE_WRITE; return pte; } in pte_wrprotect()
312 static inline pte_t pte_mkdirty(pte_t pte) { pte_val(pte) |= _PAGE_DIRTY; return pte; } in pte_mkdirty()
313 static inline pte_t pte_mkyoung(pte_t pte) { pte_val(pte) |= _PAGE_ACCESSED; return pte; } in pte_mkyoung()
314 static inline pte_t pte_mkwrite_novma(pte_t pte) { pte_val(pte) |= _PAGE_WRITE; return pte; } in pte_mkwrite_novma()
[all …]
/linux/arch/loongarch/include/asm/
H A Dpgtable.h336 pte_t pte; in mk_swap_pte() local
347 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) argument
350 static inline bool pte_swp_exclusive(pte_t pte) in pte_swp_exclusive()
355 static inline pte_t pte_swp_mkexclusive(pte_t pte) in pte_swp_mkexclusive()
361 static inline pte_t pte_swp_clear_exclusive(pte_t pte) in pte_swp_clear_exclusive()
367 #define pte_none(pte) (!(pte_val(pte) & ~_PAGE_GLOBAL)) argument
368 #define pte_present(pte) (pte_val(pte) & (_PAGE_PRESENT | _PAGE_PROTNONE)) argument
369 #define pte_no_exec(pte) (pte_val(pte) & _PAGE_NO_EXEC) argument
383 pte_t pte = ptep_get(ptep); in pte_clear() local
399 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write()
[all …]
/linux/arch/arc/include/asm/
H A Dpgtable-bits-arcv2.h80 #define pte_write(pte) (pte_val(pte) & _PAGE_WRITE) argument
81 #define pte_dirty(pte) (pte_val(pte) & _PAGE_DIRTY) argument
82 #define pte_young(pte) (pte_val(pte) & _PAGE_ACCESSED) argument
83 #define pte_special(pte) (pte_val(pte) & _PAGE_SPECIAL) argument
98 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify()
130 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) argument
133 static inline bool pte_swp_exclusive(pte_t pte) in pte_swp_exclusive()
/linux/arch/arm/include/asm/
H A 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()
/linux/arch/csky/include/asm/
H A 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
/linux/drivers/iommu/
H A Dio-pgtable-dart.c67 #define iopte_deref(pte, d) __va(iopte_to_paddr(pte, d)) argument
85 dart_iopte pte; in paddr_to_iopte() local
97 static phys_addr_t iopte_to_paddr(dart_iopte pte, in iopte_to_paddr()
118 dart_iopte pte = prot; in dart_init_pte() local
176 dart_iopte pte, *ptep; in dart_get_last() local
205 dart_iopte pte = 0; in dart_prot_to_pte() local
234 dart_iopte pte, *cptep, *ptep; in dart_map_pages() local
300 dart_iopte pte, *ptep; in dart_unmap_pages() local
340 dart_iopte pte, *ptep; in dart_iova_to_phys() local
460 dart_iopte pte = *ptep++; in apple_dart_free_pgtables() local
H A Dio-pgtable-arm-v7s.c83 #define ARM_V7S_PTE_IS_VALID(pte) (((pte) & 0x3) != 0) argument
84 #define ARM_V7S_PTE_IS_TABLE(pte, lvl) \ argument
184 static arm_v7s_iopte to_mtk_iopte(phys_addr_t paddr, arm_v7s_iopte pte) in to_mtk_iopte()
198 arm_v7s_iopte pte = paddr & ARM_V7S_LVL_MASK(lvl); in paddr_to_iopte() local
206 static phys_addr_t iopte_to_paddr(arm_v7s_iopte pte, int lvl, in iopte_to_paddr()
232 static arm_v7s_iopte *iopte_deref(arm_v7s_iopte pte, int lvl, in iopte_deref()
323 static void __arm_v7s_set_pte(arm_v7s_iopte *ptep, arm_v7s_iopte pte, in __arm_v7s_set_pte()
338 arm_v7s_iopte pte = ARM_V7S_ATTR_NG | ARM_V7S_ATTR_S; in arm_v7s_prot_to_pte() local
365 static arm_v7s_iopte arm_v7s_pte_to_cont(arm_v7s_iopte pte, int lvl) in arm_v7s_pte_to_cont()
381 static bool arm_v7s_pte_is_cont(arm_v7s_iopte pte, int lvl) in arm_v7s_pte_is_cont()
[all …]
/linux/arch/sh/include/asm/
H A Dpgtable_32.h300 static inline void set_pte(pte_t *ptep, pte_t pte) in set_pte()
339 #define pte_not_present(pte) (!((pte).pte_low & _PAGE_PRESENT)) argument
340 #define pte_dirty(pte) ((pte).pte_low & _PAGE_DIRTY) argument
341 #define pte_young(pte) ((pte).pte_low & _PAGE_ACCESSED) argument
342 #define pte_special(pte) ((pte).pte_low & _PAGE_SPECIAL) argument
345 #define pte_write(pte) \ argument
348 #define pte_write(pte) ((pte).pte_low & _PAGE_RW) argument
383 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify()
449 #define __pte_to_swp_entry(pte) ((swp_entry_t){ (pte).pte_high }) argument
466 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) >> 1 }) argument
[all …]
H A Dpgalloc.h24 pte_t *pte) in pmd_populate_kernel()
30 pgtable_t pte) in pmd_populate()
35 #define __pte_free_tlb(tlb, pte, addr) \ argument
/linux/arch/powerpc/include/asm/nohash/32/
H A Dpte-8xx.h87 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect()
94 static inline int pte_read(pte_t pte) in pte_read()
101 static inline int pte_write(pte_t pte) in pte_write()
108 static inline pte_t pte_mkwrite_novma(pte_t pte) in pte_mkwrite_novma()
115 static inline pte_t pte_mkhuge(pte_t pte) in pte_mkhuge()
144 static inline unsigned long __pte_leaf_size(pmd_t pmd, pte_t pte) in __pte_leaf_size()
232 pte_t pte = {val, val, val, val}; in ptep_get() local
/linux/arch/nios2/include/asm/
H A Dpgalloc.h18 pte_t *pte) in pmd_populate_kernel()
24 pgtable_t pte) in pmd_populate()
31 #define __pte_free_tlb(tlb, pte, addr) \ argument
/linux/arch/openrisc/include/asm/
H A Dpgalloc.h28 #define pmd_populate_kernel(mm, pmd, pte) \ argument
32 struct page *pte) in pmd_populate()
67 #define __pte_free_tlb(tlb, pte, addr) \ argument
/linux/arch/hexagon/include/asm/
H A Dpgalloc.h45 pgtable_t pte) in pmd_populate()
65 pte_t *pte) in pmd_populate_kernel()
90 #define __pte_free_tlb(tlb, pte, addr) \ argument
/linux/arch/sparc/include/asm/
H A Dpgalloc_32.h53 #define pmd_populate(mm, pmd, pte) pmd_set(pmd, pte) argument
67 static inline void free_pte_fast(pte_t *pte) in free_pte_fast()
72 #define pte_free_kernel(mm, pte) free_pte_fast(pte) argument
75 #define __pte_free_tlb(tlb, pte, addr) pte_free((tlb)->mm, pte) argument
/linux/arch/um/include/asm/
H A 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
/linux/arch/x86/mm/
H A Dkmmio.c83 pte_t *pte = lookup_address(addr, &l); in kmmio_page_list() local
120 pte_t *pte = lookup_address(addr, &l); in get_kmmio_fault_page() local
147 static void clear_pte_presence(pte_t *pte, bool clear, pteval_t *old) in clear_pte_presence()
163 pte_t *pte = lookup_address(f->addr, &level); in clear_page_presence() local
243 pte_t *pte = lookup_address(addr, &l); in kmmio_handler() local
444 pte_t *pte; in register_kmmio_probe() local
545 pte_t *pte; in unregister_kmmio_probe() local
/linux/arch/arm64/mm/
H A Dhugetlbpage.c130 pte_t pte = __ptep_get(ptep); in huge_ptep_get() local
155 pte_t pte, tmp_pte; in get_clear_contig() local
216 pte_t *ptep, pte_t pte, unsigned long sz) in set_huge_pte_at()
400 static int __cont_access_flags_changed(pte_t *ptep, pte_t pte, int ncontig) in __cont_access_flags_changed()
422 pte_t pte, int dirty) in huge_ptep_set_access_flags()
458 pte_t pte; in huge_ptep_set_wrprotect() local
534 pte_t old_pte, pte_t pte) in huge_ptep_modify_prot_commit()
/linux/arch/powerpc/include/asm/
H A Dpgtable-types.h11 typedef struct { pte_basic_t pte, pte1, pte2, pte3; } pte_t; member
13 typedef struct { pte_basic_t pte; } pte_t; member
79 typedef struct { pte_t pte; unsigned long hidx; } real_pte_t; member
81 typedef struct { pte_t pte; } real_pte_t; member
/linux/arch/powerpc/kvm/
H A Dbook3s_64_mmu_radix.c149 u64 pte, base, gpa; in kvmppc_mmu_walk_radix_tree() local
273 u64 pte; in kvmppc_mmu_radix_xlate() local
382 pte_t *ptep, pte_t pte) in kvmppc_radix_set_pte_at()
392 pte_t *pte; in kvmppc_pte_alloc() local
423 void kvmppc_unmap_pte(struct kvm *kvm, pte_t *pte, unsigned long gpa, in kvmppc_unmap_pte()
476 static void kvmppc_unmap_free_pte(struct kvm *kvm, pte_t *pte, bool full, in kvmppc_unmap_free_pte()
516 pte_t *pte; in kvmppc_unmap_free_pmd() local
577 pte_t *pte = pte_offset_kernel(pmd, 0); in kvmppc_unmap_free_pmd_entry_table() local
615 int kvmppc_create_pte(struct kvm *kvm, pgd_t *pgtable, pte_t pte, in kvmppc_create_pte()
832 pte_t pte, *ptep; in kvmppc_book3s_instantiate_page() local
[all …]

123456789