/linux-2.4.37.9/include/asm-m68k/ |
D | motorola_pgalloc.h | 18 extern pte_t *get_pte_slow(pmd_t *pmd, unsigned long offset); 19 extern pmd_t *get_pmd_slow(pgd_t *pgd, unsigned long offset); 21 extern pmd_t *get_pointer_table(void); 22 extern int free_pointer_table(pmd_t *); 70 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address) in pmd_alloc_one() 89 static inline pmd_t *get_pmd_fast(void) in get_pmd_fast() 99 return (pmd_t *)ret; in get_pmd_fast() 103 static inline void free_pmd_fast(pmd_t *pmd) in free_pmd_fast() 110 static inline int free_pmd_slow(pmd_t *pmd) in free_pmd_slow() 129 extern void __bad_pte(pmd_t *pmd); [all …]
|
D | sun3_pgalloc.h | 18 static inline int free_pmd_fast(pmd_t *pmdp) { return 0; } in free_pmd_fast() 19 static inline int free_pmd_slow(pmd_t *pmdp) { return 0; } in free_pmd_slow() 20 static inline pmd_t *get_pmd_fast (void) { return (pmd_t *) 0; } in get_pmd_fast() 39 static inline pte_t *pte_alloc_kernel(pmd_t *pmd, unsigned long address) in pte_alloc_kernel() 67 static inline void pmd_free_kernel(pmd_t *pmd) in pmd_free_kernel() 72 static inline pmd_t *pmd_alloc_kernel(pgd_t *pgd, unsigned long address) in pmd_alloc_kernel() 74 return (pmd_t *) pgd; in pmd_alloc_kernel() 77 #define pmd_alloc_one_fast(mm, address) ({ BUG(); ((pmd_t *)1); }) 78 #define pmd_alloc_one(mm,address) ({ BUG(); ((pmd_t *)2); }) 106 static inline void pmd_free(pmd_t *pmd) in pmd_free()
|
D | sun3_pgtable.h | 115 static inline void pgd_set(pgd_t *pgdp, pmd_t *pmdp) in pgd_set() 134 static inline int pmd_none2 (pmd_t *pmd) { return !pmd_val (*pmd); } in pmd_none2() 137 static inline int pmd_bad2 (pmd_t *pmd) { return 0; } in pmd_bad2() 139 static inline int pmd_present2 (pmd_t *pmd) { return pmd_val (*pmd) & SUN3_PMD_VALID; } in pmd_present2() 142 static inline void pmd_clear (pmd_t *pmdp) { pmd_val (*pmdp) = 0; } in pmd_clear() 198 static inline pmd_t *pmd_offset (pgd_t *pgd, unsigned long address) in pmd_offset() 200 return (pmd_t *) pgd; in pmd_offset()
|
D | motorola_pgtable.h | 122 static inline void pmd_set(pmd_t *pmdp, pte_t *ptep) in pmd_set() 133 static inline void pgd_set(pgd_t *pgdp, pmd_t *pmdp) in pgd_set() 224 static inline pmd_t *pmd_offset(pgd_t *dir, unsigned long address) in pmd_offset() 226 return (pmd_t *)__pgd_page(*dir) + ((address >> PMD_SHIFT) & (PTRS_PER_PMD-1)); in pmd_offset() 230 static inline pte_t *pte_offset(pmd_t *pmdp, unsigned long address) in pte_offset() 250 pmd_t *pmdp; in nocache_page() 264 pmd_t *pmdp; in cache_page()
|
/linux-2.4.37.9/include/asm-mips64/ |
D | pgalloc.h | 117 extern pte_t *get_pte_slow(pmd_t *pmd, unsigned long address_preadjusted); 143 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address) in pmd_alloc_one() 145 pmd_t *pmd; in pmd_alloc_one() 147 pmd = (pmd_t *) __get_free_pages(GFP_KERNEL, PMD_ORDER); in pmd_alloc_one() 153 static inline pmd_t *pmd_alloc_one_fast(struct mm_struct *mm, unsigned long address) in pmd_alloc_one_fast() 162 return (pmd_t *)ret; in pmd_alloc_one_fast() 165 extern pmd_t *get_pmd_slow(pgd_t *pgd, unsigned long address_preadjusted); 167 static inline pmd_t *get_pmd_fast(void) in get_pmd_fast() 175 return (pmd_t *)ret; in get_pmd_fast() 178 return (pmd_t *)ret; in get_pmd_fast() [all …]
|
D | pgtable.h | 71 #define PMD_T_LOG2 ffz(~sizeof(pmd_t)) 105 #define PTRS_PER_PMD ((PAGE_SIZE << PMD_ORDER) / sizeof(pmd_t)) 177 extern pmd_t invalid_pmd_table[2*PAGE_SIZE/sizeof(pmd_t)]; 178 extern pmd_t empty_bad_pmd_table[2*PAGE_SIZE/sizeof(pmd_t)]; 184 static inline unsigned long pmd_page(pmd_t pmd) in pmd_page() 194 static inline void pmd_set(pmd_t * pmdp, pte_t * ptep) in pmd_set() 199 static inline void pgd_set(pgd_t * pgdp, pmd_t * pmdp) in pgd_set() 256 static inline int pmd_none(pmd_t pmd) in pmd_none() 261 static inline int pmd_bad(pmd_t pmd) in pmd_bad() 266 static inline int pmd_present(pmd_t pmd) in pmd_present() [all …]
|
/linux-2.4.37.9/arch/s390x/mm/ |
D | init.c | 49 __pgd_populate(unsigned long *pgd_slot, unsigned long offset, pmd_t *pmd) in __pgd_populate() 70 pmd_t *pgd_populate(struct mm_struct *mm, pgd_t *pgd, pmd_t *pmd) in pgd_populate() 75 pmd_t *new, *pmd2; in pgd_populate() 84 new = (pmd_t *) __get_free_pages(GFP_KERNEL, 2); in pgd_populate() 95 return (pmd_t *) pgd_val(*pgd); in pgd_populate() 120 pmd2 = (pmd_t *)(*pgd_slot & PAGE_MASK) + PTRS_PER_PMD; in pgd_populate() 121 memcpy(new, pmd, sizeof(pmd_t)*PTRS_PER_PMD); in pgd_populate() 122 memcpy(new + PTRS_PER_PMD, pmd2, sizeof(pmd_t)*PTRS_PER_PMD); in pgd_populate() 124 pmd2 = (pmd_t *)(*pgd_slot & PAGE_MASK); in pgd_populate() 125 memcpy(new, pmd2, sizeof(pmd_t)*PTRS_PER_PMD); in pgd_populate() [all …]
|
/linux-2.4.37.9/include/asm-x86_64/ |
D | pgalloc.h | 20 extern __inline__ pmd_t *get_pmd_slow(void) in get_pmd_slow() 22 return (pmd_t *)get_zeroed_page(GFP_KERNEL); in get_pmd_slow() 25 extern __inline__ pmd_t *get_pmd_fast(void) in get_pmd_fast() 35 return (pmd_t *)ret; in get_pmd_fast() 38 extern __inline__ void pmd_free(pmd_t *pmd) in pmd_free() 45 extern __inline__ void pmd_free_slow(pmd_t *pmd) in pmd_free_slow() 52 static inline pmd_t *pmd_alloc_one_fast (struct mm_struct *mm, unsigned long addr) in pmd_alloc_one_fast() 61 return (pmd_t *)ret; in pmd_alloc_one_fast() 64 static inline pmd_t *pmd_alloc_one (struct mm_struct *mm, unsigned long addr) in pmd_alloc_one() 66 return (pmd_t *)get_zeroed_page(GFP_KERNEL); in pmd_alloc_one()
|
/linux-2.4.37.9/include/asm-s390x/ |
D | pgalloc.h | 85 extern pmd_t *pgd_populate(struct mm_struct *mm, pgd_t *pgd, pmd_t *pmd); 90 extern inline pmd_t * pmd_alloc_one(struct mm_struct *mm, unsigned long vmaddr) in pmd_alloc_one() 92 pmd_t *pmd; in pmd_alloc_one() 95 pmd = (pmd_t *) __get_free_pages(GFP_KERNEL, 1); in pmd_alloc_one() 103 extern __inline__ pmd_t * 113 return (pmd_t *) ret; in pmd_alloc_one_fast() 116 extern void pmd_free_order2(pmd_t *); 117 extern __inline__ void pmd_free_fast (pmd_t *pmd) in pmd_free_fast() 127 extern __inline__ void pmd_free_slow (pmd_t *pmd) in pmd_free_slow() 134 extern inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, pte_t *pte) in pmd_populate()
|
/linux-2.4.37.9/include/asm-mips/ |
D | pgtable.h | 143 extern pmd_t invalid_pte_table[PAGE_SIZE/sizeof(pmd_t)]; 149 static inline unsigned long pmd_page(pmd_t pmd) in pmd_page() 154 static inline void pmd_set(pmd_t * pmdp, pte_t * ptep) in pmd_set() 171 static inline int pmd_none(pmd_t pmd) in pmd_none() 176 static inline int pmd_bad(pmd_t pmd) in pmd_bad() 182 static inline int pmd_present(pmd_t pmd) in pmd_present() 187 static inline void pmd_clear(pmd_t *pmdp) in pmd_clear() 220 #define PMD_T_LOG2 ffz(~sizeof(pmd_t)) 245 static inline pmd_t *pmd_offset(pgd_t *dir, unsigned long address) in pmd_offset() 247 return (pmd_t *) dir; in pmd_offset() [all …]
|
D | pgalloc.h | 135 static __inline__ pmd_t *get_pmd_fast(void) in get_pmd_fast() 137 return (pmd_t *)0; in get_pmd_fast() 140 static __inline__ void free_pmd_fast(pmd_t *pmd) in free_pmd_fast() 144 static __inline__ void free_pmd_slow(pmd_t *pmd) in free_pmd_slow() 148 extern void __bad_pte(pmd_t *pmd); 192 #define pmd_alloc_one_fast(mm, addr) ({ BUG(); ((pmd_t *)1); }) 193 #define pmd_alloc_one(mm, addr) ({ BUG(); ((pmd_t *)2); })
|
/linux-2.4.37.9/include/asm-sh64/ |
D | pgalloc.h | 64 static inline pmd_t* 73 static inline pmd_t* 76 pmd_t *pmd = NULL; in pmd_alloc_one() 81 pmd = (pmd_t *) __get_free_page(GFP_KERNEL); in pmd_alloc_one() 91 pmd_free (pmd_t *pmd) in pmd_free() 97 pmd_free (pmd_t *pmd) in pmd_free() 105 pmd_populate (struct mm_struct *mm, pmd_t *pmd, pte_t *pte) in pmd_populate()
|
/linux-2.4.37.9/include/asm-ppc64/ |
D | pgalloc.h | 60 static inline pmd_t* 70 return (pmd_t *)ret; in pmd_alloc_one_fast() 73 static inline pmd_t* 76 pmd_t *pmd = (pmd_t *) __get_free_page(GFP_KERNEL); in pmd_alloc_one() 84 pmd_free (pmd_t *pmd) in pmd_free()
|
/linux-2.4.37.9/include/asm-parisc/ |
D | pgalloc.h | 245 static inline void pgd_populate(struct mm_struct *mm, pgd_t *pgd, pmd_t *pmd) in pgd_populate() 250 static inline pmd_t *pmd_alloc_one_fast(struct mm_struct *mm, unsigned long address) in pmd_alloc_one_fast() 255 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address) in pmd_alloc_one() 257 pmd_t *pmd = (pmd_t *) __get_free_page(GFP_KERNEL); in pmd_alloc_one() 263 static inline void pmd_free(pmd_t *pmd) in pmd_free() 277 #define pmd_alloc_one_fast(mm, addr) ({ BUG(); ((pmd_t *)1); }) 278 #define pmd_alloc_one(mm, addr) ({ BUG(); ((pmd_t *)2); }) 284 static inline void pmd_populate (struct mm_struct *mm, pmd_t *pmd_entry, pte_t *pte) in pmd_populate()
|
/linux-2.4.37.9/include/asm-ia64/ |
D | pgalloc.h | 74 pgd_populate (struct mm_struct *mm, pgd_t *pgd_entry, pmd_t *pmd) in pgd_populate() 80 static inline pmd_t* 90 return (pmd_t *)ret; in pmd_alloc_one_fast() 93 static inline pmd_t* 96 pmd_t *pmd = (pmd_t *) __get_free_page(GFP_KERNEL); in pmd_alloc_one() 104 pmd_free (pmd_t *pmd) in pmd_free() 112 pmd_populate (struct mm_struct *mm, pmd_t *pmd_entry, pte_t *pte) in pmd_populate()
|
/linux-2.4.37.9/include/asm-alpha/ |
D | pgtable.h | 140 extern pmd_t * __bad_pagetable(void); 230 extern inline void pmd_set(pmd_t * pmdp, pte_t * ptep) in pmd_set() 233 extern inline void pgd_set(pgd_t * pgdp, pmd_t * pmdp) in pgd_set() 251 extern inline unsigned long pmd_page(pmd_t pmd) in pmd_page() 261 extern inline int pmd_none(pmd_t pmd) { return !pmd_val(pmd); } in pmd_none() 262 extern inline int pmd_bad(pmd_t pmd) { return (pmd_val(pmd) & ~_PFN_MASK) != _PAGE_TABLE; } in pmd_bad() 263 extern inline int pmd_present(pmd_t pmd) { return pmd_val(pmd) & _PAGE_VALID; } in pmd_present() 264 extern inline void pmd_clear(pmd_t * pmdp) { pmd_val(*pmdp) = 0; } in pmd_clear() 303 extern inline pmd_t * pmd_offset(pgd_t * dir, unsigned long address) in pmd_offset() 305 return (pmd_t *) pgd_page(*dir) + ((address >> PMD_SHIFT) & (PTRS_PER_PAGE - 1)); in pmd_offset() [all …]
|
D | pgalloc.h | 279 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address) in pmd_alloc_one() 281 pmd_t *ret = (pmd_t *)__get_free_page(GFP_KERNEL); in pmd_alloc_one() 287 static inline pmd_t *pmd_alloc_one_fast(struct mm_struct *mm, unsigned long address) in pmd_alloc_one_fast() 296 return (pmd_t *)ret; in pmd_alloc_one_fast() 299 static inline void pmd_free_fast(pmd_t *pmd) in pmd_free_fast() 306 static inline void pmd_free_slow(pmd_t *pmd) in pmd_free_slow()
|
D | page.h | 28 typedef struct { unsigned long pmd; } pmd_t; typedef 38 #define __pmd(x) ((pmd_t) { (x) } ) 47 typedef unsigned long pmd_t; typedef
|
/linux-2.4.37.9/arch/m68k/mm/ |
D | motorola.c | 62 static pmd_t *last_pgtable __initdata = NULL; 63 pmd_t *zero_pgtable __initdata = NULL; 65 static pmd_t * __init kernel_ptr_table(void) in kernel_ptr_table() 84 last_pgtable = (pmd_t *)last; in kernel_ptr_table() 91 last_pgtable = (pmd_t *)alloc_bootmem_low_pages(PAGE_SIZE); in kernel_ptr_table() 111 pmd_t *pmd_dir; in map_chunk()
|
D | memory.c | 37 #define PTABLE_SIZE (PTRS_PER_PMD * sizeof(pmd_t)) 63 pmd_t *get_pointer_table (void) in get_pointer_table() 90 return (pmd_t *)page; in get_pointer_table() 101 return (pmd_t *) (page_address(PD_PAGE(dp)) + off); in get_pointer_table() 104 int free_pointer_table (pmd_t *ptable) in free_pointer_table()
|
/linux-2.4.37.9/include/asm-sparc64/ |
D | pgalloc.h | 234 extern __inline__ pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address) in pmd_alloc_one() 236 pmd_t *pmd = (pmd_t *)__get_free_page(GFP_KERNEL); in pmd_alloc_one() 242 extern __inline__ pmd_t *pmd_alloc_one_fast(struct mm_struct *mm, unsigned long address) in pmd_alloc_one_fast() 254 return (pmd_t *)ret; in pmd_alloc_one_fast() 257 extern __inline__ void free_pmd_fast(pmd_t *pmd) in free_pmd_fast() 265 extern __inline__ void free_pmd_slow(pmd_t *pmd) in free_pmd_slow()
|
/linux-2.4.37.9/include/asm-sparc/ |
D | pgtable.h | 196 BTFIXUPDEF_CALL_CONST(unsigned long, pmd_page, pmd_t) in BTFIXUPDEF_CALL_CONST() argument 214 BTFIXUPDEF_CALL_CONST(int, pmd_bad, pmd_t) in BTFIXUPDEF_CALL_CONST() argument 215 BTFIXUPDEF_CALL_CONST(int, pmd_present, pmd_t) in BTFIXUPDEF_CALL_CONST() 216 BTFIXUPDEF_CALL(void, pmd_clear, pmd_t *) in BTFIXUPDEF_CALL_CONST() 218 extern __inline__ int pmd_none(pmd_t pmd) in BTFIXUPDEF_CALL_CONST() 312 BTFIXUPDEF_CALL(void, pgd_set, pgd_t *, pmd_t *) 313 BTFIXUPDEF_CALL(void, pmd_set, pmd_t *, pte_t *) 335 BTFIXUPDEF_CALL(pmd_t *, pmd_offset, pgd_t *, unsigned long) 336 BTFIXUPDEF_CALL(pte_t *, pte_offset, pmd_t *, unsigned long)
|
/linux-2.4.37.9/arch/parisc/mm/ |
D | init.c | 505 pmd_t *pmd; in map_pages() 539 pmd = (pmd_t *)__pa(pg_dir); in map_pages() 541 pmd = (pmd_t *) (PAGE_MASK & pgd_val(*pg_dir)); in map_pages() 548 pmd = (pmd_t *) alloc_bootmem_low_pages_node(NODE_DATA(0),PAGE_SIZE); in map_pages() 549 pmd = (pmd_t *) __pa(pmd); in map_pages() 558 pmd = (pmd_t *)__va(pmd) + start_pmd; in map_pages() 676 pmd_t *pmd; in map_hpux_gateway_page() 706 pmd = (pmd_t *)__pa(pg_dir); in map_hpux_gateway_page() 708 pmd = (pmd_t *) (PAGE_MASK & pgd_val(*pg_dir)); in map_hpux_gateway_page() 715 pmd = (pmd_t *) get_zeroed_page(GFP_KERNEL); in map_hpux_gateway_page() [all …]
|
/linux-2.4.37.9/include/asm-arm/ |
D | page.h | 25 typedef struct { unsigned long pmd; } pmd_t; typedef 35 #define __pmd(x) ((pmd_t) { (x) } ) 44 typedef unsigned long pmd_t; typedef
|
/linux-2.4.37.9/include/asm-cris/ |
D | page.h | 27 typedef struct { unsigned long pmd; } pmd_t; typedef 37 #define __pmd(x) ((pmd_t) { (x) } ) 46 typedef unsigned long pmd_t; typedef
|