/linux-6.12.1/arch/arc/include/asm/ |
D | hugepage.h | 20 static inline pte_t pmd_pte(pmd_t pmd) in pmd_pte() 30 #define pmd_wrprotect(pmd) pte_pmd(pte_wrprotect(pmd_pte(pmd))) argument 31 #define pmd_mkwrite_novma(pmd) pte_pmd(pte_mkwrite_novma(pmd_pte(pmd))) argument 32 #define pmd_mkdirty(pmd) pte_pmd(pte_mkdirty(pmd_pte(pmd))) argument 33 #define pmd_mkold(pmd) pte_pmd(pte_mkold(pmd_pte(pmd))) argument 34 #define pmd_mkyoung(pmd) pte_pmd(pte_mkyoung(pmd_pte(pmd))) argument 35 #define pmd_mkhuge(pmd) pte_pmd(pte_mkhuge(pmd_pte(pmd))) argument 36 #define pmd_mkinvalid(pmd) pte_pmd(pte_mknotpresent(pmd_pte(pmd))) argument 37 #define pmd_mkclean(pmd) pte_pmd(pte_mkclean(pmd_pte(pmd))) argument 39 #define pmd_write(pmd) pte_write(pmd_pte(pmd)) argument [all …]
|
D | pgalloc.h | 37 pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, pte_t *pte) in pmd_populate_kernel() 49 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, pgtable_t pte_page) in pmd_populate() 80 #define __pud_free_tlb(tlb, pmd, addr) pud_free((tlb)->mm, pmd) argument 91 #define __pmd_free_tlb(tlb, pmd, addr) pmd_free((tlb)->mm, pmd) argument
|
/linux-6.12.1/drivers/md/ |
D | dm-thin-metadata.c | 233 struct dm_pool_metadata *pmd; member 419 static inline void pmd_write_lock_in_core(struct dm_pool_metadata *pmd) in pmd_write_lock_in_core() 425 static inline void pmd_write_lock(struct dm_pool_metadata *pmd) in pmd_write_lock() 432 static inline void pmd_write_unlock(struct dm_pool_metadata *pmd) in pmd_write_unlock() 440 static int superblock_lock_zero(struct dm_pool_metadata *pmd, in superblock_lock_zero() 447 static int superblock_lock(struct dm_pool_metadata *pmd, in superblock_lock() 483 static void __setup_btree_details(struct dm_pool_metadata *pmd) in __setup_btree_details() 521 static int save_sm_roots(struct dm_pool_metadata *pmd) in save_sm_roots() 541 static void copy_sm_roots(struct dm_pool_metadata *pmd, in copy_sm_roots() 553 static int __write_initial_superblock(struct dm_pool_metadata *pmd) in __write_initial_superblock() [all …]
|
/linux-6.12.1/arch/arm/include/asm/ |
D | pgtable-3level.h | 117 #define pmd_table(pmd) ((pmd_val(pmd) & PMD_TYPE_MASK) == \ argument 119 #define pmd_sect(pmd) ((pmd_val(pmd) & PMD_TYPE_MASK) == \ argument 121 #define pmd_leaf(pmd) pmd_sect(pmd) argument 140 #define pmd_bad(pmd) (!(pmd_val(pmd) & PMD_TABLE_BIT)) argument 176 #define pmd_isset(pmd, val) ((u32)(val) == (val) ? pmd_val(pmd) & (val) \ argument 178 #define pmd_isclear(pmd, val) (!(pmd_val(pmd) & (val))) argument 180 #define pmd_present(pmd) (pmd_isset((pmd), L_PMD_SECT_VALID)) argument 181 #define pmd_young(pmd) (pmd_isset((pmd), PMD_SECT_AF)) argument 189 #define pmd_write(pmd) (pmd_isclear((pmd), L_PMD_SECT_RDONLY)) argument 190 #define pmd_dirty(pmd) (pmd_isset((pmd), L_PMD_SECT_DIRTY)) argument [all …]
|
/linux-6.12.1/arch/loongarch/include/asm/ |
D | pgtable.h | 175 typedef struct { unsigned long pmd; } pmd_t; member 222 static inline int pmd_none(pmd_t pmd) in pmd_none() 227 static inline int pmd_bad(pmd_t pmd) in pmd_bad() 232 static inline int pmd_present(pmd_t pmd) in pmd_present() 240 static inline void set_pmd(pmd_t *pmd, pmd_t pmdval) in set_pmd() 250 #define pmd_phys(pmd) PHYSADDR(pmd_val(pmd)) argument 253 #define pmd_page(pmd) (pfn_to_page(pmd_phys(pmd) >> PAGE_SHIFT)) argument 256 #define pmd_page_vaddr(pmd) pmd_val(pmd) argument 299 #define __pmd_to_swp_entry(pmd) ((swp_entry_t) { pmd_val(pmd) }) argument 465 static inline unsigned long pmd_pfn(pmd_t pmd) in pmd_pfn() [all …]
|
/linux-6.12.1/arch/x86/include/asm/ |
D | pgtable.h | 73 #define set_pmd(pmdp, pmd) native_set_pmd(pmdp, pmd) argument 97 #define pmd_clear(pmd) native_pmd_clear(pmd) argument 123 static inline pmd_t pmd_set_flags(pmd_t pmd, pmdval_t set) in pmd_set_flags() 130 static inline pmd_t pmd_clear_flags(pmd_t pmd, pmdval_t clear) in pmd_clear_flags() 177 static inline bool pmd_dirty(pmd_t pmd) in pmd_dirty() 182 static inline bool pmd_shstk(pmd_t pmd) in pmd_shstk() 190 static inline int pmd_young(pmd_t pmd) in pmd_young() 222 static inline int pmd_write(pmd_t pmd) in pmd_write() 270 static inline unsigned long pmd_pfn(pmd_t pmd) in pmd_pfn() 312 static inline int pmd_trans_huge(pmd_t pmd) in pmd_trans_huge() [all …]
|
/linux-6.12.1/include/asm-generic/ |
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()
|
/linux-6.12.1/arch/mips/include/asm/ |
D | pgtable.h | 65 #define pmd_phys(pmd) virt_to_phys((void *)pmd_val(pmd)) argument 67 static inline unsigned long pmd_pfn(pmd_t pmd) in pmd_pfn() 73 #define pmd_page(pmd) (pfn_to_page(pmd_phys(pmd) >> PAGE_SHIFT)) argument 76 #define pmd_page_vaddr(pmd) pmd_val(pmd) argument 413 static inline int pmd_write(pmd_t pmd) 418 static inline struct page *pmd_page(pmd_t pmd) 628 static inline int pmd_trans_huge(pmd_t pmd) 633 static inline pmd_t pmd_mkhuge(pmd_t pmd) 643 static inline pmd_t pmd_wrprotect(pmd_t pmd) 649 static inline pmd_t pmd_mkwrite_novma(pmd_t pmd) [all …]
|
/linux-6.12.1/arch/riscv/include/asm/ |
D | pgtable.h | 209 static inline int pmd_present(pmd_t pmd) in pmd_present() 220 static inline int pmd_present(pmd_t pmd) in pmd_present() 226 static inline int pmd_none(pmd_t pmd) in pmd_none() 231 static inline int pmd_bad(pmd_t pmd) in pmd_bad() 237 static inline bool pmd_leaf(pmd_t pmd) in pmd_leaf() 242 static inline void set_pmd(pmd_t *pmdp, pmd_t pmd) in set_pmd() 266 static inline struct page *pmd_page(pmd_t pmd) in pmd_page() 271 static inline unsigned long pmd_page_vaddr(pmd_t pmd) in pmd_page_vaddr() 276 static inline pte_t pmd_pte(pmd_t pmd) in pmd_pte() 475 static inline int pmd_protnone(pmd_t pmd) in pmd_protnone() [all …]
|
/linux-6.12.1/arch/powerpc/include/asm/book3s/64/ |
D | pgtable.h | 267 static inline bool pmd_leaf(pmd_t pmd) in pmd_leaf() 279 static inline unsigned long pmd_leaf_size(pmd_t pmd) in pmd_leaf_size() 663 #define __pmd_to_swp_entry(pmd) (__pte_to_swp_entry(pmd_pte(pmd))) argument 819 static inline int pmd_none(pmd_t pmd) in pmd_none() 824 static inline int pmd_present(pmd_t pmd) in pmd_present() 838 static inline int pmd_is_serializing(pmd_t pmd) in pmd_is_serializing() 855 static inline int pmd_bad(pmd_t pmd) in pmd_bad() 913 #define pud_soft_dirty(pmd) pte_soft_dirty(pud_pte(pud)) argument 914 #define pud_mksoft_dirty(pmd) pte_pud(pte_mksoft_dirty(pud_pte(pud))) argument 915 #define pud_clear_soft_dirty(pmd) pte_pud(pte_clear_soft_dirty(pud_pte(pud))) argument [all …]
|
/linux-6.12.1/arch/arm64/include/asm/ |
D | pgtable.h | 183 #define pmd_access_permitted(pmd, write) \ argument 200 static inline pmd_t clear_pmd_bit(pmd_t pmd, pgprot_t prot) in clear_pmd_bit() 206 static inline pmd_t set_pmd_bit(pmd_t pmd, pgprot_t prot) in set_pmd_bit() 289 static inline pmd_t pmd_mkcont(pmd_t pmd) in pmd_mkcont() 480 static inline pte_t pmd_pte(pmd_t pmd) in pmd_pte() 550 static inline int pmd_protnone(pmd_t pmd) in pmd_protnone() 556 #define pmd_present(pmd) pte_present(pmd_pte(pmd)) argument 563 static inline int pmd_trans_huge(pmd_t pmd) in pmd_trans_huge() 569 #define pmd_dirty(pmd) pte_dirty(pmd_pte(pmd)) argument 570 #define pmd_young(pmd) pte_young(pmd_pte(pmd)) argument [all …]
|
/linux-6.12.1/arch/parisc/include/asm/ |
D | pgalloc.h | 41 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate() 49 pmd_t *pmd; in pmd_alloc_one() local 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() 70 #define pmd_populate(mm, pmd, pte_page) \ argument
|
/linux-6.12.1/arch/powerpc/include/asm/nohash/32/ |
D | pgtable.h | 154 #define pmd_none(pmd) (!pmd_val(pmd)) argument 155 #define pmd_bad(pmd) (pmd_val(pmd) & _PMD_BAD) argument 156 #define pmd_present(pmd) (pmd_val(pmd) & _PMD_PRESENT_MASK) argument 170 #define pmd_pfn(pmd) (pmd_val(pmd) >> PAGE_SHIFT) argument 172 #define pmd_page_vaddr(pmd) \ argument 174 #define pmd_pfn(pmd) (__pa(pmd_val(pmd)) >> PAGE_SHIFT) argument 177 #define pmd_page(pmd) pfn_to_page(pmd_pfn(pmd)) argument
|
/linux-6.12.1/mm/kasan/ |
D | init.c | 70 static inline bool kasan_pte_table(pmd_t pmd) in kasan_pte_table() 92 static void __ref zero_pte_populate(pmd_t *pmd, unsigned long addr, in zero_pte_populate() 116 pmd_t *pmd = pmd_offset(pud, addr); in zero_pmd_populate() local 161 pmd_t *pmd; in zero_pud_populate() local 204 pmd_t *pmd; in zero_p4d_populate() local 256 pmd_t *pmd; in kasan_populate_early_shadow() local 298 static void kasan_free_pte(pte_t *pte_start, pmd_t *pmd) in kasan_free_pte() 315 pmd_t *pmd; in kasan_free_pmd() local 380 static void kasan_remove_pmd_table(pmd_t *pmd, unsigned long addr, in kasan_remove_pmd_table() 412 pmd_t *pmd, *pmd_base; in kasan_remove_pud_table() local
|
/linux-6.12.1/arch/m68k/include/asm/ |
D | sun3_pgtable.h | 96 static inline unsigned long pmd_page_vaddr(pmd_t pmd) in pmd_page_vaddr() 114 #define pmd_pfn(pmd) (pmd_val(pmd) >> PAGE_SHIFT) argument 115 #define pmd_page(pmd) virt_to_page((void *)pmd_page_vaddr(pmd)) argument 118 static inline int pmd_none2 (pmd_t *pmd) { return !pmd_val (*pmd); } in pmd_none2() 119 #define pmd_none(pmd) pmd_none2(&(pmd)) argument 121 static inline int pmd_bad2 (pmd_t *pmd) { return 0; } in pmd_bad2() 122 #define pmd_bad(pmd) pmd_bad2(&(pmd)) argument 123 static inline int pmd_present2 (pmd_t *pmd) { return pmd_val (*pmd) & SUN3_PMD_VALID; } in pmd_present2() 125 #define pmd_present(pmd) (!pmd_none2(&(pmd))) argument
|
D | motorola_pgalloc.h | 59 static inline int pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free() 64 static inline int __pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmd, in __pmd_free_tlb() 82 static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, pte_t *pte) in pmd_populate_kernel() 87 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, pgtable_t page) in pmd_populate() 92 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate()
|
D | mcf_pgtable.h | 97 #define pmd_pgtable(pmd) pfn_to_virt(pmd_val(pmd) >> PAGE_SHIFT) argument 119 #define pmd_page_vaddr(pmd) ((unsigned long) (pmd_val(pmd))) argument 139 static inline int pmd_none2(pmd_t *pmd) { return !pmd_val(*pmd); } in pmd_none2() 140 #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 #define pmd_present(pmd) (!pmd_none2(&(pmd))) argument 295 #define pmd_pfn(pmd) (pmd_val(pmd) >> PAGE_SHIFT) argument 296 #define pmd_page(pmd) (pfn_to_page(pmd_val(pmd) >> PAGE_SHIFT)) argument
|
/linux-6.12.1/include/linux/ |
D | pgtable.h | 50 #define pmd_pgtable(pmd) pmd_page(pmd) argument 53 #define pmd_folio(pmd) page_folio(pmd_page(pmd)) argument 94 static inline pte_t *pte_offset_kernel(pmd_t *pmd, unsigned long address) in pte_offset_kernel() 102 #define __pte_map(pmd, address) \ argument 109 static inline pte_t *__pte_map(pmd_t *pmd, unsigned long address) in __pte_map() 175 pmd_t *pmd = pmd_off_k(vaddr); in virt_to_kpte() local 181 static inline int pmd_young(pmd_t pmd) in pmd_young() 188 static inline int pmd_dirty(pmd_t pmd) in pmd_dirty() 370 pmd_t pmd = *pmdp; in pmdp_test_and_clear_young() local 445 pmd_t pmd) in arch_check_zapped_pmd() [all …]
|
D | page_table_check.h | 52 static inline void page_table_check_pmd_clear(struct mm_struct *mm, pmd_t pmd) in page_table_check_pmd_clear() 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() 133 pmd_t pmd) in page_table_check_pmd_set() 144 pmd_t pmd) in page_table_check_pte_clear_range()
|
/linux-6.12.1/arch/powerpc/include/asm/nohash/64/ |
D | pgalloc.h | 34 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate() 39 static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, in pmd_populate_kernel() 45 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, in pmd_populate() 57 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free() 62 #define __pmd_free_tlb(tlb, pmd, addr) \ argument
|
/linux-6.12.1/arch/sparc/include/asm/ |
D | pgtable_64.h | 321 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify() 430 static inline bool is_hugetlb_pmd(pmd_t pmd) in is_hugetlb_pmd() 441 static inline pmd_t pmd_mkhuge(pmd_t pmd) in pmd_mkhuge() 684 static inline bool pmd_leaf(pmd_t pmd) in pmd_leaf() 691 static inline unsigned long pmd_pfn(pmd_t pmd) in pmd_pfn() 699 static inline unsigned long pmd_write(pmd_t pmd) in pmd_write() 710 static inline unsigned long pmd_dirty(pmd_t pmd) in pmd_dirty() 718 static inline unsigned long pmd_young(pmd_t pmd) in pmd_young() 725 static inline unsigned long pmd_trans_huge(pmd_t pmd) in pmd_trans_huge() 732 static inline pmd_t pmd_mkold(pmd_t pmd) in pmd_mkold() [all …]
|
/linux-6.12.1/arch/riscv/mm/ |
D | pgtable.c | 90 pmd_t *pmd = pud_pgtable(pudp_get(pud)); in pud_free_pmd_page() local 110 int pmd_set_huge(pmd_t *pmd, phys_addr_t phys, pgprot_t 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() 142 pmd_t pmd = pmdp_huge_get_and_clear(vma->vm_mm, address, pmdp); in pmdp_collapse_flush() local
|
/linux-6.12.1/arch/csky/include/asm/ |
D | pgtable.h | 32 #define pmd_pfn(pmd) (pmd_phys(pmd) >> PAGE_SHIFT) argument 33 #define pmd_page(pmd) (pfn_to_page(pmd_phys(pmd) >> PAGE_SHIFT)) argument 95 static inline pte_t *pmd_page_vaddr(pmd_t pmd) in pmd_page_vaddr() 104 #define pmd_phys(pmd) pmd_val(pmd) argument 106 static inline void set_pmd(pmd_t *p, pmd_t pmd) in set_pmd() 117 static inline int pmd_none(pmd_t pmd) in pmd_none() 122 #define pmd_bad(pmd) (pmd_val(pmd) & ~PAGE_MASK) argument 124 static inline int pmd_present(pmd_t pmd) in pmd_present()
|
/linux-6.12.1/arch/x86/mm/ |
D | pgtable.c | 61 void ___pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmd) in ___pmd_free_tlb() 191 void pud_populate(struct mm_struct *mm, pud_t *pudp, pmd_t *pmd) in pud_populate() 242 pmd_t *pmd = NULL; in preallocate_pmds() local 279 pmd_t *pmd = (pmd_t *)pgd_page_vaddr(pgd); in mop_up_one_pmd() local 318 pmd_t *pmd = pmds[i]; in pgd_prepopulate_pmd() local 345 pmd_t *pmd = pmds[i]; in pgd_prepopulate_user_pmd() local 765 int pmd_set_huge(pmd_t *pmd, phys_addr_t addr, pgprot_t prot) in pmd_set_huge() 807 int pmd_clear_huge(pmd_t *pmd) in pmd_clear_huge() 830 pmd_t *pmd, *pmd_sv; in pud_free_pmd_page() local 873 int pmd_free_pte_page(pmd_t *pmd, unsigned long addr) in pmd_free_pte_page() [all …]
|
/linux-6.12.1/drivers/pmdomain/bcm/ |
D | bcm63xx-power.c | 38 static int bcm63xx_power_get_state(struct bcm63xx_power_dev *pmd, bool *is_on) in bcm63xx_power_get_state() 52 static int bcm63xx_power_set_state(struct bcm63xx_power_dev *pmd, bool on) in bcm63xx_power_set_state() 75 struct bcm63xx_power_dev *pmd = container_of(genpd, in bcm63xx_power_on() local 83 struct bcm63xx_power_dev *pmd = container_of(genpd, in bcm63xx_power_off() local 139 struct bcm63xx_power_dev *pmd = &power->dev[ndom]; in bcm63xx_power_probe() local
|