/linux/arch/loongarch/include/asm/ |
H A D | pgtable.h | 240 static inline void set_pmd(pmd_t *pmd, pmd_t pmdval) in set_pmd() 480 static inline pmd_t pmd_mkhuge(pmd_t pmd) in pmd_mkhuge() 495 static inline pmd_t pmd_mkwrite_novma(pmd_t pmd) in pmd_mkwrite_novma() 503 static inline pmd_t pmd_wrprotect(pmd_t pmd) in pmd_wrprotect() 515 static inline pmd_t pmd_mkclean(pmd_t pmd) in pmd_mkclean() 521 static inline pmd_t pmd_mkdirty(pmd_t pmd) in pmd_mkdirty() 535 static inline pmd_t pmd_mkold(pmd_t pmd) in pmd_mkold() 541 static inline pmd_t pmd_mkyoung(pmd_t pmd) in pmd_mkyoung() 552 static inline pmd_t pmd_mkdevmap(pmd_t pmd) in pmd_mkdevmap() 566 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify() [all …]
|
/linux/arch/x86/include/asm/ |
H A D | pgtable.h | 354 static inline pmd_t pmd_mkspecial(pmd_t pmd) in pmd_mkspecial() 560 static inline pmd_t pmd_wrprotect(pmd_t pmd) in pmd_wrprotect() 578 static inline pmd_t pmd_mkuffd_wp(pmd_t pmd) in pmd_mkuffd_wp() 589 static inline pmd_t pmd_mkold(pmd_t pmd) in pmd_mkold() 594 static inline pmd_t pmd_mkclean(pmd_t pmd) in pmd_mkclean() 599 static inline pmd_t pmd_mkdirty(pmd_t pmd) in pmd_mkdirty() 613 static inline pmd_t pmd_mkdevmap(pmd_t pmd) in pmd_mkdevmap() 618 static inline pmd_t pmd_mkhuge(pmd_t pmd) in pmd_mkhuge() 623 static inline pmd_t pmd_mkyoung(pmd_t pmd) in pmd_mkyoung() 808 static inline pmd_t pmd_mkinvalid(pmd_t pmd) in pmd_mkinvalid() [all …]
|
H A D | pgtable-3level.h | 48 static inline void native_set_pmd(pmd_t *pmdp, pmd_t pmd) in native_set_pmd() 74 static inline void native_pmd_clear(pmd_t *pmdp) in native_pmd_clear() 108 static inline pmd_t native_pmdp_get_and_clear(pmd_t *pmdp) in native_pmdp_get_and_clear() 125 static inline pmd_t pmdp_establish(struct vm_area_struct *vma, in pmdp_establish() 126 unsigned long address, pmd_t *pmdp, pmd_t pmd) in pmdp_establish() 128 pmd_t old; in pmdp_establish()
|
/linux/include/linux/ |
H A D | pgtable.h | 322 static inline pmd_t pmdp_get(pmd_t *pmdp) in pmdp_get() 563 static inline pmd_t pmdp_get_lockless(pmd_t *pmdp) in pmdp_get_lockless() 565 pmd_t pmd; in pmdp_get_lockless() 592 static inline pmd_t pmdp_get_lockless(pmd_t *pmdp) in pmdp_get_lockless() 952 unsigned long address, pmd_t *pmdp, pmd_t pmd) in generic_pmdp_establish() 1031 static inline int pmd_same(pmd_t pmd_a, pmd_t pmd_b) in pmd_same() 1416 static inline pmd_t pmd_swp_mksoft_dirty(pmd_t pmd) in pmd_swp_mksoft_dirty() 1426 static inline pmd_t pmd_swp_clear_soft_dirty(pmd_t pmd) in pmd_swp_clear_soft_dirty() 1447 static inline pmd_t pmd_mksoft_dirty(pmd_t pmd) in pmd_mksoft_dirty() 1457 static inline pmd_t pmd_clear_soft_dirty(pmd_t pmd) in pmd_clear_soft_dirty() [all …]
|
H A D | page_table_check.h | 18 void __page_table_check_pmd_clear(struct mm_struct *mm, pmd_t pmd); 22 void __page_table_check_pmd_set(struct mm_struct *mm, pmd_t *pmdp, pmd_t pmd); 26 pmd_t pmd); 52 static inline void page_table_check_pmd_clear(struct mm_struct *mm, pmd_t pmd) in page_table_check_pmd_clear() 77 static inline void page_table_check_pmd_set(struct mm_struct *mm, pmd_t *pmdp, in page_table_check_pmd_set() 78 pmd_t pmd) in page_table_check_pmd_set() 97 pmd_t pmd) in page_table_check_pte_clear_range() 119 static inline void page_table_check_pmd_clear(struct mm_struct *mm, pmd_t pmd) in page_table_check_pmd_clear() 132 static inline void page_table_check_pmd_set(struct mm_struct *mm, pmd_t *pmdp, in page_table_check_pmd_set() 133 pmd_t pmd) in page_table_check_pmd_set() [all …]
|
H A D | huge_mm.h | 13 pmd_t *dst_pmd, pmd_t *src_pmd, unsigned long addr, 36 unsigned long new_addr, pmd_t *old_pmd, pmd_t *new_pmd); 38 pmd_t *pmd, unsigned long addr, pgprot_t newprot, 378 pmd_t *____pmd = (__pmd); \ 421 static inline int is_swap_pmd(pmd_t pmd) in is_swap_pmd() 466 static inline bool is_huge_zero_pmd(pmd_t pmd) in is_huge_zero_pmd() 484 pmd_t *pmdp, struct folio *folio); 555 unsigned long address, pmd_t *pmd, in split_huge_pmd_locked() 559 unsigned long addr, pmd_t *pmdp, in unmap_huge_pmd_locked() 587 static inline int is_swap_pmd(pmd_t pmd) in is_swap_pmd() [all …]
|
/linux/arch/riscv/include/asm/ |
H A D | pgtable.h | 242 static inline void set_pmd(pmd_t *pmdp, pmd_t pmd) in set_pmd() 666 static inline pmd_t pmd_mkhuge(pmd_t pmd) in pmd_mkhuge() 671 static inline pmd_t pmd_mkinvalid(pmd_t pmd) in pmd_mkinvalid() 725 static inline pmd_t pmd_mkold(pmd_t pmd) in pmd_mkold() 730 static inline pmd_t pmd_mkyoung(pmd_t pmd) in pmd_mkyoung() 735 static inline pmd_t pmd_mkwrite_novma(pmd_t pmd) in pmd_mkwrite_novma() 740 static inline pmd_t pmd_wrprotect(pmd_t pmd) in pmd_wrprotect() 745 static inline pmd_t pmd_mkclean(pmd_t pmd) in pmd_mkclean() 750 static inline pmd_t pmd_mkdirty(pmd_t pmd) in pmd_mkdirty() 755 static inline pmd_t pmd_mkdevmap(pmd_t pmd) in pmd_mkdevmap() [all …]
|
/linux/include/asm-generic/ |
H A D | pgtable_uffd.h | 10 static __always_inline int pmd_uffd_wp(pmd_t pmd) in pmd_uffd_wp() 20 static __always_inline pmd_t pmd_mkuffd_wp(pmd_t pmd) in pmd_mkuffd_wp() 30 static __always_inline pmd_t pmd_clear_uffd_wp(pmd_t pmd) in pmd_clear_uffd_wp() 50 static inline pmd_t pmd_swp_mkuffd_wp(pmd_t pmd) in pmd_swp_mkuffd_wp() 55 static inline int pmd_swp_uffd_wp(pmd_t pmd) in pmd_swp_uffd_wp() 60 static inline pmd_t pmd_swp_clear_uffd_wp(pmd_t pmd) in pmd_swp_clear_uffd_wp()
|
H A D | pgtable-nopmd.h | 18 typedef struct { pud_t pud; } pmd_t; typedef 44 #define set_pud(pudptr, pudval) set_pmd((pmd_t *)(pudptr), (pmd_t) { pudval }) 46 static inline pmd_t * pmd_offset(pud_t * pud, unsigned long address) in pmd_offset() 48 return (pmd_t *)pud; in pmd_offset() 53 #define __pmd(x) ((pmd_t) { __pud(x) } ) 55 #define pud_page(pud) (pmd_page((pmd_t){ pud })) 56 #define pud_pgtable(pud) ((pmd_t *)(pmd_page_vaddr((pmd_t){ pud }))) 63 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free()
|
/linux/mm/ |
H A D | pgtable-generic.c | 52 void pmd_clear_bad(pmd_t *pmd) in pmd_clear_bad() 138 pmd_t *pmdp) in pmdp_huge_clear_flush() 140 pmd_t pmd; in pmdp_huge_clear_flush() 199 pmd_t *pmdp) in pmdp_invalidate() 210 pmd_t *pmdp) in pmdp_invalidate_ad() 219 pmd_t *pmdp) in pmdp_collapse_flush() 225 pmd_t pmd; in pmdp_collapse_flush() 282 pte_t *__pte_offset_map(pmd_t *pmd, unsigned long addr, pmd_t *pmdvalp) in __pte_offset_map() 285 pmd_t pmdval; in __pte_offset_map() 311 pmd_t pmdval; in pte_offset_map_nolock() [all …]
|
/linux/arch/powerpc/include/asm/book3s/64/ |
H A D | hash-4k.h | 37 #define H_PMD_TABLE_SIZE (sizeof(pmd_t) << H_PMD_INDEX_SIZE) 114 static inline char *get_hpte_slot_array(pmd_t *pmdp) in get_hpte_slot_array() 139 static inline int hash__pmd_trans_huge(pmd_t pmd) in hash__pmd_trans_huge() 144 static inline pmd_t hash__pmd_mkhuge(pmd_t pmd) in hash__pmd_mkhuge() 151 unsigned long addr, pmd_t *pmdp, 153 extern pmd_t hash__pmdp_collapse_flush(struct vm_area_struct *vma, 154 unsigned long address, pmd_t *pmdp); 155 extern void hash__pgtable_trans_huge_deposit(struct mm_struct *mm, pmd_t *pmdp, 158 extern pmd_t hash__pmdp_huge_get_and_clear(struct mm_struct *mm, 159 unsigned long addr, pmd_t *pmdp); [all …]
|
H A D | hash-64k.h | 188 #define H_PMD_TABLE_SIZE ((sizeof(pmd_t) << PMD_INDEX_SIZE) + \ 191 #define H_PMD_TABLE_SIZE (sizeof(pmd_t) << PMD_INDEX_SIZE) 202 static inline char *get_hpte_slot_array(pmd_t *pmdp) in get_hpte_slot_array() 260 static inline int hash__pmd_trans_huge(pmd_t pmd) in hash__pmd_trans_huge() 266 static inline pmd_t hash__pmd_mkhuge(pmd_t pmd) in hash__pmd_mkhuge() 272 unsigned long addr, pmd_t *pmdp, 274 extern pmd_t hash__pmdp_collapse_flush(struct vm_area_struct *vma, 275 unsigned long address, pmd_t *pmdp); 279 extern pmd_t hash__pmdp_huge_get_and_clear(struct mm_struct *mm, 280 unsigned long addr, pmd_t *pmdp); [all …]
|
H A D | radix.h | 137 #define RADIX_PMD_TABLE_SIZE (sizeof(pmd_t) << RADIX_PMD_INDEX_SIZE) 238 static inline int radix__pmd_bad(pmd_t pmd) in radix__pmd_bad() 243 static inline int radix__pmd_same(pmd_t pmd_a, pmd_t pmd_b) in radix__pmd_same() 265 static inline int radix__pmd_trans_huge(pmd_t pmd) in radix__pmd_trans_huge() 270 static inline pmd_t radix__pmd_mkhuge(pmd_t pmd) in radix__pmd_mkhuge() 286 pmd_t *pmdp, unsigned long clr, 291 extern pmd_t radix__pmdp_collapse_flush(struct vm_area_struct *vma, 292 unsigned long address, pmd_t *pmdp); 296 extern pmd_t radix__pmdp_huge_get_and_clear(struct mm_struct *mm, 297 unsigned long addr, pmd_t *pmdp); [all …]
|
H A D | pgtable.h | 1100 extern pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot); 1103 pmd_t *pmdp, pmd_t pmd); 1181 pmd_t *pmdp) in pmdp_set_wrprotect() 1228 static inline int pmd_same(pmd_t pmd_a, pmd_t pmd_b) in pmd_same() 1244 static inline pmd_t __pmd_mkhuge(pmd_t pmd) in __pmd_mkhuge() 1262 static inline pmd_t pmd_mkhuge(pmd_t pmd) in pmd_mkhuge() 1289 pmd_t entry, int dirty); 1334 pmd_t *pmdp, int full); 1352 pmd_t *pmdp) in pgtable_trans_huge_withdraw() 1361 pmd_t *pmdp); [all …]
|
/linux/arch/mips/include/asm/ |
H A D | pgtable.h | 633 static inline pmd_t pmd_mkhuge(pmd_t pmd) 641 pmd_t *pmdp, pmd_t pmd); 643 static inline pmd_t pmd_wrprotect(pmd_t pmd) 649 static inline pmd_t pmd_mkwrite_novma(pmd_t pmd) 664 static inline pmd_t pmd_mkclean(pmd_t pmd) 670 static inline pmd_t pmd_mkdirty(pmd_t pmd) 685 static inline pmd_t pmd_mkold(pmd_t pmd) 692 static inline pmd_t pmd_mkyoung(pmd_t pmd) 708 static inline pmd_t pmd_mksoft_dirty(pmd_t pmd) 714 static inline pmd_t pmd_clear_soft_dirty(pmd_t pmd) [all …]
|
/linux/arch/s390/include/asm/ |
H A D | pgtable.h | 917 static inline pmd_t pmd_mksoft_dirty(pmd_t pmd) in pmd_mksoft_dirty() 1552 static inline pmd_t pmd_wrprotect(pmd_t pmd) in pmd_wrprotect() 1558 static inline pmd_t pmd_mkwrite_novma(pmd_t pmd) in pmd_mkwrite_novma() 1566 static inline pmd_t pmd_mkclean(pmd_t pmd) in pmd_mkclean() 1572 static inline pmd_t pmd_mkdirty(pmd_t pmd) in pmd_mkdirty() 1626 static inline pmd_t pmd_mkyoung(pmd_t pmd) in pmd_mkyoung() 1634 static inline pmd_t pmd_mkold(pmd_t pmd) in pmd_mkold() 1731 pmd_t pmdp_xchg_direct(struct mm_struct *, unsigned long, pmd_t *, pmd_t); 1732 pmd_t pmdp_xchg_lazy(struct mm_struct *, unsigned long, pmd_t *, pmd_t); 1779 pmd_t *pmdp, pmd_t entry) in set_pmd_at() [all …]
|
/linux/arch/x86/mm/ |
H A D | pgtable.c | 242 pmd_t *pmd = NULL; in preallocate_pmds() 279 pmd_t *pmd = (pmd_t *)pgd_page_vaddr(pgd); in mop_up_one_pmd() 318 pmd_t *pmd = pmds[i]; in pgd_prepopulate_pmd() 330 pgd_t *k_pgd, pmd_t *pmds[]) in pgd_prepopulate_user_pmd() 345 pmd_t *pmd = pmds[i]; in pgd_prepopulate_user_pmd() 437 pmd_t *pmds[MAX_PREALLOCATED_PMDS]; in pgd_alloc() 517 pmd_t entry, int dirty) in pmdp_set_access_flags() 632 pmd_t *pmdp) in pmdp_invalidate_ad() 807 int pmd_clear_huge(pmd_t *pmd) in pmd_clear_huge() 830 pmd_t *pmd, *pmd_sv; in pud_free_pmd_page() [all …]
|
/linux/arch/sparc/include/asm/ |
H A D | pgtable_64.h | 321 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify() 441 static inline pmd_t pmd_mkhuge(pmd_t pmd) in pmd_mkhuge() 732 static inline pmd_t pmd_mkold(pmd_t pmd) in pmd_mkold() 741 static inline pmd_t pmd_wrprotect(pmd_t pmd) in pmd_wrprotect() 750 static inline pmd_t pmd_mkdirty(pmd_t pmd) in pmd_mkdirty() 759 static inline pmd_t pmd_mkclean(pmd_t pmd) in pmd_mkclean() 768 static inline pmd_t pmd_mkyoung(pmd_t pmd) in pmd_mkyoung() 777 static inline pmd_t pmd_mkwrite_novma(pmd_t pmd) in pmd_mkwrite_novma() 820 pmd_t *pmdp, pmd_t pmd); 823 pmd_t *pmdp, pmd_t pmd) in set_pmd_at() [all …]
|
/linux/arch/sparc/mm/ |
H A D | tlb.c | 148 pmd_t pmd) in tlb_batch_pmd_scan() 171 pmd_t orig, pmd_t pmd) in __set_pmd_acct() 223 pmd_t *pmdp, pmd_t pmd) in set_pmd_at() 225 pmd_t orig = *pmdp; in set_pmd_at() 231 static inline pmd_t pmdp_establish(struct vm_area_struct *vma, in pmdp_establish() 232 unsigned long address, pmd_t *pmdp, pmd_t pmd) in pmdp_establish() 234 pmd_t old; in pmdp_establish() 247 pmd_t pmdp_invalidate(struct vm_area_struct *vma, unsigned long address, in pmdp_invalidate() 248 pmd_t *pmdp) in pmdp_invalidate() 250 pmd_t old, entry; in pmdp_invalidate() [all …]
|
/linux/arch/powerpc/mm/book3s64/ |
H A D | pgtable.c | 49 pmd_t *pmdp, pmd_t entry, int dirty) in pmdp_set_access_flags() 90 unsigned long address, pmd_t *pmdp) in pmdp_test_and_clear_young() 106 pmd_t *pmdp, pmd_t pmd) in set_pmd_at() 169 pmd_t *pmdp) in pmdp_invalidate() 193 pmd_t pmd; in pmdp_huge_get_and_clear_full() 227 static pmd_t pmd_set_protbits(pmd_t pmd, pgprot_t pgprot) in pmd_set_protbits() 260 pmd_t mk_pmd(struct page *page, pgprot_t pgprot) in mk_pmd() 265 pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify() 403 return (pmd_t *)ret; in get_pmd_from_cache() 444 return (pmd_t *)ret; in __alloc_for_pmdcache() [all …]
|
/linux/arch/powerpc/include/asm/ |
H A D | pgtable-be-types.h | 23 typedef struct { __be64 pmd; } pmd_t; typedef 24 #define __pmd(x) ((pmd_t) { cpu_to_be64(x) }) 25 #define __pmd_raw(x) ((pmd_t) { (x) }) 26 static inline unsigned long pmd_val(pmd_t x) in pmd_val() 31 static inline __be64 pmd_raw(pmd_t x) in pmd_raw() 93 static inline bool pmd_xchg(pmd_t *pmdp, pmd_t old, pmd_t new) in pmd_xchg()
|
/linux/arch/arc/include/asm/ |
H A D | hugepage.h | 20 static inline pte_t pmd_pte(pmd_t pmd) in pmd_pte() 25 static inline pmd_t pte_pmd(pte_t pte) in pte_pmd() 49 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify() 59 pmd_t *pmdp, pmd_t pmd) in set_pmd_at() 65 pmd_t *pmd);
|
/linux/arch/riscv/mm/ |
H A D | pgtable.c | 90 pmd_t *pmd = pud_pgtable(pudp_get(pud)); in pud_free_pmd_page() 110 int pmd_set_huge(pmd_t *pmd, phys_addr_t phys, pgprot_t prot) in pmd_set_huge() 112 pmd_t new_pmd = pfn_pmd(__phys_to_pfn(phys), prot); in pmd_set_huge() 118 int pmd_clear_huge(pmd_t *pmd) in pmd_clear_huge() 126 int pmd_free_pte_page(pmd_t *pmd, unsigned long addr) in pmd_free_pte_page() 139 pmd_t pmdp_collapse_flush(struct vm_area_struct *vma, in pmdp_collapse_flush() 140 unsigned long address, pmd_t *pmdp) in pmdp_collapse_flush() 142 pmd_t pmd = pmdp_huge_get_and_clear(vma->vm_mm, address, pmdp); in pmdp_collapse_flush()
|
/linux/arch/parisc/include/asm/ |
H A D | pgalloc.h | 41 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate() 47 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address) in pmd_alloc_one() 49 pmd_t *pmd; in pmd_alloc_one() 51 pmd = (pmd_t *)__get_free_pages(GFP_PGTABLE_KERNEL, PMD_TABLE_ORDER); in pmd_alloc_one() 57 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free() 64 pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, pte_t *pte) in pmd_populate_kernel()
|
/linux/arch/alpha/include/asm/ |
H A D | pgtable.h | 136 extern pmd_t * __bad_pagetable(void); 209 extern inline void pmd_set(pmd_t * pmdp, pte_t * ptep) in pmd_set() 212 extern inline void pud_set(pud_t * pudp, pmd_t * pmdp) in pud_set() 217 pmd_page_vaddr(pmd_t pmd) in pmd_page_vaddr() 226 extern inline pmd_t *pud_pgtable(pud_t pgd) in pud_pgtable() 228 return (pmd_t *)(PAGE_OFFSET + ((pud_val(pgd) & _PFN_MASK) >> (32-PAGE_SHIFT))); in pud_pgtable() 238 extern inline int pmd_none(pmd_t pmd) { return !pmd_val(pmd); } in pmd_none() 240 extern inline int pmd_present(pmd_t pmd) { return pmd_val(pmd) & _PAGE_VALID; } in pmd_present() 241 extern inline void pmd_clear(pmd_t * pmdp) { pmd_val(*pmdp) = 0; } in pmd_clear() 277 extern inline pmd_t * pmd_offset(pud_t * dir, unsigned long address) in pmd_offset() [all …]
|