pmdp 226 arch/alpha/include/asm/pgtable.h extern inline void pmd_set(pmd_t * pmdp, pte_t * ptep) pmdp 227 arch/alpha/include/asm/pgtable.h { pmd_val(*pmdp) = _PAGE_TABLE | ((((unsigned long) ptep) - PAGE_OFFSET) << (32-PAGE_SHIFT)); } pmdp 229 arch/alpha/include/asm/pgtable.h extern inline void pgd_set(pgd_t * pgdp, pmd_t * pmdp) pmdp 230 arch/alpha/include/asm/pgtable.h { pgd_val(*pgdp) = _PAGE_TABLE | ((((unsigned long) pmdp) - PAGE_OFFSET) << (32-PAGE_SHIFT)); } pmdp 257 arch/alpha/include/asm/pgtable.h extern inline void pmd_clear(pmd_t * pmdp) { pmd_val(*pmdp) = 0; } pmdp 54 arch/arc/include/asm/hugepage.h pmd_t *pmdp, pmd_t pmd) pmdp 56 arch/arc/include/asm/hugepage.h *pmdp = pmd; pmdp 64 arch/arc/include/asm/hugepage.h extern void pgtable_trans_huge_deposit(struct mm_struct *mm, pmd_t *pmdp, pmdp 68 arch/arc/include/asm/hugepage.h extern pgtable_t pgtable_trans_huge_withdraw(struct mm_struct *mm, pmd_t *pmdp); pmdp 265 arch/arc/include/asm/pgtable.h static inline void pmd_set(pmd_t *pmdp, pte_t *ptep) pmdp 267 arch/arc/include/asm/pgtable.h pmd_val(*pmdp) = (unsigned long)ptep; pmdp 663 arch/arc/mm/tlb.c void pgtable_trans_huge_deposit(struct mm_struct *mm, pmd_t *pmdp, pmdp 671 arch/arc/mm/tlb.c if (!pmd_huge_pte(mm, pmdp)) pmdp 674 arch/arc/mm/tlb.c list_add(lh, (struct list_head *) pmd_huge_pte(mm, pmdp)); pmdp 675 arch/arc/mm/tlb.c pmd_huge_pte(mm, pmdp) = pgtable; pmdp 678 arch/arc/mm/tlb.c pgtable_t pgtable_trans_huge_withdraw(struct mm_struct *mm, pmd_t *pmdp) pmdp 685 arch/arc/mm/tlb.c pgtable = pmd_huge_pte(mm, pmdp); pmdp 688 arch/arc/mm/tlb.c pmd_huge_pte(mm, pmdp) = NULL; pmdp 690 arch/arc/mm/tlb.c pmd_huge_pte(mm, pmdp) = (pgtable_t) lh->next; pmdp 70 arch/arm/include/asm/kvm_mmu.h #define kvm_mk_pud(pmdp) __pud(__pa(pmdp) | PMD_TYPE_TABLE) pmdp 195 arch/arm/include/asm/kvm_mmu.h #define kvm_pmd_table_empty(kvm, pmdp) kvm_page_empty(pmdp) pmdp 199 arch/arm/include/asm/kvm_mmu.h #define hyp_pmd_table_empty(pmdp) kvm_page_empty(pmdp) pmdp 111 arch/arm/include/asm/pgalloc.h static inline void __pmd_populate(pmd_t *pmdp, phys_addr_t pte, pmdp 115 arch/arm/include/asm/pgalloc.h pmdp[0] = __pmd(pmdval); pmdp 117 arch/arm/include/asm/pgalloc.h pmdp[1] = __pmd(pmdval + 256 * sizeof(pte_t)); pmdp 119 arch/arm/include/asm/pgalloc.h flush_pmd_entry(pmdp); pmdp 129 arch/arm/include/asm/pgalloc.h pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmdp, pte_t *ptep) pmdp 134 arch/arm/include/asm/pgalloc.h __pmd_populate(pmdp, __pa(ptep), _PAGE_KERNEL_TABLE); pmdp 138 arch/arm/include/asm/pgalloc.h pmd_populate(struct mm_struct *mm, pmd_t *pmdp, pgtable_t ptep) pmdp 148 arch/arm/include/asm/pgalloc.h __pmd_populate(pmdp, page_to_phys(ptep), prot); pmdp 202 arch/arm/include/asm/pgtable-2level.h #define pmd_clear(pmdp) \ pmdp 204 arch/arm/include/asm/pgtable-2level.h pmdp[0] = __pmd(0); \ pmdp 205 arch/arm/include/asm/pgtable-2level.h pmdp[1] = __pmd(0); \ pmdp 206 arch/arm/include/asm/pgtable-2level.h clean_pmd_entry(pmdp); \ pmdp 170 arch/arm/include/asm/pgtable-3level.h #define pmd_clear(pmdp) \ pmdp 172 arch/arm/include/asm/pgtable-3level.h *pmdp = __pmd(0); \ pmdp 173 arch/arm/include/asm/pgtable-3level.h clean_pmd_entry(pmdp); \ pmdp 257 arch/arm/include/asm/pgtable-3level.h pmd_t *pmdp, pmd_t pmd) pmdp 270 arch/arm/include/asm/pgtable-3level.h *pmdp = __pmd(pmd_val(pmd) | PMD_SECT_nG); pmdp 271 arch/arm/include/asm/pgtable-3level.h flush_pmd_entry(pmdp); pmdp 57 arch/arm/include/asm/stage2_pgtable.h #define stage2_pmd_table_empty(kvm, pmdp) kvm_page_empty(pmdp) pmdp 62 arch/arm/include/asm/tlb.h __pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmdp, unsigned long addr) pmdp 65 arch/arm/include/asm/tlb.h struct page *page = virt_to_page(pmdp); pmdp 146 arch/arm/mm/ioremap.c pmd_t *pmdp; pmdp 151 arch/arm/mm/ioremap.c pmdp = pmd_offset(pud, addr); pmdp 153 arch/arm/mm/ioremap.c pmd_t pmd = *pmdp; pmdp 163 arch/arm/mm/ioremap.c pmd_clear(pmdp); pmdp 174 arch/arm/mm/ioremap.c pmdp += 2; pmdp 172 arch/arm64/include/asm/kvm_mmu.h #define kvm_mk_pud(pmdp) \ pmdp 173 arch/arm64/include/asm/kvm_mmu.h __pud(__phys_to_pud_val(__pa(pmdp)) | PMD_TYPE_TABLE) pmdp 247 arch/arm64/include/asm/kvm_mmu.h static inline void kvm_set_s2pmd_readonly(pmd_t *pmdp) pmdp 249 arch/arm64/include/asm/kvm_mmu.h kvm_set_s2pte_readonly((pte_t *)pmdp); pmdp 252 arch/arm64/include/asm/kvm_mmu.h static inline bool kvm_s2pmd_readonly(pmd_t *pmdp) pmdp 254 arch/arm64/include/asm/kvm_mmu.h return kvm_s2pte_readonly((pte_t *)pmdp); pmdp 257 arch/arm64/include/asm/kvm_mmu.h static inline bool kvm_s2pmd_exec(pmd_t *pmdp) pmdp 259 arch/arm64/include/asm/kvm_mmu.h return !(READ_ONCE(pmd_val(*pmdp)) & PMD_S2_XN); pmdp 290 arch/arm64/include/asm/kvm_mmu.h #define hyp_pmd_table_empty(pmdp) (0) pmdp 292 arch/arm64/include/asm/kvm_mmu.h #define hyp_pmd_table_empty(pmdp) kvm_page_empty(pmdp) pmdp 40 arch/arm64/include/asm/pgalloc.h static inline void pmd_free(struct mm_struct *mm, pmd_t *pmdp) pmdp 42 arch/arm64/include/asm/pgalloc.h BUG_ON((unsigned long)pmdp & (PAGE_SIZE-1)); pmdp 43 arch/arm64/include/asm/pgalloc.h pgtable_pmd_page_dtor(virt_to_page(pmdp)); pmdp 44 arch/arm64/include/asm/pgalloc.h free_page((unsigned long)pmdp); pmdp 47 arch/arm64/include/asm/pgalloc.h static inline void __pud_populate(pud_t *pudp, phys_addr_t pmdp, pudval_t prot) pmdp 49 arch/arm64/include/asm/pgalloc.h set_pud(pudp, __pud(__phys_to_pud_val(pmdp) | prot)); pmdp 52 arch/arm64/include/asm/pgalloc.h static inline void pud_populate(struct mm_struct *mm, pud_t *pudp, pmd_t *pmdp) pmdp 54 arch/arm64/include/asm/pgalloc.h __pud_populate(pudp, __pa(pmdp), PMD_TYPE_TABLE); pmdp 57 arch/arm64/include/asm/pgalloc.h static inline void __pud_populate(pud_t *pudp, phys_addr_t pmdp, pudval_t prot) pmdp 95 arch/arm64/include/asm/pgalloc.h static inline void __pmd_populate(pmd_t *pmdp, phys_addr_t ptep, pmdp 98 arch/arm64/include/asm/pgalloc.h set_pmd(pmdp, __pmd(__phys_to_pmd_val(ptep) | prot)); pmdp 106 arch/arm64/include/asm/pgalloc.h pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmdp, pte_t *ptep) pmdp 111 arch/arm64/include/asm/pgalloc.h __pmd_populate(pmdp, __pa(ptep), PMD_TYPE_TABLE); pmdp 115 arch/arm64/include/asm/pgalloc.h pmd_populate(struct mm_struct *mm, pmd_t *pmdp, pgtable_t ptep) pmdp 117 arch/arm64/include/asm/pgalloc.h __pmd_populate(pmdp, page_to_phys(ptep), PMD_TYPE_TABLE); pmdp 402 arch/arm64/include/asm/pgtable.h #define set_pmd_at(mm, addr, pmdp, pmd) set_pte_at(mm, addr, (pte_t *)pmdp, pmd_pte(pmd)) pmdp 469 arch/arm64/include/asm/pgtable.h static inline void set_pmd(pmd_t *pmdp, pmd_t pmd) pmdp 472 arch/arm64/include/asm/pgtable.h if (in_swapper_pgdir(pmdp)) { pmdp 473 arch/arm64/include/asm/pgtable.h set_swapper_pgd((pgd_t *)pmdp, __pgd(pmd_val(pmd))); pmdp 478 arch/arm64/include/asm/pgtable.h WRITE_ONCE(*pmdp, pmd); pmdp 486 arch/arm64/include/asm/pgtable.h static inline void pmd_clear(pmd_t *pmdp) pmdp 488 arch/arm64/include/asm/pgtable.h set_pmd(pmdp, __pmd(0)); pmdp 682 arch/arm64/include/asm/pgtable.h unsigned long address, pmd_t *pmdp, pmdp 685 arch/arm64/include/asm/pgtable.h return ptep_set_access_flags(vma, address, (pte_t *)pmdp, pmd_pte(entry), dirty); pmdp 750 arch/arm64/include/asm/pgtable.h pmd_t *pmdp) pmdp 752 arch/arm64/include/asm/pgtable.h return ptep_test_and_clear_young(vma, address, (pte_t *)pmdp); pmdp 766 arch/arm64/include/asm/pgtable.h unsigned long address, pmd_t *pmdp) pmdp 768 arch/arm64/include/asm/pgtable.h return pte_pmd(ptep_get_and_clear(mm, address, (pte_t *)pmdp)); pmdp 799 arch/arm64/include/asm/pgtable.h unsigned long address, pmd_t *pmdp) pmdp 801 arch/arm64/include/asm/pgtable.h ptep_set_wrprotect(mm, address, (pte_t *)pmdp); pmdp 806 arch/arm64/include/asm/pgtable.h unsigned long address, pmd_t *pmdp, pmd_t pmd) pmdp 808 arch/arm64/include/asm/pgtable.h return __pmd(xchg_relaxed(&pmd_val(*pmdp), pmd_val(pmd))); pmdp 195 arch/arm64/include/asm/stage2_pgtable.h static inline bool stage2_pmd_table_empty(struct kvm *kvm, pmd_t *pmdp) pmdp 198 arch/arm64/include/asm/stage2_pgtable.h return kvm_page_empty(pmdp); pmdp 52 arch/arm64/include/asm/tlb.h static inline void __pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmdp, pmdp 55 arch/arm64/include/asm/tlb.h struct page *page = virt_to_page(pmdp); pmdp 207 arch/arm64/kernel/hibernate.c pmd_t *pmdp; pmdp 237 arch/arm64/kernel/hibernate.c pmdp = allocator(mask); pmdp 238 arch/arm64/kernel/hibernate.c if (!pmdp) { pmdp 242 arch/arm64/kernel/hibernate.c pud_populate(&init_mm, pudp, pmdp); pmdp 245 arch/arm64/kernel/hibernate.c pmdp = pmd_offset(pudp, dst_addr); pmdp 246 arch/arm64/kernel/hibernate.c if (pmd_none(READ_ONCE(*pmdp))) { pmdp 252 arch/arm64/kernel/hibernate.c pmd_populate_kernel(&init_mm, pmdp, ptep); pmdp 255 arch/arm64/kernel/hibernate.c ptep = pte_offset_kernel(pmdp, dst_addr); pmdp 295 arch/arm64/mm/dump.c static void walk_pte(struct pg_state *st, pmd_t *pmdp, unsigned long start, pmdp 299 arch/arm64/mm/dump.c pte_t *ptep = pte_offset_kernel(pmdp, start); pmdp 310 arch/arm64/mm/dump.c pmd_t *pmdp = pmd_offset(pudp, start); pmdp 313 arch/arm64/mm/dump.c pmd_t pmd = READ_ONCE(*pmdp); pmdp 320 arch/arm64/mm/dump.c walk_pte(st, pmdp, addr, next); pmdp 322 arch/arm64/mm/dump.c } while (pmdp++, addr = next, addr != end); pmdp 160 arch/arm64/mm/fault.c pmd_t *pmdp, pmd; pmdp 172 arch/arm64/mm/fault.c pmdp = pmd_offset(pudp, addr); pmdp 173 arch/arm64/mm/fault.c pmd = READ_ONCE(*pmdp); pmdp 178 arch/arm64/mm/fault.c ptep = pte_offset_map(pmdp, addr); pmdp 71 arch/arm64/mm/hugetlbpage.c pmd_t *pmdp; pmdp 75 arch/arm64/mm/hugetlbpage.c pmdp = pmd_offset(pudp, addr); pmdp 76 arch/arm64/mm/hugetlbpage.c if ((pte_t *)pmdp == ptep) { pmdp 221 arch/arm64/mm/hugetlbpage.c pmd_t *pmdp; pmdp 232 arch/arm64/mm/hugetlbpage.c pmdp = pmd_alloc(mm, pudp, addr); pmdp 233 arch/arm64/mm/hugetlbpage.c if (!pmdp) pmdp 244 arch/arm64/mm/hugetlbpage.c ptep = pte_alloc_map(mm, pmdp, addr); pmdp 252 arch/arm64/mm/hugetlbpage.c pmdp = pmd_alloc(mm, pudp, addr); pmdp 254 arch/arm64/mm/hugetlbpage.c return (pte_t *)pmdp; pmdp 265 arch/arm64/mm/hugetlbpage.c pmd_t *pmdp, pmd; pmdp 283 arch/arm64/mm/hugetlbpage.c pmdp = pmd_offset(pudp, addr); pmdp 284 arch/arm64/mm/hugetlbpage.c pmd = READ_ONCE(*pmdp); pmdp 289 arch/arm64/mm/hugetlbpage.c return (pte_t *)pmdp; pmdp 292 arch/arm64/mm/hugetlbpage.c return pte_offset_kernel(pmdp, (addr & CONT_PTE_MASK)); pmdp 60 arch/arm64/mm/kasan_init.c static pte_t *__init kasan_pte_offset(pmd_t *pmdp, unsigned long addr, int node, pmdp 63 arch/arm64/mm/kasan_init.c if (pmd_none(READ_ONCE(*pmdp))) { pmdp 67 arch/arm64/mm/kasan_init.c __pmd_populate(pmdp, pte_phys, PMD_TYPE_TABLE); pmdp 70 arch/arm64/mm/kasan_init.c return early ? pte_offset_kimg(pmdp, addr) pmdp 71 arch/arm64/mm/kasan_init.c : pte_offset_kernel(pmdp, addr); pmdp 100 arch/arm64/mm/kasan_init.c static void __init kasan_pte_populate(pmd_t *pmdp, unsigned long addr, pmdp 104 arch/arm64/mm/kasan_init.c pte_t *ptep = kasan_pte_offset(pmdp, addr, node, early); pmdp 121 arch/arm64/mm/kasan_init.c pmd_t *pmdp = kasan_pmd_offset(pudp, addr, node, early); pmdp 125 arch/arm64/mm/kasan_init.c kasan_pte_populate(pmdp, addr, next, node, early); pmdp 126 arch/arm64/mm/kasan_init.c } while (pmdp++, addr = next, addr != end && pmd_none(READ_ONCE(*pmdp))); pmdp 140 arch/arm64/mm/mmu.c static void init_pte(pmd_t *pmdp, unsigned long addr, unsigned long end, pmdp 145 arch/arm64/mm/mmu.c ptep = pte_set_fixmap_offset(pmdp, addr); pmdp 164 arch/arm64/mm/mmu.c static void alloc_init_cont_pte(pmd_t *pmdp, unsigned long addr, pmdp 171 arch/arm64/mm/mmu.c pmd_t pmd = READ_ONCE(*pmdp); pmdp 178 arch/arm64/mm/mmu.c __pmd_populate(pmdp, pte_phys, PMD_TYPE_TABLE); pmdp 179 arch/arm64/mm/mmu.c pmd = READ_ONCE(*pmdp); pmdp 193 arch/arm64/mm/mmu.c init_pte(pmdp, addr, next, phys, __prot); pmdp 204 arch/arm64/mm/mmu.c pmd_t *pmdp; pmdp 206 arch/arm64/mm/mmu.c pmdp = pmd_set_fixmap_offset(pudp, addr); pmdp 208 arch/arm64/mm/mmu.c pmd_t old_pmd = READ_ONCE(*pmdp); pmdp 215 arch/arm64/mm/mmu.c pmd_set_huge(pmdp, phys, prot); pmdp 222 arch/arm64/mm/mmu.c READ_ONCE(pmd_val(*pmdp)))); pmdp 224 arch/arm64/mm/mmu.c alloc_init_cont_pte(pmdp, addr, next, phys, prot, pmdp 228 arch/arm64/mm/mmu.c pmd_val(old_pmd) != READ_ONCE(pmd_val(*pmdp))); pmdp 231 arch/arm64/mm/mmu.c } while (pmdp++, addr = next, addr != end); pmdp 695 arch/arm64/mm/mmu.c pmd_t *pmdp, pmd; pmdp 713 arch/arm64/mm/mmu.c pmdp = pmd_offset(pudp, addr); pmdp 714 arch/arm64/mm/mmu.c pmd = READ_ONCE(*pmdp); pmdp 721 arch/arm64/mm/mmu.c ptep = pte_offset_kernel(pmdp, addr); pmdp 743 arch/arm64/mm/mmu.c pmd_t *pmdp; pmdp 756 arch/arm64/mm/mmu.c pmdp = pmd_offset(pudp, addr); pmdp 757 arch/arm64/mm/mmu.c if (pmd_none(READ_ONCE(*pmdp))) { pmdp 764 arch/arm64/mm/mmu.c pmd_set_huge(pmdp, __pa(p), __pgprot(PROT_SECT_NORMAL)); pmdp 766 arch/arm64/mm/mmu.c vmemmap_verify((pte_t *)pmdp, node, addr, next); pmdp 813 arch/arm64/mm/mmu.c pmd_t *pmdp; pmdp 834 arch/arm64/mm/mmu.c pmdp = fixmap_pmd(addr); pmdp 835 arch/arm64/mm/mmu.c __pmd_populate(pmdp, __pa_symbol(bm_pte), PMD_TYPE_TABLE); pmdp 844 arch/arm64/mm/mmu.c if ((pmdp != fixmap_pmd(fix_to_virt(FIX_BTMAP_BEGIN))) pmdp 845 arch/arm64/mm/mmu.c || pmdp != fixmap_pmd(fix_to_virt(FIX_BTMAP_END))) { pmdp 848 arch/arm64/mm/mmu.c pmdp, fixmap_pmd(fix_to_virt(FIX_BTMAP_BEGIN)), pmdp 970 arch/arm64/mm/mmu.c int pmd_set_huge(pmd_t *pmdp, phys_addr_t phys, pgprot_t prot) pmdp 975 arch/arm64/mm/mmu.c if (!pgattr_change_is_safe(READ_ONCE(pmd_val(*pmdp)), pmdp 980 arch/arm64/mm/mmu.c set_pmd(pmdp, new_pmd); pmdp 992 arch/arm64/mm/mmu.c int pmd_clear_huge(pmd_t *pmdp) pmdp 994 arch/arm64/mm/mmu.c if (!pmd_sect(READ_ONCE(*pmdp))) pmdp 996 arch/arm64/mm/mmu.c pmd_clear(pmdp); pmdp 1000 arch/arm64/mm/mmu.c int pmd_free_pte_page(pmd_t *pmdp, unsigned long addr) pmdp 1005 arch/arm64/mm/mmu.c pmd = READ_ONCE(*pmdp); pmdp 1012 arch/arm64/mm/mmu.c table = pte_offset_kernel(pmdp, addr); pmdp 1013 arch/arm64/mm/mmu.c pmd_clear(pmdp); pmdp 1022 arch/arm64/mm/mmu.c pmd_t *pmdp; pmdp 1034 arch/arm64/mm/mmu.c pmdp = table; pmdp 1038 arch/arm64/mm/mmu.c pmd_free_pte_page(pmdp, next); pmdp 1039 arch/arm64/mm/mmu.c } while (pmdp++, next += PMD_SIZE, next != end); pmdp 202 arch/arm64/mm/pageattr.c pmd_t *pmdp, pmd; pmdp 220 arch/arm64/mm/pageattr.c pmdp = pmd_offset(pudp, addr); pmdp 221 arch/arm64/mm/pageattr.c pmd = READ_ONCE(*pmdp); pmdp 227 arch/arm64/mm/pageattr.c ptep = pte_offset_kernel(pmdp, addr); pmdp 274 arch/ia64/include/asm/pgtable.h #define pmd_clear(pmdp) (pmd_val(*(pmdp)) = 0UL) pmdp 165 arch/m68k/include/asm/mcf_pgtable.h #define pmd_set(pmdp, ptep) do {} while (0) pmdp 167 arch/m68k/include/asm/mcf_pgtable.h static inline void pgd_set(pgd_t *pgdp, pmd_t *pmdp) pmdp 169 arch/m68k/include/asm/mcf_pgtable.h pgd_val(*pgdp) = virt_to_phys(pmdp); pmdp 199 arch/m68k/include/asm/mcf_pgtable.h static inline void pmd_clear(pmd_t *pmdp) { pmd_val(*pmdp) = 0; } pmdp 363 arch/m68k/include/asm/mcf_pgtable.h pmd_t *pmdp; pmdp 368 arch/m68k/include/asm/mcf_pgtable.h pmdp = pmd_offset(dir, addr); pmdp 369 arch/m68k/include/asm/mcf_pgtable.h ptep = pte_offset_kernel(pmdp, addr); pmdp 379 arch/m68k/include/asm/mcf_pgtable.h pmd_t *pmdp; pmdp 384 arch/m68k/include/asm/mcf_pgtable.h pmdp = pmd_offset(dir, addr); pmdp 385 arch/m68k/include/asm/mcf_pgtable.h ptep = pte_offset_kernel(pmdp, addr); pmdp 401 arch/m68k/include/asm/mcf_pgtable.h #define pte_offset_map(pmdp, addr) ((pte_t *)__pmd_page(*pmdp) + \ pmdp 109 arch/m68k/include/asm/motorola_pgtable.h static inline void pmd_set(pmd_t *pmdp, pte_t *ptep) pmdp 112 arch/m68k/include/asm/motorola_pgtable.h unsigned long *ptr = pmdp->pmd; pmdp 120 arch/m68k/include/asm/motorola_pgtable.h static inline void pgd_set(pgd_t *pgdp, pmd_t *pmdp) pmdp 122 arch/m68k/include/asm/motorola_pgtable.h pgd_val(*pgdp) = _PAGE_TABLE | _PAGE_ACCESSED | __pa(pmdp); pmdp 141 arch/m68k/include/asm/motorola_pgtable.h #define pmd_clear(pmdp) ({ \ pmdp 142 arch/m68k/include/asm/motorola_pgtable.h unsigned long *__ptr = pmdp->pmd; \ pmdp 218 arch/m68k/include/asm/motorola_pgtable.h static inline pte_t *pte_offset_kernel(pmd_t *pmdp, unsigned long address) pmdp 220 arch/m68k/include/asm/motorola_pgtable.h return (pte_t *)__pmd_page(*pmdp) + ((address >> PAGE_SHIFT) & (PTRS_PER_PTE - 1)); pmdp 223 arch/m68k/include/asm/motorola_pgtable.h #define pte_offset_map(pmdp,address) ((pte_t *)__pmd_page(*pmdp) + (((address) >> PAGE_SHIFT) & (PTRS_PER_PTE - 1))) pmdp 242 arch/m68k/include/asm/motorola_pgtable.h pmd_t *pmdp; pmdp 246 arch/m68k/include/asm/motorola_pgtable.h pmdp = pmd_offset(dir, addr); pmdp 247 arch/m68k/include/asm/motorola_pgtable.h ptep = pte_offset_kernel(pmdp, addr); pmdp 258 arch/m68k/include/asm/motorola_pgtable.h pmd_t *pmdp; pmdp 262 arch/m68k/include/asm/motorola_pgtable.h pmdp = pmd_offset(dir, addr); pmdp 263 arch/m68k/include/asm/motorola_pgtable.h ptep = pte_offset_kernel(pmdp, addr); pmdp 111 arch/m68k/include/asm/sun3_pgtable.h #define pmd_set(pmdp,ptep) do {} while (0) pmdp 113 arch/m68k/include/asm/sun3_pgtable.h static inline void pgd_set(pgd_t *pgdp, pmd_t *pmdp) pmdp 115 arch/m68k/include/asm/sun3_pgtable.h pgd_val(*pgdp) = virt_to_phys(pmdp); pmdp 146 arch/m68k/include/asm/sun3_pgtable.h static inline void pmd_clear (pmd_t *pmdp) { pmd_val (*pmdp) = 0; } pmdp 304 arch/microblaze/include/asm/pgtable.h #define pmd_clear(pmdp) do { pmd_val(*(pmdp)) = 0; } while (0) pmdp 163 arch/microblaze/kernel/signal.c pmd_t *pmdp; pmdp 198 arch/microblaze/kernel/signal.c pmdp = pmd_offset(pud_offset( pmdp 203 arch/microblaze/kernel/signal.c ptep = pte_offset_map(pmdp, address); pmdp 151 arch/mips/include/asm/pgtable-32.h static inline void pmd_clear(pmd_t *pmdp) pmdp 153 arch/mips/include/asm/pgtable-32.h pmd_val(*pmdp) = ((unsigned long) invalid_pte_table); pmdp 281 arch/mips/include/asm/pgtable-64.h static inline void pmd_clear(pmd_t *pmdp) pmdp 283 arch/mips/include/asm/pgtable-64.h pmd_val(*pmdp) = ((unsigned long) invalid_pte_table); pmdp 485 arch/mips/include/asm/pgtable.h unsigned long address, pmd_t *pmdp) pmdp 487 arch/mips/include/asm/pgtable.h pte_t pte = *(pte_t *)pmdp; pmdp 530 arch/mips/include/asm/pgtable.h pmd_t *pmdp, pmd_t pmd); pmdp 631 arch/mips/include/asm/pgtable.h unsigned long address, pmd_t *pmdp) pmdp 633 arch/mips/include/asm/pgtable.h pmd_t old = *pmdp; pmdp 635 arch/mips/include/asm/pgtable.h pmd_clear(pmdp); pmdp 245 arch/mips/mm/c-r3k.c pmd_t *pmdp; pmdp 257 arch/mips/mm/c-r3k.c pmdp = pmd_offset(pudp, addr); pmdp 258 arch/mips/mm/c-r3k.c ptep = pte_offset(pmdp, addr); pmdp 654 arch/mips/mm/c-r4k.c pmd_t *pmdp; pmdp 668 arch/mips/mm/c-r4k.c pmdp = pmd_offset(pudp, addr); pmdp 669 arch/mips/mm/c-r4k.c ptep = pte_offset(pmdp, addr); pmdp 174 arch/mips/mm/c-tx39.c pmd_t *pmdp; pmdp 187 arch/mips/mm/c-tx39.c pmdp = pmd_offset(pudp, page); pmdp 188 arch/mips/mm/c-tx39.c ptep = pte_offset(pmdp, page); pmdp 46 arch/mips/mm/pgtable-32.c pmd_t *pmdp, pmd_t pmd) pmdp 48 arch/mips/mm/pgtable-32.c *pmdp = pmd; pmdp 101 arch/mips/mm/pgtable-64.c pmd_t *pmdp, pmd_t pmd) pmdp 103 arch/mips/mm/pgtable-64.c *pmdp = pmd; pmdp 299 arch/mips/mm/tlb-r4k.c pmd_t *pmdp; pmdp 324 arch/mips/mm/tlb-r4k.c pmdp = pmd_offset(pudp, address); pmdp 328 arch/mips/mm/tlb-r4k.c if (pmd_huge(*pmdp)) { pmdp 331 arch/mips/mm/tlb-r4k.c ptep = (pte_t *)pmdp; pmdp 346 arch/mips/mm/tlb-r4k.c ptep = pte_offset_map(pmdp, address); pmdp 44 arch/nds32/include/asm/pgalloc.h pmd_populate_kernel(struct mm_struct *mm, pmd_t * pmdp, pte_t * ptep) pmdp 56 arch/nds32/include/asm/pgalloc.h set_pmd(pmdp, __pmd(pmdval)); pmdp 60 arch/nds32/include/asm/pgalloc.h pmd_populate(struct mm_struct *mm, pmd_t * pmdp, pgtable_t ptep) pmdp 67 arch/nds32/include/asm/pgalloc.h set_pmd(pmdp, __pmd(pmdval)); pmdp 210 arch/nds32/include/asm/pgtable.h static inline void set_pmd(pmd_t * pmdp, pmd_t pmd) pmdp 213 arch/nds32/include/asm/pgtable.h *pmdp = pmd; pmdp 215 arch/nds32/include/asm/pgtable.h __asm__ volatile ("\n\tcctl %0, L1D_VA_WB"::"r" (pmdp):"memory"); pmdp 315 arch/nds32/include/asm/pgtable.h #define pmd_clear(pmdp) set_pmd((pmdp), __pmd(1)) pmdp 193 arch/nios2/include/asm/pgtable.h static inline void pmd_clear(pmd_t *pmdp) pmdp 195 arch/nios2/include/asm/pgtable.h pmd_val(*pmdp) = (unsigned long) invalid_pte_table; pmdp 363 arch/openrisc/include/asm/pgtable.h static inline void pmd_set(pmd_t *pmdp, pte_t *ptep) pmdp 365 arch/openrisc/include/asm/pgtable.h pmd_val(*pmdp) = _KERNPG_TABLE | (unsigned long) ptep; pmdp 28 arch/powerpc/include/asm/book3s/32/pgalloc.h static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmdp, pmdp 31 arch/powerpc/include/asm/book3s/32/pgalloc.h *pmdp = __pmd(__pa(pte) | _PMD_PRESENT); pmdp 34 arch/powerpc/include/asm/book3s/32/pgalloc.h static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmdp, pmdp 37 arch/powerpc/include/asm/book3s/32/pgalloc.h *pmdp = __pmd(__pa(pte_page) | _PMD_PRESENT); pmdp 221 arch/powerpc/include/asm/book3s/32/pgtable.h static inline void pmd_clear(pmd_t *pmdp) pmdp 223 arch/powerpc/include/asm/book3s/32/pgtable.h *pmdp = __pmd(0); pmdp 104 arch/powerpc/include/asm/book3s/64/hash-4k.h static inline char *get_hpte_slot_array(pmd_t *pmdp) pmdp 147 arch/powerpc/include/asm/book3s/64/hash-4k.h unsigned long addr, pmd_t *pmdp, pmdp 150 arch/powerpc/include/asm/book3s/64/hash-4k.h unsigned long address, pmd_t *pmdp); pmdp 151 arch/powerpc/include/asm/book3s/64/hash-4k.h extern void hash__pgtable_trans_huge_deposit(struct mm_struct *mm, pmd_t *pmdp, pmdp 153 arch/powerpc/include/asm/book3s/64/hash-4k.h extern pgtable_t hash__pgtable_trans_huge_withdraw(struct mm_struct *mm, pmd_t *pmdp); pmdp 155 arch/powerpc/include/asm/book3s/64/hash-4k.h unsigned long addr, pmd_t *pmdp); pmdp 189 arch/powerpc/include/asm/book3s/64/hash-64k.h static inline char *get_hpte_slot_array(pmd_t *pmdp) pmdp 198 arch/powerpc/include/asm/book3s/64/hash-64k.h return *(char **)(pmdp + PTRS_PER_PMD); pmdp 264 arch/powerpc/include/asm/book3s/64/hash-64k.h unsigned long addr, pmd_t *pmdp, pmdp 267 arch/powerpc/include/asm/book3s/64/hash-64k.h unsigned long address, pmd_t *pmdp); pmdp 268 arch/powerpc/include/asm/book3s/64/hash-64k.h extern void hash__pgtable_trans_huge_deposit(struct mm_struct *mm, pmd_t *pmdp, pmdp 270 arch/powerpc/include/asm/book3s/64/hash-64k.h extern pgtable_t hash__pgtable_trans_huge_withdraw(struct mm_struct *mm, pmd_t *pmdp); pmdp 272 arch/powerpc/include/asm/book3s/64/hash-64k.h unsigned long addr, pmd_t *pmdp); pmdp 236 arch/powerpc/include/asm/book3s/64/hash.h pmd_t *pmdp, unsigned long old_pmd); pmdp 239 arch/powerpc/include/asm/book3s/64/hash.h unsigned long addr, pmd_t *pmdp, pmdp 474 arch/powerpc/include/asm/book3s/64/mmu-hash.h unsigned long vsid, pmd_t *pmdp, unsigned long trap, pmdp 478 arch/powerpc/include/asm/book3s/64/mmu-hash.h unsigned long vsid, pmd_t *pmdp, pmdp 863 arch/powerpc/include/asm/book3s/64/pgtable.h static inline void pmd_clear(pmd_t *pmdp) pmdp 865 arch/powerpc/include/asm/book3s/64/pgtable.h *pmdp = __pmd(0); pmdp 1141 arch/powerpc/include/asm/book3s/64/pgtable.h pmd_t *pmdp, pmd_t pmd); pmdp 1154 arch/powerpc/include/asm/book3s/64/pgtable.h pmd_hugepage_update(struct mm_struct *mm, unsigned long addr, pmd_t *pmdp, pmdp 1158 arch/powerpc/include/asm/book3s/64/pgtable.h return radix__pmd_hugepage_update(mm, addr, pmdp, clr, set); pmdp 1159 arch/powerpc/include/asm/book3s/64/pgtable.h return hash__pmd_hugepage_update(mm, addr, pmdp, clr, set); pmdp 1180 arch/powerpc/include/asm/book3s/64/pgtable.h unsigned long addr, pmd_t *pmdp) pmdp 1184 arch/powerpc/include/asm/book3s/64/pgtable.h if ((pmd_raw(*pmdp) & cpu_to_be64(_PAGE_ACCESSED | H_PAGE_HASHPTE)) == 0) pmdp 1186 arch/powerpc/include/asm/book3s/64/pgtable.h old = pmd_hugepage_update(mm, addr, pmdp, _PAGE_ACCESSED, 0); pmdp 1192 arch/powerpc/include/asm/book3s/64/pgtable.h pmd_t *pmdp) pmdp 1194 arch/powerpc/include/asm/book3s/64/pgtable.h if (__pmd_write((*pmdp))) pmdp 1195 arch/powerpc/include/asm/book3s/64/pgtable.h pmd_hugepage_update(mm, addr, pmdp, _PAGE_WRITE, 0); pmdp 1196 arch/powerpc/include/asm/book3s/64/pgtable.h else if (unlikely(pmd_savedwrite(*pmdp))) pmdp 1197 arch/powerpc/include/asm/book3s/64/pgtable.h pmd_hugepage_update(mm, addr, pmdp, 0, _PAGE_PRIVILEGED); pmdp 1238 arch/powerpc/include/asm/book3s/64/pgtable.h unsigned long address, pmd_t *pmdp, pmdp 1243 arch/powerpc/include/asm/book3s/64/pgtable.h unsigned long address, pmd_t *pmdp); pmdp 1247 arch/powerpc/include/asm/book3s/64/pgtable.h unsigned long addr, pmd_t *pmdp) pmdp 1250 arch/powerpc/include/asm/book3s/64/pgtable.h return radix__pmdp_huge_get_and_clear(mm, addr, pmdp); pmdp 1251 arch/powerpc/include/asm/book3s/64/pgtable.h return hash__pmdp_huge_get_and_clear(mm, addr, pmdp); pmdp 1255 arch/powerpc/include/asm/book3s/64/pgtable.h unsigned long address, pmd_t *pmdp) pmdp 1258 arch/powerpc/include/asm/book3s/64/pgtable.h return radix__pmdp_collapse_flush(vma, address, pmdp); pmdp 1259 arch/powerpc/include/asm/book3s/64/pgtable.h return hash__pmdp_collapse_flush(vma, address, pmdp); pmdp 1265 arch/powerpc/include/asm/book3s/64/pgtable.h pmd_t *pmdp, pgtable_t pgtable) pmdp 1268 arch/powerpc/include/asm/book3s/64/pgtable.h return radix__pgtable_trans_huge_deposit(mm, pmdp, pgtable); pmdp 1269 arch/powerpc/include/asm/book3s/64/pgtable.h return hash__pgtable_trans_huge_deposit(mm, pmdp, pgtable); pmdp 1274 arch/powerpc/include/asm/book3s/64/pgtable.h pmd_t *pmdp) pmdp 1277 arch/powerpc/include/asm/book3s/64/pgtable.h return radix__pgtable_trans_huge_withdraw(mm, pmdp); pmdp 1278 arch/powerpc/include/asm/book3s/64/pgtable.h return hash__pgtable_trans_huge_withdraw(mm, pmdp); pmdp 1283 arch/powerpc/include/asm/book3s/64/pgtable.h pmd_t *pmdp); pmdp 248 arch/powerpc/include/asm/book3s/64/radix.h pmd_t *pmdp, unsigned long clr, pmdp 251 arch/powerpc/include/asm/book3s/64/radix.h unsigned long address, pmd_t *pmdp); pmdp 252 arch/powerpc/include/asm/book3s/64/radix.h extern void radix__pgtable_trans_huge_deposit(struct mm_struct *mm, pmd_t *pmdp, pmdp 254 arch/powerpc/include/asm/book3s/64/radix.h extern pgtable_t radix__pgtable_trans_huge_withdraw(struct mm_struct *mm, pmd_t *pmdp); pmdp 256 arch/powerpc/include/asm/book3s/64/radix.h unsigned long addr, pmd_t *pmdp); pmdp 60 arch/powerpc/include/asm/book3s/64/tlbflush-hash.h pmd_t *pmdp, unsigned int psize, int ssize, pmdp 17 arch/powerpc/include/asm/nohash/32/pgalloc.h static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmdp, pmdp 21 arch/powerpc/include/asm/nohash/32/pgalloc.h *pmdp = __pmd((unsigned long)pte | _PMD_PRESENT); pmdp 23 arch/powerpc/include/asm/nohash/32/pgalloc.h *pmdp = __pmd(__pa(pte) | _PMD_PRESENT); pmdp 26 arch/powerpc/include/asm/nohash/32/pgalloc.h static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmdp, pmdp 30 arch/powerpc/include/asm/nohash/32/pgalloc.h *pmdp = __pmd((unsigned long)pte_page | _PMD_PRESENT); pmdp 32 arch/powerpc/include/asm/nohash/32/pgalloc.h *pmdp = __pmd(__pa(pte_page) | _PMD_USER | _PMD_PRESENT); pmdp 198 arch/powerpc/include/asm/nohash/32/pgtable.h static inline void pmd_clear(pmd_t *pmdp) pmdp 200 arch/powerpc/include/asm/nohash/32/pgtable.h *pmdp = __pmd(0); pmdp 128 arch/powerpc/include/asm/nohash/64/pgtable.h static inline void pmd_set(pmd_t *pmdp, unsigned long val) pmdp 130 arch/powerpc/include/asm/nohash/64/pgtable.h *pmdp = __pmd(val); pmdp 133 arch/powerpc/include/asm/nohash/64/pgtable.h static inline void pmd_clear(pmd_t *pmdp) pmdp 135 arch/powerpc/include/asm/nohash/64/pgtable.h *pmdp = __pmd(0); pmdp 93 arch/powerpc/include/asm/pgtable-be-types.h static inline bool pmd_xchg(pmd_t *pmdp, pmd_t old, pmd_t new) pmdp 95 arch/powerpc/include/asm/pgtable-be-types.h unsigned long *p = (unsigned long *)pmdp; pmdp 369 arch/powerpc/kvm/book3s_64_mmu_radix.c static void kvmppc_pmd_free(pmd_t *pmdp) pmdp 371 arch/powerpc/kvm/book3s_64_mmu_radix.c kmem_cache_free(kvm_pmd_cache, pmdp); pmdp 1201 arch/powerpc/kvm/book3s_64_mmu_radix.c pmd_t pmd, *pmdp; pmdp 1290 arch/powerpc/kvm/book3s_64_mmu_radix.c pmdp = pmd_offset(&pud, gpa); pmdp 1291 arch/powerpc/kvm/book3s_64_mmu_radix.c pmd = READ_ONCE(*pmdp); pmdp 108 arch/powerpc/lib/code-patching.c pmd_t *pmdp; pmdp 120 arch/powerpc/lib/code-patching.c pmdp = pmd_offset(pudp, addr); pmdp 121 arch/powerpc/lib/code-patching.c if (unlikely(!pmdp)) pmdp 124 arch/powerpc/lib/code-patching.c ptep = pte_offset_kernel(pmdp, addr); pmdp 22 arch/powerpc/mm/book3s64/hash_hugepage.c pmd_t *pmdp, unsigned long trap, unsigned long flags, pmdp 36 arch/powerpc/mm/book3s64/hash_hugepage.c pmd_t pmd = READ_ONCE(*pmdp); pmdp 52 arch/powerpc/mm/book3s64/hash_hugepage.c } while (!pmd_xchg(pmdp, __pmd(old_pmd), __pmd(new_pmd))); pmdp 80 arch/powerpc/mm/book3s64/hash_hugepage.c hpte_slot_array = get_hpte_slot_array(pmdp); pmdp 88 arch/powerpc/mm/book3s64/hash_hugepage.c flush_hash_hugepage(vsid, ea, pmdp, MMU_PAGE_64K, pmdp 165 arch/powerpc/mm/book3s64/hash_hugepage.c *pmdp = __pmd(old_pmd); pmdp 189 arch/powerpc/mm/book3s64/hash_hugepage.c *pmdp = __pmd(new_pmd & ~H_PAGE_BUSY); pmdp 152 arch/powerpc/mm/book3s64/hash_pgtable.c pmd_t *pmdp; pmdp 161 arch/powerpc/mm/book3s64/hash_pgtable.c pmdp = pmd_alloc(&init_mm, pudp, ea); pmdp 162 arch/powerpc/mm/book3s64/hash_pgtable.c if (!pmdp) pmdp 164 arch/powerpc/mm/book3s64/hash_pgtable.c ptep = pte_alloc_kernel(pmdp, ea); pmdp 190 arch/powerpc/mm/book3s64/hash_pgtable.c pmd_t *pmdp, unsigned long clr, pmdp 197 arch/powerpc/mm/book3s64/hash_pgtable.c WARN_ON(!hash__pmd_trans_huge(*pmdp) && !pmd_devmap(*pmdp)); pmdp 198 arch/powerpc/mm/book3s64/hash_pgtable.c assert_spin_locked(pmd_lockptr(mm, pmdp)); pmdp 209 arch/powerpc/mm/book3s64/hash_pgtable.c : "=&r" (old_be), "=&r" (tmp), "=m" (*pmdp) pmdp 210 arch/powerpc/mm/book3s64/hash_pgtable.c : "r" (pmdp), "r" (cpu_to_be64(clr)), "m" (*pmdp), pmdp 218 arch/powerpc/mm/book3s64/hash_pgtable.c hpte_do_hugepage_flush(mm, addr, pmdp, old); pmdp 223 arch/powerpc/mm/book3s64/hash_pgtable.c pmd_t *pmdp) pmdp 228 arch/powerpc/mm/book3s64/hash_pgtable.c VM_BUG_ON(pmd_trans_huge(*pmdp)); pmdp 229 arch/powerpc/mm/book3s64/hash_pgtable.c VM_BUG_ON(pmd_devmap(*pmdp)); pmdp 231 arch/powerpc/mm/book3s64/hash_pgtable.c pmd = *pmdp; pmdp 232 arch/powerpc/mm/book3s64/hash_pgtable.c pmd_clear(pmdp); pmdp 266 arch/powerpc/mm/book3s64/hash_pgtable.c void hash__pgtable_trans_huge_deposit(struct mm_struct *mm, pmd_t *pmdp, pmdp 271 arch/powerpc/mm/book3s64/hash_pgtable.c assert_spin_locked(pmd_lockptr(mm, pmdp)); pmdp 275 arch/powerpc/mm/book3s64/hash_pgtable.c pgtable_slot = (pgtable_t *)pmdp + PTRS_PER_PMD; pmdp 286 arch/powerpc/mm/book3s64/hash_pgtable.c pgtable_t hash__pgtable_trans_huge_withdraw(struct mm_struct *mm, pmd_t *pmdp) pmdp 291 arch/powerpc/mm/book3s64/hash_pgtable.c assert_spin_locked(pmd_lockptr(mm, pmdp)); pmdp 293 arch/powerpc/mm/book3s64/hash_pgtable.c pgtable_slot = (pgtable_t *)pmdp + PTRS_PER_PMD; pmdp 312 arch/powerpc/mm/book3s64/hash_pgtable.c pmd_t *pmdp, unsigned long old_pmd) pmdp 341 arch/powerpc/mm/book3s64/hash_pgtable.c return flush_hash_hugepage(vsid, addr, pmdp, psize, ssize, flags); pmdp 345 arch/powerpc/mm/book3s64/hash_pgtable.c unsigned long addr, pmd_t *pmdp) pmdp 352 arch/powerpc/mm/book3s64/hash_pgtable.c old = pmd_hugepage_update(mm, addr, pmdp, ~0UL, 0); pmdp 359 arch/powerpc/mm/book3s64/hash_pgtable.c pgtable_slot = (pgtable_t *)pmdp + PTRS_PER_PMD; pmdp 1745 arch/powerpc/mm/book3s64/hash_utils.c pmd_t *pmdp, unsigned int psize, int ssize, pmdp 1755 arch/powerpc/mm/book3s64/hash_utils.c hpte_slot_array = get_hpte_slot_array(pmdp); pmdp 36 arch/powerpc/mm/book3s64/pgtable.c pmd_t *pmdp, pmd_t entry, int dirty) pmdp 40 arch/powerpc/mm/book3s64/pgtable.c WARN_ON(!pmd_trans_huge(*pmdp) && !pmd_devmap(*pmdp)); pmdp 41 arch/powerpc/mm/book3s64/pgtable.c assert_spin_locked(pmd_lockptr(vma->vm_mm, pmdp)); pmdp 43 arch/powerpc/mm/book3s64/pgtable.c changed = !pmd_same(*(pmdp), entry); pmdp 49 arch/powerpc/mm/book3s64/pgtable.c __ptep_set_access_flags(vma, pmdp_ptep(pmdp), pmdp 56 arch/powerpc/mm/book3s64/pgtable.c unsigned long address, pmd_t *pmdp) pmdp 58 arch/powerpc/mm/book3s64/pgtable.c return __pmdp_test_and_clear_young(vma->vm_mm, address, pmdp); pmdp 65 arch/powerpc/mm/book3s64/pgtable.c pmd_t *pmdp, pmd_t pmd) pmdp 73 arch/powerpc/mm/book3s64/pgtable.c WARN_ON(pte_hw_valid(pmd_pte(*pmdp)) && !pte_protnone(pmd_pte(*pmdp))); pmdp 74 arch/powerpc/mm/book3s64/pgtable.c assert_spin_locked(pmd_lockptr(mm, pmdp)); pmdp 78 arch/powerpc/mm/book3s64/pgtable.c return set_pte_at(mm, addr, pmdp_ptep(pmdp), pmd_pte(pmd)); pmdp 106 arch/powerpc/mm/book3s64/pgtable.c pmd_t *pmdp) pmdp 110 arch/powerpc/mm/book3s64/pgtable.c old_pmd = pmd_hugepage_update(vma->vm_mm, address, pmdp, _PAGE_PRESENT, _PAGE_INVALID); pmdp 67 arch/powerpc/mm/book3s64/radix_pgtable.c pmd_t *pmdp; pmdp 82 arch/powerpc/mm/book3s64/radix_pgtable.c pmdp = early_alloc_pgtable(PMD_TABLE_SIZE, nid, pmdp 84 arch/powerpc/mm/book3s64/radix_pgtable.c pud_populate(&init_mm, pudp, pmdp); pmdp 86 arch/powerpc/mm/book3s64/radix_pgtable.c pmdp = pmd_offset(pudp, ea); pmdp 88 arch/powerpc/mm/book3s64/radix_pgtable.c ptep = pmdp_ptep(pmdp); pmdp 91 arch/powerpc/mm/book3s64/radix_pgtable.c if (!pmd_present(*pmdp)) { pmdp 94 arch/powerpc/mm/book3s64/radix_pgtable.c pmd_populate_kernel(&init_mm, pmdp, ptep); pmdp 96 arch/powerpc/mm/book3s64/radix_pgtable.c ptep = pte_offset_kernel(pmdp, ea); pmdp 117 arch/powerpc/mm/book3s64/radix_pgtable.c pmd_t *pmdp; pmdp 145 arch/powerpc/mm/book3s64/radix_pgtable.c pmdp = pmd_alloc(&init_mm, pudp, ea); pmdp 146 arch/powerpc/mm/book3s64/radix_pgtable.c if (!pmdp) pmdp 149 arch/powerpc/mm/book3s64/radix_pgtable.c ptep = pmdp_ptep(pmdp); pmdp 152 arch/powerpc/mm/book3s64/radix_pgtable.c ptep = pte_alloc_kernel(pmdp, ea); pmdp 176 arch/powerpc/mm/book3s64/radix_pgtable.c pmd_t *pmdp; pmdp 194 arch/powerpc/mm/book3s64/radix_pgtable.c pmdp = pmd_alloc(&init_mm, pudp, idx); pmdp 195 arch/powerpc/mm/book3s64/radix_pgtable.c if (!pmdp) pmdp 197 arch/powerpc/mm/book3s64/radix_pgtable.c if (pmd_is_leaf(*pmdp)) { pmdp 198 arch/powerpc/mm/book3s64/radix_pgtable.c ptep = pmdp_ptep(pmdp); pmdp 201 arch/powerpc/mm/book3s64/radix_pgtable.c ptep = pte_alloc_kernel(pmdp, idx); pmdp 924 arch/powerpc/mm/book3s64/radix_pgtable.c pmd_t *pmdp, unsigned long clr, pmdp 930 arch/powerpc/mm/book3s64/radix_pgtable.c WARN_ON(!radix__pmd_trans_huge(*pmdp) && !pmd_devmap(*pmdp)); pmdp 931 arch/powerpc/mm/book3s64/radix_pgtable.c assert_spin_locked(pmd_lockptr(mm, pmdp)); pmdp 934 arch/powerpc/mm/book3s64/radix_pgtable.c old = radix__pte_update(mm, addr, (pte_t *)pmdp, clr, set, 1); pmdp 941 arch/powerpc/mm/book3s64/radix_pgtable.c pmd_t *pmdp) pmdp 947 arch/powerpc/mm/book3s64/radix_pgtable.c VM_BUG_ON(radix__pmd_trans_huge(*pmdp)); pmdp 948 arch/powerpc/mm/book3s64/radix_pgtable.c VM_BUG_ON(pmd_devmap(*pmdp)); pmdp 952 arch/powerpc/mm/book3s64/radix_pgtable.c pmd = *pmdp; pmdp 953 arch/powerpc/mm/book3s64/radix_pgtable.c pmd_clear(pmdp); pmdp 969 arch/powerpc/mm/book3s64/radix_pgtable.c void radix__pgtable_trans_huge_deposit(struct mm_struct *mm, pmd_t *pmdp, pmdp 974 arch/powerpc/mm/book3s64/radix_pgtable.c assert_spin_locked(pmd_lockptr(mm, pmdp)); pmdp 977 arch/powerpc/mm/book3s64/radix_pgtable.c if (!pmd_huge_pte(mm, pmdp)) pmdp 980 arch/powerpc/mm/book3s64/radix_pgtable.c list_add(lh, (struct list_head *) pmd_huge_pte(mm, pmdp)); pmdp 981 arch/powerpc/mm/book3s64/radix_pgtable.c pmd_huge_pte(mm, pmdp) = pgtable; pmdp 984 arch/powerpc/mm/book3s64/radix_pgtable.c pgtable_t radix__pgtable_trans_huge_withdraw(struct mm_struct *mm, pmd_t *pmdp) pmdp 990 arch/powerpc/mm/book3s64/radix_pgtable.c assert_spin_locked(pmd_lockptr(mm, pmdp)); pmdp 993 arch/powerpc/mm/book3s64/radix_pgtable.c pgtable = pmd_huge_pte(mm, pmdp); pmdp 996 arch/powerpc/mm/book3s64/radix_pgtable.c pmd_huge_pte(mm, pmdp) = NULL; pmdp 998 arch/powerpc/mm/book3s64/radix_pgtable.c pmd_huge_pte(mm, pmdp) = (pgtable_t) lh->next; pmdp 1009 arch/powerpc/mm/book3s64/radix_pgtable.c unsigned long addr, pmd_t *pmdp) pmdp 1014 arch/powerpc/mm/book3s64/radix_pgtable.c old = radix__pmd_hugepage_update(mm, addr, pmdp, ~0UL, 0); pmdp 104 arch/powerpc/mm/nohash/40x.c pmd_t *pmdp; pmdp 107 arch/powerpc/mm/nohash/40x.c pmdp = pmd_offset(pud_offset(pgd_offset_k(v), v), v); pmdp 108 arch/powerpc/mm/nohash/40x.c *pmdp++ = __pmd(val); pmdp 109 arch/powerpc/mm/nohash/40x.c *pmdp++ = __pmd(val); pmdp 110 arch/powerpc/mm/nohash/40x.c *pmdp++ = __pmd(val); pmdp 111 arch/powerpc/mm/nohash/40x.c *pmdp++ = __pmd(val); pmdp 119 arch/powerpc/mm/nohash/40x.c pmd_t *pmdp; pmdp 122 arch/powerpc/mm/nohash/40x.c pmdp = pmd_offset(pud_offset(pgd_offset_k(v), v), v); pmdp 123 arch/powerpc/mm/nohash/40x.c *pmdp = __pmd(val); pmdp 77 arch/powerpc/mm/nohash/book3e_pgtable.c pmd_t *pmdp; pmdp 86 arch/powerpc/mm/nohash/book3e_pgtable.c pmdp = pmd_alloc(&init_mm, pudp, ea); pmdp 87 arch/powerpc/mm/nohash/book3e_pgtable.c if (!pmdp) pmdp 89 arch/powerpc/mm/nohash/book3e_pgtable.c ptep = pte_alloc_kernel(pmdp, ea); pmdp 102 arch/powerpc/mm/nohash/book3e_pgtable.c pmdp = early_alloc_pgtable(PMD_TABLE_SIZE); pmdp 103 arch/powerpc/mm/nohash/book3e_pgtable.c pud_populate(&init_mm, pudp, pmdp); pmdp 105 arch/powerpc/mm/nohash/book3e_pgtable.c pmdp = pmd_offset(pudp, ea); pmdp 106 arch/powerpc/mm/nohash/book3e_pgtable.c if (!pmd_present(*pmdp)) { pmdp 108 arch/powerpc/mm/nohash/book3e_pgtable.c pmd_populate_kernel(&init_mm, pmdp, ptep); pmdp 110 arch/powerpc/mm/nohash/book3e_pgtable.c ptep = pte_offset_kernel(pmdp, ea); pmdp 317 arch/powerpc/mm/pgtable.c pmd_t pmd, *pmdp; pmdp 372 arch/powerpc/mm/pgtable.c pmdp = pmd_offset(&pud, ea); pmdp 373 arch/powerpc/mm/pgtable.c pmd = READ_ONCE(*pmdp); pmdp 396 arch/powerpc/mm/pgtable.c ret_pte = (pte_t *)pmdp; pmdp 401 arch/powerpc/mm/pgtable.c ret_pte = (pte_t *)pmdp; pmdp 48 arch/powerpc/mm/pgtable_32.c static pte_t __init *early_pte_alloc_kernel(pmd_t *pmdp, unsigned long va) pmdp 50 arch/powerpc/mm/pgtable_32.c if (pmd_none(*pmdp)) { pmdp 53 arch/powerpc/mm/pgtable_32.c pmd_populate_kernel(&init_mm, pmdp, ptep); pmdp 55 arch/powerpc/mm/pgtable_32.c return pte_offset_kernel(pmdp, va); pmdp 133 arch/powerpc/mm/pgtable_32.c get_pteptr(struct mm_struct *mm, unsigned long addr, pte_t **ptep, pmd_t **pmdp) pmdp 151 arch/powerpc/mm/pgtable_32.c if (pmdp) pmdp 152 arch/powerpc/mm/pgtable_32.c *pmdp = pmd; pmdp 3125 arch/powerpc/xmon/xmon.c pmd_t *pmdp; pmdp 3182 arch/powerpc/xmon/xmon.c pmdp = pmd_offset(pudp, addr); pmdp 3184 arch/powerpc/xmon/xmon.c if (pmd_none(*pmdp)) { pmdp 3189 arch/powerpc/xmon/xmon.c if (pmd_is_leaf(*pmdp)) { pmdp 3190 arch/powerpc/xmon/xmon.c format_pte(pmdp, pmd_val(*pmdp)); pmdp 3193 arch/powerpc/xmon/xmon.c printf("pmdp @ 0x%px = 0x%016lx\n", pmdp, pmd_val(*pmdp)); pmdp 3195 arch/powerpc/xmon/xmon.c ptep = pte_offset_map(pmdp, addr); pmdp 138 arch/riscv/include/asm/pgtable.h static inline void set_pmd(pmd_t *pmdp, pmd_t pmd) pmdp 140 arch/riscv/include/asm/pgtable.h *pmdp = pmd; pmdp 143 arch/riscv/include/asm/pgtable.h static inline void pmd_clear(pmd_t *pmdp) pmdp 145 arch/riscv/include/asm/pgtable.h set_pmd(pmdp, __pmd(0)); pmdp 245 arch/riscv/mm/init.c static void __init create_pmd_mapping(pmd_t *pmdp, pmdp 254 arch/riscv/mm/init.c if (pmd_none(pmdp[pmd_index])) pmdp 255 arch/riscv/mm/init.c pmdp[pmd_index] = pfn_pmd(PFN_DOWN(pa), prot); pmdp 259 arch/riscv/mm/init.c if (pmd_none(pmdp[pmd_index])) { pmdp 261 arch/riscv/mm/init.c pmdp[pmd_index] = pfn_pmd(PFN_DOWN(pte_phys), PAGE_TABLE); pmdp 265 arch/riscv/mm/init.c pte_phys = PFN_PHYS(_pmd_pfn(pmdp[pmd_index])); pmdp 908 arch/s390/include/asm/pgtable.h static inline void pmd_clear(pmd_t *pmdp) pmdp 910 arch/s390/include/asm/pgtable.h pmd_val(*pmdp) = _SEGMENT_ENTRY_EMPTY; pmdp 1432 arch/s390/include/asm/pgtable.h static inline void __pmdp_csp(pmd_t *pmdp) pmdp 1434 arch/s390/include/asm/pgtable.h csp((unsigned int *)pmdp + 1, pmd_val(*pmdp), pmdp 1435 arch/s390/include/asm/pgtable.h pmd_val(*pmdp) | _SEGMENT_ENTRY_INVALID); pmdp 1445 arch/s390/include/asm/pgtable.h static __always_inline void __pmdp_idte(unsigned long addr, pmd_t *pmdp, pmdp 1451 arch/s390/include/asm/pgtable.h sto = (unsigned long) pmdp - pmd_index(addr) * sizeof(pmd_t); pmdp 1456 arch/s390/include/asm/pgtable.h : "+m" (*pmdp) pmdp 1464 arch/s390/include/asm/pgtable.h : "+m" (*pmdp) pmdp 1505 arch/s390/include/asm/pgtable.h void pgtable_trans_huge_deposit(struct mm_struct *mm, pmd_t *pmdp, pmdp 1509 arch/s390/include/asm/pgtable.h pgtable_t pgtable_trans_huge_withdraw(struct mm_struct *mm, pmd_t *pmdp); pmdp 1513 arch/s390/include/asm/pgtable.h unsigned long addr, pmd_t *pmdp, pmdp 1521 arch/s390/include/asm/pgtable.h if (pmd_val(*pmdp) == pmd_val(entry)) pmdp 1523 arch/s390/include/asm/pgtable.h pmdp_xchg_direct(vma->vm_mm, addr, pmdp, entry); pmdp 1529 arch/s390/include/asm/pgtable.h unsigned long addr, pmd_t *pmdp) pmdp 1531 arch/s390/include/asm/pgtable.h pmd_t pmd = *pmdp; pmdp 1533 arch/s390/include/asm/pgtable.h pmd = pmdp_xchg_direct(vma->vm_mm, addr, pmdp, pmd_mkold(pmd)); pmdp 1539 arch/s390/include/asm/pgtable.h unsigned long addr, pmd_t *pmdp) pmdp 1542 arch/s390/include/asm/pgtable.h return pmdp_test_and_clear_young(vma, addr, pmdp); pmdp 1546 arch/s390/include/asm/pgtable.h pmd_t *pmdp, pmd_t entry) pmdp 1550 arch/s390/include/asm/pgtable.h *pmdp = entry; pmdp 1563 arch/s390/include/asm/pgtable.h unsigned long addr, pmd_t *pmdp) pmdp 1565 arch/s390/include/asm/pgtable.h return pmdp_xchg_direct(mm, addr, pmdp, __pmd(_SEGMENT_ENTRY_EMPTY)); pmdp 1571 arch/s390/include/asm/pgtable.h pmd_t *pmdp, int full) pmdp 1574 arch/s390/include/asm/pgtable.h pmd_t pmd = *pmdp; pmdp 1575 arch/s390/include/asm/pgtable.h *pmdp = __pmd(_SEGMENT_ENTRY_EMPTY); pmdp 1578 arch/s390/include/asm/pgtable.h return pmdp_xchg_lazy(mm, addr, pmdp, __pmd(_SEGMENT_ENTRY_EMPTY)); pmdp 1583 arch/s390/include/asm/pgtable.h unsigned long addr, pmd_t *pmdp) pmdp 1585 arch/s390/include/asm/pgtable.h return pmdp_huge_get_and_clear(vma->vm_mm, addr, pmdp); pmdp 1590 arch/s390/include/asm/pgtable.h unsigned long addr, pmd_t *pmdp) pmdp 1592 arch/s390/include/asm/pgtable.h pmd_t pmd = __pmd(pmd_val(*pmdp) | _SEGMENT_ENTRY_INVALID); pmdp 1594 arch/s390/include/asm/pgtable.h return pmdp_xchg_direct(vma->vm_mm, addr, pmdp, pmd); pmdp 1599 arch/s390/include/asm/pgtable.h unsigned long addr, pmd_t *pmdp) pmdp 1601 arch/s390/include/asm/pgtable.h pmd_t pmd = *pmdp; pmdp 1604 arch/s390/include/asm/pgtable.h pmd = pmdp_xchg_lazy(mm, addr, pmdp, pmd_wrprotect(pmd)); pmdp 1609 arch/s390/include/asm/pgtable.h pmd_t *pmdp) pmdp 1611 arch/s390/include/asm/pgtable.h return pmdp_huge_get_and_clear(vma->vm_mm, address, pmdp); pmdp 911 arch/s390/mm/gmap.c pmd_t *pmdp; pmdp 914 arch/s390/mm/gmap.c pmdp = (pmd_t *) gmap_table_walk(gmap, gaddr, 1); pmdp 915 arch/s390/mm/gmap.c if (!pmdp) pmdp 920 arch/s390/mm/gmap.c return pmd_none(*pmdp) ? NULL : pmdp; pmdp 923 arch/s390/mm/gmap.c if (pmd_none(*pmdp)) { pmdp 929 arch/s390/mm/gmap.c if (!pmd_large(*pmdp)) pmdp 931 arch/s390/mm/gmap.c return pmdp; pmdp 939 arch/s390/mm/gmap.c static inline void gmap_pmd_op_end(struct gmap *gmap, pmd_t *pmdp) pmdp 941 arch/s390/mm/gmap.c if (pmd_large(*pmdp)) pmdp 960 arch/s390/mm/gmap.c pmd_t *pmdp, int prot, unsigned long bits) pmdp 962 arch/s390/mm/gmap.c int pmd_i = pmd_val(*pmdp) & _SEGMENT_ENTRY_INVALID; pmdp 963 arch/s390/mm/gmap.c int pmd_p = pmd_val(*pmdp) & _SEGMENT_ENTRY_PROTECT; pmdp 964 arch/s390/mm/gmap.c pmd_t new = *pmdp; pmdp 972 arch/s390/mm/gmap.c gmap_pmdp_xchg(gmap, pmdp, new, gaddr); pmdp 978 arch/s390/mm/gmap.c gmap_pmdp_xchg(gmap, pmdp, new, gaddr); pmdp 982 arch/s390/mm/gmap.c pmd_val(*pmdp) |= _SEGMENT_ENTRY_GMAP_IN; pmdp 1005 arch/s390/mm/gmap.c pmd_t *pmdp, int prot, unsigned long bits) pmdp 1012 arch/s390/mm/gmap.c if (pmd_val(*pmdp) & _SEGMENT_ENTRY_INVALID) pmdp 1015 arch/s390/mm/gmap.c ptep = pte_alloc_map_lock(gmap->mm, pmdp, gaddr, &ptl); pmdp 1044 arch/s390/mm/gmap.c pmd_t *pmdp; pmdp 1050 arch/s390/mm/gmap.c pmdp = gmap_pmd_op_walk(gmap, gaddr); pmdp 1051 arch/s390/mm/gmap.c if (pmdp) { pmdp 1052 arch/s390/mm/gmap.c if (!pmd_large(*pmdp)) { pmdp 1053 arch/s390/mm/gmap.c rc = gmap_protect_pte(gmap, gaddr, pmdp, prot, pmdp 1060 arch/s390/mm/gmap.c rc = gmap_protect_pmd(gmap, gaddr, pmdp, prot, pmdp 1068 arch/s390/mm/gmap.c gmap_pmd_op_end(gmap, pmdp); pmdp 2269 arch/s390/mm/gmap.c static void pmdp_notify_gmap(struct gmap *gmap, pmd_t *pmdp, pmdp 2272 arch/s390/mm/gmap.c pmd_val(*pmdp) &= ~_SEGMENT_ENTRY_GMAP_IN; pmdp 2286 arch/s390/mm/gmap.c static void gmap_pmdp_xchg(struct gmap *gmap, pmd_t *pmdp, pmd_t new, pmdp 2290 arch/s390/mm/gmap.c pmdp_notify_gmap(gmap, pmdp, gaddr); pmdp 2293 arch/s390/mm/gmap.c __pmdp_idte(gaddr, (pmd_t *)pmdp, IDTE_GUEST_ASCE, gmap->asce, pmdp 2296 arch/s390/mm/gmap.c __pmdp_idte(gaddr, (pmd_t *)pmdp, 0, 0, IDTE_GLOBAL); pmdp 2298 arch/s390/mm/gmap.c __pmdp_csp(pmdp); pmdp 2299 arch/s390/mm/gmap.c *pmdp = new; pmdp 2305 arch/s390/mm/gmap.c pmd_t *pmdp; pmdp 2312 arch/s390/mm/gmap.c pmdp = (pmd_t *)radix_tree_delete(&gmap->host_to_guest, pmdp 2314 arch/s390/mm/gmap.c if (pmdp) { pmdp 2315 arch/s390/mm/gmap.c gaddr = __gmap_segment_gaddr((unsigned long *)pmdp); pmdp 2316 arch/s390/mm/gmap.c pmdp_notify_gmap(gmap, pmdp, gaddr); pmdp 2317 arch/s390/mm/gmap.c WARN_ON(pmd_val(*pmdp) & ~(_SEGMENT_ENTRY_HARDWARE_BITS_LARGE | pmdp 2320 arch/s390/mm/gmap.c __pmdp_csp(pmdp); pmdp 2321 arch/s390/mm/gmap.c pmd_val(*pmdp) = _SEGMENT_ENTRY_EMPTY; pmdp 2360 arch/s390/mm/gmap.c pmd_t *pmdp; pmdp 2368 arch/s390/mm/gmap.c pmdp = (pmd_t *)entry; pmdp 2370 arch/s390/mm/gmap.c pmdp_notify_gmap(gmap, pmdp, gaddr); pmdp 2374 arch/s390/mm/gmap.c __pmdp_idte(gaddr, pmdp, IDTE_GUEST_ASCE, pmdp 2377 arch/s390/mm/gmap.c __pmdp_idte(gaddr, pmdp, 0, 0, IDTE_LOCAL); pmdp 2395 arch/s390/mm/gmap.c pmd_t *pmdp; pmdp 2403 arch/s390/mm/gmap.c pmdp = (pmd_t *)entry; pmdp 2405 arch/s390/mm/gmap.c pmdp_notify_gmap(gmap, pmdp, gaddr); pmdp 2409 arch/s390/mm/gmap.c __pmdp_idte(gaddr, pmdp, IDTE_GUEST_ASCE, pmdp 2412 arch/s390/mm/gmap.c __pmdp_idte(gaddr, pmdp, 0, 0, IDTE_GLOBAL); pmdp 2414 arch/s390/mm/gmap.c __pmdp_csp(pmdp); pmdp 2432 arch/s390/mm/gmap.c static bool gmap_test_and_clear_dirty_pmd(struct gmap *gmap, pmd_t *pmdp, pmdp 2435 arch/s390/mm/gmap.c if (pmd_val(*pmdp) & _SEGMENT_ENTRY_INVALID) pmdp 2439 arch/s390/mm/gmap.c if (pmd_val(*pmdp) & _SEGMENT_ENTRY_PROTECT && pmdp 2440 arch/s390/mm/gmap.c !(pmd_val(*pmdp) & _SEGMENT_ENTRY_GMAP_UC)) pmdp 2444 arch/s390/mm/gmap.c pmd_val(*pmdp) &= ~_SEGMENT_ENTRY_GMAP_UC; pmdp 2445 arch/s390/mm/gmap.c gmap_protect_pmd(gmap, gaddr, pmdp, PROT_READ, 0); pmdp 2463 arch/s390/mm/gmap.c pmd_t *pmdp; pmdp 2467 arch/s390/mm/gmap.c pmdp = gmap_pmd_op_walk(gmap, gaddr); pmdp 2468 arch/s390/mm/gmap.c if (!pmdp) pmdp 2471 arch/s390/mm/gmap.c if (pmd_large(*pmdp)) { pmdp 2472 arch/s390/mm/gmap.c if (gmap_test_and_clear_dirty_pmd(gmap, pmdp, gaddr)) pmdp 2476 arch/s390/mm/gmap.c ptep = pte_alloc_map_lock(gmap->mm, pmdp, vmaddr, &ptl); pmdp 2484 arch/s390/mm/gmap.c gmap_pmd_op_end(gmap, pmdp); pmdp 182 arch/s390/mm/hugetlbpage.c pmd_t *pmdp = (pmd_t *) ptep; pmdp 188 arch/s390/mm/hugetlbpage.c pmdp_xchg_direct(mm, addr, pmdp, __pmd(_SEGMENT_ENTRY_EMPTY)); pmdp 198 arch/s390/mm/hugetlbpage.c pmd_t *pmdp = NULL; pmdp 208 arch/s390/mm/hugetlbpage.c pmdp = pmd_alloc(mm, pudp, addr); pmdp 211 arch/s390/mm/hugetlbpage.c return (pte_t *) pmdp; pmdp 220 arch/s390/mm/hugetlbpage.c pmd_t *pmdp = NULL; pmdp 230 arch/s390/mm/hugetlbpage.c pmdp = pmd_offset(pudp, addr); pmdp 234 arch/s390/mm/hugetlbpage.c return (pte_t *) pmdp; pmdp 84 arch/s390/mm/pageattr.c static int walk_pte_level(pmd_t *pmdp, unsigned long addr, unsigned long end, pmdp 89 arch/s390/mm/pageattr.c ptep = pte_offset(pmdp, addr); pmdp 110 arch/s390/mm/pageattr.c static int split_pmd_page(pmd_t *pmdp, unsigned long addr) pmdp 120 arch/s390/mm/pageattr.c pte_addr = pmd_pfn(*pmdp) << PAGE_SHIFT; pmdp 121 arch/s390/mm/pageattr.c ro = !!(pmd_val(*pmdp) & _SEGMENT_ENTRY_PROTECT); pmdp 122 arch/s390/mm/pageattr.c nx = !!(pmd_val(*pmdp) & _SEGMENT_ENTRY_NOEXEC); pmdp 133 arch/s390/mm/pageattr.c pgt_set((unsigned long *)pmdp, pmd_val(new), addr, CRDTE_DTT_SEGMENT); pmdp 139 arch/s390/mm/pageattr.c static void modify_pmd_page(pmd_t *pmdp, unsigned long addr, pmdp 142 arch/s390/mm/pageattr.c pmd_t new = *pmdp; pmdp 152 arch/s390/mm/pageattr.c pgt_set((unsigned long *)pmdp, pmd_val(new), addr, CRDTE_DTT_SEGMENT); pmdp 159 arch/s390/mm/pageattr.c pmd_t *pmdp; pmdp 162 arch/s390/mm/pageattr.c pmdp = pmd_offset(pudp, addr); pmdp 164 arch/s390/mm/pageattr.c if (pmd_none(*pmdp)) pmdp 167 arch/s390/mm/pageattr.c if (pmd_large(*pmdp)) { pmdp 169 arch/s390/mm/pageattr.c rc = split_pmd_page(pmdp, addr); pmdp 174 arch/s390/mm/pageattr.c modify_pmd_page(pmdp, addr, flags); pmdp 176 arch/s390/mm/pageattr.c rc = walk_pte_level(pmdp, addr, next, flags); pmdp 180 arch/s390/mm/pageattr.c pmdp++; pmdp 190 arch/s390/mm/pageattr.c pmd_t *pm_dir, *pmdp; pmdp 203 arch/s390/mm/pageattr.c pmdp = pm_dir; pmdp 205 arch/s390/mm/pageattr.c pmd_val(*pmdp) = pmd_addr | prot; pmdp 207 arch/s390/mm/pageattr.c pmdp++; pmdp 343 arch/s390/mm/pgtable.c unsigned long addr, pmd_t *pmdp) pmdp 346 arch/s390/mm/pgtable.c __pmdp_idte(addr, pmdp, IDTE_NODAT | IDTE_GUEST_ASCE, pmdp 349 arch/s390/mm/pgtable.c __pmdp_idte(addr, pmdp, 0, 0, IDTE_LOCAL); pmdp 355 arch/s390/mm/pgtable.c unsigned long addr, pmd_t *pmdp) pmdp 358 arch/s390/mm/pgtable.c __pmdp_idte(addr, pmdp, IDTE_NODAT | IDTE_GUEST_ASCE, pmdp 363 arch/s390/mm/pgtable.c __pmdp_idte(addr, pmdp, 0, 0, IDTE_GLOBAL); pmdp 367 arch/s390/mm/pgtable.c __pmdp_csp(pmdp); pmdp 374 arch/s390/mm/pgtable.c unsigned long addr, pmd_t *pmdp) pmdp 378 arch/s390/mm/pgtable.c old = *pmdp; pmdp 384 arch/s390/mm/pgtable.c pmdp_idte_local(mm, addr, pmdp); pmdp 386 arch/s390/mm/pgtable.c pmdp_idte_global(mm, addr, pmdp); pmdp 392 arch/s390/mm/pgtable.c unsigned long addr, pmd_t *pmdp) pmdp 396 arch/s390/mm/pgtable.c old = *pmdp; pmdp 402 arch/s390/mm/pgtable.c pmd_val(*pmdp) |= _SEGMENT_ENTRY_INVALID; pmdp 407 arch/s390/mm/pgtable.c pmdp_idte_global(mm, addr, pmdp); pmdp 434 arch/s390/mm/pgtable.c pmd_t *pmdp, pmd_t new) pmdp 439 arch/s390/mm/pgtable.c old = pmdp_flush_direct(mm, addr, pmdp); pmdp 440 arch/s390/mm/pgtable.c *pmdp = new; pmdp 447 arch/s390/mm/pgtable.c pmd_t *pmdp, pmd_t new) pmdp 452 arch/s390/mm/pgtable.c old = pmdp_flush_lazy(mm, addr, pmdp); pmdp 453 arch/s390/mm/pgtable.c *pmdp = new; pmdp 517 arch/s390/mm/pgtable.c void pgtable_trans_huge_deposit(struct mm_struct *mm, pmd_t *pmdp, pmdp 522 arch/s390/mm/pgtable.c assert_spin_locked(pmd_lockptr(mm, pmdp)); pmdp 525 arch/s390/mm/pgtable.c if (!pmd_huge_pte(mm, pmdp)) pmdp 528 arch/s390/mm/pgtable.c list_add(lh, (struct list_head *) pmd_huge_pte(mm, pmdp)); pmdp 529 arch/s390/mm/pgtable.c pmd_huge_pte(mm, pmdp) = pgtable; pmdp 532 arch/s390/mm/pgtable.c pgtable_t pgtable_trans_huge_withdraw(struct mm_struct *mm, pmd_t *pmdp) pmdp 538 arch/s390/mm/pgtable.c assert_spin_locked(pmd_lockptr(mm, pmdp)); pmdp 541 arch/s390/mm/pgtable.c pgtable = pmd_huge_pte(mm, pmdp); pmdp 544 arch/s390/mm/pgtable.c pmd_huge_pte(mm, pmdp) = NULL; pmdp 546 arch/s390/mm/pgtable.c pmd_huge_pte(mm, pmdp) = (pgtable_t) lh->next; pmdp 760 arch/s390/mm/pgtable.c pmd_t *pmdp; pmdp 763 arch/s390/mm/pgtable.c pmdp = pmd_alloc_map(mm, addr); pmdp 764 arch/s390/mm/pgtable.c if (unlikely(!pmdp)) pmdp 767 arch/s390/mm/pgtable.c ptl = pmd_lock(mm, pmdp); pmdp 768 arch/s390/mm/pgtable.c if (!pmd_present(*pmdp)) { pmdp 773 arch/s390/mm/pgtable.c if (pmd_large(*pmdp)) { pmdp 774 arch/s390/mm/pgtable.c paddr = pmd_val(*pmdp) & HPAGE_MASK; pmdp 786 arch/s390/mm/pgtable.c ptep = pte_alloc_map_lock(mm, pmdp, addr, &ptl); pmdp 862 arch/s390/mm/pgtable.c pmd_t *pmdp; pmdp 866 arch/s390/mm/pgtable.c pmdp = pmd_alloc_map(mm, addr); pmdp 867 arch/s390/mm/pgtable.c if (unlikely(!pmdp)) pmdp 870 arch/s390/mm/pgtable.c ptl = pmd_lock(mm, pmdp); pmdp 871 arch/s390/mm/pgtable.c if (!pmd_present(*pmdp)) { pmdp 876 arch/s390/mm/pgtable.c if (pmd_large(*pmdp)) { pmdp 877 arch/s390/mm/pgtable.c paddr = pmd_val(*pmdp) & HPAGE_MASK; pmdp 885 arch/s390/mm/pgtable.c ptep = pte_alloc_map_lock(mm, pmdp, addr, &ptl); pmdp 917 arch/s390/mm/pgtable.c pmd_t *pmdp; pmdp 920 arch/s390/mm/pgtable.c pmdp = pmd_alloc_map(mm, addr); pmdp 921 arch/s390/mm/pgtable.c if (unlikely(!pmdp)) pmdp 924 arch/s390/mm/pgtable.c ptl = pmd_lock(mm, pmdp); pmdp 925 arch/s390/mm/pgtable.c if (!pmd_present(*pmdp)) { pmdp 932 arch/s390/mm/pgtable.c if (pmd_large(*pmdp)) { pmdp 933 arch/s390/mm/pgtable.c paddr = pmd_val(*pmdp) & HPAGE_MASK; pmdp 941 arch/s390/mm/pgtable.c ptep = pte_alloc_map_lock(mm, pmdp, addr, &ptl); pmdp 37 arch/sh/include/asm/pgalloc.h #define __pmd_free_tlb(tlb, pmdp, addr) \ pmdp 39 arch/sh/include/asm/pgalloc.h struct page *page = virt_to_page(pmdp); \ pmdp 29 arch/sparc/include/asm/pgalloc_32.h static inline void pgd_set(pgd_t * pgdp, pmd_t * pmdp) pmdp 31 arch/sparc/include/asm/pgalloc_32.h unsigned long pa = __nocache_pa(pmdp); pmdp 53 arch/sparc/include/asm/pgalloc_32.h void pmd_populate(struct mm_struct *mm, pmd_t *pmdp, struct page *ptep); pmdp 56 arch/sparc/include/asm/pgalloc_32.h void pmd_set(pmd_t *pmdp, pte_t *ptep); pmdp 180 arch/sparc/include/asm/pgtable_32.h static inline void pmd_clear(pmd_t *pmdp) pmdp 184 arch/sparc/include/asm/pgtable_32.h set_pte((pte_t *)&pmdp->pmdv[i], __pte(0)); pmdp 819 arch/sparc/include/asm/pgtable_64.h pmd_t *pmdp, pmd_t pmd); pmdp 822 arch/sparc/include/asm/pgtable_64.h pmd_t *pmdp, pmd_t pmd) pmdp 824 arch/sparc/include/asm/pgtable_64.h *pmdp = pmd; pmdp 828 arch/sparc/include/asm/pgtable_64.h static inline void pmd_set(struct mm_struct *mm, pmd_t *pmdp, pte_t *ptep) pmdp 832 arch/sparc/include/asm/pgtable_64.h pmd_val(*pmdp) = val; pmdp 835 arch/sparc/include/asm/pgtable_64.h #define pud_set(pudp, pmdp) \ pmdp 836 arch/sparc/include/asm/pgtable_64.h (pud_val(*(pudp)) = (__pa((unsigned long) (pmdp)))) pmdp 859 arch/sparc/include/asm/pgtable_64.h #define pmd_clear(pmdp) (pmd_val(*(pmdp)) = 0UL) pmdp 940 arch/sparc/include/asm/pgtable_64.h pmd_t *pmdp) pmdp 942 arch/sparc/include/asm/pgtable_64.h pmd_t pmd = *pmdp; pmdp 943 arch/sparc/include/asm/pgtable_64.h set_pmd_at(mm, addr, pmdp, __pmd(0UL)); pmdp 999 arch/sparc/include/asm/pgtable_64.h pmd_t *pmdp); pmdp 1002 arch/sparc/include/asm/pgtable_64.h void pgtable_trans_huge_deposit(struct mm_struct *mm, pmd_t *pmdp, pmdp 1006 arch/sparc/include/asm/pgtable_64.h pgtable_t pgtable_trans_huge_withdraw(struct mm_struct *mm, pmd_t *pmdp); pmdp 303 arch/sparc/kernel/signal32.c pmd_t *pmdp; pmdp 324 arch/sparc/kernel/signal32.c pmdp = pmd_offset(pudp, address); pmdp 325 arch/sparc/kernel/signal32.c if (pmd_none(*pmdp)) pmdp 328 arch/sparc/kernel/signal32.c ptep = pte_offset_map(pmdp, address); pmdp 84 arch/sparc/mm/fault_64.c pmd_t *pmdp; pmdp 98 arch/sparc/mm/fault_64.c pmdp = pmd_offset(pudp, tpc); pmdp 99 arch/sparc/mm/fault_64.c if (pmd_none(*pmdp) || unlikely(pmd_bad(*pmdp))) pmdp 103 arch/sparc/mm/fault_64.c if (is_hugetlb_pmd(*pmdp)) { pmdp 104 arch/sparc/mm/fault_64.c pa = pmd_pfn(*pmdp) << PAGE_SHIFT; pmdp 114 arch/sparc/mm/fault_64.c ptep = pte_offset_map(pmdp, tpc); pmdp 534 arch/sparc/mm/init_64.c pmd_t *pmdp = pmd_offset(pudp, kaddr); pmdp 535 arch/sparc/mm/init_64.c pte_t *ptep = pte_offset_kernel(pmdp, kaddr); pmdp 242 arch/sparc/mm/io-unit.c pmd_t *pmdp; pmdp 247 arch/sparc/mm/io-unit.c pmdp = pmd_offset(pgdp, addr); pmdp 248 arch/sparc/mm/io-unit.c ptep = pte_offset_map(pmdp, addr); pmdp 346 arch/sparc/mm/iommu.c pmd_t *pmdp; pmdp 357 arch/sparc/mm/iommu.c pmdp = pmd_offset(pgdp, addr); pmdp 358 arch/sparc/mm/iommu.c ptep = pte_offset_map(pmdp, addr); pmdp 137 arch/sparc/mm/srmmu.c void pmd_set(pmd_t *pmdp, pte_t *ptep) pmdp 144 arch/sparc/mm/srmmu.c set_pte((pte_t *)&pmdp->pmdv[i], __pte(SRMMU_ET_PTD | ptp)); pmdp 149 arch/sparc/mm/srmmu.c void pmd_populate(struct mm_struct *mm, pmd_t *pmdp, struct page *ptep) pmdp 156 arch/sparc/mm/srmmu.c set_pte((pte_t *)&pmdp->pmdv[i], __pte(SRMMU_ET_PTD | ptp)); pmdp 519 arch/sparc/mm/srmmu.c pmd_t *pmdp; pmdp 525 arch/sparc/mm/srmmu.c pmdp = pmd_offset(pgdp, virt_addr); pmdp 526 arch/sparc/mm/srmmu.c ptep = pte_offset_kernel(pmdp, virt_addr); pmdp 554 arch/sparc/mm/srmmu.c pmd_t *pmdp; pmdp 558 arch/sparc/mm/srmmu.c pmdp = pmd_offset(pgdp, virt_addr); pmdp 559 arch/sparc/mm/srmmu.c ptep = pte_offset_kernel(pmdp, virt_addr); pmdp 696 arch/sparc/mm/srmmu.c pmd_t *pmdp; pmdp 702 arch/sparc/mm/srmmu.c pmdp = __srmmu_get_nocache( pmdp 704 arch/sparc/mm/srmmu.c if (pmdp == NULL) pmdp 706 arch/sparc/mm/srmmu.c memset(__nocache_fix(pmdp), 0, SRMMU_PMD_TABLE_SIZE); pmdp 707 arch/sparc/mm/srmmu.c pgd_set(__nocache_fix(pgdp), pmdp); pmdp 709 arch/sparc/mm/srmmu.c pmdp = pmd_offset(__nocache_fix(pgdp), start); pmdp 710 arch/sparc/mm/srmmu.c if (srmmu_pmd_none(*(pmd_t *)__nocache_fix(pmdp))) { pmdp 715 arch/sparc/mm/srmmu.c pmd_set(__nocache_fix(pmdp), ptep); pmdp 727 arch/sparc/mm/srmmu.c pmd_t *pmdp; pmdp 733 arch/sparc/mm/srmmu.c pmdp = __srmmu_get_nocache(SRMMU_PMD_TABLE_SIZE, SRMMU_PMD_TABLE_SIZE); pmdp 734 arch/sparc/mm/srmmu.c if (pmdp == NULL) pmdp 736 arch/sparc/mm/srmmu.c memset(pmdp, 0, SRMMU_PMD_TABLE_SIZE); pmdp 737 arch/sparc/mm/srmmu.c pgd_set(pgdp, pmdp); pmdp 739 arch/sparc/mm/srmmu.c pmdp = pmd_offset(pgdp, start); pmdp 740 arch/sparc/mm/srmmu.c if (srmmu_pmd_none(*pmdp)) { pmdp 746 arch/sparc/mm/srmmu.c pmd_set(pmdp, ptep); pmdp 782 arch/sparc/mm/srmmu.c pmd_t *pmdp; pmdp 819 arch/sparc/mm/srmmu.c pmdp = __srmmu_get_nocache(SRMMU_PMD_TABLE_SIZE, pmdp 821 arch/sparc/mm/srmmu.c if (pmdp == NULL) pmdp 823 arch/sparc/mm/srmmu.c memset(__nocache_fix(pmdp), 0, SRMMU_PMD_TABLE_SIZE); pmdp 824 arch/sparc/mm/srmmu.c pgd_set(__nocache_fix(pgdp), pmdp); pmdp 826 arch/sparc/mm/srmmu.c pmdp = pmd_offset(__nocache_fix(pgdp), start); pmdp 827 arch/sparc/mm/srmmu.c if (srmmu_pmd_none(*(pmd_t *)__nocache_fix(pmdp))) { pmdp 832 arch/sparc/mm/srmmu.c pmd_set(__nocache_fix(pmdp), ptep); pmdp 842 arch/sparc/mm/srmmu.c val = &pmdp->pmdv[x]; pmdp 847 arch/sparc/mm/srmmu.c ptep = pte_offset_kernel(__nocache_fix(pmdp), start); pmdp 220 arch/sparc/mm/tlb.c pmd_t *pmdp, pmd_t pmd) pmdp 222 arch/sparc/mm/tlb.c pmd_t orig = *pmdp; pmdp 224 arch/sparc/mm/tlb.c *pmdp = pmd; pmdp 229 arch/sparc/mm/tlb.c unsigned long address, pmd_t *pmdp, pmd_t pmd) pmdp 234 arch/sparc/mm/tlb.c old = *pmdp; pmdp 235 arch/sparc/mm/tlb.c } while (cmpxchg64(&pmdp->pmd, old.pmd, pmd.pmd) != old.pmd); pmdp 245 arch/sparc/mm/tlb.c pmd_t *pmdp) pmdp 249 arch/sparc/mm/tlb.c entry = __pmd(pmd_val(*pmdp) & ~_PAGE_VALID); pmdp 250 arch/sparc/mm/tlb.c old = pmdp_establish(vma, address, pmdp, entry); pmdp 265 arch/sparc/mm/tlb.c void pgtable_trans_huge_deposit(struct mm_struct *mm, pmd_t *pmdp, pmdp 273 arch/sparc/mm/tlb.c if (!pmd_huge_pte(mm, pmdp)) pmdp 276 arch/sparc/mm/tlb.c list_add(lh, (struct list_head *) pmd_huge_pte(mm, pmdp)); pmdp 277 arch/sparc/mm/tlb.c pmd_huge_pte(mm, pmdp) = pgtable; pmdp 280 arch/sparc/mm/tlb.c pgtable_t pgtable_trans_huge_withdraw(struct mm_struct *mm, pmd_t *pmdp) pmdp 288 arch/sparc/mm/tlb.c pgtable = pmd_huge_pte(mm, pmdp); pmdp 291 arch/sparc/mm/tlb.c pmd_huge_pte(mm, pmdp) = NULL; pmdp 293 arch/sparc/mm/tlb.c pmd_huge_pte(mm, pmdp) = (pgtable_t) lh->next; pmdp 57 arch/unicore32/include/asm/pgalloc.h static inline void __pmd_populate(pmd_t *pmdp, unsigned long pmdval) pmdp 59 arch/unicore32/include/asm/pgalloc.h set_pmd(pmdp, __pmd(pmdval)); pmdp 60 arch/unicore32/include/asm/pgalloc.h flush_pmd_entry(pmdp); pmdp 68 arch/unicore32/include/asm/pgalloc.h pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmdp, pte_t *ptep) pmdp 76 arch/unicore32/include/asm/pgalloc.h __pmd_populate(pmdp, __pa(pte_ptr) | _PAGE_KERNEL_TABLE); pmdp 80 arch/unicore32/include/asm/pgalloc.h pmd_populate(struct mm_struct *mm, pmd_t *pmdp, pgtable_t ptep) pmdp 82 arch/unicore32/include/asm/pgalloc.h __pmd_populate(pmdp, pmdp 213 arch/unicore32/include/asm/pgtable.h #define pmd_clear(pmdp) \ pmdp 215 arch/unicore32/include/asm/pgtable.h set_pmd(pmdp, __pmd(0));\ pmdp 216 arch/unicore32/include/asm/pgtable.h clean_pmd_entry(pmdp); \ pmdp 70 arch/unicore32/mm/ioremap.c pmd_t pmd, *pmdp = pmd_offset((pud_t *)pgd, addr); pmdp 72 arch/unicore32/mm/ioremap.c pmd = *pmdp; pmdp 81 arch/unicore32/mm/ioremap.c pmd_clear(pmdp); pmdp 453 arch/x86/include/asm/paravirt.h static inline void set_pmd(pmd_t *pmdp, pmd_t pmd) pmdp 458 arch/x86/include/asm/paravirt.h PVOP_VCALL3(mmu.set_pmd, pmdp, val, (u64)val >> 32); pmdp 460 arch/x86/include/asm/paravirt.h PVOP_VCALL2(mmu.set_pmd, pmdp, val); pmdp 581 arch/x86/include/asm/paravirt.h static inline void pmd_clear(pmd_t *pmdp) pmdp 583 arch/x86/include/asm/paravirt.h PVOP_VCALL1(mmu.pmd_clear, pmdp); pmdp 597 arch/x86/include/asm/paravirt.h static inline void pmd_clear(pmd_t *pmdp) pmdp 599 arch/x86/include/asm/paravirt.h set_pmd(pmdp, __pmd(0)); pmdp 251 arch/x86/include/asm/paravirt_types.h void (*set_pmd)(pmd_t *pmdp, pmd_t pmdval); pmdp 269 arch/x86/include/asm/paravirt_types.h void (*pmd_clear)(pmd_t *pmdp); pmdp 20 arch/x86/include/asm/pgtable-2level.h static inline void native_set_pmd(pmd_t *pmdp, pmd_t pmd) pmdp 22 arch/x86/include/asm/pgtable-2level.h *pmdp = pmd; pmdp 34 arch/x86/include/asm/pgtable-2level.h static inline void native_pmd_clear(pmd_t *pmdp) pmdp 36 arch/x86/include/asm/pgtable-2level.h native_set_pmd(pmdp, __pmd(0)); pmdp 73 arch/x86/include/asm/pgtable-3level.h static inline pmd_t pmd_read_atomic(pmd_t *pmdp) pmdp 76 arch/x86/include/asm/pgtable-3level.h u32 *tmp = (u32 *)pmdp; pmdp 96 arch/x86/include/asm/pgtable-3level.h static inline void native_set_pmd(pmd_t *pmdp, pmd_t pmd) pmdp 98 arch/x86/include/asm/pgtable-3level.h set_64bit((unsigned long long *)(pmdp), native_pmd_val(pmd)); pmdp 172 arch/x86/include/asm/pgtable-3level.h static inline pmd_t native_pmdp_get_and_clear(pmd_t *pmdp) pmdp 174 arch/x86/include/asm/pgtable-3level.h union split_pmd res, *orig = (union split_pmd *)pmdp; pmdp 190 arch/x86/include/asm/pgtable-3level.h unsigned long address, pmd_t *pmdp, pmd_t pmd) pmdp 202 arch/x86/include/asm/pgtable-3level.h ptr = (union split_pmd *)pmdp; pmdp 214 arch/x86/include/asm/pgtable-3level.h old = *pmdp; pmdp 215 arch/x86/include/asm/pgtable-3level.h } while (cmpxchg64(&pmdp->pmd, old.pmd, pmd.pmd) != old.pmd); pmdp 69 arch/x86/include/asm/pgtable.h #define set_pmd(pmdp, pmd) native_set_pmd(pmdp, pmd) pmdp 1067 arch/x86/include/asm/pgtable.h static inline pmd_t native_local_pmdp_get_and_clear(pmd_t *pmdp) pmdp 1069 arch/x86/include/asm/pgtable.h pmd_t res = *pmdp; pmdp 1071 arch/x86/include/asm/pgtable.h native_pmd_clear(pmdp); pmdp 1090 arch/x86/include/asm/pgtable.h pmd_t *pmdp, pmd_t pmd) pmdp 1092 arch/x86/include/asm/pgtable.h set_pmd(pmdp, pmd); pmdp 1162 arch/x86/include/asm/pgtable.h unsigned long address, pmd_t *pmdp, pmdp 1170 arch/x86/include/asm/pgtable.h unsigned long addr, pmd_t *pmdp); pmdp 1176 arch/x86/include/asm/pgtable.h unsigned long address, pmd_t *pmdp); pmdp 1187 arch/x86/include/asm/pgtable.h pmd_t *pmdp) pmdp 1189 arch/x86/include/asm/pgtable.h return native_pmdp_get_and_clear(pmdp); pmdp 1201 arch/x86/include/asm/pgtable.h unsigned long addr, pmd_t *pmdp) pmdp 1203 arch/x86/include/asm/pgtable.h clear_bit(_PAGE_BIT_RW, (unsigned long *)pmdp); pmdp 1215 arch/x86/include/asm/pgtable.h unsigned long address, pmd_t *pmdp, pmd_t pmd) pmdp 1218 arch/x86/include/asm/pgtable.h return xchg(pmdp, pmd); pmdp 1220 arch/x86/include/asm/pgtable.h pmd_t old = *pmdp; pmdp 1221 arch/x86/include/asm/pgtable.h WRITE_ONCE(*pmdp, pmd); pmdp 75 arch/x86/include/asm/pgtable_64.h static inline void native_set_pmd(pmd_t *pmdp, pmd_t pmd) pmdp 77 arch/x86/include/asm/pgtable_64.h WRITE_ONCE(*pmdp, pmd); pmdp 493 arch/x86/mm/pgtable.c unsigned long address, pmd_t *pmdp, pmdp 496 arch/x86/mm/pgtable.c int changed = !pmd_same(*pmdp, entry); pmdp 501 arch/x86/mm/pgtable.c set_pmd(pmdp, entry); pmdp 548 arch/x86/mm/pgtable.c unsigned long addr, pmd_t *pmdp) pmdp 552 arch/x86/mm/pgtable.c if (pmd_young(*pmdp)) pmdp 554 arch/x86/mm/pgtable.c (unsigned long *)pmdp); pmdp 592 arch/x86/mm/pgtable.c unsigned long address, pmd_t *pmdp) pmdp 598 arch/x86/mm/pgtable.c young = pmdp_test_and_clear_young(vma, address, pmdp); pmdp 455 arch/x86/xen/mmu_pv.c static void xen_pmd_clear(pmd_t *pmdp) pmdp 457 arch/x86/xen/mmu_pv.c trace_xen_mmu_pmd_clear(pmdp); pmdp 458 arch/x86/xen/mmu_pv.c set_pmd(pmdp, __pmd(0)); pmdp 337 arch/x86/xen/p2m.c pmd_t *pmdp; pmdp 408 arch/x86/xen/p2m.c pmdp = populate_extra_pmd( pmdp 410 arch/x86/xen/p2m.c set_pmd(pmdp, __pmd(__pa(ptep) | _KERNPG_TABLE)); pmdp 476 arch/x86/xen/p2m.c pmd_t *pmdp; pmdp 499 arch/x86/xen/p2m.c pmdp = lookup_pmd_address(vaddr); pmdp 500 arch/x86/xen/p2m.c BUG_ON(!pmdp); pmdp 508 arch/x86/xen/p2m.c set_pmd(pmdp, pmdp 19 arch/xtensa/include/asm/pgalloc.h #define pmd_populate_kernel(mm, pmdp, ptep) \ pmdp 20 arch/xtensa/include/asm/pgalloc.h (pmd_val(*(pmdp)) = ((unsigned long)ptep)) pmdp 21 arch/xtensa/include/asm/pgalloc.h #define pmd_populate(mm, pmdp, page) \ pmdp 22 arch/xtensa/include/asm/pgalloc.h (pmd_val(*(pmdp)) = ((unsigned long)page_to_virt(page))) pmdp 265 arch/xtensa/include/asm/pgtable.h #define pmd_clear(pmdp) do { set_pmd(pmdp, __pmd(0)); } while (0) pmdp 333 arch/xtensa/include/asm/pgtable.h set_pmd(pmd_t *pmdp, pmd_t pmdval) pmdp 335 arch/xtensa/include/asm/pgtable.h *pmdp = pmdval; pmdp 211 drivers/misc/sgi-gru/grufault.c pmd_t *pmdp; pmdp 226 drivers/misc/sgi-gru/grufault.c pmdp = pmd_offset(pudp, vaddr); pmdp 227 drivers/misc/sgi-gru/grufault.c if (unlikely(pmd_none(*pmdp))) pmdp 230 drivers/misc/sgi-gru/grufault.c if (unlikely(pmd_large(*pmdp))) pmdp 231 drivers/misc/sgi-gru/grufault.c pte = *(pte_t *) pmdp; pmdp 234 drivers/misc/sgi-gru/grufault.c pte = *pte_offset_kernel(pmdp, vaddr); pmdp 781 fs/dax.c pmd_t *pmdp = NULL; pmdp 802 fs/dax.c &ptep, &pmdp, &ptl)) pmdp 812 fs/dax.c if (pmdp) { pmdp 816 fs/dax.c if (pfn != pmd_pfn(*pmdp)) pmdp 818 fs/dax.c if (!pmd_dirty(*pmdp) && !pmd_write(*pmdp)) pmdp 822 fs/dax.c pmd = pmdp_invalidate(vma, address, pmdp); pmdp 825 fs/dax.c set_pmd_at(vma->vm_mm, address, pmdp, pmd); pmdp 1020 fs/proc/task_mmu.c unsigned long addr, pmd_t *pmdp) pmdp 1022 fs/proc/task_mmu.c pmd_t old, pmd = *pmdp; pmdp 1026 fs/proc/task_mmu.c old = pmdp_invalidate(vma, addr, pmdp); pmdp 1035 fs/proc/task_mmu.c set_pmd_at(vma->vm_mm, addr, pmdp, pmd); pmdp 1038 fs/proc/task_mmu.c set_pmd_at(vma->vm_mm, addr, pmdp, pmd); pmdp 1043 fs/proc/task_mmu.c unsigned long addr, pmd_t *pmdp) pmdp 1363 fs/proc/task_mmu.c static int pagemap_pmd_range(pmd_t *pmdp, unsigned long addr, unsigned long end, pmdp 1373 fs/proc/task_mmu.c ptl = pmd_trans_huge_lock(pmdp, vma); pmdp 1376 fs/proc/task_mmu.c pmd_t pmd = *pmdp; pmdp 1431 fs/proc/task_mmu.c if (pmd_trans_unstable(pmdp)) pmdp 1439 fs/proc/task_mmu.c orig_pte = pte = pte_offset_map_lock(walk->mm, pmdp, addr, &ptl); pmdp 38 include/asm-generic/pgtable.h unsigned long address, pmd_t *pmdp, pmdp 45 include/asm-generic/pgtable.h unsigned long address, pmd_t *pmdp, pmdp 80 include/asm-generic/pgtable.h pmd_t *pmdp) pmdp 82 include/asm-generic/pgtable.h pmd_t pmd = *pmdp; pmdp 87 include/asm-generic/pgtable.h set_pmd_at(vma->vm_mm, address, pmdp, pmd_mkold(pmd)); pmdp 93 include/asm-generic/pgtable.h pmd_t *pmdp) pmdp 109 include/asm-generic/pgtable.h unsigned long address, pmd_t *pmdp); pmdp 116 include/asm-generic/pgtable.h unsigned long address, pmd_t *pmdp) pmdp 139 include/asm-generic/pgtable.h pmd_t *pmdp) pmdp 141 include/asm-generic/pgtable.h pmd_t pmd = *pmdp; pmdp 142 include/asm-generic/pgtable.h pmd_clear(pmdp); pmdp 162 include/asm-generic/pgtable.h unsigned long address, pmd_t *pmdp, pmdp 165 include/asm-generic/pgtable.h return pmdp_huge_get_and_clear(mm, address, pmdp); pmdp 214 include/asm-generic/pgtable.h pmd_t *pmdp); pmdp 256 include/asm-generic/pgtable.h unsigned long address, pmd_t *pmdp) pmdp 258 include/asm-generic/pgtable.h pmd_t old_pmd = *pmdp; pmdp 259 include/asm-generic/pgtable.h set_pmd_at(mm, address, pmdp, pmd_wrprotect(old_pmd)); pmdp 263 include/asm-generic/pgtable.h unsigned long address, pmd_t *pmdp) pmdp 290 include/asm-generic/pgtable.h unsigned long address, pmd_t *pmdp); pmdp 294 include/asm-generic/pgtable.h pmd_t *pmdp) pmdp 297 include/asm-generic/pgtable.h return *pmdp; pmdp 304 include/asm-generic/pgtable.h extern void pgtable_trans_huge_deposit(struct mm_struct *mm, pmd_t *pmdp, pmdp 309 include/asm-generic/pgtable.h extern pgtable_t pgtable_trans_huge_withdraw(struct mm_struct *mm, pmd_t *pmdp); pmdp 319 include/asm-generic/pgtable.h unsigned long address, pmd_t *pmdp, pmd_t pmd) pmdp 321 include/asm-generic/pgtable.h pmd_t old_pmd = *pmdp; pmdp 322 include/asm-generic/pgtable.h set_pmd_at(vma->vm_mm, address, pmdp, pmd); pmdp 329 include/asm-generic/pgtable.h pmd_t *pmdp); pmdp 417 include/asm-generic/pgtable.h #define set_pmd_safe(pmdp, pmd) \ pmdp 419 include/asm-generic/pgtable.h WARN_ON_ONCE(pmd_present(*pmdp) && !pmd_same(*pmdp, pmd)); \ pmdp 420 include/asm-generic/pgtable.h set_pmd(pmdp, pmd); \ pmdp 916 include/asm-generic/pgtable.h static inline pmd_t pmd_read_atomic(pmd_t *pmdp) pmdp 923 include/asm-generic/pgtable.h return *pmdp; pmdp 532 include/asm-generic/tlb.h #define __tlb_remove_pmd_tlb_entry(tlb, pmdp, address) do {} while (0) pmdp 535 include/asm-generic/tlb.h #define tlb_remove_pmd_tlb_entry(tlb, pmdp, address) \ pmdp 539 include/asm-generic/tlb.h __tlb_remove_pmd_tlb_entry(tlb, pmdp, address); \ pmdp 586 include/asm-generic/tlb.h #define pmd_free_tlb(tlb, pmdp, address) \ pmdp 591 include/asm-generic/tlb.h __pmd_free_tlb(tlb, pmdp, address); \ pmdp 179 include/trace/events/xen.h TP_PROTO(pmd_t *pmdp, pmd_t pmdval), pmdp 180 include/trace/events/xen.h TP_ARGS(pmdp, pmdval), pmdp 182 include/trace/events/xen.h __field(pmd_t *, pmdp) pmdp 185 include/trace/events/xen.h TP_fast_assign(__entry->pmdp = pmdp; pmdp 188 include/trace/events/xen.h __entry->pmdp, pmdp 212 include/trace/events/xen.h TP_PROTO(pmd_t *pmdp), pmdp 213 include/trace/events/xen.h TP_ARGS(pmdp), pmdp 215 include/trace/events/xen.h __field(pmd_t *, pmdp) pmdp 217 include/trace/events/xen.h TP_fast_assign(__entry->pmdp = pmdp), pmdp 218 include/trace/events/xen.h TP_printk("pmdp %p", __entry->pmdp) pmdp 1933 mm/gup.c static int __gup_device_huge_pmd(pmd_t orig, pmd_t *pmdp, unsigned long addr, pmdp 1943 mm/gup.c if (unlikely(pmd_val(orig) != pmd_val(*pmdp))) { pmdp 1967 mm/gup.c static int __gup_device_huge_pmd(pmd_t orig, pmd_t *pmdp, unsigned long addr, pmdp 2067 mm/gup.c static int gup_huge_pmd(pmd_t orig, pmd_t *pmdp, unsigned long addr, pmdp 2080 mm/gup.c return __gup_device_huge_pmd(orig, pmdp, addr, end, pages, nr); pmdp 2098 mm/gup.c if (unlikely(pmd_val(orig) != pmd_val(*pmdp))) { pmdp 2191 mm/gup.c pmd_t *pmdp; pmdp 2193 mm/gup.c pmdp = pmd_offset(&pud, addr); pmdp 2195 mm/gup.c pmd_t pmd = READ_ONCE(*pmdp); pmdp 2211 mm/gup.c if (!gup_huge_pmd(pmd, pmdp, addr, next, flags, pmdp 2225 mm/gup.c } while (pmdp++, addr = next, addr != end); pmdp 455 mm/hmm.c unsigned long end, pmd_t *pmdp, pte_t *ptep, pmdp 511 mm/hmm.c migration_entry_wait(walk->mm, pmdp, addr); pmdp 552 mm/hmm.c static int hmm_vma_walk_pmd(pmd_t *pmdp, pmdp 565 mm/hmm.c pmd = READ_ONCE(*pmdp); pmdp 582 mm/hmm.c pmd_migration_entry_wait(walk->mm, pmdp); pmdp 599 mm/hmm.c pmd = pmd_read_atomic(pmdp); pmdp 617 mm/hmm.c ptep = pte_offset_map(pmdp, addr); pmdp 622 mm/hmm.c r = hmm_vma_handle_pte(walk, addr, end, pmdp, ptep, &pfns[i]); pmdp 662 mm/hmm.c pmd_t *pmdp; pmdp 711 mm/hmm.c pmdp = pmd_offset(pudp, addr); pmdp 714 mm/hmm.c ret = hmm_vma_walk_pmd(pmdp, addr, next, walk); pmdp 717 mm/hmm.c } while (pmdp++, addr = next, addr != end); pmdp 2188 mm/migrate.c static int migrate_vma_collect_pmd(pmd_t *pmdp, pmdp 2201 mm/migrate.c if (pmd_none(*pmdp)) pmdp 2204 mm/migrate.c if (pmd_trans_huge(*pmdp)) { pmdp 2207 mm/migrate.c ptl = pmd_lock(mm, pmdp); pmdp 2208 mm/migrate.c if (unlikely(!pmd_trans_huge(*pmdp))) { pmdp 2213 mm/migrate.c page = pmd_page(*pmdp); pmdp 2216 mm/migrate.c split_huge_pmd(vma, pmdp, addr); pmdp 2217 mm/migrate.c if (pmd_trans_unstable(pmdp)) pmdp 2234 mm/migrate.c if (pmd_none(*pmdp)) pmdp 2240 mm/migrate.c if (unlikely(pmd_bad(*pmdp))) pmdp 2243 mm/migrate.c ptep = pte_offset_map_lock(mm, pmdp, addr, &ptl); pmdp 2718 mm/migrate.c pmd_t *pmdp; pmdp 2732 mm/migrate.c pmdp = pmd_alloc(mm, pudp, addr); pmdp 2733 mm/migrate.c if (!pmdp) pmdp 2736 mm/migrate.c if (pmd_trans_huge(*pmdp) || pmd_devmap(*pmdp)) pmdp 2749 mm/migrate.c if (pte_alloc(mm, pmdp)) pmdp 2753 mm/migrate.c if (unlikely(pmd_trans_unstable(pmdp))) pmdp 2781 mm/migrate.c ptep = pte_offset_map_lock(mm, pmdp, addr, &ptl); pmdp 97 mm/pgtable-generic.c unsigned long address, pmd_t *pmdp, pmdp 100 mm/pgtable-generic.c int changed = !pmd_same(*pmdp, entry); pmdp 103 mm/pgtable-generic.c set_pmd_at(vma->vm_mm, address, pmdp, entry); pmdp 112 mm/pgtable-generic.c unsigned long address, pmd_t *pmdp) pmdp 116 mm/pgtable-generic.c young = pmdp_test_and_clear_young(vma, address, pmdp); pmdp 125 mm/pgtable-generic.c pmd_t *pmdp) pmdp 129 mm/pgtable-generic.c VM_BUG_ON((pmd_present(*pmdp) && !pmd_trans_huge(*pmdp) && pmdp 130 mm/pgtable-generic.c !pmd_devmap(*pmdp)) || !pmd_present(*pmdp)); pmdp 131 mm/pgtable-generic.c pmd = pmdp_huge_get_and_clear(vma->vm_mm, address, pmdp); pmdp 152 mm/pgtable-generic.c void pgtable_trans_huge_deposit(struct mm_struct *mm, pmd_t *pmdp, pmdp 155 mm/pgtable-generic.c assert_spin_locked(pmd_lockptr(mm, pmdp)); pmdp 158 mm/pgtable-generic.c if (!pmd_huge_pte(mm, pmdp)) pmdp 161 mm/pgtable-generic.c list_add(&pgtable->lru, &pmd_huge_pte(mm, pmdp)->lru); pmdp 162 mm/pgtable-generic.c pmd_huge_pte(mm, pmdp) = pgtable; pmdp 168 mm/pgtable-generic.c pgtable_t pgtable_trans_huge_withdraw(struct mm_struct *mm, pmd_t *pmdp) pmdp 172 mm/pgtable-generic.c assert_spin_locked(pmd_lockptr(mm, pmdp)); pmdp 175 mm/pgtable-generic.c pgtable = pmd_huge_pte(mm, pmdp); pmdp 176 mm/pgtable-generic.c pmd_huge_pte(mm, pmdp) = list_first_entry_or_null(&pgtable->lru, pmdp 178 mm/pgtable-generic.c if (pmd_huge_pte(mm, pmdp)) pmdp 186 mm/pgtable-generic.c pmd_t *pmdp) pmdp 188 mm/pgtable-generic.c pmd_t old = pmdp_establish(vma, address, pmdp, pmd_mknotpresent(*pmdp)); pmdp 196 mm/pgtable-generic.c pmd_t *pmdp) pmdp 205 mm/pgtable-generic.c VM_BUG_ON(pmd_trans_huge(*pmdp)); pmdp 206 mm/pgtable-generic.c pmd = pmdp_huge_get_and_clear(vma->vm_mm, address, pmdp); pmdp 195 virt/kvm/arm/mmu.c static inline void kvm_set_pmd(pmd_t *pmdp, pmd_t new_pmd) pmdp 197 virt/kvm/arm/mmu.c WRITE_ONCE(*pmdp, new_pmd); pmdp 201 virt/kvm/arm/mmu.c static inline void kvm_pmd_populate(pmd_t *pmdp, pte_t *ptep) pmdp 203 virt/kvm/arm/mmu.c kvm_set_pmd(pmdp, kvm_mk_pmd(ptep)); pmdp 206 virt/kvm/arm/mmu.c static inline void kvm_pud_populate(pud_t *pudp, pmd_t *pmdp) pmdp 208 virt/kvm/arm/mmu.c WRITE_ONCE(*pudp, kvm_mk_pud(pmdp)); pmdp 1169 virt/kvm/arm/mmu.c pmd_t *pmdp; pmdp 1185 virt/kvm/arm/mmu.c pmdp = stage2_pmd_offset(kvm, pudp, addr); pmdp 1186 virt/kvm/arm/mmu.c if (!pmdp || pmd_none(*pmdp) || !pmd_present(*pmdp)) pmdp 1189 virt/kvm/arm/mmu.c if (pmd_thp_or_huge(*pmdp)) { pmdp 1190 virt/kvm/arm/mmu.c *pmdpp = pmdp; pmdp 1194 virt/kvm/arm/mmu.c ptep = pte_offset_kernel(pmdp, addr); pmdp 1205 virt/kvm/arm/mmu.c pmd_t *pmdp; pmdp 1209 virt/kvm/arm/mmu.c found = stage2_get_leaf_entry(kvm, addr, &pudp, &pmdp, &ptep); pmdp 1215 virt/kvm/arm/mmu.c else if (pmdp) pmdp 1216 virt/kvm/arm/mmu.c return kvm_s2pmd_exec(pmdp);