Home
last modified time | relevance | path

Searched refs:pmd_t (Results 1 – 25 of 327) sorted by relevance

12345678910>>...14

/openbmc/linux/include/linux/
H A Dpgtable.h289 static inline pmd_t pmdp_get(pmd_t *pmdp) in pmdp_get()
480 static inline pmd_t pmdp_get_lockless(pmd_t *pmdp) in pmdp_get_lockless()
482 pmd_t pmd; in pmdp_get_lockless()
509 static inline pmd_t pmdp_get_lockless(pmd_t *pmdp) in pmdp_get_lockless()
734 unsigned long address, pmd_t *pmdp, pmd_t pmd) in generic_pmdp_establish()
813 static inline int pmd_same(pmd_t pmd_a, pmd_t pmd_b) in pmd_same()
1184 static inline pmd_t pmd_swp_mksoft_dirty(pmd_t pmd) in pmd_swp_mksoft_dirty()
1194 static inline pmd_t pmd_swp_clear_soft_dirty(pmd_t pmd) in pmd_swp_clear_soft_dirty()
1215 static inline pmd_t pmd_mksoft_dirty(pmd_t pmd) in pmd_mksoft_dirty()
1225 static inline pmd_t pmd_clear_soft_dirty(pmd_t pmd) in pmd_clear_soft_dirty()
[all …]
H A Dpage_table_check.h18 void __page_table_check_pmd_clear(struct mm_struct *mm, pmd_t pmd);
22 void __page_table_check_pmd_set(struct mm_struct *mm, pmd_t *pmdp, pmd_t pmd);
26 pmd_t pmd);
52 static inline void page_table_check_pmd_clear(struct mm_struct *mm, pmd_t pmd) in page_table_check_pmd_clear()
77 static inline void page_table_check_pmd_set(struct mm_struct *mm, pmd_t *pmdp, in page_table_check_pmd_set()
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()
132 static inline void page_table_check_pmd_set(struct mm_struct *mm, pmd_t *pmdp, in page_table_check_pmd_set()
133 pmd_t pmd) in page_table_check_pmd_set()
[all …]
H A Dhuge_mm.h12 pmd_t *dst_pmd, pmd_t *src_pmd, unsigned long addr,
29 pmd_t *pmd, unsigned long addr, unsigned long next);
35 unsigned long new_addr, pmd_t *old_pmd, pmd_t *new_pmd);
37 pmd_t *pmd, unsigned long addr, pgprot_t newprot,
175 pmd_t *____pmd = (__pmd); \
207 static inline int is_swap_pmd(pmd_t pmd) in is_swap_pmd()
213 static inline spinlock_t *pmd_trans_huge_lock(pmd_t *pmd, in pmd_trans_huge_lock()
240 pmd_t *pmd, int flags, struct dev_pagemap **pgmap);
254 static inline bool is_huge_zero_pmd(pmd_t pmd) in is_huge_zero_pmd()
352 static inline int is_swap_pmd(pmd_t pmd) in is_swap_pmd()
[all …]
/openbmc/linux/arch/x86/include/asm/
H A Dpgtable.h492 static inline pmd_t pmd_mksaveddirty(pmd_t pmd) in pmd_mksaveddirty()
509 static inline pmd_t pmd_wrprotect(pmd_t pmd) in pmd_wrprotect()
527 static inline pmd_t pmd_mkuffd_wp(pmd_t pmd) in pmd_mkuffd_wp()
538 static inline pmd_t pmd_mkold(pmd_t pmd) in pmd_mkold()
543 static inline pmd_t pmd_mkclean(pmd_t pmd) in pmd_mkclean()
548 static inline pmd_t pmd_mkdirty(pmd_t pmd) in pmd_mkdirty()
562 static inline pmd_t pmd_mkdevmap(pmd_t pmd) in pmd_mkdevmap()
567 static inline pmd_t pmd_mkhuge(pmd_t pmd) in pmd_mkhuge()
572 static inline pmd_t pmd_mkyoung(pmd_t pmd) in pmd_mkyoung()
771 static inline pmd_t pmd_mkinvalid(pmd_t pmd) in pmd_mkinvalid()
[all …]
/openbmc/linux/arch/riscv/include/asm/
H A Dpgtable.h249 static inline void set_pmd(pmd_t *pmdp, pmd_t pmd) in set_pmd()
629 static inline pmd_t pmd_mkhuge(pmd_t pmd) in pmd_mkhuge()
634 static inline pmd_t pmd_mkinvalid(pmd_t pmd) in pmd_mkinvalid()
680 static inline pmd_t pmd_mkold(pmd_t pmd) in pmd_mkold()
685 static inline pmd_t pmd_mkyoung(pmd_t pmd) in pmd_mkyoung()
690 static inline pmd_t pmd_mkwrite_novma(pmd_t pmd) in pmd_mkwrite_novma()
695 static inline pmd_t pmd_wrprotect(pmd_t pmd) in pmd_wrprotect()
700 static inline pmd_t pmd_mkclean(pmd_t pmd) in pmd_mkclean()
705 static inline pmd_t pmd_mkdirty(pmd_t pmd) in pmd_mkdirty()
711 pmd_t *pmdp, pmd_t pmd) in set_pmd_at()
[all …]
/openbmc/linux/include/asm-generic/
H A 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()
H A Dpgtable-nopmd.h18 typedef struct { pud_t pud; } pmd_t; typedef
44 #define set_pud(pudptr, pudval) set_pmd((pmd_t *)(pudptr), (pmd_t) { pudval })
46 static inline pmd_t * pmd_offset(pud_t * pud, unsigned long address) in pmd_offset()
48 return (pmd_t *)pud; in pmd_offset()
53 #define __pmd(x) ((pmd_t) { __pud(x) } )
55 #define pud_page(pud) (pmd_page((pmd_t){ pud }))
56 #define pud_pgtable(pud) ((pmd_t *)(pmd_page_vaddr((pmd_t){ pud })))
63 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free()
/openbmc/linux/arch/powerpc/include/asm/book3s/64/
H A Dhash-4k.h37 #define H_PMD_TABLE_SIZE (sizeof(pmd_t) << H_PMD_INDEX_SIZE)
109 static inline char *get_hpte_slot_array(pmd_t *pmdp) in get_hpte_slot_array()
134 static inline int hash__pmd_trans_huge(pmd_t pmd) in hash__pmd_trans_huge()
139 static inline pmd_t hash__pmd_mkhuge(pmd_t pmd) in hash__pmd_mkhuge()
146 unsigned long addr, pmd_t *pmdp,
148 extern pmd_t hash__pmdp_collapse_flush(struct vm_area_struct *vma,
149 unsigned long address, pmd_t *pmdp);
150 extern void hash__pgtable_trans_huge_deposit(struct mm_struct *mm, pmd_t *pmdp,
153 extern pmd_t hash__pmdp_huge_get_and_clear(struct mm_struct *mm,
154 unsigned long addr, pmd_t *pmdp);
[all …]
H A Dhash-64k.h188 #define H_PMD_TABLE_SIZE ((sizeof(pmd_t) << PMD_INDEX_SIZE) + \
191 #define H_PMD_TABLE_SIZE (sizeof(pmd_t) << PMD_INDEX_SIZE)
202 static inline char *get_hpte_slot_array(pmd_t *pmdp) in get_hpte_slot_array()
260 static inline int hash__pmd_trans_huge(pmd_t pmd) in hash__pmd_trans_huge()
266 static inline pmd_t hash__pmd_mkhuge(pmd_t pmd) in hash__pmd_mkhuge()
272 unsigned long addr, pmd_t *pmdp,
274 extern pmd_t hash__pmdp_collapse_flush(struct vm_area_struct *vma,
275 unsigned long address, pmd_t *pmdp);
279 extern pmd_t hash__pmdp_huge_get_and_clear(struct mm_struct *mm,
280 unsigned long addr, pmd_t *pmdp);
[all …]
H A Dradix.h137 #define RADIX_PMD_TABLE_SIZE (sizeof(pmd_t) << RADIX_PMD_INDEX_SIZE)
238 static inline int radix__pmd_bad(pmd_t pmd) in radix__pmd_bad()
243 static inline int radix__pmd_same(pmd_t pmd_a, pmd_t pmd_b) in radix__pmd_same()
265 static inline int radix__pmd_trans_huge(pmd_t pmd) in radix__pmd_trans_huge()
270 static inline pmd_t radix__pmd_mkhuge(pmd_t pmd) in radix__pmd_mkhuge()
286 pmd_t *pmdp, unsigned long clr,
291 extern pmd_t radix__pmdp_collapse_flush(struct vm_area_struct *vma,
292 unsigned long address, pmd_t *pmdp);
296 extern pmd_t radix__pmdp_huge_get_and_clear(struct mm_struct *mm,
297 unsigned long addr, pmd_t *pmdp);
[all …]
H A Dpgtable.h1137 extern pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot);
1139 pmd_t *pmdp, pmd_t pmd);
1231 pmd_t *pmdp) in pmdp_set_wrprotect()
1278 static inline int pmd_same(pmd_t pmd_a, pmd_t pmd_b) in pmd_same()
1294 static inline pmd_t __pmd_mkhuge(pmd_t pmd) in __pmd_mkhuge()
1312 static inline pmd_t pmd_mkhuge(pmd_t pmd) in pmd_mkhuge()
1339 pmd_t entry, int dirty);
1384 pmd_t *pmdp, int full);
1402 pmd_t *pmdp) in pgtable_trans_huge_withdraw()
1411 pmd_t *pmdp);
[all …]
/openbmc/linux/arch/loongarch/include/asm/
H A Dpgtable.h250 extern void set_pmd_at(struct mm_struct *mm, unsigned long addr, pmd_t *pmdp, pmd_t pmd);
497 static inline pmd_t pmd_mkhuge(pmd_t pmd) in pmd_mkhuge()
512 static inline pmd_t pmd_mkwrite_novma(pmd_t pmd) in pmd_mkwrite_novma()
520 static inline pmd_t pmd_wrprotect(pmd_t pmd) in pmd_wrprotect()
531 static inline pmd_t pmd_mkclean(pmd_t pmd) in pmd_mkclean()
537 static inline pmd_t pmd_mkdirty(pmd_t pmd) in pmd_mkdirty()
551 static inline pmd_t pmd_mkold(pmd_t pmd) in pmd_mkold()
557 static inline pmd_t pmd_mkyoung(pmd_t pmd) in pmd_mkyoung()
571 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify()
578 static inline pmd_t pmd_mkinvalid(pmd_t pmd) in pmd_mkinvalid()
[all …]
/openbmc/linux/mm/
H A Dpgtable-generic.c52 void pmd_clear_bad(pmd_t *pmd) in pmd_clear_bad()
138 pmd_t *pmdp) in pmdp_huge_clear_flush()
140 pmd_t pmd; in pmdp_huge_clear_flush()
199 pmd_t *pmdp) in pmdp_invalidate()
210 pmd_t *pmdp) in pmdp_invalidate_ad()
219 pmd_t *pmdp) in pmdp_collapse_flush()
225 pmd_t pmd; in pmdp_collapse_flush()
282 pte_t *__pte_offset_map(pmd_t *pmd, unsigned long addr, pmd_t *pmdvalp) in __pte_offset_map()
285 pmd_t pmdval; in __pte_offset_map()
311 pmd_t pmdval; in pte_offset_map_nolock()
[all …]
/openbmc/linux/arch/mips/include/asm/
H A Dpgtable.h633 static inline pmd_t pmd_mkhuge(pmd_t pmd)
641 pmd_t *pmdp, pmd_t pmd);
643 static inline pmd_t pmd_wrprotect(pmd_t pmd)
649 static inline pmd_t pmd_mkwrite_novma(pmd_t pmd)
663 static inline pmd_t pmd_mkclean(pmd_t pmd)
669 static inline pmd_t pmd_mkdirty(pmd_t pmd)
684 static inline pmd_t pmd_mkold(pmd_t pmd)
691 static inline pmd_t pmd_mkyoung(pmd_t pmd)
707 static inline pmd_t pmd_mksoft_dirty(pmd_t pmd)
713 static inline pmd_t pmd_clear_soft_dirty(pmd_t pmd)
[all …]
/openbmc/linux/arch/x86/mm/
H A Dpgtable.c239 pmd_t *pmd = NULL; in preallocate_pmds()
276 pmd_t *pmd = (pmd_t *)pgd_page_vaddr(pgd); in mop_up_one_pmd()
315 pmd_t *pmd = pmds[i]; in pgd_prepopulate_pmd()
327 pgd_t *k_pgd, pmd_t *pmds[]) in pgd_prepopulate_user_pmd()
342 pmd_t *pmd = pmds[i]; in pgd_prepopulate_user_pmd()
434 pmd_t *pmds[MAX_PREALLOCATED_PMDS]; in pgd_alloc()
514 pmd_t entry, int dirty) in pmdp_set_access_flags()
629 pmd_t *pmdp) in pmdp_invalidate_ad()
792 int pmd_clear_huge(pmd_t *pmd) in pmd_clear_huge()
815 pmd_t *pmd, *pmd_sv; in pud_free_pmd_page()
[all …]
/openbmc/linux/arch/s390/include/asm/
H A Dpgtable.h874 static inline pmd_t pmd_mksoft_dirty(pmd_t pmd) in pmd_mksoft_dirty()
1505 static inline pmd_t pmd_wrprotect(pmd_t pmd) in pmd_wrprotect()
1511 static inline pmd_t pmd_mkwrite_novma(pmd_t pmd) in pmd_mkwrite_novma()
1519 static inline pmd_t pmd_mkclean(pmd_t pmd) in pmd_mkclean()
1525 static inline pmd_t pmd_mkdirty(pmd_t pmd) in pmd_mkdirty()
1579 static inline pmd_t pmd_mkyoung(pmd_t pmd) in pmd_mkyoung()
1587 static inline pmd_t pmd_mkold(pmd_t pmd) in pmd_mkold()
1684 pmd_t pmdp_xchg_direct(struct mm_struct *, unsigned long, pmd_t *, pmd_t);
1685 pmd_t pmdp_xchg_lazy(struct mm_struct *, unsigned long, pmd_t *, pmd_t);
1732 pmd_t *pmdp, pmd_t entry) in set_pmd_at()
[all …]
/openbmc/linux/arch/sparc/include/asm/
H A Dpgtable_64.h321 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify()
441 static inline pmd_t pmd_mkhuge(pmd_t pmd) in pmd_mkhuge()
731 static inline pmd_t pmd_mkold(pmd_t pmd) in pmd_mkold()
740 static inline pmd_t pmd_wrprotect(pmd_t pmd) in pmd_wrprotect()
749 static inline pmd_t pmd_mkdirty(pmd_t pmd) in pmd_mkdirty()
758 static inline pmd_t pmd_mkclean(pmd_t pmd) in pmd_mkclean()
767 static inline pmd_t pmd_mkyoung(pmd_t pmd) in pmd_mkyoung()
776 static inline pmd_t pmd_mkwrite_novma(pmd_t pmd) in pmd_mkwrite_novma()
818 pmd_t *pmdp, pmd_t pmd);
821 pmd_t *pmdp, pmd_t pmd) in set_pmd_at()
[all …]
/openbmc/linux/arch/sparc/mm/
H A Dtlb.c148 pmd_t pmd) in tlb_batch_pmd_scan()
171 pmd_t orig, pmd_t pmd) in __set_pmd_acct()
223 pmd_t *pmdp, pmd_t pmd) in set_pmd_at()
225 pmd_t orig = *pmdp; in set_pmd_at()
231 static inline pmd_t pmdp_establish(struct vm_area_struct *vma, in pmdp_establish()
232 unsigned long address, pmd_t *pmdp, pmd_t pmd) in pmdp_establish()
234 pmd_t old; in pmdp_establish()
247 pmd_t pmdp_invalidate(struct vm_area_struct *vma, unsigned long address, in pmdp_invalidate()
248 pmd_t *pmdp) in pmdp_invalidate()
250 pmd_t old, entry; in pmdp_invalidate()
[all …]
/openbmc/linux/arch/powerpc/mm/book3s64/
H A Dpgtable.c49 pmd_t *pmdp, pmd_t entry, int dirty) in pmdp_set_access_flags()
90 unsigned long address, pmd_t *pmdp) in pmdp_test_and_clear_young()
106 pmd_t *pmdp, pmd_t pmd) in set_pmd_at()
169 pmd_t *pmdp) in pmdp_invalidate()
182 pmd_t pmd; in pmdp_huge_get_and_clear_full()
216 static pmd_t pmd_set_protbits(pmd_t pmd, pgprot_t pgprot) in pmd_set_protbits()
249 pmd_t mk_pmd(struct page *page, pgprot_t pgprot) in mk_pmd()
254 pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify()
383 return (pmd_t *)ret; in get_pmd_from_cache()
424 return (pmd_t *)ret; in __alloc_for_pmdcache()
[all …]
/openbmc/linux/arch/powerpc/include/asm/
H A Dpgtable-be-types.h23 typedef struct { __be64 pmd; } pmd_t; typedef
24 #define __pmd(x) ((pmd_t) { cpu_to_be64(x) })
25 #define __pmd_raw(x) ((pmd_t) { (x) })
26 static inline unsigned long pmd_val(pmd_t x) in pmd_val()
31 static inline __be64 pmd_raw(pmd_t x) in pmd_raw()
93 static inline bool pmd_xchg(pmd_t *pmdp, pmd_t old, pmd_t new) in pmd_xchg()
/openbmc/linux/arch/arm64/include/asm/
H A Dpgtable.h172 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()
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()
626 static inline void set_pmd(pmd_t *pmdp, pmd_t pmd) in set_pmd()
838 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify()
852 pmd_t entry, int dirty) in pmdp_set_access_flags()
936 pmd_t *pmdp) in pmdp_test_and_clear_young()
[all …]
/openbmc/linux/arch/arc/include/asm/
H A Dhugepage.h13 static inline pte_t pmd_pte(pmd_t pmd) in pmd_pte()
18 static inline pmd_t pte_pmd(pte_t pte) in pte_pmd()
42 static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) in pmd_modify()
52 pmd_t *pmdp, pmd_t pmd) in set_pmd_at()
58 pmd_t *pmd);
/openbmc/linux/arch/riscv/mm/
H A Dpgtable.c77 pmd_t *pmd = pud_pgtable(pudp_get(pud)); in pud_free_pmd_page()
97 int pmd_set_huge(pmd_t *pmd, phys_addr_t phys, pgprot_t prot) in pmd_set_huge()
99 pmd_t new_pmd = pfn_pmd(__phys_to_pfn(phys), prot); in pmd_set_huge()
105 int pmd_clear_huge(pmd_t *pmd) in pmd_clear_huge()
113 int pmd_free_pte_page(pmd_t *pmd, unsigned long addr) in pmd_free_pte_page()
126 pmd_t pmdp_collapse_flush(struct vm_area_struct *vma, in pmdp_collapse_flush()
127 unsigned long address, pmd_t *pmdp) in pmdp_collapse_flush()
129 pmd_t pmd = pmdp_huge_get_and_clear(vma->vm_mm, address, pmdp); in pmdp_collapse_flush()
/openbmc/linux/arch/parisc/include/asm/
H A Dpgalloc.h41 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate()
47 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address) in pmd_alloc_one()
49 pmd_t *pmd; in pmd_alloc_one()
51 pmd = (pmd_t *)__get_free_pages(GFP_PGTABLE_KERNEL, PMD_TABLE_ORDER); in pmd_alloc_one()
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()
/openbmc/linux/arch/m68k/include/asm/
H A Dmotorola_pgalloc.h54 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address) in pmd_alloc_one()
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()

12345678910>>...14