Home
last modified time | relevance | path

Searched refs:pud_t (Results 1 – 25 of 229) sorted by relevance

12345678910

/linux-6.6.21/arch/riscv/include/asm/
Dpgtable-64.h58 } pud_t; typedef
61 #define __pud(x) ((pud_t) { (x) })
62 #define PTRS_PER_PUD (PAGE_SIZE / sizeof(pud_t))
173 static inline int pud_present(pud_t pud) in pud_present()
178 static inline int pud_none(pud_t pud) in pud_none()
183 static inline int pud_bad(pud_t pud) in pud_bad()
189 static inline int pud_leaf(pud_t pud) in pud_leaf()
194 static inline int pud_user(pud_t pud) in pud_user()
199 static inline void set_pud(pud_t *pudp, pud_t pud) in set_pud()
204 static inline void pud_clear(pud_t *pudp) in pud_clear()
[all …]
/linux-6.6.21/include/asm-generic/
Dpgtable-nopud.h16 typedef struct { p4d_t p4d; } pud_t; typedef
40 #define set_p4d(p4dptr, p4dval) set_pud((pud_t *)(p4dptr), (pud_t) { p4dval })
42 static inline pud_t *pud_offset(p4d_t *p4d, unsigned long address) in pud_offset()
44 return (pud_t *)p4d; in pud_offset()
49 #define __pud(x) ((pud_t) { __p4d(x) })
51 #define p4d_page(p4d) (pud_page((pud_t){ p4d }))
52 #define p4d_pgtable(p4d) ((pud_t *)(pud_pgtable((pud_t){ p4d })))
Dpgtable-nopmd.h18 typedef struct { pud_t pud; } pmd_t;
30 static inline int pud_none(pud_t pud) { return 0; } in pud_none()
31 static inline int pud_bad(pud_t pud) { return 0; } in pud_bad()
32 static inline int pud_present(pud_t pud) { return 1; } in pud_present()
33 static inline int pud_user(pud_t pud) { return 0; } in pud_user()
34 static inline int pud_leaf(pud_t pud) { return 0; } in pud_leaf()
35 static inline void pud_clear(pud_t *pud) { } in pud_clear()
46 static inline pmd_t * pmd_offset(pud_t * pud, unsigned long address) in pmd_offset()
/linux-6.6.21/arch/x86/include/asm/
Dpgtable.h162 static inline bool pud_dirty(pud_t pud) in pud_dirty()
167 static inline int pud_young(pud_t pud) in pud_young()
192 static inline int pud_write(pud_t pud) in pud_write()
237 static inline unsigned long pud_pfn(pud_t pud) in pud_pfn()
277 static inline int pud_trans_huge(pud_t pud) in pud_trans_huge()
296 static inline int pud_devmap(pud_t pud) in pud_devmap()
301 static inline int pud_devmap(pud_t pud) in pud_devmap()
601 static inline pud_t pud_set_flags(pud_t pud, pudval_t set) in pud_set_flags()
608 static inline pud_t pud_clear_flags(pud_t pud, pudval_t clear) in pud_clear_flags()
616 static inline pud_t pud_mksaveddirty(pud_t pud) in pud_mksaveddirty()
[all …]
Dpgtable_64.h21 extern pud_t level3_kernel_pgt[512];
22 extern pud_t level3_ident_pgt[512];
63 void set_pte_vaddr_pud(pud_t *pud_page, unsigned long vaddr, pte_t new_pte);
117 static inline void native_set_pud(pud_t *pudp, pud_t pud) in native_set_pud()
122 static inline void native_pud_clear(pud_t *pud) in native_pud_clear()
127 static inline pud_t native_pudp_get_and_clear(pud_t *xp) in native_pudp_get_and_clear()
135 pud_t ret = *xp; in native_pudp_get_and_clear()
Dpgtable-2level.h25 static inline void native_set_pud(pud_t *pudp, pud_t pud) in native_set_pud()
39 static inline void native_pud_clear(pud_t *pudp) in native_pud_clear()
68 static inline pud_t native_pudp_get_and_clear(pud_t *xp) in native_pudp_get_and_clear()
Dpgalloc.h97 extern void pud_populate(struct mm_struct *mm, pud_t *pudp, pmd_t *pmd);
99 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate()
105 static inline void pud_populate_safe(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate_safe()
113 static inline void p4d_populate(struct mm_struct *mm, p4d_t *p4d, pud_t *pud) in p4d_populate()
119 static inline void p4d_populate_safe(struct mm_struct *mm, p4d_t *p4d, pud_t *pud) in p4d_populate_safe()
125 extern void ___pud_free_tlb(struct mmu_gather *tlb, pud_t *pud);
127 static inline void __pud_free_tlb(struct mmu_gather *tlb, pud_t *pud, in __pud_free_tlb()
Dpgtable-3level.h53 static inline void native_set_pud(pud_t *pudp, pud_t pud) in native_set_pud()
81 static inline void native_pud_clear(pud_t *pudp) in native_pud_clear()
85 static inline void pud_clear(pud_t *pudp) in pud_clear()
113 static inline pud_t native_pudp_get_and_clear(pud_t *pudp) in native_pudp_get_and_clear()
/linux-6.6.21/include/linux/
Dpage_table_check.h19 void __page_table_check_pud_clear(struct mm_struct *mm, pud_t pud);
23 void __page_table_check_pud_set(struct mm_struct *mm, pud_t *pudp, pud_t pud);
60 static inline void page_table_check_pud_clear(struct mm_struct *mm, pud_t pud) in page_table_check_pud_clear()
86 static inline void page_table_check_pud_set(struct mm_struct *mm, pud_t *pudp, in page_table_check_pud_set()
87 pud_t pud) in page_table_check_pud_set()
123 static inline void page_table_check_pud_clear(struct mm_struct *mm, pud_t pud) in page_table_check_pud_clear()
137 static inline void page_table_check_pud_set(struct mm_struct *mm, pud_t *pudp, in page_table_check_pud_set()
138 pud_t pud) in page_table_check_pud_set()
Dhuge_mm.h16 pud_t *dst_pud, pud_t *src_pud, unsigned long addr,
20 void huge_pud_set_accessed(struct vm_fault *vmf, pud_t orig_pud);
22 static inline void huge_pud_set_accessed(struct vm_fault *vmf, pud_t orig_pud) in huge_pud_set_accessed()
32 int zap_huge_pud(struct mmu_gather *tlb, struct vm_area_struct *vma, pud_t *pud,
168 void __split_huge_pud(struct vm_area_struct *vma, pud_t *pud,
173 pud_t *____pud = (__pud); \
187 spinlock_t *__pud_trans_huge_lock(pud_t *pud, struct vm_area_struct *vma);
203 static inline spinlock_t *pud_trans_huge_lock(pud_t *pud, in pud_trans_huge_lock()
224 pud_t *pud, int flags, struct dev_pagemap **pgmap);
241 static inline bool is_huge_zero_pud(pud_t pud) in is_huge_zero_pud()
[all …]
Dpgtable.h121 static inline pmd_t *pmd_offset(pud_t *pud, unsigned long address) in pmd_offset()
129 static inline pud_t *pud_offset(p4d_t *p4d, unsigned long address) in pud_offset()
261 unsigned long address, pud_t *pudp,
262 pud_t entry, int dirty);
272 unsigned long address, pud_t *pudp, in pudp_set_access_flags()
273 pud_t entry, int dirty) in pudp_set_access_flags()
512 static inline pud_t pudp_huge_get_and_clear(struct mm_struct *mm, in pudp_huge_get_and_clear()
514 pud_t *pudp) in pudp_huge_get_and_clear()
516 pud_t pud = *pudp; in pudp_huge_get_and_clear()
537 static inline pud_t pudp_huge_get_and_clear_full(struct vm_area_struct *vma, in pudp_huge_get_and_clear_full()
[all …]
/linux-6.6.21/arch/powerpc/include/asm/book3s/64/
Dradix.h138 #define RADIX_PUD_TABLE_SIZE (sizeof(pud_t) << RADIX_PUD_INDEX_SIZE)
248 static inline int radix__pud_bad(pud_t pud) in radix__pud_bad()
253 static inline int radix__pud_same(pud_t pud_a, pud_t pud_b) in radix__pud_same()
275 static inline int radix__pud_trans_huge(pud_t pud) in radix__pud_trans_huge()
280 static inline pud_t radix__pud_mkhuge(pud_t pud) in radix__pud_mkhuge()
289 pud_t *pudp, unsigned long clr,
298 pud_t radix__pudp_huge_get_and_clear(struct mm_struct *mm,
299 unsigned long addr, pud_t *pudp);
323 static inline pud_t radix__pud_mkdevmap(pud_t pud) in radix__pud_mkdevmap()
Dpgtable.h887 static inline void pud_clear(pud_t *pudp) in pud_clear()
899 static inline int pud_none(pud_t pud) in pud_none()
904 static inline int pud_present(pud_t pud) in pud_present()
909 extern struct page *pud_page(pud_t pud);
911 static inline pte_t pud_pte(pud_t pud) in pud_pte()
916 static inline pud_t pte_pud(pte_t pte) in pte_pud()
921 static inline pte_t *pudp_ptep(pud_t *pud) in pudp_ptep()
943 static inline int pud_bad(pud_t pud) in pud_bad()
951 static inline bool pud_access_permitted(pud_t pud, bool write) in pud_access_permitted()
1007 static inline pud_t *p4d_pgtable(p4d_t p4d) in p4d_pgtable()
[all …]
Dpgalloc.h88 static inline void p4d_populate(struct mm_struct *mm, p4d_t *pgd, pud_t *pud) in p4d_populate()
93 static inline pud_t *pud_alloc_one(struct mm_struct *mm, unsigned long addr) in pud_alloc_one()
95 pud_t *pud; in pud_alloc_one()
110 static inline void __pud_free(pud_t *pud) in __pud_free()
126 static inline void pud_free(struct mm_struct *mm, pud_t *pud) in pud_free()
131 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate()
136 static inline void __pud_free_tlb(struct mmu_gather *tlb, pud_t *pud, in __pud_free_tlb()
/linux-6.6.21/arch/mips/include/asm/
Dpgtable-64.h127 #define PTRS_PER_PUD ((PAGE_SIZE << PUD_TABLE_ORDER) / sizeof(pud_t))
175 typedef struct { unsigned long pud; } pud_t; typedef
177 #define __pud(x) ((pud_t) { (x) })
179 extern pud_t invalid_pud_table[PTRS_PER_PUD];
207 static inline pud_t *p4d_pgtable(p4d_t p4d) in p4d_pgtable()
209 return (pud_t *)p4d_val(p4d); in p4d_pgtable()
278 static inline int pud_none(pud_t pud) in pud_none()
283 static inline int pud_bad(pud_t pud) in pud_bad()
288 static inline int pud_present(pud_t pud) in pud_present()
293 static inline void pud_clear(pud_t *pudp) in pud_clear()
[all …]
Dpgalloc.h40 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate()
90 static inline pud_t *pud_alloc_one(struct mm_struct *mm, unsigned long address) in pud_alloc_one()
92 pud_t *pud; in pud_alloc_one()
104 static inline void p4d_populate(struct mm_struct *mm, p4d_t *p4d, pud_t *pud) in p4d_populate()
/linux-6.6.21/arch/arm/include/asm/
Dpgtable-2level.h185 static inline int pud_none(pud_t pud) in pud_none()
190 static inline int pud_bad(pud_t pud) in pud_bad()
195 static inline int pud_present(pud_t pud) in pud_present()
200 static inline void pud_clear(pud_t *pudp) in pud_clear()
204 static inline void set_pud(pud_t *pudp, pud_t pud) in set_pud()
208 static inline pmd_t *pmd_offset(pud_t *pud, unsigned long addr) in pmd_offset()
/linux-6.6.21/mm/kasan/
Dinit.c44 pud_t kasan_early_shadow_pud[MAX_PTRS_PER_PUD] __page_aligned_bss;
57 static inline bool kasan_pmd_table(pud_t pud) in kasan_pmd_table()
62 static inline bool kasan_pmd_table(pud_t pud) in kasan_pmd_table()
109 static int __ref zero_pmd_populate(pud_t *pud, unsigned long addr, in zero_pmd_populate()
149 pud_t *pud = pud_offset(p4d, addr); in zero_pud_populate()
197 pud_t *pud; in zero_p4d_populate()
212 pud_t *p; in zero_p4d_populate()
249 pud_t *pud; in kasan_populate_early_shadow()
307 static void kasan_free_pmd(pmd_t *pmd_start, pud_t *pud) in kasan_free_pmd()
322 static void kasan_free_pud(pud_t *pud_start, p4d_t *p4d) in kasan_free_pud()
[all …]
/linux-6.6.21/arch/powerpc/include/asm/
Dpgtable-be-types.h37 typedef struct { __be64 pud; } pud_t; typedef
38 #define __pud(x) ((pud_t) { cpu_to_be64(x) })
39 #define __pud_raw(x) ((pud_t) { (x) })
40 static inline unsigned long pud_val(pud_t x) in pud_val()
45 static inline __be64 pud_raw(pud_t x) in pud_raw()
/linux-6.6.21/arch/s390/include/asm/
Dpgtable.h557 static inline pud_t clear_pud_bit(pud_t pud, pgprot_t prot) in clear_pud_bit()
562 static inline pud_t set_pud_bit(pud_t pud, pgprot_t prot) in set_pud_bit()
688 static inline int pud_folded(pud_t pud) in pud_folded()
693 static inline int pud_present(pud_t pud) in pud_present()
700 static inline int pud_none(pud_t pud) in pud_none()
708 static inline int pud_large(pud_t pud) in pud_large()
728 static inline int pud_bad(pud_t pud) in pud_bad()
767 static inline int pud_write(pud_t pud) in pud_write()
932 static inline void set_pud(pud_t *pudp, pud_t pud) in set_pud()
959 static inline void pud_clear(pud_t *pud) in pud_clear()
[all …]
/linux-6.6.21/arch/x86/mm/
Dident_map.c21 static int ident_pud_init(struct x86_mapping_info *info, pud_t *pud_page, in ident_pud_init()
27 pud_t *pud = pud_page + pud_index(addr); in ident_pud_init()
52 pud_t pudval; in ident_pud_init()
82 pud_t *pud; in ident_p4d_init()
96 pud = (pud_t *)info->alloc_pgt_page(info->context); in ident_p4d_init()
154 pud_t *pud = pud_offset(p4d, 0); in kernel_ident_mapping_init()
/linux-6.6.21/arch/powerpc/include/asm/nohash/64/
Dpgalloc.h18 static inline void p4d_populate(struct mm_struct *mm, p4d_t *p4d, pud_t *pud) in p4d_populate()
23 static inline pud_t *pud_alloc_one(struct mm_struct *mm, unsigned long addr) in pud_alloc_one()
29 static inline void pud_free(struct mm_struct *mm, pud_t *pud) in pud_free()
34 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate()
/linux-6.6.21/arch/loongarch/include/asm/
Dpgalloc.h28 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate()
36 static inline void p4d_populate(struct mm_struct *mm, p4d_t *p4d, pud_t *pud) in p4d_populate()
80 static inline pud_t *pud_alloc_one(struct mm_struct *mm, unsigned long address) in pud_alloc_one()
82 pud_t *pud; in pud_alloc_one()
/linux-6.6.21/arch/riscv/mm/
Dpgtable.c18 int pud_set_huge(pud_t *pud, phys_addr_t phys, pgprot_t prot) in pud_set_huge()
20 pud_t new_pud = pfn_pud(__phys_to_pfn(phys), prot); in pud_set_huge()
26 int pud_clear_huge(pud_t *pud) in pud_clear_huge()
34 int pud_free_pmd_page(pud_t *pud, unsigned long addr) in pud_free_pmd_page()
/linux-6.6.21/arch/arm64/include/asm/
Dpgalloc.h23 static inline void __pud_populate(pud_t *pudp, phys_addr_t pmdp, pudval_t prot) in __pud_populate()
28 static inline void pud_populate(struct mm_struct *mm, pud_t *pudp, pmd_t *pmdp) in pud_populate()
36 static inline void __pud_populate(pud_t *pudp, phys_addr_t pmdp, pudval_t prot) in __pud_populate()
49 static inline void p4d_populate(struct mm_struct *mm, p4d_t *p4dp, pud_t *pudp) in p4d_populate()

12345678910