Home
last modified time | relevance | path

Searched refs:pudp (Results 1 – 25 of 49) sorted by relevance

12

/arch/powerpc/mm/
Dpgtable-book3e.c76 pud_t *pudp; in map_kernel_page() local
83 pudp = pud_alloc(&init_mm, pgdp, ea); in map_kernel_page()
84 if (!pudp) in map_kernel_page()
86 pmdp = pmd_alloc(&init_mm, pudp, ea); in map_kernel_page()
98 pudp = early_alloc_pgtable(PUD_TABLE_SIZE); in map_kernel_page()
99 BUG_ON(pudp == NULL); in map_kernel_page()
100 pgd_populate(&init_mm, pgdp, pudp); in map_kernel_page()
103 pudp = pud_offset(pgdp, ea); in map_kernel_page()
104 if (pud_none(*pudp)) { in map_kernel_page()
107 pud_populate(&init_mm, pudp, pmdp); in map_kernel_page()
[all …]
Dpgtable-radix.c65 pud_t *pudp; in radix__map_kernel_page() local
74 pudp = pud_alloc(&init_mm, pgdp, ea); in radix__map_kernel_page()
75 if (!pudp) in radix__map_kernel_page()
78 ptep = (pte_t *)pudp; in radix__map_kernel_page()
81 pmdp = pmd_alloc(&init_mm, pudp, ea); in radix__map_kernel_page()
94 pudp = early_alloc_pgtable(PUD_TABLE_SIZE); in radix__map_kernel_page()
95 BUG_ON(pudp == NULL); in radix__map_kernel_page()
96 pgd_populate(&init_mm, pgdp, pudp); in radix__map_kernel_page()
98 pudp = pud_offset(pgdp, ea); in radix__map_kernel_page()
100 ptep = (pte_t *)pudp; in radix__map_kernel_page()
[all …]
Dpgtable-hash64.c144 pud_t *pudp; in hash__map_kernel_page() local
151 pudp = pud_alloc(&init_mm, pgdp, ea); in hash__map_kernel_page()
152 if (!pudp) in hash__map_kernel_page()
154 pmdp = pmd_alloc(&init_mm, pudp, ea); in hash__map_kernel_page()
/arch/s390/mm/
Dpageattr.c157 static int walk_pmd_level(pud_t *pudp, unsigned long addr, unsigned long end, in walk_pmd_level() argument
164 pmdp = pmd_offset(pudp, addr); in walk_pmd_level()
189 static int split_pud_page(pud_t *pudp, unsigned long addr) in split_pud_page() argument
199 pmd_addr = pud_pfn(*pudp) << PAGE_SHIFT; in split_pud_page()
200 ro = !!(pud_val(*pudp) & _REGION_ENTRY_PROTECT); in split_pud_page()
201 nx = !!(pud_val(*pudp) & _REGION_ENTRY_NOEXEC); in split_pud_page()
212 pgt_set((unsigned long *)pudp, pud_val(new), addr, CRDTE_DTT_REGION3); in split_pud_page()
218 static void modify_pud_page(pud_t *pudp, unsigned long addr, in modify_pud_page() argument
221 pud_t new = *pudp; in modify_pud_page()
231 pgt_set((unsigned long *)pudp, pud_val(new), addr, CRDTE_DTT_REGION3); in modify_pud_page()
[all …]
Dgup.c98 static inline int gup_pmd_range(pud_t *pudp, pud_t pud, unsigned long addr, in gup_pmd_range() argument
104 pmdp = (pmd_t *) pudp; in gup_pmd_range()
133 static int gup_huge_pud(pud_t *pudp, pud_t pud, unsigned long addr, in gup_huge_pud() argument
162 if (unlikely(pud_val(pud) != pud_val(*pudp))) { in gup_huge_pud()
176 pud_t *pudp, pud; in gup_pud_range() local
178 pudp = (pud_t *) p4dp; in gup_pud_range()
180 pudp = (pud_t *) p4d_deref(p4d); in gup_pud_range()
181 pudp += pud_index(addr); in gup_pud_range()
183 pud = *pudp; in gup_pud_range()
189 if (!gup_huge_pud(pudp, pud, addr, next, write, pages, in gup_pud_range()
[all …]
Dhugetlbpage.c156 pud_t *pudp = (pud_t *) ptep; in huge_ptep_get_and_clear() local
159 pudp_xchg_direct(mm, addr, pudp, __pud(_REGION3_ENTRY_EMPTY)); in huge_ptep_get_and_clear()
170 pud_t *pudp; in huge_pte_alloc() local
176 pudp = pud_alloc(mm, p4dp, addr); in huge_pte_alloc()
177 if (pudp) { in huge_pte_alloc()
179 return (pte_t *) pudp; in huge_pte_alloc()
181 pmdp = pmd_alloc(mm, pudp, addr); in huge_pte_alloc()
192 pud_t *pudp; in huge_pte_offset() local
199 pudp = pud_offset(p4dp, addr); in huge_pte_offset()
200 if (pud_present(*pudp)) { in huge_pte_offset()
[all …]
Dpgtable.c428 unsigned long addr, pud_t *pudp) in pudp_idte_local() argument
431 __pudp_idte(addr, pudp, IDTE_NODAT | IDTE_GUEST_ASCE, in pudp_idte_local()
434 __pudp_idte(addr, pudp, 0, 0, IDTE_LOCAL); in pudp_idte_local()
438 unsigned long addr, pud_t *pudp) in pudp_idte_global() argument
441 __pudp_idte(addr, pudp, IDTE_NODAT | IDTE_GUEST_ASCE, in pudp_idte_global()
444 __pudp_idte(addr, pudp, 0, 0, IDTE_GLOBAL); in pudp_idte_global()
450 __pmdp_csp((pmd_t *) pudp); in pudp_idte_global()
454 unsigned long addr, pud_t *pudp) in pudp_flush_direct() argument
458 old = *pudp; in pudp_flush_direct()
464 pudp_idte_local(mm, addr, pudp); in pudp_flush_direct()
[all …]
/arch/x86/include/asm/
Dpgtable-3level.h101 static inline void native_set_pud(pud_t *pudp, pud_t pud) in native_set_pud() argument
103 set_64bit((unsigned long long *)(pudp), native_pud_val(pud)); in native_set_pud()
127 static inline void native_pud_clear(pud_t *pudp) in native_pud_clear() argument
131 static inline void pud_clear(pud_t *pudp) in pud_clear() argument
133 set_pud(pudp, __pud(0)); in pud_clear()
192 static inline pud_t native_pudp_get_and_clear(pud_t *pudp) in native_pudp_get_and_clear() argument
194 union split_pud res, *orig = (union split_pud *)pudp; 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() argument
39 static inline void native_pud_clear(pud_t *pudp) in native_pud_clear() argument
Dpgtable.h80 # define set_pud(pudp, pud) native_set_pud(pudp, pud) argument
995 static inline pud_t native_local_pudp_get_and_clear(pud_t *pudp) in native_local_pudp_get_and_clear() argument
997 pud_t res = *pudp; in native_local_pudp_get_and_clear()
999 native_pud_clear(pudp); in native_local_pudp_get_and_clear()
1016 pud_t *pudp, pud_t pud) in set_pud_at() argument
1018 native_set_pud(pudp, pud); in set_pud_at()
1085 unsigned long address, pud_t *pudp,
1092 unsigned long addr, pud_t *pudp);
1114 unsigned long addr, pud_t *pudp) in pudp_huge_get_and_clear() argument
1116 return native_pudp_get_and_clear(pudp); in pudp_huge_get_and_clear()
/arch/sparc/mm/
Dgup.c107 static int gup_huge_pud(pud_t *pudp, pud_t pud, unsigned long addr, in gup_huge_pud() argument
136 if (unlikely(pud_val(pud) != pud_val(*pudp))) { in gup_huge_pud()
175 pud_t *pudp; in gup_pud_range() local
177 pudp = pud_offset(&pgd, addr); in gup_pud_range()
179 pud_t pud = *pudp; in gup_pud_range()
185 if (!gup_huge_pud(pudp, pud, addr, next, in gup_pud_range()
190 } while (pudp++, addr = next, addr != end); in gup_pud_range()
Dfault_64.c97 pud_t *pudp; in get_user_insn() local
105 pudp = pud_offset(pgdp, tpc); in get_user_insn()
106 if (pud_none(*pudp) || unlikely(pud_bad(*pudp))) in get_user_insn()
112 pmdp = pmd_offset(pudp, tpc); in get_user_insn()
/arch/score/mm/
Dcache.c178 pud_t *pudp; in flush_cache_range() local
186 pudp = pud_offset(pgdp, start); in flush_cache_range()
187 pmdp = pmd_offset(pudp, start); in flush_cache_range()
193 pudp = pud_offset(pgdp, start); in flush_cache_range()
194 pmdp = pmd_offset(pudp, start); in flush_cache_range()
/arch/arm64/include/asm/
Dtlb.h75 static inline void __pud_free_tlb(struct mmu_gather *tlb, pud_t *pudp, in __pud_free_tlb() argument
79 tlb_remove_entry(tlb, virt_to_page(pudp)); in __pud_free_tlb()
Dstage2_pgtable.h87 #define stage2_pud_table_empty(pudp) kvm_page_empty(pudp) argument
Dkvm_mmu.h239 #define hyp_pud_table_empty(pudp) (0) argument
241 #define hyp_pud_table_empty(pudp) kvm_page_empty(pudp) argument
/arch/arm/include/asm/
Dpgtable-3level.h150 #define pud_clear(pudp) \ argument
152 *pudp = __pud(0); \
153 clean_pmd_entry(pudp); \
156 #define set_pud(pudp, pud) \ argument
158 *pudp = pud; \
159 flush_pmd_entry(pudp); \
Dpgtable-2level.h186 #define pud_clear(pudp) do { } while (0) argument
187 #define set_pud(pud,pudp) do { } while (0) argument
/arch/powerpc/include/asm/nohash/64/
Dpgtable.h120 static inline void pud_set(pud_t *pudp, unsigned long val) in pud_set() argument
122 *pudp = __pud(val); in pud_set()
125 static inline void pud_clear(pud_t *pudp) in pud_clear() argument
127 *pudp = __pud(0); in pud_clear()
163 #define pmd_offset(pudp,addr) \ argument
164 (((pmd_t *) pud_page_vaddr(*(pudp))) + (((addr) >> PMD_SHIFT) & (PTRS_PER_PMD - 1)))
/arch/sh/mm/
Dgup.c144 pud_t *pudp; in gup_pud_range() local
146 pudp = pud_offset(&pgd, addr); in gup_pud_range()
148 pud_t pud = *pudp; in gup_pud_range()
155 } while (pudp++, addr = next, addr != end); in gup_pud_range()
/arch/x86/mm/
Dpgtable.c181 void pud_populate(struct mm_struct *mm, pud_t *pudp, pmd_t *pmd) in pud_populate() argument
187 set_pud(pudp, __pud(__pa(pmd) | _PAGE_PRESENT)); in pud_populate()
461 pud_t *pudp, pud_t entry, int dirty) in pudp_set_access_flags() argument
463 int changed = !pud_same(*pudp, entry); in pudp_set_access_flags()
468 set_pud(pudp, entry); in pudp_set_access_flags()
506 unsigned long addr, pud_t *pudp) in pudp_test_and_clear_young() argument
510 if (pud_young(*pudp)) in pudp_test_and_clear_young()
512 (unsigned long *)pudp); in pudp_test_and_clear_young()
/arch/mips/mm/
Dgup.c157 pud_t *pudp; in gup_pud_range() local
159 pudp = pud_offset(&pgd, addr); in gup_pud_range()
161 pud_t pud = *pudp; in gup_pud_range()
173 } while (pudp++, addr = next, addr != end); in gup_pud_range()
Dc-r3k.c244 pud_t *pudp; in r3k_flush_cache_page() local
256 pudp = pud_offset(pgdp, addr); in r3k_flush_cache_page()
257 pmdp = pmd_offset(pudp, addr); in r3k_flush_cache_page()
/arch/tile/include/asm/
Dpgtable_64.h92 static inline void pud_clear(pud_t *pudp) in pud_clear() argument
94 __pte_clear(&pudp->pgd); in pud_clear()
/arch/um/include/asm/
Dtlb.h157 #define pud_free_tlb(tlb, pudp, addr) __pud_free_tlb(tlb, pudp, addr) argument

12