Home
last modified time | relevance | path

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

12345678910>>...12

/linux-6.6.21/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_novma(pmd) pte_pmd(pte_mkwrite_novma(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 …]
/linux-6.6.21/drivers/md/
Ddm-thin-metadata.c233 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.6.21/arch/arm/include/asm/
Dpgtable-3level.h117 #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
177 #define pmd_isset(pmd, val) ((u32)(val) == (val) ? pmd_val(pmd) & (val) \ argument
179 #define pmd_isclear(pmd, val) (!(pmd_val(pmd) & (val))) argument
181 #define pmd_present(pmd) (pmd_isset((pmd), L_PMD_SECT_VALID)) argument
182 #define pmd_young(pmd) (pmd_isset((pmd), PMD_SECT_AF)) argument
190 #define pmd_write(pmd) (pmd_isclear((pmd), L_PMD_SECT_RDONLY)) argument
[all …]
Dpgtable-2level.h214 #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.6.21/arch/arm64/include/asm/
Dpgtable.h155 #define pmd_access_permitted(pmd, write) \ argument
172 static inline pmd_t clear_pmd_bit(pmd_t pmd, pgprot_t prot) in clear_pmd_bit()
178 static inline pmd_t set_pmd_bit(pmd_t pmd, pgprot_t prot) in set_pmd_bit()
254 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()
464 #define pmd_present_invalid(pmd) (!!(pmd_val(pmd) & PMD_PRESENT_INVALID)) argument
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()
482 #define pmd_dirty(pmd) pte_dirty(pmd_pte(pmd)) argument
[all …]
/linux-6.6.21/arch/loongarch/include/asm/
Dpgtable.h172 typedef struct { unsigned long pmd; } pmd_t; member
216 static inline int pmd_none(pmd_t pmd) in pmd_none()
221 static inline int pmd_bad(pmd_t pmd) in pmd_bad()
226 static inline int pmd_present(pmd_t pmd) in pmd_present()
241 #define pmd_phys(pmd) PHYSADDR(pmd_val(pmd)) argument
244 #define pmd_page(pmd) (pfn_to_page(pmd_phys(pmd) >> PAGE_SHIFT)) argument
247 #define pmd_page_vaddr(pmd) pmd_val(pmd) argument
289 #define __pmd_to_swp_entry(pmd) ((swp_entry_t) { pmd_val(pmd) }) argument
482 static inline unsigned long pmd_pfn(pmd_t pmd) in pmd_pfn()
492 static inline int pmd_trans_huge(pmd_t pmd) in pmd_trans_huge()
[all …]
/linux-6.6.21/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()
/linux-6.6.21/arch/x86/include/asm/
Dpgtable.h74 #define set_pmd(pmdp, pmd) native_set_pmd(pmdp, pmd) argument
98 #define pmd_clear(pmd) native_pmd_clear(pmd) argument
144 static inline bool pmd_dirty(pmd_t pmd) in pmd_dirty()
149 static inline bool pmd_shstk(pmd_t pmd) in pmd_shstk()
157 static inline int pmd_young(pmd_t pmd) in pmd_young()
182 static inline int pmd_write(pmd_t pmd) in pmd_write()
230 static inline unsigned long pmd_pfn(pmd_t pmd) in pmd_pfn()
271 static inline int pmd_trans_huge(pmd_t pmd) in pmd_trans_huge()
290 static inline int pmd_devmap(pmd_t pmd) in pmd_devmap()
493 static inline pmd_t pmd_set_flags(pmd_t pmd, pmdval_t set) in pmd_set_flags()
[all …]
/linux-6.6.21/arch/mips/include/asm/
Dpgtable.h65 #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.6.21/arch/riscv/include/asm/
Dpgtable.h216 static inline int pmd_present(pmd_t pmd) in pmd_present()
227 static inline int pmd_present(pmd_t pmd) in pmd_present()
233 static inline int pmd_none(pmd_t pmd) in pmd_none()
238 static inline int pmd_bad(pmd_t pmd) in pmd_bad()
244 static inline int pmd_leaf(pmd_t pmd) in pmd_leaf()
249 static inline void set_pmd(pmd_t *pmdp, pmd_t pmd) in set_pmd()
273 static inline struct page *pmd_page(pmd_t pmd) in pmd_page()
278 static inline unsigned long pmd_page_vaddr(pmd_t pmd) in pmd_page_vaddr()
283 static inline pte_t pmd_pte(pmd_t pmd) in pmd_pte()
454 static inline int pmd_protnone(pmd_t pmd) in pmd_protnone()
[all …]
/linux-6.6.21/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
/linux-6.6.21/arch/riscv/mm/
Dpgtable.c36 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.6.21/arch/powerpc/include/asm/book3s/64/
Dpgtable.h688 #define __pmd_to_swp_entry(pmd) (__pte_to_swp_entry(pmd_pte(pmd))) argument
844 static inline int pmd_none(pmd_t pmd) in pmd_none()
849 static inline int pmd_present(pmd_t pmd) in pmd_present()
863 static inline int pmd_is_serializing(pmd_t pmd) in pmd_is_serializing()
880 static inline int pmd_bad(pmd_t pmd) in pmd_bad()
938 #define pud_soft_dirty(pmd) pte_soft_dirty(pud_pte(pud)) argument
939 #define pud_mksoft_dirty(pmd) pte_pud(pte_mksoft_dirty(pud_pte(pud))) argument
940 #define pud_clear_soft_dirty(pmd) pte_pud(pte_clear_soft_dirty(pud_pte(pud))) argument
1069 static inline pte_t pmd_pte(pmd_t pmd) in pmd_pte()
1079 static inline pte_t *pmdp_ptep(pmd_t *pmd) in pmdp_ptep()
[all …]
/linux-6.6.21/mm/kasan/
Dinit.c70 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
155 pmd_t *pmd; in zero_pud_populate() local
198 pmd_t *pmd; in zero_p4d_populate() local
250 pmd_t *pmd; in kasan_populate_early_shadow() local
292 static void kasan_free_pte(pte_t *pte_start, pmd_t *pmd) in kasan_free_pte()
309 pmd_t *pmd; in kasan_free_pmd() local
374 static void kasan_remove_pmd_table(pmd_t *pmd, unsigned long addr, in kasan_remove_pmd_table()
406 pmd_t *pmd, *pmd_base; in kasan_remove_pud_table() local
/linux-6.6.21/arch/m68k/include/asm/
Dsun3_pgtable.h96 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
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()
92 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate()
Dmcf_pgtable.h97 #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.6.21/include/linux/
Dpgtable.h50 #define pmd_pgtable(pmd) pmd_page(pmd) argument
92 static inline pte_t *pte_offset_kernel(pmd_t *pmd, unsigned long address) in pte_offset_kernel()
100 #define __pte_map(pmd, address) \ argument
107 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()
316 pmd_t pmd = *pmdp; in pmdp_test_and_clear_young() local
391 pmd_t pmd) in arch_check_zapped_pmd()
461 pmd_t pmd; in pmdp_get_lockless() local
503 pmd_t pmd = *pmdp; in pmdp_huge_get_and_clear() local
[all …]
Dpage_table_check.h52 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.6.21/arch/powerpc/include/asm/nohash/64/
Dpgalloc.h34 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.6.21/arch/x86/mm/
Dpgtable.c61 void ___pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmd) in ___pmd_free_tlb()
188 void pud_populate(struct mm_struct *mm, pud_t *pudp, pmd_t *pmd) in pud_populate()
239 pmd_t *pmd = NULL; in preallocate_pmds() local
276 pmd_t *pmd = (pmd_t *)pgd_page_vaddr(pgd); in mop_up_one_pmd() local
315 pmd_t *pmd = pmds[i]; in pgd_prepopulate_pmd() local
342 pmd_t *pmd = pmds[i]; in pgd_prepopulate_user_pmd() local
748 int pmd_set_huge(pmd_t *pmd, phys_addr_t addr, pgprot_t prot) in pmd_set_huge()
790 int pmd_clear_huge(pmd_t *pmd) in pmd_clear_huge()
813 pmd_t *pmd, *pmd_sv; in pud_free_pmd_page() local
856 int pmd_free_pte_page(pmd_t *pmd, unsigned long addr) in pmd_free_pte_page()
[all …]
/linux-6.6.21/arch/sparc/include/asm/
Dpgtable_64.h321 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 unsigned long pmd_large(pmd_t pmd) in pmd_large()
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()
709 static inline unsigned long pmd_dirty(pmd_t pmd) in pmd_dirty()
717 static inline unsigned long pmd_young(pmd_t pmd) in pmd_young()
724 static inline unsigned long pmd_trans_huge(pmd_t pmd) in pmd_trans_huge()
731 static inline pmd_t pmd_mkold(pmd_t pmd) in pmd_mkold()
[all …]
/linux-6.6.21/arch/powerpc/include/asm/nohash/32/
Dpgtable.h204 #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.6.21/arch/csky/include/asm/
Dpgtable.h32 #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.6.21/drivers/pmdomain/bcm/
Dbcm63xx-power.c38 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

12345678910>>...12