Home
last modified time | relevance | path

Searched refs:pud (Results 1 – 25 of 272) sorted by relevance

1234567891011

/linux-6.6.21/include/asm-generic/
Dpgtable-nopmd.h18 typedef struct { pud_t pud; } pmd_t; member
30 static inline int pud_none(pud_t pud) { return 0; } in pud_none() argument
31 static inline int pud_bad(pud_t pud) { return 0; } in pud_bad() argument
32 static inline int pud_present(pud_t pud) { return 1; } in pud_present() argument
33 static inline int pud_user(pud_t pud) { return 0; } in pud_user() argument
34 static inline int pud_leaf(pud_t pud) { return 0; } in pud_leaf() argument
35 static inline void pud_clear(pud_t *pud) { } in pud_clear() argument
36 #define pmd_ERROR(pmd) (pud_ERROR((pmd).pud))
46 static inline pmd_t * pmd_offset(pud_t * pud, unsigned long address) in pmd_offset() argument
48 return (pmd_t *)pud; in pmd_offset()
[all …]
/linux-6.6.21/arch/arm/boot/dts/samsung/
Ds3c64xx-pinctrl.dtsi137 samsung,pin-pud = <S3C64XX_PIN_PULL_NONE>;
143 samsung,pin-pud = <S3C64XX_PIN_PULL_NONE>;
149 samsung,pin-pud = <S3C64XX_PIN_PULL_NONE>;
155 samsung,pin-pud = <S3C64XX_PIN_PULL_NONE>;
161 samsung,pin-pud = <S3C64XX_PIN_PULL_NONE>;
167 samsung,pin-pud = <S3C64XX_PIN_PULL_NONE>;
173 samsung,pin-pud = <S3C64XX_PIN_PULL_NONE>;
179 samsung,pin-pud = <S3C64XX_PIN_PULL_NONE>;
185 samsung,pin-pud = <S3C64XX_PIN_PULL_NONE>;
191 samsung,pin-pud = <S3C64XX_PIN_PULL_NONE>;
[all …]
Ds5pv210-pinctrl.dtsi21 samsung,pin-pud-pdn = <S5PV210_PIN_PULL_ ##_pull>; \
280 samsung,pin-pud = <S5PV210_PIN_PULL_NONE>;
287 samsung,pin-pud = <S5PV210_PIN_PULL_NONE>;
294 samsung,pin-pud = <S5PV210_PIN_PULL_NONE>;
301 samsung,pin-pud = <S5PV210_PIN_PULL_NONE>;
308 samsung,pin-pud = <S5PV210_PIN_PULL_NONE>;
315 samsung,pin-pud = <S5PV210_PIN_PULL_NONE>;
322 samsung,pin-pud = <S5PV210_PIN_PULL_NONE>;
329 samsung,pin-pud = <S5PV210_PIN_PULL_NONE>;
336 samsung,pin-pud = <S5PV210_PIN_PULL_UP>;
[all …]
Dexynos4x12-pinctrl.dtsi18 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_ ##_pull>; \
129 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
136 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
143 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
150 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
157 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
164 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
171 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
178 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
185 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
[all …]
Dexynos4210-pinctrl.dtsi148 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
155 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
162 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
169 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
176 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
183 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
190 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
197 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
204 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
211 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
[all …]
Dexynos5250-pinctrl.dtsi203 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
210 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
217 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
224 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
230 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
237 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
244 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
251 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
258 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
265 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
[all …]
Dexynos5420-pinctrl.dtsi64 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
71 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
163 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
170 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
177 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
184 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
191 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
198 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
205 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
212 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
[all …]
Dexynos3250-pinctrl.dtsi18 samsung,pin-pud = <EXYNOS_PIN_PULL_ ##_pull>; \
26 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_ ##_pull>; \
89 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
96 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
103 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
110 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
117 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
124 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
131 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
138 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
[all …]
Dexynos5260-pinctrl.dtsi202 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
209 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
216 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
223 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
230 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
237 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
244 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
251 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
259 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
267 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
[all …]
/linux-6.6.21/arch/arm64/boot/dts/exynos/
Dexynosautov9-pinctrl.dtsi61 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
67 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
107 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
113 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
119 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
125 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
131 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
137 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
143 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
149 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
[all …]
Dexynos7885-pinctrl.dtsi85 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
91 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
98 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
106 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
138 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
144 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
150 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
156 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
162 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
168 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
[all …]
Dexynos5433-pinctrl.dtsi18 samsung,pin-pud = <EXYNOS_PIN_PULL_ ##_pull>; \
144 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
151 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
158 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
195 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
202 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
259 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
266 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
273 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
280 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
[all …]
Dexynos850-pinctrl.dtsi109 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
117 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
125 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
132 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
221 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
229 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
236 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
243 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
251 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
259 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
[all …]
/linux-6.6.21/mm/kasan/
Dinit.c57 static inline bool kasan_pmd_table(pud_t pud) in kasan_pmd_table() argument
59 return pud_page(pud) == virt_to_page(lm_alias(kasan_early_shadow_pmd)); in kasan_pmd_table()
62 static inline bool kasan_pmd_table(pud_t pud) in kasan_pmd_table() argument
109 static int __ref zero_pmd_populate(pud_t *pud, unsigned long addr, in zero_pmd_populate() argument
112 pmd_t *pmd = pmd_offset(pud, addr); in zero_pmd_populate()
149 pud_t *pud = pud_offset(p4d, addr); in zero_pud_populate() local
157 pud_populate(&init_mm, pud, in zero_pud_populate()
159 pmd = pmd_offset(pud, addr); in zero_pud_populate()
165 if (pud_none(*pud)) { in zero_pud_populate()
169 p = pmd_alloc(&init_mm, pud, addr); in zero_pud_populate()
[all …]
/linux-6.6.21/arch/x86/include/asm/
Dpgtable.h90 # define set_pud(pudp, pud) native_set_pud(pudp, pud) argument
94 #define pud_clear(pud) native_pud_clear(pud) argument
162 static inline bool pud_dirty(pud_t pud) in pud_dirty() argument
164 return pud_flags(pud) & _PAGE_DIRTY_BITS; in pud_dirty()
167 static inline int pud_young(pud_t pud) in pud_young() argument
169 return pud_flags(pud) & _PAGE_ACCESSED; in pud_young()
192 static inline int pud_write(pud_t pud) in pud_write() argument
194 return pud_flags(pud) & _PAGE_RW; in pud_write()
237 static inline unsigned long pud_pfn(pud_t pud) in pud_pfn() argument
239 phys_addr_t pfn = pud_val(pud); in pud_pfn()
[all …]
/linux-6.6.21/arch/powerpc/include/asm/book3s/64/
Dpgalloc.h88 static inline void p4d_populate(struct mm_struct *mm, p4d_t *pgd, pud_t *pud) in p4d_populate() argument
90 *pgd = __p4d(__pgtable_ptr_val(pud) | PGD_VAL_BITS); in p4d_populate()
95 pud_t *pud; in pud_alloc_one() local
97 pud = kmem_cache_alloc(PGT_CACHE(PUD_CACHE_INDEX), in pud_alloc_one()
105 kmemleak_ignore(pud); in pud_alloc_one()
107 return pud; in pud_alloc_one()
110 static inline void __pud_free(pud_t *pud) in __pud_free() argument
112 struct page *page = virt_to_page(pud); in __pud_free()
123 kmem_cache_free(PGT_CACHE(PUD_CACHE_INDEX), pud); in __pud_free()
126 static inline void pud_free(struct mm_struct *mm, pud_t *pud) in pud_free() argument
[all …]
/linux-6.6.21/arch/x86/mm/
Dident_map.c27 pud_t *pud = pud_page + pud_index(addr); in ident_pud_init() local
36 if (pud_large(*pud)) in ident_pud_init()
49 use_gbpage &= !pud_present(*pud); in ident_pud_init()
55 set_pud(pud, pudval); in ident_pud_init()
59 if (pud_present(*pud)) { in ident_pud_init()
60 pmd = pmd_offset(pud, 0); in ident_pud_init()
68 set_pud(pud, __pud(__pa(pmd) | info->kernpg_flag)); in ident_pud_init()
82 pud_t *pud; in ident_p4d_init() local
89 pud = pud_offset(p4d, 0); in ident_p4d_init()
90 result = ident_pud_init(info, pud, addr, next); in ident_p4d_init()
[all …]
Dinit_64.c73 DEFINE_POPULATE(p4d_populate, p4d, pud, init) in DEFINE_POPULATE() argument
75 DEFINE_POPULATE(pud_populate, pud, pmd, init) in DEFINE_POPULATE()
89 DEFINE_ENTRY(pud, pud, init)
264 pud_t *pud = (pud_t *)spp_getpage(); in fill_pud() local
265 p4d_populate(&init_mm, p4d, pud); in fill_pud()
266 if (pud != pud_offset(p4d, 0)) in fill_pud()
268 pud, pud_offset(p4d, 0)); in fill_pud()
273 static pmd_t *fill_pmd(pud_t *pud, unsigned long vaddr) in fill_pmd() argument
275 if (pud_none(*pud)) { in fill_pmd()
277 pud_populate(&init_mm, pud, pmd); in fill_pmd()
[all …]
/linux-6.6.21/arch/mips/mm/
Dhugetlbpage.c29 pud_t *pud; in huge_pte_alloc() local
34 pud = pud_alloc(mm, p4d, addr); in huge_pte_alloc()
35 if (pud) in huge_pte_alloc()
36 pte = (pte_t *)pmd_alloc(mm, pud, addr); in huge_pte_alloc()
46 pud_t *pud; in huge_pte_offset() local
53 pud = pud_offset(p4d, addr); in huge_pte_offset()
54 if (pud_present(*pud)) in huge_pte_offset()
55 pmd = pmd_offset(pud, addr); in huge_pte_offset()
66 int pud_huge(pud_t pud) in pud_huge() argument
68 return (pud_val(pud) & _PAGE_HUGE) != 0; in pud_huge()
/linux-6.6.21/arch/loongarch/mm/
Dhugetlbpage.c21 pud_t *pud; in huge_pte_alloc() local
26 pud = pud_alloc(mm, p4d, addr); in huge_pte_alloc()
27 if (pud) in huge_pte_alloc()
28 pte = (pte_t *)pmd_alloc(mm, pud, addr); in huge_pte_alloc()
38 pud_t *pud; in huge_pte_offset() local
45 pud = pud_offset(p4d, addr); in huge_pte_offset()
46 if (pud_present(*pud)) in huge_pte_offset()
47 pmd = pmd_offset(pud, addr); in huge_pte_offset()
58 int pud_huge(pud_t pud) in pud_huge() argument
60 return (pud_val(pud) & _PAGE_HUGE) != 0; in pud_huge()
/linux-6.6.21/arch/arm64/include/asm/
Dpgtable.h157 #define pud_access_permitted(pud, write) \ argument
158 (pte_access_permitted(pud_pte(pud), (write)))
389 static inline pte_t pud_pte(pud_t pud) in pud_pte() argument
391 return __pte(pud_val(pud)); in pud_pte()
399 static inline pmd_t pud_pmd(pud_t pud) in pud_pmd() argument
401 return __pmd(pud_val(pud)); in pud_pmd()
523 #define pud_young(pud) pte_young(pud_pte(pud)) argument
524 #define pud_mkyoung(pud) pte_pud(pte_mkyoung(pud_pte(pud))) argument
525 #define pud_write(pud) pte_write(pud_pte(pud)) argument
527 #define pud_mkhuge(pud) (__pud(pud_val(pud) & ~PUD_TABLE_BIT)) argument
[all …]
/linux-6.6.21/arch/arm/mm/
Didmap.c24 static void idmap_add_pmd(pud_t *pud, unsigned long addr, unsigned long end, in idmap_add_pmd() argument
30 if (pud_none_or_clear_bad(pud) || (pud_val(*pud) & L_PGD_SWAPPER)) { in idmap_add_pmd()
40 if (!pud_none(*pud)) in idmap_add_pmd()
41 memcpy(pmd, pmd_offset(pud, 0), in idmap_add_pmd()
43 pud_populate(&init_mm, pud, pmd); in idmap_add_pmd()
46 pmd = pmd_offset(pud, addr); in idmap_add_pmd()
55 static void idmap_add_pmd(pud_t *pud, unsigned long addr, unsigned long end, in idmap_add_pmd() argument
58 pmd_t *pmd = pmd_offset(pud, addr); in idmap_add_pmd()
72 pud_t *pud = pud_offset(p4d, addr); in idmap_add_pud() local
77 idmap_add_pmd(pud, addr, next, prot); in idmap_add_pud()
[all …]
/linux-6.6.21/arch/s390/mm/
Dvmem.c214 static int __ref modify_pmd_table(pud_t *pud, unsigned long addr, in modify_pmd_table() argument
226 pmd = pmd_offset(pud, addr); in modify_pmd_table()
295 static void try_free_pmd_table(pud_t *pud, unsigned long start) in try_free_pmd_table() argument
300 pmd = pmd_offset(pud, start); in try_free_pmd_table()
304 vmem_free_pages(pud_deref(*pud), CRST_ALLOC_ORDER); in try_free_pmd_table()
305 pud_clear(pud); in try_free_pmd_table()
313 pud_t *pud; in modify_pud_table() local
319 pud = pud_offset(p4d, addr); in modify_pud_table()
320 for (; addr < end; addr = next, pud++) { in modify_pud_table()
323 if (pud_none(*pud)) in modify_pud_table()
[all …]
/linux-6.6.21/arch/riscv/include/asm/
Dpgtable-64.h57 unsigned long pud; member
60 #define pud_val(x) ((x).pud)
173 static inline int pud_present(pud_t pud) in pud_present() argument
175 return (pud_val(pud) & _PAGE_PRESENT); in pud_present()
178 static inline int pud_none(pud_t pud) in pud_none() argument
180 return (pud_val(pud) == 0); in pud_none()
183 static inline int pud_bad(pud_t pud) in pud_bad() argument
185 return !pud_present(pud); in pud_bad()
189 static inline int pud_leaf(pud_t pud) in pud_leaf() argument
191 return pud_present(pud) && (pud_val(pud) & _PAGE_LEAF); in pud_leaf()
[all …]
/linux-6.6.21/mm/
Ddebug_vm_pgtable.c303 pud_t pud; in pud_basic_tests() local
309 pud = pfn_pud(args->fixed_pud_pfn, prot); in pud_basic_tests()
318 WARN_ON(pud_dirty(pud_wrprotect(pud))); in pud_basic_tests()
320 WARN_ON(!pud_same(pud, pud)); in pud_basic_tests()
321 WARN_ON(!pud_young(pud_mkyoung(pud_mkold(pud)))); in pud_basic_tests()
322 WARN_ON(!pud_dirty(pud_mkdirty(pud_mkclean(pud)))); in pud_basic_tests()
323 WARN_ON(pud_dirty(pud_mkclean(pud_mkdirty(pud)))); in pud_basic_tests()
324 WARN_ON(!pud_write(pud_mkwrite(pud_wrprotect(pud)))); in pud_basic_tests()
325 WARN_ON(pud_write(pud_wrprotect(pud_mkwrite(pud)))); in pud_basic_tests()
326 WARN_ON(pud_young(pud_mkold(pud_mkyoung(pud)))); in pud_basic_tests()
[all …]

1234567891011