Home
last modified time | relevance | path

Searched defs:pmd (Results 1 – 25 of 273) sorted by relevance

1234567891011

/kernel/linux/linux-5.10/arch/arc/include/asm/
Dhugepage.h13 static inline pte_t pmd_pte(pmd_t pmd) in pmd_pte()
23 #define pmd_wrprotect(pmd) pte_pmd(pte_wrprotect(pmd_pte(pmd))) argument
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
29 #define pmd_mkinvalid(pmd) pte_pmd(pte_mknotpresent(pmd_pte(pmd))) argument
30 #define pmd_mkclean(pmd) pte_pmd(pte_mkclean(pmd_pte(pmd))) argument
32 #define pmd_write(pmd) pte_write(pmd_pte(pmd)) argument
[all …]
/kernel/linux/linux-5.10/drivers/md/
Ddm-thin-metadata.c230 struct dm_pool_metadata *pmd; member
390 static inline void pmd_write_lock_in_core(struct dm_pool_metadata *pmd) in pmd_write_lock_in_core()
396 static inline void pmd_write_lock(struct dm_pool_metadata *pmd) in pmd_write_lock()
403 static inline void pmd_write_unlock(struct dm_pool_metadata *pmd) in pmd_write_unlock()
411 static int superblock_lock_zero(struct dm_pool_metadata *pmd, in superblock_lock_zero()
418 static int superblock_lock(struct dm_pool_metadata *pmd, in superblock_lock()
454 static void __setup_btree_details(struct dm_pool_metadata *pmd) in __setup_btree_details()
492 static int save_sm_roots(struct dm_pool_metadata *pmd) in save_sm_roots()
512 static void copy_sm_roots(struct dm_pool_metadata *pmd, in copy_sm_roots()
524 static int __write_initial_superblock(struct dm_pool_metadata *pmd) in __write_initial_superblock()
[all …]
/kernel/linux/linux-5.10/arch/arm/include/asm/
Dpgtable-3level.h114 #define pmd_table(pmd) ((pmd_val(pmd) & PMD_TYPE_MASK) == \ argument
116 #define pmd_sect(pmd) ((pmd_val(pmd) & PMD_TYPE_MASK) == \ argument
118 #define pmd_large(pmd) pmd_sect(pmd) argument
119 #define pmd_leaf(pmd) pmd_sect(pmd) argument
138 #define pmd_bad(pmd) (!(pmd_val(pmd) & 2)) argument
174 #define pmd_isset(pmd, val) ((u32)(val) == (val) ? pmd_val(pmd) & (val) \ argument
176 #define pmd_isclear(pmd, val) (!(pmd_val(pmd) & (val))) argument
178 #define pmd_present(pmd) (pmd_isset((pmd), L_PMD_SECT_VALID)) argument
179 #define pmd_young(pmd) (pmd_isset((pmd), PMD_SECT_AF)) argument
187 #define pmd_write(pmd) (pmd_isclear((pmd), L_PMD_SECT_RDONLY)) argument
[all …]
Dpgalloc.h26 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate()
38 #define pmd_free(mm, pmd) do { } while (0) argument
41 #define pud_populate(mm,pmd,pte) do { } while (0) argument
43 #define pud_populate(mm,pmd,pte) BUG() argument
146 #define pmd_pgtable(pmd) pmd_page(pmd) argument
Dpgtable-2level.h194 #define pmd_large(pmd) (pmd_val(pmd) & 2) argument
195 #define pmd_leaf(pmd) (pmd_val(pmd) & 2) argument
196 #define pmd_bad(pmd) (pmd_val(pmd) & 2) argument
197 #define pmd_present(pmd) (pmd_val(pmd)) argument
222 #define pmd_hugewillfault(pmd) (0) argument
223 #define pmd_thp_or_huge(pmd) (0) argument
/kernel/linux/linux-5.10/include/asm-generic/
Dpgtable_uffd.h10 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()
/kernel/linux/linux-5.10/arch/mips/include/asm/
Dpgtable.h92 #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
585 static inline int pmd_trans_huge(pmd_t pmd)
590 static inline pmd_t pmd_mkhuge(pmd_t pmd)
601 static inline int pmd_write(pmd_t pmd)
606 static inline pmd_t pmd_wrprotect(pmd_t pmd)
612 static inline pmd_t pmd_mkwrite(pmd_t pmd)
621 static inline int pmd_dirty(pmd_t pmd)
[all …]
Dpgalloc.h21 static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, in pmd_populate_kernel()
27 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, in pmd_populate()
32 #define pmd_pgtable(pmd) pmd_page(pmd) argument
41 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate()
68 pmd_t *pmd; in pmd_alloc_one() local
/kernel/linux/linux-5.10/arch/parisc/include/asm/
Dpgalloc.h41 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
72 #define pmd_pgtable(pmd) pmd_page(pmd) argument
/kernel/linux/linux-5.10/arch/arm64/include/asm/
Dpgtable.h145 #define pmd_access_permitted(pmd, write) \ argument
162 static inline pmd_t clear_pmd_bit(pmd_t pmd, pgprot_t prot) in clear_pmd_bit()
168 static inline pmd_t set_pmd_bit(pmd_t pmd, pgprot_t prot) in set_pmd_bit()
244 static inline pmd_t pmd_mkcont(pmd_t pmd) in pmd_mkcont()
368 static inline pte_t pmd_pte(pmd_t pmd) in pmd_pte()
397 static inline int pmd_protnone(pmd_t pmd) in pmd_protnone()
403 #define pmd_present_invalid(pmd) (!!(pmd_val(pmd) & PMD_PRESENT_INVALID)) argument
405 static inline int pmd_present(pmd_t pmd) in pmd_present()
415 static inline int pmd_trans_huge(pmd_t pmd) in pmd_trans_huge()
421 #define pmd_dirty(pmd) pte_dirty(pmd_pte(pmd)) argument
[all …]
/kernel/linux/linux-5.10/arch/x86/include/asm/
Dpgtable.h70 #define set_pmd(pmdp, pmd) native_set_pmd(pmdp, pmd) argument
94 #define pmd_clear(pmd) native_pmd_clear(pmd) argument
163 static inline int pmd_dirty(pmd_t pmd) in pmd_dirty()
168 static inline int pmd_young(pmd_t pmd) in pmd_young()
219 static inline unsigned long pmd_pfn(pmd_t pmd) in pmd_pfn()
260 static inline int pmd_trans_huge(pmd_t pmd) in pmd_trans_huge()
279 static inline int pmd_devmap(pmd_t pmd) in pmd_devmap()
399 static inline pmd_t pmd_set_flags(pmd_t pmd, pmdval_t set) in pmd_set_flags()
406 static inline pmd_t pmd_clear_flags(pmd_t pmd, pmdval_t clear) in pmd_clear_flags()
414 static inline int pmd_uffd_wp(pmd_t pmd) in pmd_uffd_wp()
[all …]
Dpgalloc.h65 pmd_t *pmd, pte_t *pte) in pmd_populate_kernel()
72 pmd_t *pmd, pte_t *pte) in pmd_populate_kernel_safe()
78 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, in pmd_populate()
87 #define pmd_pgtable(pmd) pmd_page(pmd) argument
92 static inline void __pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmd, in __pmd_free_tlb()
101 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate()
107 static inline void pud_populate_safe(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate_safe()
/kernel/linux/linux-5.10/arch/riscv/include/asm/
Dpgalloc.h17 pmd_t *pmd, pte_t *pte) in pmd_populate_kernel()
25 pmd_t *pmd, pgtable_t pte) in pmd_populate()
33 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate()
41 #define pmd_pgtable(pmd) pmd_page(pmd) argument
60 #define __pmd_free_tlb(tlb, pmd, addr) pmd_free((tlb)->mm, pmd) argument
/kernel/linux/linux-5.10/arch/alpha/include/asm/
Dpgalloc.h17 pmd_populate(struct mm_struct *mm, pmd_t *pmd, pgtable_t pte) in pmd_populate()
21 #define pmd_pgtable(pmd) pmd_page(pmd) argument
24 pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, pte_t *pte) in pmd_populate_kernel()
30 pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate()
/kernel/linux/linux-5.10/arch/m68k/include/asm/
Dmotorola_pgalloc.h59 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()
91 #define pmd_pgtable(pmd) ((pgtable_t)pmd_page_vaddr(pmd)) argument
93 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate()
Dsun3_pgtable.h116 static inline unsigned long pmd_page_vaddr(pmd_t pmd) in pmd_page_vaddr()
133 #define pmd_page(pmd) virt_to_page(pmd_page_vaddr(pmd)) argument
136 static inline int pmd_none2 (pmd_t *pmd) { return !pmd_val (*pmd); } in pmd_none2()
137 #define pmd_none(pmd) pmd_none2(&(pmd)) argument
139 static inline int pmd_bad2 (pmd_t *pmd) { return 0; } in pmd_bad2()
140 #define pmd_bad(pmd) pmd_bad2(&(pmd)) argument
141 static inline int pmd_present2 (pmd_t *pmd) { return pmd_val (*pmd) & SUN3_PMD_VALID; } in pmd_present2()
143 #define pmd_present(pmd) (!pmd_none2(&(pmd))) argument
/kernel/linux/linux-5.10/arch/um/include/asm/
Dpgalloc.h15 #define pmd_populate_kernel(mm, pmd, pte) \ argument
18 #define pmd_populate(mm, pmd, pte) \ argument
22 #define pmd_pgtable(pmd) pmd_page(pmd) argument
37 #define __pmd_free_tlb(tlb, pmd, address) \ argument
/kernel/linux/linux-5.10/arch/powerpc/include/asm/book3s/64/
Dpgtable.h752 #define __pmd_to_swp_entry(pmd) (__pte_to_swp_entry(pmd_pte(pmd))) argument
891 static inline int pmd_none(pmd_t pmd) in pmd_none()
896 static inline int pmd_present(pmd_t pmd) in pmd_present()
910 static inline int pmd_is_serializing(pmd_t pmd) in pmd_is_serializing()
927 static inline int pmd_bad(pmd_t pmd) in pmd_bad()
1078 static inline pte_t pmd_pte(pmd_t pmd) in pmd_pte()
1088 static inline pte_t *pmdp_ptep(pmd_t *pmd) in pmdp_ptep()
1092 #define pmd_pfn(pmd) pte_pfn(pmd_pte(pmd)) argument
1093 #define pmd_dirty(pmd) pte_dirty(pmd_pte(pmd)) argument
1094 #define pmd_young(pmd) pte_young(pmd_pte(pmd)) argument
[all …]
/kernel/linux/linux-5.10/mm/kasan/
Dinit.c74 static inline bool kasan_pte_table(pmd_t pmd) in kasan_pte_table()
96 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
155 pmd_t *pmd; in zero_pud_populate() local
193 pmd_t *pmd; in zero_p4d_populate() local
244 pmd_t *pmd; in kasan_populate_early_shadow() local
286 static void kasan_free_pte(pte_t *pte_start, pmd_t *pmd) in kasan_free_pte()
303 pmd_t *pmd; in kasan_free_pmd() local
365 static void kasan_remove_pmd_table(pmd_t *pmd, unsigned long addr, in kasan_remove_pmd_table()
397 pmd_t *pmd, *pmd_base; in kasan_remove_pud_table() local
/kernel/linux/linux-5.10/arch/powerpc/include/asm/nohash/64/
Dpgalloc.h31 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate()
36 static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, in pmd_populate_kernel()
42 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, in pmd_populate()
54 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free()
59 #define __pmd_free_tlb(tlb, pmd, addr) \ argument
/kernel/linux/linux-5.10/arch/sparc/include/asm/
Dpgalloc_32.h45 static inline void free_pmd_fast(pmd_t * pmd) in free_pmd_fast()
50 #define pmd_free(mm, pmd) free_pmd_fast(pmd) argument
51 #define __pmd_free_tlb(tlb, pmd, addr) pmd_free((tlb)->mm, pmd) argument
53 #define pmd_populate(mm, pmd, pte) pmd_set(pmd, pte) argument
54 #define pmd_pgtable(pmd) (pgtable_t)__pmd_page(pmd) argument
/kernel/linux/linux-5.10/arch/nios2/include/asm/
Dpgalloc.h17 static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, in pmd_populate_kernel()
23 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, in pmd_populate()
28 #define pmd_pgtable(pmd) pmd_page(pmd) argument
/kernel/linux/linux-5.10/include/linux/
Dpgtable.h71 static inline pte_t *pte_offset_kernel(pmd_t *pmd, unsigned long address) in pte_offset_kernel()
144 pmd_t *pmd = pmd_off_k(vaddr); in virt_to_kpte() local
202 pmd_t pmd = *pmdp; in pmdp_test_and_clear_young() local
268 pmd_t pmd = *pmdp; in pmdp_huge_get_and_clear() local
479 unsigned long address, pmd_t *pmdp, pmd_t pmd) in generic_pmdp_establish()
518 #define pmd_access_permitted(pmd, write) \ argument
577 #define set_pmd_safe(pmdp, pmd) \ argument
767 static inline int pmd_none_or_clear_bad(pmd_t *pmd) in pmd_none_or_clear_bad()
927 static inline pmd_t pmd_swp_mksoft_dirty(pmd_t pmd) in pmd_swp_mksoft_dirty()
932 static inline int pmd_swp_soft_dirty(pmd_t pmd) in pmd_swp_soft_dirty()
[all …]
/kernel/linux/linux-5.10/arch/openrisc/include/asm/
Dpgalloc.h28 #define pmd_populate_kernel(mm, pmd, pte) \ argument
31 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, in pmd_populate()
75 #define pmd_pgtable(pmd) pmd_page(pmd) argument
/kernel/linux/linux-5.10/drivers/soc/bcm/bcm63xx/
Dbcm63xx-power.c39 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
142 struct bcm63xx_power_dev *pmd = &power->dev[ndom]; in bcm63xx_power_probe() local

1234567891011