/openbmc/linux/include/asm-generic/ |
H A D | pgtable-nopmd.h | 18 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 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)) 48 return (pmd_t *)pud; in pmd_offset() 52 #define pmd_val(x) (pud_val((x).pud)) 55 #define pud_page(pud) (pmd_page((pmd_t){ pud })) argument [all …]
|
/openbmc/linux/arch/arm/boot/dts/samsung/ |
H A D | s3c64xx-pinctrl.dtsi | 137 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>; 203 samsung,pin-pud = <S3C64XX_PIN_PULL_UP>; 210 samsung,pin-pud = <S3C64XX_PIN_PULL_UP>; 216 samsung,pin-pud = <S3C64XX_PIN_PULL_UP>; 228 samsung,pin-pud = <S3C64XX_PIN_PULL_UP>; 264 samsung,pin-pud = <S3C64XX_PIN_PULL_UP>; [all …]
|
H A D | s5pv210-pinctrl.dtsi | 280 samsung,pin-pud = <S5PV210_PIN_PULL_NONE>; 287 samsung,pin-pud = <S5PV210_PIN_PULL_NONE>; 336 samsung,pin-pud = <S5PV210_PIN_PULL_UP>; 343 samsung,pin-pud = <S5PV210_PIN_PULL_UP>; 413 samsung,pin-pud = <S5PV210_PIN_PULL_UP>; 420 samsung,pin-pud = <S5PV210_PIN_PULL_UP>; 427 samsung,pin-pud = <S5PV210_PIN_PULL_UP>; 434 samsung,pin-pud = <S5PV210_PIN_PULL_UP>; 595 samsung,pin-pud = <S5PV210_PIN_PULL_UP>; 602 samsung,pin-pud = <S5PV210_PIN_PULL_UP>; [all …]
|
H A D | exynos4x12-pinctrl.dtsi | 129 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 136 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 143 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 157 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 185 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 206 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 213 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 220 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 227 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 281 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; [all …]
|
H A D | exynos4210-pinctrl.dtsi | 148 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 155 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 176 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 204 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 225 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 232 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 239 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 246 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 300 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 307 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; [all …]
|
H A D | exynos5250-pinctrl.dtsi | 217 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 224 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 251 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 258 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 272 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 279 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 286 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 293 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 347 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 354 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; [all …]
|
H A D | exynos5420-pinctrl.dtsi | 64 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 71 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>; 226 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 233 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 240 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 247 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; [all …]
|
H A D | exynos3250-pinctrl.dtsi | 89 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 96 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 103 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 117 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 131 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 138 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 145 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 152 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 159 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 182 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; [all …]
|
H A D | exynos5260-pinctrl.dtsi | 237 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 244 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 281 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 288 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 295 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 302 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 309 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 316 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 323 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 330 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; [all …]
|
/openbmc/linux/arch/arm64/boot/dts/exynos/ |
H A D | exynosautov9-pinctrl.dtsi | 61 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>; 221 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 244 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 267 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; [all …]
|
H A D | exynos7885-pinctrl.dtsi | 85 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>; 267 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 281 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 288 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 295 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 337 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; [all …]
|
H A D | exynos5433-pinctrl.dtsi | 144 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 195 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 202 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 287 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 294 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 301 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 322 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 329 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 336 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 343 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; [all …]
|
H A D | exynos850-pinctrl.dtsi | 109 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>; 251 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 363 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 370 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 377 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; 416 samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; [all …]
|
/openbmc/linux/mm/kasan/ |
H A D | init.c | 157 pud_populate(&init_mm, pud, in zero_pud_populate() 165 if (pud_none(*pud)) { in zero_pud_populate() 197 pud_t *pud; in zero_p4d_populate() local 249 pud_t *pud; in kasan_populate_early_shadow() local 319 pud_clear(pud); in kasan_free_pmd() 324 pud_t *pud; in kasan_free_pud() local 328 pud = pud_start + i; in kasan_free_pud() 329 if (!pud_none(*pud)) in kasan_free_pud() 410 if (!pud_present(*pud)) in kasan_remove_pud_table() 416 pud_clear(pud); in kasan_remove_pud_table() [all …]
|
/openbmc/linux/arch/x86/include/asm/ |
H A D | pgtable.h | 90 # define set_pud(pudp, pud) native_set_pud(pudp, pud) argument 94 #define pud_clear(pud) native_pud_clear(pud) argument 629 pud = pud_clear_flags(pud, _PAGE_RW); in pud_wrprotect() 636 return pud_mksaveddirty(pud); in pud_wrprotect() 641 pud = pud_set_flags(pud, _PAGE_DIRTY | _PAGE_SOFT_DIRTY); in pud_mkdirty() 663 pud = pud_set_flags(pud, _PAGE_RW); in pud_mkwrite() 1063 return (pmd_t *)__va(pud_val(pud) & pud_pfn_mask(pud)); in pud_pgtable() 1070 #define pud_page(pud) pfn_to_page(pud_pfn(pud)) argument 1239 native_set_pud(pudp, pud); in set_pud_at() 1351 return pud; in pudp_huge_get_and_clear() [all …]
|
/openbmc/linux/arch/mips/mm/ |
H A D | hugetlbpage.c | 29 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()
|
/openbmc/linux/arch/powerpc/include/asm/book3s/64/ |
H A D | pgalloc.h | 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() 128 return __pud_free(pud); in pud_free() 133 *pud = __pud(__pgtable_ptr_val(pmd) | PUD_VAL_BITS); in pud_populate() [all …]
|
/openbmc/linux/arch/x86/mm/ |
H A D | ident_map.c | 27 pud_t *pud = pud_page + pud_index(addr); in ident_pud_init() local 37 if (pud_present(*pud)) in ident_pud_init() 42 set_pud(pud, pudval); in ident_pud_init() 46 if (pud_present(*pud)) { in ident_pud_init() 47 pmd = pmd_offset(pud, 0); in ident_pud_init() 69 pud_t *pud; in ident_p4d_init() local 76 pud = pud_offset(p4d, 0); in ident_p4d_init() 77 result = ident_pud_init(info, pud, addr, next); in ident_p4d_init() 84 if (!pud) in ident_p4d_init() 87 result = ident_pud_init(info, pud, addr, next); in ident_p4d_init() [all …]
|
H A D | init_64.c | 89 DEFINE_ENTRY(pud, pud, init) 347 pud_t *pud; in populate_extra_pmd() local 371 pud_t *pud; in __init_extra_mapping() local 601 pud_t *pud; in phys_pud_init() local 690 pud_t *pud; in phys_p4d_init() local 1041 pud_clear(pud); in free_pmd_table() 1047 pud_t *pud; in free_pud_table() local 1161 pud_t *pud; in remove_pud_table() local 1298 pud_t *pud; in preallocate_vmalloc_pages() local 1320 if (!pud) in preallocate_vmalloc_pages() [all …]
|
/openbmc/linux/arch/loongarch/mm/ |
H A D | hugetlbpage.c | 21 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()
|
/openbmc/linux/arch/arm/mm/ |
H A D | idmap.c | 24 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 …]
|
/openbmc/linux/arch/sh/mm/ |
H A D | hugetlbpage.c | 29 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
|
/openbmc/linux/arch/arm64/include/asm/ |
H A D | pgtable.h | 523 #define pud_young(pud) pte_young(pud_pte(pud)) argument 525 #define pud_write(pud) pte_write(pud_pte(pud)) argument 529 #define __pud_to_phys(pud) __pte_to_phys(pud_pte(pud)) argument 681 #define pud_none(pud) (!pud_val(pud)) argument 682 #define pud_bad(pud) (!pud_table(pud)) argument 683 #define pud_present(pud) pte_present(pud_pte(pud)) argument 684 #define pud_leaf(pud) (pud_present(pud) && !pud_table(pud)) argument 685 #define pud_valid(pud) pte_valid(pud_pte(pud)) argument 686 #define pud_user(pud) pte_user(pud_pte(pud)) argument 687 #define pud_user_exec(pud) pte_user_exec(pud_pte(pud)) argument [all …]
|
/openbmc/linux/arch/riscv/include/asm/ |
H A D | pgtable-64.h | 57 unsigned long pud; member 60 #define pud_val(x) ((x).pud) 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() 194 static inline int pud_user(pud_t pud) in pud_user() argument 196 return pud_val(pud) & _PAGE_USER; in pud_user() [all …]
|
/openbmc/linux/arch/s390/mm/ |
H A D | vmem.c | 305 pud_clear(pud); in try_free_pmd_table() 313 pud_t *pud; in modify_pud_table() local 323 if (pud_none(*pud)) in modify_pud_table() 328 pud_clear(pud); in modify_pud_table() 364 pud_t *pud; in try_free_pud_table() local 369 if (!pud_none(*pud)) in try_free_pud_table() 382 pud_t *pud; in modify_p4d_table() local 392 if (!pud) in modify_p4d_table() 559 pud_t *pud; in vmem_get_alloc_pte() local 577 if (!pud) in vmem_get_alloc_pte() [all …]
|