/linux-6.3-rc2/arch/arc/include/asm/ |
A D | hugepage.h | 13 static inline pte_t pmd_pte(pmd_t pmd) in pmd_pte() 24 #define pmd_mkwrite(pmd) pte_pmd(pte_mkwrite(pmd_pte(pmd))) argument 25 #define pmd_mkdirty(pmd) pte_pmd(pte_mkdirty(pmd_pte(pmd))) argument 26 #define pmd_mkold(pmd) pte_pmd(pte_mkold(pmd_pte(pmd))) argument 27 #define pmd_mkyoung(pmd) pte_pmd(pte_mkyoung(pmd_pte(pmd))) argument 28 #define pmd_mkhuge(pmd) pte_pmd(pte_mkhuge(pmd_pte(pmd))) argument 32 #define pmd_write(pmd) pte_write(pmd_pte(pmd)) argument 33 #define pmd_young(pmd) pte_young(pmd_pte(pmd)) argument 34 #define pmd_dirty(pmd) pte_dirty(pmd_pte(pmd)) argument 38 #define pmd_trans_huge(pmd) (pmd_val(pmd) & _PAGE_HW_SZ) argument [all …]
|
A 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.3-rc2/drivers/md/ |
A D | dm-thin-metadata.c | 233 struct dm_pool_metadata *pmd; member 654 struct dm_pool_metadata *pmd) in __check_incompat_features() 941 struct dm_pool_metadata *pmd; in dm_pool_metadata_open() local 1535 struct dm_pool_metadata *pmd = td->pmd; in __find_block() local 1555 struct dm_pool_metadata *pmd = td->pmd; in dm_thin_find_block() local 1575 struct dm_pool_metadata *pmd = td->pmd; in __find_next_mapped_block() local 1637 struct dm_pool_metadata *pmd = td->pmd; in dm_thin_find_mapped_range() local 1654 struct dm_pool_metadata *pmd = td->pmd; in __insert() local 1689 struct dm_pool_metadata *pmd = td->pmd; in __remove_range() local 1990 struct dm_pool_metadata *pmd = td->pmd; in dm_thin_get_mapped_count() local [all …]
|
/linux-6.3-rc2/arch/arm/include/asm/ |
A 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_large(pmd) pmd_sect(pmd) argument 122 #define pmd_leaf(pmd) pmd_sect(pmd) argument 141 #define pmd_bad(pmd) (!(pmd_val(pmd) & 2)) argument 179 #define pmd_isclear(pmd, val) (!(pmd_val(pmd) & (val))) argument 182 #define pmd_young(pmd) (pmd_isset((pmd), PMD_SECT_AF)) argument 191 #define pmd_dirty(pmd) (pmd_isset((pmd), L_PMD_SECT_DIRTY)) argument 220 static inline pmd_t pmd_mkinvalid(pmd_t pmd) in pmd_mkinvalid() 225 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify() [all …]
|
A D | pgtable-2level.h | 214 #define pmd_pfn(pmd) (__phys_to_pfn(pmd_val(pmd) & PHYS_MASK)) argument 216 #define pmd_large(pmd) (pmd_val(pmd) & 2) argument 217 #define pmd_leaf(pmd) (pmd_val(pmd) & 2) argument 218 #define pmd_bad(pmd) (pmd_val(pmd) & 2) argument 219 #define pmd_present(pmd) (pmd_val(pmd)) argument 244 #define pmd_hugewillfault(pmd) (0) argument 245 #define pmd_thp_or_huge(pmd) (0) argument
|
/linux-6.3-rc2/arch/arm64/include/asm/ |
A D | pgtable.h | 154 #define pmd_access_permitted(pmd, write) \ argument 253 static inline pmd_t pmd_mkcont(pmd_t pmd) in pmd_mkcont() 404 static inline pte_t pmd_pte(pmd_t pmd) in pmd_pte() 458 static inline int pmd_protnone(pmd_t pmd) in pmd_protnone() 466 static inline int pmd_present(pmd_t pmd) in pmd_present() 476 static inline int pmd_trans_huge(pmd_t pmd) in pmd_trans_huge() 495 static inline pmd_t pmd_mkinvalid(pmd_t pmd) in pmd_mkinvalid() 512 static inline pmd_t pmd_mkdevmap(pmd_t pmd) in pmd_mkdevmap() 535 pmd_t *pmdp, pmd_t pmd) in set_pmd_at() 589 #define pmd_none(pmd) (!pmd_val(pmd)) argument [all …]
|
/linux-6.3-rc2/arch/loongarch/include/asm/ |
A D | pgtable.h | 159 typedef struct { unsigned long pmd; } pmd_t; member 203 static inline int pmd_none(pmd_t pmd) in pmd_none() 208 static inline int pmd_bad(pmd_t pmd) in pmd_bad() 213 static inline int pmd_present(pmd_t pmd) in pmd_present() 234 #define pmd_page_vaddr(pmd) pmd_val(pmd) argument 478 static inline pmd_t pmd_mkhuge(pmd_t pmd) in pmd_mkhuge() 488 static inline int pmd_write(pmd_t pmd) in pmd_write() 493 static inline pmd_t pmd_mkwrite(pmd_t pmd) in pmd_mkwrite() 507 static inline int pmd_dirty(pmd_t pmd) in pmd_dirty() 527 static inline int pmd_young(pmd_t pmd) in pmd_young() [all …]
|
/linux-6.3-rc2/arch/riscv/include/asm/ |
A D | pgtable.h | 190 static inline int pmd_present(pmd_t pmd) in pmd_present() 201 static inline int pmd_present(pmd_t pmd) in pmd_present() 207 static inline int pmd_none(pmd_t pmd) in pmd_none() 212 static inline int pmd_bad(pmd_t pmd) in pmd_bad() 218 static inline int pmd_leaf(pmd_t pmd) in pmd_leaf() 257 static inline pte_t pmd_pte(pmd_t pmd) in pmd_pte() 596 static inline int pmd_write(pmd_t pmd) in pmd_write() 601 static inline int pmd_dirty(pmd_t pmd) in pmd_dirty() 607 static inline int pmd_young(pmd_t pmd) in pmd_young() 612 static inline int pmd_user(pmd_t pmd) in pmd_user() [all …]
|
/linux-6.3-rc2/arch/mips/include/asm/ |
A D | pgtable.h | 67 static inline unsigned long pmd_pfn(pmd_t pmd) in pmd_pfn() 76 #define pmd_page_vaddr(pmd) pmd_val(pmd) argument 403 static inline int pmd_write(pmd_t pmd) 613 static inline pmd_t pmd_mkhuge(pmd_t pmd) 629 static inline pmd_t pmd_mkwrite(pmd_t pmd) 638 static inline int pmd_dirty(pmd_t pmd) 643 static inline pmd_t pmd_mkclean(pmd_t pmd) 649 static inline pmd_t pmd_mkdirty(pmd_t pmd) 659 static inline int pmd_young(pmd_t pmd) 664 static inline pmd_t pmd_mkold(pmd_t pmd) [all …]
|
/linux-6.3-rc2/include/asm-generic/ |
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()
|
/linux-6.3-rc2/arch/x86/include/asm/ |
A D | pgtable.h | 137 static inline int pmd_dirty(pmd_t pmd) in pmd_dirty() 143 static inline int pmd_young(pmd_t pmd) in pmd_young() 254 static inline int pmd_devmap(pmd_t pmd) in pmd_devmap() 410 static inline int pmd_uffd_wp(pmd_t pmd) in pmd_uffd_wp() 426 static inline pmd_t pmd_mkold(pmd_t pmd) in pmd_mkold() 776 static inline int pmd_present(pmd_t pmd) in pmd_present() 805 static inline int pmd_none(pmd_t pmd) in pmd_none() 833 static inline int pmd_bad(pmd_t pmd) in pmd_bad() 1030 pmd_t *pmdp, pmd_t pmd) in set_pmd_at() 1124 static inline int pmd_write(pmd_t pmd) in pmd_write() [all …]
|
/linux-6.3-rc2/arch/parisc/include/asm/ |
A 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.3-rc2/mm/kasan/ |
A 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() 112 pmd_t *pmd = pmd_offset(pud, addr); in zero_pmd_populate() local 151 pmd_t *pmd; in zero_pud_populate() local 189 pmd_t *pmd; in zero_p4d_populate() local 240 pmd_t *pmd; in kasan_populate_early_shadow() local 282 static void kasan_free_pte(pte_t *pte_start, pmd_t *pmd) in kasan_free_pte() 299 pmd_t *pmd; in kasan_free_pmd() local 361 static void kasan_remove_pmd_table(pmd_t *pmd, unsigned long addr, in kasan_remove_pmd_table() 393 pmd_t *pmd, *pmd_base; in kasan_remove_pud_table() local
|
/linux-6.3-rc2/arch/powerpc/include/asm/book3s/64/ |
A D | pgtable.h | 848 static inline int pmd_none(pmd_t pmd) in pmd_none() 853 static inline int pmd_present(pmd_t pmd) in pmd_present() 884 static inline int pmd_bad(pmd_t pmd) in pmd_bad() 1052 static inline pte_t pmd_pte(pmd_t pmd) in pmd_pte() 1062 static inline pte_t *pmdp_ptep(pmd_t *pmd) in pmdp_ptep() 1089 static inline int pmd_protnone(pmd_t pmd) in pmd_protnone() 1123 unsigned long addr, pmd_t *pmd) in update_mmu_cache_pmd() 1149 static inline int pmd_large(pmd_t pmd) in pmd_large() 1216 static inline pmd_t pmd_mkhuge(pmd_t pmd) in pmd_mkhuge() 1308 static inline int pmd_devmap(pmd_t pmd) in pmd_devmap() [all …]
|
/linux-6.3-rc2/arch/riscv/mm/ |
A D | pgtable.c | 36 pmd_t *pmd = pud_pgtable(*pud); in pud_free_pmd_page() local 56 int pmd_set_huge(pmd_t *pmd, phys_addr_t phys, pgprot_t prot) in pmd_set_huge() 64 int pmd_clear_huge(pmd_t *pmd) in pmd_clear_huge() 72 int pmd_free_pte_page(pmd_t *pmd, unsigned long addr) in pmd_free_pte_page() 88 pmd_t pmd = pmdp_huge_get_and_clear(vma->vm_mm, address, pmdp); in pmdp_collapse_flush() local
|
/linux-6.3-rc2/arch/m68k/include/asm/ |
A D | sun3_pgtable.h | 96 static inline unsigned long pmd_page_vaddr(pmd_t pmd) in pmd_page_vaddr() 113 #define pmd_pfn(pmd) (pmd_val(pmd) >> PAGE_SHIFT) argument 114 #define pmd_page(pmd) virt_to_page(pmd_page_vaddr(pmd)) argument 117 static inline int pmd_none2 (pmd_t *pmd) { return !pmd_val (*pmd); } in pmd_none2() 118 #define pmd_none(pmd) pmd_none2(&(pmd)) argument 120 static inline int pmd_bad2 (pmd_t *pmd) { return 0; } in pmd_bad2() 121 #define pmd_bad(pmd) pmd_bad2(&(pmd)) argument 122 static inline int pmd_present2 (pmd_t *pmd) { return pmd_val (*pmd) & SUN3_PMD_VALID; } in pmd_present2() 124 #define pmd_present(pmd) (!pmd_none2(&(pmd))) argument
|
A 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()
|
A 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 140 static inline int pmd_none2(pmd_t *pmd) { return !pmd_val(*pmd); } in pmd_none2() 141 #define pmd_none(pmd) pmd_none2(&(pmd)) argument 142 static inline int pmd_bad2(pmd_t *pmd) { return 0; } in pmd_bad2() 143 #define pmd_bad(pmd) pmd_bad2(&(pmd)) argument 144 #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.3-rc2/include/linux/ |
A D | pgtable.h | 47 #define pmd_pgtable(pmd) pmd_page(pmd) argument 163 pmd_t *pmd = pmd_off_k(vaddr); in virt_to_kpte() local 169 static inline int pmd_young(pmd_t pmd) in pmd_young() 228 pmd_t pmd = *pmdp; in pmdp_test_and_clear_young() local 373 pmd_t pmd; in pmdp_get_lockless() local 411 pmd_t pmd = *pmdp; in pmdp_huge_get_and_clear() local 660 #define pmd_access_permitted(pmd, write) \ argument 719 #define set_pmd_safe(pmdp, pmd) \ argument 1255 static inline int pmd_write(pmd_t pmd) in pmd_write() 1272 static inline int pmd_devmap(pmd_t pmd) in pmd_devmap() [all …]
|
A D | page_table_check.h | 59 unsigned long addr, pmd_t pmd) in page_table_check_pmd_clear() 88 pmd_t pmd) in page_table_check_pmd_set() 108 pmd_t pmd) in page_table_check_pte_clear_range() 132 unsigned long addr, pmd_t pmd) in page_table_check_pmd_clear() 149 pmd_t pmd) in page_table_check_pmd_set() 161 pmd_t pmd) in page_table_check_pte_clear_range()
|
/linux-6.3-rc2/arch/powerpc/include/asm/nohash/64/ |
A 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.3-rc2/arch/sparc/include/asm/ |
A D | pgtable_64.h | 393 static inline bool is_hugetlb_pmd(pmd_t pmd) in is_hugetlb_pmd() 404 static inline pmd_t pmd_mkhuge(pmd_t pmd) in pmd_mkhuge() 714 static inline pmd_t pmd_mkold(pmd_t pmd) in pmd_mkold() 732 static inline pmd_t pmd_mkdirty(pmd_t pmd) in pmd_mkdirty() 741 static inline pmd_t pmd_mkclean(pmd_t pmd) in pmd_mkclean() 750 static inline pmd_t pmd_mkyoung(pmd_t pmd) in pmd_mkyoung() 759 static inline pmd_t pmd_mkwrite(pmd_t pmd) in pmd_mkwrite() 776 static inline int pmd_present(pmd_t pmd) in pmd_present() 781 #define pmd_none(pmd) (!pmd_val(pmd)) argument 804 pmd_t *pmdp, pmd_t pmd) in set_pmd_at() [all …]
|
/linux-6.3-rc2/arch/powerpc/include/asm/nohash/32/ |
A D | pgtable.h | 204 #define pmd_none(pmd) (!pmd_val(pmd)) argument 205 #define pmd_bad(pmd) (pmd_val(pmd) & _PMD_BAD) argument 206 #define pmd_present(pmd) (pmd_val(pmd) & _PMD_PRESENT_MASK) argument 236 static int number_of_cells_per_pte(pmd_t *pmd, pte_basic_t val, int huge) in number_of_cells_per_pte() 255 pmd_t *pmd = pmd_off(mm, addr); in pte_update() local 355 #define pmd_pfn(pmd) (pmd_val(pmd) >> PAGE_SHIFT) argument 357 #define pmd_page_vaddr(pmd) \ argument 359 #define pmd_pfn(pmd) (__pa(pmd_val(pmd)) >> PAGE_SHIFT) argument 362 #define pmd_page(pmd) pfn_to_page(pmd_pfn(pmd)) argument
|
/linux-6.3-rc2/arch/csky/include/asm/ |
A D | pgtable.h | 31 #define pmd_pfn(pmd) (pmd_phys(pmd) >> PAGE_SHIFT) argument 32 #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.3-rc2/drivers/soc/bcm/bcm63xx/ |
A D | bcm63xx-power.c | 39 static int bcm63xx_power_get_state(struct bcm63xx_power_dev *pmd, bool *is_on) in bcm63xx_power_get_state() 53 static int bcm63xx_power_set_state(struct bcm63xx_power_dev *pmd, bool on) in bcm63xx_power_set_state() 76 struct bcm63xx_power_dev *pmd = container_of(genpd, in bcm63xx_power_on() local 84 struct bcm63xx_power_dev *pmd = container_of(genpd, in bcm63xx_power_off() local 140 struct bcm63xx_power_dev *pmd = &power->dev[ndom]; in bcm63xx_power_probe() local
|