| tag | line | file | source code |
| pmd | 18 | include/asm-alpha/page.h | typedef struct { unsigned long pmd; } pmd_t; |
| pmd | 23 | include/asm-alpha/page.h | #define pmd_val(x) ((x).pmd) |
| pmd | 153 | include/asm-alpha/pgtable.h | extern inline unsigned long pmd_page(pmd_t pmd) |
| pmd | 154 | include/asm-alpha/pgtable.h | { return PAGE_OFFSET + ((pmd_val(pmd) & _PFN_MASK) >> (32-PAGE_SHIFT)); } |
| pmd | 163 | include/asm-alpha/pgtable.h | extern inline int pmd_none(pmd_t pmd) { return !pmd_val(pmd); } |
| pmd | 164 | include/asm-alpha/pgtable.h | extern inline int pmd_bad(pmd_t pmd) { return (pmd_val(pmd) & ~_PFN_MASK) != _PAGE_TABLE || pmd_page(pmd) > high_memory; } |
| pmd | 165 | include/asm-alpha/pgtable.h | extern inline int pmd_present(pmd_t pmd) { return pmd_val(pmd) & _PAGE_VALID; } |
| pmd | 237 | include/asm-alpha/pgtable.h | extern inline pte_t * pte_alloc_kernel(pmd_t *pmd, unsigned long address) |
| pmd | 240 | include/asm-alpha/pgtable.h | if (pmd_none(*pmd)) { |
| pmd | 242 | include/asm-alpha/pgtable.h | if (pmd_none(*pmd)) { |
| pmd | 244 | include/asm-alpha/pgtable.h | pmd_set(pmd, page); |
| pmd | 248 | include/asm-alpha/pgtable.h | pmd_set(pmd, (pte_t *) BAD_PAGETABLE); |
| pmd | 253 | include/asm-alpha/pgtable.h | if (pmd_bad(*pmd)) { |
| pmd | 254 | include/asm-alpha/pgtable.h | printk("Bad pmd in pte_alloc: %08lx\n", pmd_val(*pmd)); |
| pmd | 255 | include/asm-alpha/pgtable.h | pmd_set(pmd, (pte_t *) BAD_PAGETABLE); |
| pmd | 258 | include/asm-alpha/pgtable.h | return (pte_t *) pmd_page(*pmd) + address; |
| pmd | 261 | include/asm-alpha/pgtable.h | extern inline void pmd_free_kernel(pmd_t * pmd) |
| pmd | 263 | include/asm-alpha/pgtable.h | mem_map[MAP_NR(pmd)] = 1; |
| pmd | 264 | include/asm-alpha/pgtable.h | free_page((unsigned long) pmd); |
| pmd | 296 | include/asm-alpha/pgtable.h | extern inline pte_t * pte_alloc(pmd_t *pmd, unsigned long address) |
| pmd | 299 | include/asm-alpha/pgtable.h | if (pmd_none(*pmd)) { |
| pmd | 301 | include/asm-alpha/pgtable.h | if (pmd_none(*pmd)) { |
| pmd | 303 | include/asm-alpha/pgtable.h | pmd_set(pmd, page); |
| pmd | 306 | include/asm-alpha/pgtable.h | pmd_set(pmd, (pte_t *) BAD_PAGETABLE); |
| pmd | 311 | include/asm-alpha/pgtable.h | if (pmd_bad(*pmd)) { |
| pmd | 312 | include/asm-alpha/pgtable.h | printk("Bad pmd in pte_alloc: %08lx\n", pmd_val(*pmd)); |
| pmd | 313 | include/asm-alpha/pgtable.h | pmd_set(pmd, (pte_t *) BAD_PAGETABLE); |
| pmd | 316 | include/asm-alpha/pgtable.h | return (pte_t *) pmd_page(*pmd) + address; |
| pmd | 319 | include/asm-alpha/pgtable.h | extern inline void pmd_free(pmd_t * pmd) |
| pmd | 321 | include/asm-alpha/pgtable.h | free_page((unsigned long) pmd); |
| pmd | 18 | include/asm-i386/page.h | typedef struct { unsigned long pmd; } pmd_t; |
| pmd | 23 | include/asm-i386/page.h | #define pmd_val(x) ((x).pmd) |
| pmd | 138 | include/asm-i386/pgtable.h | extern inline int pmd_none(pmd_t pmd) { return !pmd_val(pmd); } |
| pmd | 139 | include/asm-i386/pgtable.h | extern inline int pmd_bad(pmd_t pmd) { return (pmd_val(pmd) & ~PAGE_MASK) != _PAGE_TABLE || pmd_val(pmd) > high_memory; } |
| pmd | 140 | include/asm-i386/pgtable.h | extern inline int pmd_present(pmd_t pmd) { return pmd_val(pmd) & _PAGE_PRESENT; } |
| pmd | 185 | include/asm-i386/pgtable.h | extern inline unsigned long pmd_page(pmd_t pmd) |
| pmd | 186 | include/asm-i386/pgtable.h | { return pmd_val(pmd) & PAGE_MASK; } |
| pmd | 225 | include/asm-i386/pgtable.h | extern inline pte_t * pte_alloc_kernel(pmd_t * pmd, unsigned long address) |
| pmd | 228 | include/asm-i386/pgtable.h | if (pmd_none(*pmd)) { |
| pmd | 230 | include/asm-i386/pgtable.h | if (pmd_none(*pmd)) { |
| pmd | 232 | include/asm-i386/pgtable.h | pmd_val(*pmd) = _PAGE_TABLE | (unsigned long) page; |
| pmd | 236 | include/asm-i386/pgtable.h | pmd_val(*pmd) = _PAGE_TABLE | (unsigned long) BAD_PAGETABLE; |
| pmd | 241 | include/asm-i386/pgtable.h | if (pmd_bad(*pmd)) { |
| pmd | 242 | include/asm-i386/pgtable.h | printk("Bad pmd in pte_alloc: %08lx\n", pmd_val(*pmd)); |
| pmd | 243 | include/asm-i386/pgtable.h | pmd_val(*pmd) = _PAGE_TABLE | (unsigned long) BAD_PAGETABLE; |
| pmd | 246 | include/asm-i386/pgtable.h | return (pte_t *) pmd_page(*pmd) + address; |
| pmd | 253 | include/asm-i386/pgtable.h | extern inline void pmd_free_kernel(pmd_t * pmd) |
| pmd | 267 | include/asm-i386/pgtable.h | extern inline pte_t * pte_alloc(pmd_t * pmd, unsigned long address) |
| pmd | 270 | include/asm-i386/pgtable.h | if (pmd_none(*pmd)) { |
| pmd | 272 | include/asm-i386/pgtable.h | if (pmd_none(*pmd)) { |
| pmd | 274 | include/asm-i386/pgtable.h | pmd_val(*pmd) = _PAGE_TABLE | (unsigned long) page; |
| pmd | 277 | include/asm-i386/pgtable.h | pmd_val(*pmd) = _PAGE_TABLE | (unsigned long) BAD_PAGETABLE; |
| pmd | 282 | include/asm-i386/pgtable.h | if (pmd_bad(*pmd)) { |
| pmd | 283 | include/asm-i386/pgtable.h | printk("Bad pmd in pte_alloc: %08lx\n", pmd_val(*pmd)); |
| pmd | 284 | include/asm-i386/pgtable.h | pmd_val(*pmd) = _PAGE_TABLE | (unsigned long) BAD_PAGETABLE; |
| pmd | 287 | include/asm-i386/pgtable.h | return (pte_t *) pmd_page(*pmd) + address; |
| pmd | 294 | include/asm-i386/pgtable.h | extern inline void pmd_free(pmd_t * pmd) |
| pmd | 30 | include/asm-sparc/page.h | typedef struct { unsigned long pmd; } pmd_t; |
| pmd | 35 | include/asm-sparc/page.h | #define pmd_val(x) ((x).pmd) |
| pmd | 150 | include/asm-sparc/pgtable.h | extern inline int pmd_none(pmd_t pmd) { return !pmd_val(pmd); } |
| pmd | 151 | include/asm-sparc/pgtable.h | extern inline int pmd_bad(pmd_t pmd) { return (pmd_val(pmd) & ~PAGE_MASK) != _PAGE_TABLE || pmd_val(pmd) > high_memory; } |
| pmd | 152 | include/asm-sparc/pgtable.h | extern inline int pmd_present(pmd_t pmd) { return pmd_val(pmd) & _PAGE_VALID; } |
| pmd | 196 | include/asm-sparc/pgtable.h | extern inline unsigned long pmd_page(pmd_t pmd) { return pmd_val(pmd) & PAGE_MASK; } |
| pmd | 237 | include/asm-sparc/pgtable.h | extern inline pte_t * pte_alloc_kernel(pmd_t * pmd, unsigned long address) |
| pmd | 240 | include/asm-sparc/pgtable.h | if (pmd_none(*pmd)) { |
| pmd | 242 | include/asm-sparc/pgtable.h | if (pmd_none(*pmd)) { |
| pmd | 244 | include/asm-sparc/pgtable.h | pmd_val(*pmd) = _PAGE_TABLE | (unsigned long) page; |
| pmd | 248 | include/asm-sparc/pgtable.h | pmd_val(*pmd) = _PAGE_TABLE | (unsigned long) BAD_PAGETABLE; |
| pmd | 253 | include/asm-sparc/pgtable.h | if (pmd_bad(*pmd)) { |
| pmd | 254 | include/asm-sparc/pgtable.h | printk("Bad pmd in pte_alloc: %08lx\n", pmd_val(*pmd)); |
| pmd | 255 | include/asm-sparc/pgtable.h | pmd_val(*pmd) = _PAGE_TABLE | (unsigned long) BAD_PAGETABLE; |
| pmd | 258 | include/asm-sparc/pgtable.h | return (pte_t *) pmd_page(*pmd) + address; |
| pmd | 265 | include/asm-sparc/pgtable.h | extern inline void pmd_free_kernel(pmd_t * pmd) |
| pmd | 279 | include/asm-sparc/pgtable.h | extern inline pte_t * pte_alloc(pmd_t * pmd, unsigned long address) |
| pmd | 282 | include/asm-sparc/pgtable.h | if (pmd_none(*pmd)) { |
| pmd | 284 | include/asm-sparc/pgtable.h | if (pmd_none(*pmd)) { |
| pmd | 286 | include/asm-sparc/pgtable.h | pmd_val(*pmd) = _PAGE_TABLE | (unsigned long) page; |
| pmd | 289 | include/asm-sparc/pgtable.h | pmd_val(*pmd) = _PAGE_TABLE | (unsigned long) BAD_PAGETABLE; |
| pmd | 294 | include/asm-sparc/pgtable.h | if (pmd_bad(*pmd)) { |
| pmd | 295 | include/asm-sparc/pgtable.h | printk("Bad pmd in pte_alloc: %08lx\n", pmd_val(*pmd)); |
| pmd | 296 | include/asm-sparc/pgtable.h | pmd_val(*pmd) = _PAGE_TABLE | (unsigned long) BAD_PAGETABLE; |
| pmd | 299 | include/asm-sparc/pgtable.h | return (pte_t *) pmd_page(*pmd) + address; |
| pmd | 306 | include/asm-sparc/pgtable.h | extern inline void pmd_free(pmd_t * pmd) |
| pmd | 38 | mm/vmalloc.c | static inline void free_area_pte(pmd_t * pmd, unsigned long address, unsigned long size) |
| pmd | 43 | mm/vmalloc.c | if (pmd_none(*pmd)) |
| pmd | 45 | mm/vmalloc.c | if (pmd_bad(*pmd)) { |
| pmd | 46 | mm/vmalloc.c | printk("free_area_pte: bad pmd (%08lx)\n", pmd_val(*pmd)); |
| pmd | 47 | mm/vmalloc.c | pmd_clear(pmd); |
| pmd | 50 | mm/vmalloc.c | pte = pte_offset(pmd, address); |
| pmd | 72 | mm/vmalloc.c | pmd_t * pmd; |
| pmd | 82 | mm/vmalloc.c | pmd = pmd_offset(dir, address); |
| pmd | 88 | mm/vmalloc.c | free_area_pte(pmd, address, end - address); |
| pmd | 90 | mm/vmalloc.c | pmd++; |
| pmd | 130 | mm/vmalloc.c | static inline int alloc_area_pmd(pmd_t * pmd, unsigned long address, unsigned long size) |
| pmd | 139 | mm/vmalloc.c | pte_t * pte = pte_alloc_kernel(pmd, address); |
| pmd | 145 | mm/vmalloc.c | pmd++; |
| pmd | 157 | mm/vmalloc.c | pmd_t *pmd = pmd_alloc_kernel(dir, address); |
| pmd | 158 | mm/vmalloc.c | if (!pmd) |
| pmd | 160 | mm/vmalloc.c | if (alloc_area_pmd(pmd, address, end - address)) |