/Linux-v4.19/arch/arc/include/asm/ |
D | hugepage.h | 17 static inline pte_t pmd_pte(pmd_t pmd) in pmd_pte() 27 #define pmd_wrprotect(pmd) pte_pmd(pte_wrprotect(pmd_pte(pmd))) argument 28 #define pmd_mkwrite(pmd) pte_pmd(pte_mkwrite(pmd_pte(pmd))) argument 29 #define pmd_mkdirty(pmd) pte_pmd(pte_mkdirty(pmd_pte(pmd))) argument 30 #define pmd_mkold(pmd) pte_pmd(pte_mkold(pmd_pte(pmd))) argument 31 #define pmd_mkyoung(pmd) pte_pmd(pte_mkyoung(pmd_pte(pmd))) argument 32 #define pmd_mkhuge(pmd) pte_pmd(pte_mkhuge(pmd_pte(pmd))) argument 33 #define pmd_mknotpresent(pmd) pte_pmd(pte_mknotpresent(pmd_pte(pmd))) argument 34 #define pmd_mkclean(pmd) pte_pmd(pte_mkclean(pmd_pte(pmd))) argument 36 #define pmd_write(pmd) pte_write(pmd_pte(pmd)) argument [all …]
|
/Linux-v4.19/drivers/md/ |
D | dm-thin-metadata.c | 214 struct dm_pool_metadata *pmd; member 370 static int superblock_lock_zero(struct dm_pool_metadata *pmd, in superblock_lock_zero() 377 static int superblock_lock(struct dm_pool_metadata *pmd, in superblock_lock() 413 static void __setup_btree_details(struct dm_pool_metadata *pmd) in __setup_btree_details() 451 static int save_sm_roots(struct dm_pool_metadata *pmd) in save_sm_roots() 471 static void copy_sm_roots(struct dm_pool_metadata *pmd, in copy_sm_roots() 483 static int __write_initial_superblock(struct dm_pool_metadata *pmd) in __write_initial_superblock() 529 static int __format_metadata(struct dm_pool_metadata *pmd) in __format_metadata() 584 struct dm_pool_metadata *pmd) in __check_incompat_features() 611 static int __open_metadata(struct dm_pool_metadata *pmd) in __open_metadata() [all …]
|
/Linux-v4.19/arch/arm/include/asm/ |
D | pgtable-3level.h | 144 #define pmd_table(pmd) ((pmd_val(pmd) & PMD_TYPE_MASK) == \ argument 146 #define pmd_sect(pmd) ((pmd_val(pmd) & PMD_TYPE_MASK) == \ argument 148 #define pmd_large(pmd) pmd_sect(pmd) argument 174 #define pmd_bad(pmd) (!(pmd_val(pmd) & 2)) argument 210 #define pmd_isset(pmd, val) ((u32)(val) == (val) ? pmd_val(pmd) & (val) \ argument 212 #define pmd_isclear(pmd, val) (!(pmd_val(pmd) & (val))) argument 214 #define pmd_present(pmd) (pmd_isset((pmd), L_PMD_SECT_VALID)) argument 215 #define pmd_young(pmd) (pmd_isset((pmd), PMD_SECT_AF)) argument 223 #define pmd_write(pmd) (pmd_isclear((pmd), L_PMD_SECT_RDONLY)) argument 224 #define pmd_dirty(pmd) (pmd_isset((pmd), L_PMD_SECT_DIRTY)) argument [all …]
|
D | pgalloc.h | 35 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free() 41 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate() 52 #define pmd_free(mm, pmd) do { } while (0) argument 53 #define pud_populate(mm,pmd,pte) BUG() argument 170 #define pmd_pgtable(pmd) pmd_page(pmd) argument
|
/Linux-v4.19/arch/mips/include/asm/ |
D | pgtable.h | 92 #define pmd_phys(pmd) virt_to_phys((void *)pmd_val(pmd)) argument 94 #define __pmd_page(pmd) (pfn_to_page(pmd_phys(pmd) >> PAGE_SHIFT)) argument 96 #define pmd_page(pmd) __pmd_page(pmd) argument 99 #define pmd_page_vaddr(pmd) pmd_val(pmd) argument 543 static inline int pmd_trans_huge(pmd_t pmd) 548 static inline pmd_t pmd_mkhuge(pmd_t pmd) 559 static inline int pmd_write(pmd_t pmd) 564 static inline pmd_t pmd_wrprotect(pmd_t pmd) 570 static inline pmd_t pmd_mkwrite(pmd_t pmd) 579 static inline int pmd_dirty(pmd_t pmd) [all …]
|
D | pgalloc.h | 16 static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, in pmd_populate_kernel() 22 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, in pmd_populate() 27 #define pmd_pgtable(pmd) pmd_page(pmd) argument 36 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate() 96 pmd_t *pmd; in pmd_alloc_one() local 104 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free()
|
/Linux-v4.19/arch/parisc/include/asm/ |
D | pgalloc.h | 59 static inline void pgd_populate(struct mm_struct *mm, pgd_t *pgd, pmd_t *pmd) in pgd_populate() 67 pmd_t *pmd = (pmd_t *)__get_free_pages(GFP_KERNEL, PMD_ORDER); in pmd_alloc_one() local 73 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free() 99 #define pgd_populate(mm, pmd, pte) BUG() argument 104 pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, pte_t *pte) in pmd_populate_kernel() 120 #define pmd_populate(mm, pmd, pte_page) \ argument 122 #define pmd_pgtable(pmd) pmd_page(pmd) argument
|
/Linux-v4.19/arch/arm64/include/asm/ |
D | pgtable.h | 134 #define pmd_access_permitted(pmd, write) \ argument 214 static inline pmd_t pmd_mkcont(pmd_t pmd) in pmd_mkcont() 322 static inline pte_t pmd_pte(pmd_t pmd) in pmd_pte() 346 static inline int pmd_protnone(pmd_t pmd) in pmd_protnone() 357 #define pmd_trans_huge(pmd) (pmd_val(pmd) && !(pmd_val(pmd) & PMD_TABLE_BIT)) argument 360 #define pmd_present(pmd) pte_present(pmd_pte(pmd)) argument 361 #define pmd_dirty(pmd) pte_dirty(pmd_pte(pmd)) argument 362 #define pmd_young(pmd) pte_young(pmd_pte(pmd)) argument 363 #define pmd_wrprotect(pmd) pte_pmd(pte_wrprotect(pmd_pte(pmd))) argument 364 #define pmd_mkold(pmd) pte_pmd(pte_mkold(pmd_pte(pmd))) argument [all …]
|
/Linux-v4.19/arch/m68k/include/asm/ |
D | motorola_pgalloc.h | 75 static inline int pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free() 80 static inline int __pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmd, in __pmd_free_tlb() 98 static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, pte_t *pte) in pmd_populate_kernel() 103 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, pgtable_t page) in pmd_populate() 107 #define pmd_pgtable(pmd) pmd_page(pmd) argument 109 static inline void pgd_populate(struct mm_struct *mm, pgd_t *pgd, pmd_t *pmd) in pgd_populate()
|
D | mcf_pgalloc.h | 37 #define pmd_populate(mm, pmd, page) (pmd_val(*pmd) = \ argument 40 #define pmd_populate_kernel(mm, pmd, pte) (pmd_val(*pmd) = (unsigned long)(pte)) argument 42 #define pmd_pgtable(pmd) pmd_page(pmd) argument 51 #define __pmd_free_tlb(tlb, pmd, address) do { } while (0) argument 88 #define pmd_free(mm, pmd) BUG() argument 107 #define pgd_populate(mm, pmd, pte) BUG() argument
|
D | sun3_pgtable.h | 120 #define __pmd_page(pmd) \ argument 135 #define pmd_page(pmd) virt_to_page(__pmd_page(pmd)) argument 138 static inline int pmd_none2 (pmd_t *pmd) { return !pmd_val (*pmd); } in pmd_none2() 139 #define pmd_none(pmd) pmd_none2(&(pmd)) argument 141 static inline int pmd_bad2 (pmd_t *pmd) { return 0; } in pmd_bad2() 142 #define pmd_bad(pmd) pmd_bad2(&(pmd)) argument 143 static inline int pmd_present2 (pmd_t *pmd) { return pmd_val (*pmd) & SUN3_PMD_VALID; } in pmd_present2() 145 #define pmd_present(pmd) (!pmd_none2(&(pmd))) argument 205 #define pte_offset_kernel(pmd, address) ((pte_t *) __pmd_page(*pmd) + pte_index(address)) argument 206 #define pte_offset_map(pmd, address) ((pte_t *)page_address(pmd_page(*pmd)) + pte_index(address)) argument
|
/Linux-v4.19/arch/x86/include/asm/ |
D | pgtable.h | 67 #define set_pmd(pmdp, pmd) native_set_pmd(pmdp, pmd) argument 91 #define pmd_clear(pmd) native_pmd_clear(pmd) argument 146 static inline int pmd_dirty(pmd_t pmd) in pmd_dirty() 151 static inline int pmd_young(pmd_t pmd) in pmd_young() 202 static inline unsigned long pmd_pfn(pmd_t pmd) in pmd_pfn() 240 static inline int pmd_trans_huge(pmd_t pmd) in pmd_trans_huge() 259 static inline int pmd_devmap(pmd_t pmd) in pmd_devmap() 362 static inline pmd_t pmd_set_flags(pmd_t pmd, pmdval_t set) in pmd_set_flags() 369 static inline pmd_t pmd_clear_flags(pmd_t pmd, pmdval_t clear) in pmd_clear_flags() 376 static inline pmd_t pmd_mkold(pmd_t pmd) in pmd_mkold() [all …]
|
/Linux-v4.19/arch/riscv/include/asm/ |
D | pgalloc.h | 22 pmd_t *pmd, pte_t *pte) in pmd_populate_kernel() 30 pmd_t *pmd, pgtable_t pte) in pmd_populate() 38 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate() 46 #define pmd_pgtable(pmd) pmd_page(pmd) argument 76 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free() 81 #define __pmd_free_tlb(tlb, pmd, addr) pmd_free((tlb)->mm, pmd) argument
|
/Linux-v4.19/mm/kasan/ |
D | kasan_init.c | 74 static inline bool kasan_pte_table(pmd_t pmd) in kasan_pte_table() 90 static void __ref zero_pte_populate(pmd_t *pmd, unsigned long addr, in zero_pte_populate() 109 pmd_t *pmd = pmd_offset(pud, addr); in zero_pmd_populate() local 147 pmd_t *pmd; in zero_pud_populate() local 183 pmd_t *pmd; in zero_p4d_populate() local 232 pmd_t *pmd; in kasan_populate_zero_shadow() local 281 static void kasan_free_pte(pte_t *pte_start, pmd_t *pmd) in kasan_free_pte() 298 pmd_t *pmd; in kasan_free_pmd() local 360 static void kasan_remove_pmd_table(pmd_t *pmd, unsigned long addr, in kasan_remove_pmd_table() 391 pmd_t *pmd, *pmd_base; in kasan_remove_pud_table() local
|
/Linux-v4.19/arch/alpha/include/asm/ |
D | pgalloc.h | 15 pmd_populate(struct mm_struct *mm, pmd_t *pmd, pgtable_t pte) in pmd_populate() 19 #define pmd_pgtable(pmd) pmd_page(pmd) argument 22 pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, pte_t *pte) in pmd_populate_kernel() 28 pgd_populate(struct mm_struct *mm, pgd_t *pgd, pmd_t *pmd) in pgd_populate() 49 pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free()
|
/Linux-v4.19/include/asm-generic/ |
D | pgtable.h | 82 pmd_t pmd = *pmdp; in pmdp_test_and_clear_young() local 141 pmd_t pmd = *pmdp; in pmdp_huge_get_and_clear() local 319 unsigned long address, pmd_t *pmdp, pmd_t pmd) in generic_pmdp_establish() 358 #define pmd_access_permitted(pmd, write) \ argument 560 static inline int pmd_none_or_clear_bad(pmd_t *pmd) in pmd_none_or_clear_bad() 679 static inline pmd_t pmd_swp_mksoft_dirty(pmd_t pmd) in pmd_swp_mksoft_dirty() 684 static inline int pmd_swp_soft_dirty(pmd_t pmd) in pmd_swp_soft_dirty() 689 static inline pmd_t pmd_swp_clear_soft_dirty(pmd_t pmd) in pmd_swp_clear_soft_dirty() 700 static inline int pmd_soft_dirty(pmd_t pmd) in pmd_soft_dirty() 710 static inline pmd_t pmd_mksoft_dirty(pmd_t pmd) in pmd_mksoft_dirty() [all …]
|
/Linux-v4.19/arch/um/include/asm/ |
D | pgalloc.h | 13 #define pmd_populate_kernel(mm, pmd, pte) \ argument 16 #define pmd_populate(mm, pmd, pte) \ argument 20 #define pmd_pgtable(pmd) pmd_page(pmd) argument 50 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free()
|
/Linux-v4.19/arch/powerpc/include/asm/book3s/64/ |
D | pgtable.h | 871 static inline int pmd_none(pmd_t pmd) in pmd_none() 876 static inline int pmd_present(pmd_t pmd) in pmd_present() 882 static inline int pmd_bad(pmd_t pmd) in pmd_bad() 984 #define pmd_page_vaddr(pmd) __va(pmd_val(pmd) & ~PMD_MASKED_BITS) argument 1055 static inline pte_t pmd_pte(pmd_t pmd) in pmd_pte() 1065 static inline pte_t *pmdp_ptep(pmd_t *pmd) in pmdp_ptep() 1069 #define pmd_pfn(pmd) pte_pfn(pmd_pte(pmd)) argument 1070 #define pmd_dirty(pmd) pte_dirty(pmd_pte(pmd)) argument 1071 #define pmd_young(pmd) pte_young(pmd_pte(pmd)) argument 1072 #define pmd_mkold(pmd) pte_pmd(pte_mkold(pmd_pte(pmd))) argument [all …]
|
D | pgalloc.h | 141 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate() 162 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free() 167 static inline void __pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmd, in __pmd_free_tlb() 178 static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, in pmd_populate_kernel() 184 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, in pmd_populate() 190 static inline pgtable_t pmd_pgtable(pmd_t pmd) in pmd_pgtable()
|
/Linux-v4.19/arch/sparc/include/asm/ |
D | pgtable_64.h | 369 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify() 443 static inline bool is_hugetlb_pmd(pmd_t pmd) in is_hugetlb_pmd() 454 static inline pmd_t pmd_mkhuge(pmd_t pmd) in pmd_mkhuge() 716 static inline unsigned long pmd_large(pmd_t pmd) in pmd_large() 723 static inline unsigned long pmd_pfn(pmd_t pmd) in pmd_pfn() 731 static inline unsigned long pmd_write(pmd_t pmd) in pmd_write() 741 static inline unsigned long pmd_dirty(pmd_t pmd) in pmd_dirty() 748 static inline unsigned long pmd_young(pmd_t pmd) in pmd_young() 755 static inline unsigned long pmd_trans_huge(pmd_t pmd) in pmd_trans_huge() 762 static inline pmd_t pmd_mkold(pmd_t pmd) in pmd_mkold() [all …]
|
D | pgalloc_32.h | 47 static inline void free_pmd_fast(pmd_t * pmd) in free_pmd_fast() 52 #define pmd_free(mm, pmd) free_pmd_fast(pmd) argument 53 #define __pmd_free_tlb(tlb, pmd, addr) pmd_free((tlb)->mm, pmd) argument 56 #define pmd_pgtable(pmd) pmd_page(pmd) argument
|
/Linux-v4.19/arch/s390/include/asm/ |
D | pgtable.h | 665 static inline int pmd_large(pmd_t pmd) in pmd_large() 670 static inline int pmd_bad(pmd_t pmd) in pmd_bad() 693 static inline int pmd_present(pmd_t pmd) in pmd_present() 698 static inline int pmd_none(pmd_t pmd) in pmd_none() 703 static inline unsigned long pmd_pfn(pmd_t pmd) in pmd_pfn() 714 static inline int pmd_write(pmd_t pmd) in pmd_write() 719 static inline int pmd_dirty(pmd_t pmd) in pmd_dirty() 727 static inline int pmd_young(pmd_t pmd) in pmd_young() 771 static inline int pmd_protnone(pmd_t pmd) in pmd_protnone() 798 static inline int pmd_soft_dirty(pmd_t pmd) in pmd_soft_dirty() [all …]
|
D | pgalloc.h | 84 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free() 100 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate() 129 pmd_t *pmd, pgtable_t pte) in pmd_populate() 134 #define pmd_populate_kernel(mm, pmd, pte) pmd_populate(mm, pmd, pte) argument 136 #define pmd_pgtable(pmd) \ argument
|
/Linux-v4.19/arch/sh/mm/ |
D | hugetlbpage.c | 30 pmd_t *pmd; in huge_pte_alloc() local 51 pmd_t *pmd; in huge_pte_offset() local 67 int pmd_huge(pmd_t pmd) in pmd_huge()
|
/Linux-v4.19/arch/powerpc/include/asm/nohash/64/ |
D | pgalloc.h | 68 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate() 73 static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, in pmd_populate_kernel() 79 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, in pmd_populate() 85 #define pmd_pgtable(pmd) pmd_page(pmd) argument 93 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free() 177 #define __pmd_free_tlb(tlb, pmd, addr) \ argument
|