/arch/x86/include/asm/ |
D | pgtable.h | 100 static inline int pmd_young(pmd_t pmd) in pmd_young() 140 static inline unsigned long pmd_pfn(pmd_t pmd) in pmd_pfn() 152 static inline int pmd_large(pmd_t pte) in pmd_large() 158 static inline int pmd_trans_splitting(pmd_t pmd) in pmd_trans_splitting() 163 static inline int pmd_trans_huge(pmd_t pmd) in pmd_trans_huge() 248 static inline pmd_t pmd_set_flags(pmd_t pmd, pmdval_t set) in pmd_set_flags() 255 static inline pmd_t pmd_clear_flags(pmd_t pmd, pmdval_t clear) in pmd_clear_flags() 262 static inline pmd_t pmd_mkold(pmd_t pmd) in pmd_mkold() 267 static inline pmd_t pmd_wrprotect(pmd_t pmd) in pmd_wrprotect() 272 static inline pmd_t pmd_mkdirty(pmd_t pmd) in pmd_mkdirty() [all …]
|
D | pgtable-3level.h | 70 static inline pmd_t pmd_read_atomic(pmd_t *pmdp) in pmd_read_atomic() 85 return (pmd_t) { ret }; in pmd_read_atomic() 93 static inline void native_set_pmd(pmd_t *pmdp, pmd_t pmd) in native_set_pmd() 116 static inline void native_pmd_clear(pmd_t *pmd) in native_pmd_clear() 162 pmd_t pmd; 164 static inline pmd_t native_pmdp_get_and_clear(pmd_t *pmdp) in native_pmdp_get_and_clear()
|
D | pgalloc.h | 63 pmd_t *pmd, pte_t *pte) in pmd_populate_kernel() 69 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, in pmd_populate() 81 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long addr) in pmd_alloc_one() 83 return (pmd_t *)get_zeroed_page(GFP_KERNEL|__GFP_REPEAT); in pmd_alloc_one() 86 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free() 92 extern void ___pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmd); 94 static inline void __pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmd, in __pmd_free_tlb() 101 extern void pud_populate(struct mm_struct *mm, pud_t *pudp, pmd_t *pmd); 103 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate()
|
D | pgtable_64.h | 19 extern pmd_t level2_kernel_pgt[512]; 20 extern pmd_t level2_fixmap_pgt[512]; 21 extern pmd_t level2_ident_pgt[512]; 62 static inline void native_set_pmd(pmd_t *pmdp, pmd_t pmd) in native_set_pmd() 67 static inline void native_pmd_clear(pmd_t *pmd) in native_pmd_clear() 85 static inline pmd_t native_pmdp_get_and_clear(pmd_t *xp) in native_pmdp_get_and_clear() 92 pmd_t ret = *xp; in native_pmdp_get_and_clear()
|
/arch/mips/include/asm/ |
D | pgtable.h | 220 #define PMD_T_LOG2 (__builtin_ffs(sizeof(pmd_t)) - 1) 409 unsigned long address, pmd_t *pmdp) in update_mmu_cache_pmd() 439 static inline int pmd_trans_huge(pmd_t pmd) in pmd_trans_huge() 444 static inline pmd_t pmd_mkhuge(pmd_t pmd) in pmd_mkhuge() 451 static inline int pmd_trans_splitting(pmd_t pmd) in pmd_trans_splitting() 456 static inline pmd_t pmd_mksplitting(pmd_t pmd) in pmd_mksplitting() 464 pmd_t *pmdp, pmd_t pmd); 470 pmd_t *pmdp); 473 static inline int pmd_write(pmd_t pmd) in pmd_write() 478 static inline pmd_t pmd_wrprotect(pmd_t pmd) in pmd_wrprotect() [all …]
|
D | pgalloc.h | 16 static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, in pmd_populate_kernel() 22 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, in pmd_populate() 36 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate() 109 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address) in pmd_alloc_one() 111 pmd_t *pmd; in pmd_alloc_one() 113 pmd = (pmd_t *) __get_free_pages(GFP_KERNEL|__GFP_REPEAT, PMD_ORDER); in pmd_alloc_one() 119 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free()
|
D | pgtable-64.h | 125 #define PTRS_PER_PMD ((PAGE_SIZE << PMD_ORDER) / sizeof(pmd_t)) 168 typedef struct { unsigned long pmd; } pmd_t; typedef 170 #define __pmd(x) ((pmd_t) { (x) } ) 173 extern pmd_t invalid_pmd_table[PTRS_PER_PMD]; 179 static inline int pmd_none(pmd_t pmd) in pmd_none() 184 static inline int pmd_bad(pmd_t pmd) in pmd_bad() 198 static inline int pmd_present(pmd_t pmd) in pmd_present() 203 static inline void pmd_clear(pmd_t *pmdp) in pmd_clear() 266 static inline pmd_t *pmd_offset(pud_t * pud, unsigned long address) in pmd_offset() 268 return (pmd_t *) pud_page_vaddr(*pud) + pmd_index(address); in pmd_offset()
|
/arch/m68k/include/asm/ |
D | motorola_pgalloc.h | 7 extern pmd_t *get_pointer_table(void); 8 extern int free_pointer_table(pmd_t *); 65 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address) in pmd_alloc_one() 70 static inline int pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free() 75 static inline int __pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmd, in __pmd_free_tlb() 84 pmd_free(mm, (pmd_t *)pgd); in pgd_free() 93 static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, pte_t *pte) in pmd_populate_kernel() 98 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, pgtable_t page) in pmd_populate() 104 static inline void pgd_populate(struct mm_struct *mm, pgd_t *pgd, pmd_t *pmd) in pgd_populate()
|
/arch/alpha/include/asm/ |
D | pgalloc.h | 14 pmd_populate(struct mm_struct *mm, pmd_t *pmd, pgtable_t pte) in pmd_populate() 21 pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, pte_t *pte) in pmd_populate_kernel() 27 pgd_populate(struct mm_struct *mm, pgd_t *pgd, pmd_t *pmd) in pgd_populate() 40 static inline pmd_t * 43 pmd_t *ret = (pmd_t *)__get_free_page(GFP_KERNEL|__GFP_REPEAT|__GFP_ZERO); in pmd_alloc_one() 48 pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free()
|
/arch/tile/include/asm/ |
D | pgalloc.h | 41 static inline void set_pmd(pmd_t *pmdp, pmd_t pmd) in set_pmd() 51 pmd_t *pmd, pte_t *ptep) in pmd_populate_kernel() 57 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, in pmd_populate() 118 void shatter_pmd(pmd_t *pmd); 126 pmd_populate_kernel((mm), (pmd_t *)(pud), (pte_t *)(pmd)) 144 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address) in pmd_alloc_one() 147 return (pmd_t *)page_to_virt(p); in pmd_alloc_one() 150 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmdp) in pmd_free() 155 static inline void __pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmdp, in __pmd_free_tlb()
|
D | pgtable.h | 380 static inline int pmd_none(pmd_t pmd) in pmd_none() 389 static inline int pmd_present(pmd_t pmd) in pmd_present() 394 static inline int pmd_bad(pmd_t pmd) in pmd_bad() 418 pmd_t *pmdp) in pmdp_test_and_clear_young() 425 unsigned long address, pmd_t *pmdp) in pmdp_set_wrprotect() 432 static inline pmd_t pmdp_get_and_clear(struct mm_struct *mm, in pmdp_get_and_clear() 434 pmd_t *pmdp) in pmdp_get_and_clear() 439 static inline void __set_pmd(pmd_t *pmdp, pmd_t pmdval) in __set_pmd() 447 static inline pmd_t ptfn_pmd(unsigned long ptfn, pgprot_t prot) in ptfn_pmd() 461 static inline unsigned long pmd_page_vaddr(pmd_t pmd) in pmd_page_vaddr() [all …]
|
/arch/arm64/include/asm/ |
D | pgalloc.h | 31 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long addr) in pmd_alloc_one() 33 return (pmd_t *)get_zeroed_page(GFP_KERNEL | __GFP_REPEAT); in pmd_alloc_one() 36 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free() 42 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate() 87 static inline void __pmd_populate(pmd_t *pmdp, phys_addr_t pte, in __pmd_populate() 98 pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmdp, pte_t *ptep) in pmd_populate_kernel() 107 pmd_populate(struct mm_struct *mm, pmd_t *pmdp, pgtable_t ptep) in pmd_populate()
|
/arch/sparc/include/asm/ |
D | pgtable_64.h | 242 extern pmd_t pfn_pmd(unsigned long page_nr, pgprot_t pgprot); 245 extern pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot); 247 static inline pmd_t pmd_mkhuge(pmd_t pmd) in pmd_mkhuge() 629 static inline int pmd_large(pmd_t pmd) in pmd_large() 636 static inline int pmd_young(pmd_t pmd) in pmd_young() 641 static inline int pmd_write(pmd_t pmd) in pmd_write() 646 static inline unsigned long pmd_pfn(pmd_t pmd) in pmd_pfn() 653 static inline int pmd_trans_splitting(pmd_t pmd) in pmd_trans_splitting() 659 static inline int pmd_trans_huge(pmd_t pmd) in pmd_trans_huge() 666 static inline pmd_t pmd_mkold(pmd_t pmd) in pmd_mkold() [all …]
|
D | pgalloc_32.h | 28 static inline void pgd_set(pgd_t * pgdp, pmd_t * pmdp) in pgd_set() 37 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, in pmd_alloc_one() 44 static inline void free_pmd_fast(pmd_t * pmd) in free_pmd_fast() 52 void pmd_populate(struct mm_struct *mm, pmd_t *pmdp, struct page *ptep); 55 void pmd_set(pmd_t *pmdp, pte_t *ptep);
|
/arch/x86/mm/ |
D | pgtable.c | 58 void ___pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmd) in ___pmd_free_tlb() 164 void pud_populate(struct mm_struct *mm, pud_t *pudp, pmd_t *pmd) in pud_populate() 187 static void free_pmds(pmd_t *pmds[]) in free_pmds() 196 static int preallocate_pmds(pmd_t *pmds[]) in preallocate_pmds() 202 pmd_t *pmd = (pmd_t *)__get_free_page(PGALLOC_GFP); in preallocate_pmds() 230 pmd_t *pmd = (pmd_t *)pgd_page_vaddr(pgd); in pgd_mop_up_pmds() 240 static void pgd_prepopulate_pmd(struct mm_struct *mm, pgd_t *pgd, pmd_t *pmds[]) in pgd_prepopulate_pmd() 253 pmd_t *pmd = pmds[i]; in pgd_prepopulate_pmd() 256 memcpy(pmd, (pmd_t *)pgd_page_vaddr(swapper_pg_dir[i]), in pgd_prepopulate_pmd() 257 sizeof(pmd_t) * PTRS_PER_PMD); in pgd_prepopulate_pmd() [all …]
|
/arch/arm/include/asm/ |
D | pgalloc.h | 30 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long addr) in pmd_alloc_one() 32 return (pmd_t *)get_zeroed_page(GFP_KERNEL | __GFP_REPEAT); in pmd_alloc_one() 35 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free() 41 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate() 51 #define pmd_alloc_one(mm,addr) ({ BUG(); ((pmd_t *)2); }) 129 static inline void __pmd_populate(pmd_t *pmdp, phys_addr_t pte, in __pmd_populate() 147 pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmdp, pte_t *ptep) in pmd_populate_kernel() 156 pmd_populate(struct mm_struct *mm, pmd_t *pmdp, pgtable_t ptep) in pmd_populate()
|
/arch/mips/mm/ |
D | pgtable-64.c | 69 pmd_t *pmdp) in pmdp_splitting_flush() 72 pmd_t pmd = pmd_mksplitting(*pmdp); in pmdp_splitting_flush() 79 pmd_t mk_pmd(struct page *page, pgprot_t prot) in mk_pmd() 81 pmd_t pmd; in mk_pmd() 89 pmd_t *pmdp, pmd_t pmd) in set_pmd_at()
|
/arch/parisc/include/asm/ |
D | pgalloc.h | 58 static inline void pgd_populate(struct mm_struct *mm, pgd_t *pgd, pmd_t *pmd) in pgd_populate() 64 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address) in pmd_alloc_one() 66 pmd_t *pmd = (pmd_t *)__get_free_pages(GFP_KERNEL|__GFP_REPEAT, in pmd_alloc_one() 73 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free() 93 #define pmd_alloc_one(mm, addr) ({ BUG(); ((pmd_t *)2); }) 100 pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, pte_t *pte) in pmd_populate_kernel()
|
/arch/s390/include/asm/ |
D | pgtable.h | 529 static inline int pmd_present(pmd_t pmd) in pmd_present() 536 static inline int pmd_none(pmd_t pmd) in pmd_none() 542 static inline int pmd_large(pmd_t pmd) in pmd_large() 551 static inline int pmd_bad(pmd_t pmd) in pmd_bad() 559 unsigned long addr, pmd_t *pmdp); 563 unsigned long address, pmd_t *pmdp, 564 pmd_t entry, int dirty); 568 unsigned long address, pmd_t *pmdp); 571 static inline int pmd_write(pmd_t pmd) in pmd_write() 576 static inline int pmd_young(pmd_t pmd) in pmd_young() [all …]
|
D | hugetlb.h | 70 static inline void __pmd_csp(pmd_t *pmdp) in __pmd_csp() 86 pmd_t *pmdp = (pmd_t *) ptep; in huge_ptep_invalidate() 133 pmd_t pmd; in mk_huge_pte() 142 pmd_t pmd; in huge_pte_write() 156 pmd_t pmd; in huge_pte_mkwrite() 171 pmd_t pmd; in huge_pte_modify() 181 pmd_clear((pmd_t *) ptep); in huge_pte_clear()
|
/arch/sh/include/asm/ |
D | pgtable-3level.h | 30 typedef struct { unsigned long long pmd; } pmd_t; typedef 32 #define __pmd(x) ((pmd_t) { (x) } ) 40 static inline pmd_t *pmd_offset(pud_t *pud, unsigned long address) in pmd_offset() 42 return (pmd_t *)pud_page_vaddr(*pud) + pmd_index(address); in pmd_offset()
|
D | pgalloc.h | 13 extern void pud_populate(struct mm_struct *mm, pud_t *pudp, pmd_t *pmd); 14 extern pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address); 15 extern void pmd_free(struct mm_struct *mm, pmd_t *pmd); 18 static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, in pmd_populate_kernel() 24 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, in pmd_populate()
|
/arch/unicore32/mm/ |
D | mm.h | 15 extern pmd_t *top_pmd; 20 static inline pmd_t *pmd_off(pgd_t *pgd, unsigned long virt) in pmd_off() 25 static inline pmd_t *pmd_off_k(unsigned long virt) in pmd_off_k()
|
/arch/sh/mm/ |
D | hugetlbpage.c | 29 pmd_t *pmd; in huge_pte_alloc() 49 pmd_t *pmd; in huge_pte_offset() 76 int pmd_huge(pmd_t pmd) in pmd_huge() 87 pmd_t *pmd, int write) in follow_huge_pmd()
|
/arch/s390/mm/ |
D | hugetlbpage.c | 15 pmd_t *pmdp = (pmd_t *) pteptr; in set_huge_pte_at() 72 pmd_t *pmdp = NULL; in huge_pte_alloc() 85 pmd_t *pmdp = NULL; in huge_pte_offset() 107 int pmd_huge(pmd_t pmd) in pmd_huge() 121 pmd_t *pmdp, int write) in follow_huge_pmd()
|