Home
last modified time | relevance | path

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

123456789

/arch/riscv/include/asm/
Dpgtable-64.h31 static inline int pud_present(pud_t pud) in pud_present() argument
33 return (pud_val(pud) & _PAGE_PRESENT); in pud_present()
36 static inline int pud_none(pud_t pud) in pud_none() argument
38 return (pud_val(pud) == 0); in pud_none()
41 static inline int pud_bad(pud_t pud) in pud_bad() argument
43 return !pud_present(pud); in pud_bad()
47 static inline int pud_leaf(pud_t pud) in pud_leaf() argument
49 return pud_present(pud) && (pud_val(pud) & _PAGE_LEAF); in pud_leaf()
52 static inline void set_pud(pud_t *pudp, pud_t pud) in set_pud() argument
54 *pudp = pud; in set_pud()
[all …]
/arch/arm/boot/dts/
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 …]
Dexynos4412-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 …]
Ds5pv210-pinctrl.dtsi25 samsung,pin-pud-pdn = <S3C64XX_PIN_PULL_ ##_pull>; \
284 samsung,pin-pud = <S3C64XX_PIN_PULL_NONE>;
291 samsung,pin-pud = <S3C64XX_PIN_PULL_NONE>;
298 samsung,pin-pud = <S3C64XX_PIN_PULL_NONE>;
305 samsung,pin-pud = <S3C64XX_PIN_PULL_NONE>;
312 samsung,pin-pud = <S3C64XX_PIN_PULL_NONE>;
319 samsung,pin-pud = <S3C64XX_PIN_PULL_NONE>;
326 samsung,pin-pud = <S3C64XX_PIN_PULL_NONE>;
333 samsung,pin-pud = <S3C64XX_PIN_PULL_NONE>;
340 samsung,pin-pud = <S3C64XX_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 …]
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 …]
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 …]
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 …]
Dexynos3250-pinctrl.dtsi18 samsung,pin-pud = <EXYNOS_PIN_PULL_ ##_pull>; \
26 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; \
34 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; \
43 samsung,pin-pud = <EXYNOS_PIN_PULL_ ##_pull>; \
51 samsung,pin-pud-pdn = <EXYNOS_PIN_PULL_ ##_pull>; \
114 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
121 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
128 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
135 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
142 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
[all …]
Dexynos5410-pinctrl.dtsi283 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
290 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
297 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
304 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
311 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
318 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
325 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
332 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
339 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
346 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
[all …]
/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()
/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()
121 kmem_cache_free(PGT_CACHE(PUD_CACHE_INDEX), pud); in __pud_free()
124 static inline void pud_free(struct mm_struct *mm, pud_t *pud) in pud_free() argument
[all …]
/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)
75 DEFINE_POPULATE(pud_populate, pud, pmd, init)
89 DEFINE_ENTRY(pud, pud, init)
259 pud_t *pud = (pud_t *)spp_getpage(); in fill_pud() local
260 p4d_populate(&init_mm, p4d, pud); in fill_pud()
261 if (pud != pud_offset(p4d, 0)) in fill_pud()
263 pud, pud_offset(p4d, 0)); in fill_pud()
268 static pmd_t *fill_pmd(pud_t *pud, unsigned long vaddr) in fill_pmd() argument
270 if (pud_none(*pud)) { in fill_pmd()
272 pud_populate(&init_mm, pud, pmd); in fill_pmd()
[all …]
/arch/sh/mm/
Dhugetlbpage.c29 pud_t *pud; in huge_pte_alloc() local
37 pud = pud_alloc(mm, p4d, addr); in huge_pte_alloc()
38 if (pud) { in huge_pte_alloc()
39 pmd = pmd_alloc(mm, pud, addr); in huge_pte_alloc()
54 pud_t *pud; in huge_pte_offset() local
62 pud = pud_offset(p4d, addr); in huge_pte_offset()
63 if (pud) { in huge_pte_offset()
64 pmd = pmd_offset(pud, addr); in huge_pte_offset()
79 int pud_huge(pud_t pud) in pud_huge() argument
/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 …]
/arch/arm64/boot/dts/exynos/
Dexynos5433-pinctrl.dtsi18 samsung,pin-pud = <EXYNOS_PIN_PULL_ ##_pull>; \
135 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
142 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
149 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
186 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
193 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
250 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
257 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
264 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
271 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
[all …]
Dexynos7-pinctrl.dtsi190 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
197 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
204 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
211 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
218 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
225 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
232 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
239 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
246 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
253 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>;
[all …]
/arch/mips/include/asm/
Dpgalloc.h40 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate() argument
42 set_pud(pud, __pud((unsigned long)pmd)); in pud_populate()
92 pud_t *pud; in pud_alloc_one() local
94 pud = (pud_t *) __get_free_pages(GFP_KERNEL, PUD_ORDER); in pud_alloc_one()
95 if (pud) in pud_alloc_one()
96 pud_init((unsigned long)pud, (unsigned long)invalid_pmd_table); in pud_alloc_one()
97 return pud; in pud_alloc_one()
100 static inline void p4d_populate(struct mm_struct *mm, p4d_t *p4d, pud_t *pud) in p4d_populate() argument
102 set_p4d(p4d, __p4d((unsigned long)pud)); in p4d_populate()
Dpgtable-64.h180 typedef struct { unsigned long pud; } pud_t; member
181 #define pud_val(x) ((x).pud)
283 static inline int pud_none(pud_t pud) in pud_none() argument
285 return pud_val(pud) == (unsigned long) invalid_pmd_table; in pud_none()
288 static inline int pud_bad(pud_t pud) in pud_bad() argument
290 return pud_val(pud) & ~PAGE_MASK; in pud_bad()
293 static inline int pud_present(pud_t pud) in pud_present() argument
295 return pud_val(pud) != (unsigned long) invalid_pmd_table; in pud_present()
316 static inline pmd_t *pud_pgtable(pud_t pud) in pud_pgtable() argument
318 return (pmd_t *)pud_val(pud); in pud_pgtable()
[all …]
/arch/x86/include/asm/
Dpgtable.h86 # define set_pud(pudp, pud) native_set_pud(pudp, pud) argument
90 #define pud_clear(pud) native_pud_clear(pud) argument
145 static inline int pud_dirty(pud_t pud) in pud_dirty() argument
147 return pud_flags(pud) & _PAGE_DIRTY; in pud_dirty()
150 static inline int pud_young(pud_t pud) in pud_young() argument
152 return pud_flags(pud) & _PAGE_ACCESSED; in pud_young()
198 static inline unsigned long pud_pfn(pud_t pud) in pud_pfn() argument
200 phys_addr_t pfn = pud_val(pud); in pud_pfn()
202 return (pfn & pud_pfn_mask(pud)) >> PAGE_SHIFT; in pud_pfn()
238 static inline int pud_trans_huge(pud_t pud) in pud_trans_huge() argument
[all …]
Dpgalloc.h99 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate() argument
102 set_pud(pud, __pud(_PAGE_TABLE | __pa(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() argument
108 set_pud_safe(pud, __pud(_PAGE_TABLE | __pa(pmd))); in pud_populate_safe()
113 static inline void p4d_populate(struct mm_struct *mm, p4d_t *p4d, pud_t *pud) in p4d_populate() argument
115 paravirt_alloc_pud(mm, __pa(pud) >> PAGE_SHIFT); in p4d_populate()
116 set_p4d(p4d, __p4d(_PAGE_TABLE | __pa(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() argument
121 paravirt_alloc_pud(mm, __pa(pud) >> PAGE_SHIFT); in p4d_populate_safe()
122 set_p4d_safe(p4d, __p4d(_PAGE_TABLE | __pa(pud))); in p4d_populate_safe()
[all …]
/arch/sparc/mm/
Dhugetlbpage.c276 unsigned long pud_leaf_size(pud_t pud) { return 1UL << tte_to_shift(*(pte_t *)&pud); } in pud_leaf_size() argument
285 pud_t *pud; in huge_pte_alloc() local
290 pud = pud_alloc(mm, p4d, addr); in huge_pte_alloc()
291 if (!pud) in huge_pte_alloc()
294 return (pte_t *)pud; in huge_pte_alloc()
295 pmd = pmd_alloc(mm, pud, addr); in huge_pte_alloc()
308 pud_t *pud; in huge_pte_offset() local
317 pud = pud_offset(p4d, addr); in huge_pte_offset()
318 if (pud_none(*pud)) in huge_pte_offset()
320 if (is_hugetlb_pud(*pud)) in huge_pte_offset()
[all …]
/arch/um/include/asm/
Dpgtable-3level.h58 #define pud_populate(mm, pud, pmd) \ argument
59 set_pud(pud, __pud(_PAGE_TABLE + __pa(pmd)))
80 static inline void pud_clear (pud_t *pud) in pud_clear() argument
82 set_pud(pud, __pud(_PAGE_NEWPAGE)); in pud_clear()
85 #define pud_page(pud) phys_to_page(pud_val(pud) & PAGE_MASK) argument
86 #define pud_pgtable(pud) ((pmd_t *) __va(pud_val(pud) & PAGE_MASK)) argument
/arch/arm64/include/asm/
Dpgtable.h148 #define pud_access_permitted(pud, write) \ argument
149 (pte_access_permitted(pud_pte(pud), (write)))
373 static inline pte_t pud_pte(pud_t pud) in pud_pte() argument
375 return __pte(pud_val(pud)); in pud_pte()
383 static inline pmd_t pud_pmd(pud_t pud) in pud_pmd() argument
385 return __pmd(pud_val(pud)); in pud_pmd()
480 #define pud_young(pud) pte_young(pud_pte(pud)) argument
481 #define pud_mkyoung(pud) pte_pud(pte_mkyoung(pud_pte(pud))) argument
482 #define pud_write(pud) pte_write(pud_pte(pud)) argument
484 #define pud_mkhuge(pud) (__pud(pud_val(pud) & ~PUD_TABLE_BIT)) argument
[all …]

123456789