Home
last modified time | relevance | path

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

12345678910

/linux-6.3-rc2/arch/riscv/include/asm/
A Dpgtable-64.h58 } pud_t; typedef
61 #define __pud(x) ((pud_t) { (x) })
139 static inline int pud_present(pud_t pud) in pud_present()
144 static inline int pud_none(pud_t pud) in pud_none()
149 static inline int pud_bad(pud_t pud) in pud_bad()
155 static inline int pud_leaf(pud_t pud) in pud_leaf()
160 static inline int pud_user(pud_t pud) in pud_user()
165 static inline void set_pud(pud_t *pudp, pud_t pud) in set_pud()
245 set_pud((pud_t *)p4dp, (pud_t){ p4d_val(p4d) }); in set_p4d()
293 return (pud_t *)pud_pgtable((pud_t) { p4d_val(p4d) }); in p4d_pgtable()
[all …]
/linux-6.3-rc2/include/asm-generic/
A 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 })))
A 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()
A Dpgalloc.h150 static inline pud_t *__pud_alloc_one(struct mm_struct *mm, unsigned long addr) in __pud_alloc_one()
156 return (pud_t *)get_zeroed_page(gfp); in __pud_alloc_one()
169 static inline pud_t *pud_alloc_one(struct mm_struct *mm, unsigned long addr) in pud_alloc_one()
175 static inline void __pud_free(struct mm_struct *mm, pud_t *pud) in __pud_free()
182 static inline void pud_free(struct mm_struct *mm, pud_t *pud) in pud_free()
/linux-6.3-rc2/arch/x86/include/asm/
A Dpgtable.h475 static inline pud_t pud_mkold(pud_t pud) in pud_mkold()
480 static inline pud_t pud_mkclean(pud_t pud) in pud_mkclean()
485 static inline pud_t pud_wrprotect(pud_t pud) in pud_wrprotect()
490 static inline pud_t pud_mkdirty(pud_t pud) in pud_mkdirty()
495 static inline pud_t pud_mkdevmap(pud_t pud) in pud_mkdevmap()
500 static inline pud_t pud_mkhuge(pud_t pud) in pud_mkhuge()
505 static inline pud_t pud_mkyoung(pud_t pud) in pud_mkyoung()
510 static inline pud_t pud_mkwrite(pud_t pud) in pud_mkwrite()
541 static inline pud_t pud_mksoft_dirty(pud_t pud) in pud_mksoft_dirty()
556 static inline pud_t pud_clear_soft_dirty(pud_t pud) in pud_clear_soft_dirty()
[all …]
A 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()
A 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()
A 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()
A 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.3-rc2/include/linux/
A Dpage_table_check.h22 pud_t pud);
28 pud_t *pudp, pud_t pud);
68 unsigned long addr, pud_t pud) in page_table_check_pud_clear()
97 unsigned long addr, pud_t *pudp, in page_table_check_pud_set()
98 pud_t pud) in page_table_check_pud_set()
137 unsigned long addr, pud_t pud) in page_table_check_pud_clear()
154 unsigned long addr, pud_t *pudp, in page_table_check_pud_set()
155 pud_t pud) in page_table_check_pud_set()
A Dpgtable.h187 unsigned long address, pud_t *pudp,
188 pud_t entry, int dirty);
199 pud_t entry, int dirty) in pudp_set_access_flags()
422 pud_t *pudp) in pudp_huge_get_and_clear()
424 pud_t pud = *pudp; in pudp_huge_get_and_clear()
507 pud_t *pudp);
556 pud_t old_pud = *pudp; in pudp_set_wrprotect()
685 static inline int pud_same(pud_t pud_a, pud_t pud_b) in pud_same()
869 void pud_clear_bad(pud_t *);
1297 pud_t pudval = READ_ONCE(*pud); in pud_none_or_trans_huge_or_dev_or_clear_bad()
[all …]
A 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()
208 void __split_huge_pud(struct vm_area_struct *vma, pud_t *pud,
213 pud_t *____pud = (__pud); \
243 static inline spinlock_t *pud_trans_huge_lock(pud_t *pud, in pud_trans_huge_lock()
264 pud_t *pud, int flags, struct dev_pagemap **pgmap);
281 static inline bool is_huge_zero_pud(pud_t pud) in is_huge_zero_pud()
383 static inline spinlock_t *pud_trans_huge_lock(pud_t *pud, in pud_trans_huge_lock()
404 static inline bool is_huge_zero_pud(pud_t pud) in is_huge_zero_pud()
[all …]
/linux-6.3-rc2/arch/mips/include/asm/
A 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 …]
A 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()
94 pud = (pud_t *) __get_free_pages(GFP_KERNEL, PUD_TABLE_ORDER); in pud_alloc_one()
100 static inline void p4d_populate(struct mm_struct *mm, p4d_t *p4d, pud_t *pud) in p4d_populate()
/linux-6.3-rc2/arch/arm/include/asm/
A 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.3-rc2/arch/powerpc/include/asm/book3s/64/
A 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.3-rc2/mm/kasan/
A Dinit.c57 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()
145 pud_t *pud = pud_offset(p4d, addr); in zero_pud_populate()
188 pud_t *pud; in zero_p4d_populate()
203 pud_t *p; in zero_p4d_populate()
239 pud_t *pud; in kasan_populate_early_shadow()
297 static void kasan_free_pmd(pmd_t *pmd_start, pud_t *pud) in kasan_free_pmd()
312 static void kasan_free_pud(pud_t *pud_start, p4d_t *p4d) in kasan_free_pud()
314 pud_t *pud; in kasan_free_pud()
323 pud_free(&init_mm, (pud_t *)page_to_virt(p4d_page(*p4d))); in kasan_free_pud()
[all …]
/linux-6.3-rc2/arch/loongarch/include/asm/
A 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()
84 pud = (pud_t *) __get_free_page(GFP_KERNEL); in pud_alloc_one()
/linux-6.3-rc2/arch/powerpc/include/asm/
A 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.3-rc2/arch/x86/mm/
A 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()
35 pud_t pudval; in ident_pud_init()
69 pud_t *pud; in ident_p4d_init()
83 pud = (pud_t *)info->alloc_pgt_page(info->context); in ident_p4d_init()
141 pud_t *pud = pud_offset(p4d, 0); in kernel_ident_mapping_init()
/linux-6.3-rc2/arch/s390/include/asm/
A Dpgtable.h561 static inline pud_t clear_pud_bit(pud_t pud, pgprot_t prot) in clear_pud_bit()
566 static inline pud_t set_pud_bit(pud_t pud, pgprot_t prot) in set_pud_bit()
732 static inline int pud_bad(pud_t pud) in pud_bad()
936 static inline void set_pud(pud_t *pudp, pud_t pud) in set_pud()
1439 return (pud_t *) p4dp; in pud_offset_lockless()
1449 static inline pmd_t *pmd_offset_lockless(pud_t *pudp, pud_t pud, unsigned long address) in pmd_offset_lockless()
1511 static inline pud_t pud_wrprotect(pud_t pud) in pud_wrprotect()
1517 static inline pud_t pud_mkwrite(pud_t pud) in pud_mkwrite()
1525 static inline pud_t pud_mkclean(pud_t pud) in pud_mkclean()
1531 static inline pud_t pud_mkdirty(pud_t pud) in pud_mkdirty()
[all …]
A Dpgalloc.h68 static inline pud_t *pud_alloc_one(struct mm_struct *mm, unsigned long address) in pud_alloc_one()
73 return (pud_t *) table; in pud_alloc_one()
76 static inline void pud_free(struct mm_struct *mm, pud_t *pud) in pud_free()
109 static inline void p4d_populate(struct mm_struct *mm, p4d_t *p4d, pud_t *pud) in p4d_populate()
114 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate()
/linux-6.3-rc2/arch/powerpc/include/asm/nohash/64/
A 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.3-rc2/arch/riscv/mm/
A 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.3-rc2/arch/arm64/include/asm/
A 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()

Completed in 53 milliseconds

12345678910