Home
last modified time | relevance | path

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

12345678910

/linux-2.6.39/arch/x86/include/asm/
Dpgtable.h100 static inline int pmd_young(pmd_t pmd) in pmd_young()
140 static inline unsigned long pmd_pfn(pmd_t pmd) in pmd_pfn()
147 static inline int pmd_large(pmd_t pte) in pmd_large()
154 static inline int pmd_trans_splitting(pmd_t pmd) in pmd_trans_splitting()
159 static inline int pmd_trans_huge(pmd_t pmd) in pmd_trans_huge()
244 static inline pmd_t pmd_set_flags(pmd_t pmd, pmdval_t set) in pmd_set_flags()
251 static inline pmd_t pmd_clear_flags(pmd_t pmd, pmdval_t clear) in pmd_clear_flags()
258 static inline pmd_t pmd_mkold(pmd_t pmd) in pmd_mkold()
263 static inline pmd_t pmd_wrprotect(pmd_t pmd) in pmd_wrprotect()
268 static inline pmd_t pmd_mkdirty(pmd_t pmd) in pmd_mkdirty()
[all …]
Dpgalloc.h63 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()
Dpgtable_64.h19 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()
Dpgtable-3level.h39 static inline void native_set_pmd(pmd_t *pmdp, pmd_t pmd) in native_set_pmd()
62 static inline void native_pmd_clear(pmd_t *pmd) in native_pmd_clear()
108 pmd_t pmd;
110 static inline pmd_t native_pmdp_get_and_clear(pmd_t *pmdp) in native_pmdp_get_and_clear()
/linux-2.6.39/include/asm-generic/
Dpgtable.h17 unsigned long address, pmd_t *pmdp,
18 pmd_t entry, int dirty);
40 pmd_t *pmdp) in pmdp_test_and_clear_young()
42 pmd_t pmd = *pmdp; in pmdp_test_and_clear_young()
53 pmd_t *pmdp) in pmdp_test_and_clear_young()
68 unsigned long address, pmd_t *pmdp);
84 static inline pmd_t pmdp_get_and_clear(struct mm_struct *mm, in pmdp_get_and_clear()
86 pmd_t *pmdp) in pmdp_get_and_clear()
88 pmd_t pmd = *pmdp; in pmdp_get_and_clear()
128 extern pmd_t pmdp_clear_flush(struct vm_area_struct *vma,
[all …]
Dpgtable-nopmd.h17 typedef struct { pud_t pud; } pmd_t; typedef
41 #define set_pud(pudptr, pudval) set_pmd((pmd_t *)(pudptr), (pmd_t) { pudval })
43 static inline pmd_t * pmd_offset(pud_t * pud, unsigned long address) in pmd_offset()
45 return (pmd_t *)pud; in pmd_offset()
49 #define __pmd(x) ((pmd_t) { __pud(x) } )
51 #define pud_page(pud) (pmd_page((pmd_t){ pud }))
52 #define pud_page_vaddr(pud) (pmd_page_vaddr((pmd_t){ pud }))
59 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free()
/linux-2.6.39/include/linux/
Dhuge_mm.h6 unsigned long address, pmd_t *pmd,
9 pmd_t *dst_pmd, pmd_t *src_pmd, unsigned long addr,
12 unsigned long address, pmd_t *pmd,
13 pmd_t orig_pmd);
17 pmd_t *pmd,
21 pmd_t *pmd);
22 extern int mincore_huge_pmd(struct vm_area_struct *vma, pmd_t *pmd,
25 extern int change_huge_pmd(struct vm_area_struct *vma, pmd_t *pmd,
44 extern pmd_t *page_check_address_pmd(struct page *page,
78 pmd_t *dst_pmd, pmd_t *src_pmd,
[all …]
/linux-2.6.39/arch/m68k/include/asm/
Dmotorola_pgalloc.h7 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()
/linux-2.6.39/mm/
Dpgtable-generic.c38 unsigned long address, pmd_t *pmdp, in pmdp_set_access_flags()
39 pmd_t entry, int dirty) in pmdp_set_access_flags()
70 unsigned long address, pmd_t *pmdp) in pmdp_clear_flush_young()
97 pmd_t pmdp_clear_flush(struct vm_area_struct *vma, unsigned long address, in pmdp_clear_flush()
98 pmd_t *pmdp) in pmdp_clear_flush()
100 pmd_t pmd; in pmdp_clear_flush()
111 pmd_t pmdp_splitting_flush(struct vm_area_struct *vma, unsigned long address, in pmdp_splitting_flush()
112 pmd_t *pmdp) in pmdp_splitting_flush()
114 pmd_t pmd = pmd_mksplitting(*pmdp); in pmdp_splitting_flush()
/linux-2.6.39/arch/x86/mm/
Dpgtable.c58 void ___pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmd) in ___pmd_free_tlb()
157 void pud_populate(struct mm_struct *mm, pud_t *pudp, pmd_t *pmd) in pud_populate()
180 static void free_pmds(pmd_t *pmds[]) in free_pmds()
189 static int preallocate_pmds(pmd_t *pmds[]) in preallocate_pmds()
195 pmd_t *pmd = (pmd_t *)__get_free_page(PGALLOC_GFP); in preallocate_pmds()
223 pmd_t *pmd = (pmd_t *)pgd_page_vaddr(pgd); in pgd_mop_up_pmds()
233 static void pgd_prepopulate_pmd(struct mm_struct *mm, pgd_t *pgd, pmd_t *pmds[]) in pgd_prepopulate_pmd()
246 pmd_t *pmd = pmds[i]; in pgd_prepopulate_pmd()
249 memcpy(pmd, (pmd_t *)pgd_page_vaddr(swapper_pg_dir[i]), in pgd_prepopulate_pmd()
250 sizeof(pmd_t) * PTRS_PER_PMD); in pgd_prepopulate_pmd()
[all …]
/linux-2.6.39/arch/alpha/include/asm/
Dpgalloc.h14 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()
Dpgtable.h151 extern pmd_t * __bad_pagetable(void);
225 extern inline void pmd_set(pmd_t * pmdp, pte_t * ptep) in pmd_set()
228 extern inline void pgd_set(pgd_t * pgdp, pmd_t * pmdp) in pgd_set()
233 pmd_page_vaddr(pmd_t pmd) in pmd_page_vaddr()
253 extern inline int pmd_none(pmd_t pmd) { return !pmd_val(pmd); } in pmd_none()
254 extern inline int pmd_bad(pmd_t pmd) { return (pmd_val(pmd) & ~_PFN_MASK) != _PAGE_TABLE; } in pmd_bad()
255 extern inline int pmd_present(pmd_t pmd) { return pmd_val(pmd) & _PAGE_VALID; } in pmd_present()
256 extern inline void pmd_clear(pmd_t * pmdp) { pmd_val(*pmdp) = 0; } in pmd_clear()
304 extern inline pmd_t * pmd_offset(pgd_t * dir, unsigned long address) in pmd_offset()
306 pmd_t *ret = (pmd_t *) pgd_page_vaddr(*dir) + ((address >> PMD_SHIFT) & (PTRS_PER_PAGE - 1)); in pmd_offset()
[all …]
/linux-2.6.39/arch/x86/xen/
Dmmu.h24 pmdval_t xen_pmd_val(pmd_t);
28 pmd_t xen_make_pmd(pmdval_t);
38 void xen_pmd_clear(pmd_t *pmdp);
41 void xen_set_pmd(pmd_t *pmdp, pmd_t pmdval);
43 void xen_set_pmd_hyper(pmd_t *pmdp, pmd_t pmdval);
/linux-2.6.39/arch/mips/include/asm/
Dpgalloc.h16 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()
Dpgtable-64.h112 #define PTRS_PER_PMD ((PAGE_SIZE << PMD_ORDER) / sizeof(pmd_t))
159 typedef struct { unsigned long pmd; } pmd_t; typedef
161 #define __pmd(x) ((pmd_t) { (x) } )
164 extern pmd_t invalid_pmd_table[PTRS_PER_PMD];
165 extern pmd_t empty_bad_pmd_table[PTRS_PER_PMD];
171 static inline int pmd_none(pmd_t pmd) in pmd_none()
178 static inline int pmd_present(pmd_t pmd) in pmd_present()
183 static inline void pmd_clear(pmd_t *pmdp) in pmd_clear()
245 static inline pmd_t *pmd_offset(pud_t * pud, unsigned long address) in pmd_offset()
247 return (pmd_t *) pud_page_vaddr(*pud) + pmd_index(address); in pmd_offset()
/linux-2.6.39/arch/tile/include/asm/
Dpgalloc.h41 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()
101 void shatter_pmd(pmd_t *pmd);
113 pmd_populate_kernel((mm), (pmd_t *)(pud), (pte_t *)(pmd))
115 ((pmd_t *)page_to_virt(pte_alloc_one((mm), (addr))))
Dpgtable_32.h114 static inline void __set_pmd(pmd_t *pmdp, pmd_t pmdval) in __set_pmd()
120 static inline pmd_t ptfn_pmd(unsigned long ptfn, pgprot_t prot) in ptfn_pmd()
122 return (pmd_t){ { hv_pte_set_ptfn(prot, ptfn) } }; in ptfn_pmd()
128 static inline void pmd_clear(pmd_t *pmdp) in pmd_clear()
/linux-2.6.39/arch/parisc/include/asm/
Dpgalloc.h58 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()
/linux-2.6.39/drivers/lguest/
Dpage_tables.c116 static pmd_t *spmd_addr(struct lg_cpu *cpu, pgd_t spgd, unsigned long vaddr) in spmd_addr()
119 pmd_t *page; in spmd_addr()
144 pmd_t *pmd = spmd_addr(cpu, spgd, vaddr); in spte_addr()
174 return gpage + pmd_index(vaddr) * sizeof(pmd_t); in gpmd_addr()
179 pmd_t gpmd, unsigned long vaddr) in gpte_addr()
294 static void check_gpmd(struct lg_cpu *cpu, pmd_t gpmd) in check_gpmd()
323 pmd_t *spmd; in demand_page()
324 pmd_t gpmd; in demand_page()
356 gpmd = lgread(cpu, gpmd_addr(gpgd, vaddr), pmd_t); in demand_page()
485 pmd_t *spmd; in page_writable()
[all …]
/linux-2.6.39/arch/sh/include/asm/
Dpgalloc.h13 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()
Dpgtable-3level.h30 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()
/linux-2.6.39/arch/s390/mm/
Dhugetlbpage.c15 pmd_t *pmdp = (pmd_t *) pteptr; in set_huge_pte_at()
80 pmd_t *pmdp = NULL; in huge_pte_alloc()
93 pmd_t *pmdp = NULL; in huge_pte_offset()
115 int pmd_huge(pmd_t pmd) in pmd_huge()
129 pmd_t *pmdp, int write) in follow_huge_pmd()
/linux-2.6.39/arch/um/kernel/
Dmem.c92 static void __init one_page_table_init(pmd_t *pmd) in one_page_table_init()
106 pmd_t *pmd_table = (pmd_t *) alloc_bootmem_low_pages(PAGE_SIZE); in one_md_table_init()
118 pmd_t *pmd; in fixrange_init()
163 pmd_t *pmd; in init_highmem()
189 pmd_t *pmd; in fixaddr_user_init()
306 pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address) in pmd_alloc_one()
308 pmd_t *pmd = (pmd_t *) __get_free_page(GFP_KERNEL); in pmd_alloc_one()
/linux-2.6.39/arch/s390/include/asm/
Dhugetlb.h75 pmd_clear((pmd_t *) ptep); in huge_ptep_get_and_clear()
79 static inline void __pmd_csp(pmd_t *pmdp) in __pmd_csp()
93 static inline void __pmd_idte(unsigned long address, pmd_t *pmdp) in __pmd_idte()
96 pmd_index(address) * sizeof(pmd_t); in __pmd_idte()
112 pmd_t *pmdp = (pmd_t *) ptep; in huge_ptep_invalidate()
Dpgalloc.h68 #define pmd_alloc_one(mm,address) ({ BUG(); ((pmd_t *)2); })
100 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long vmaddr) in pmd_alloc_one()
105 return (pmd_t *) table; in pmd_alloc_one()
126 pud_t *pud, pmd_t *pmd) in pud_populate_kernel()
131 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate()
154 pmd_t *pmd, pte_t *pte) in pmd_populate_kernel()
160 pmd_t *pmd, pgtable_t pte) in pmd_populate()

12345678910