tag | line | file | source code |
pmd | 73 | arch/i386/kernel/vm86.c | pmd_t *pmd; |
pmd | 85 | arch/i386/kernel/vm86.c | pmd = pmd_offset(pgd, 0xA0000); |
pmd | 86 | arch/i386/kernel/vm86.c | if (pmd_none(*pmd)) |
pmd | 88 | arch/i386/kernel/vm86.c | if (pmd_bad(*pmd)) { |
pmd | 89 | arch/i386/kernel/vm86.c | printk("vm86: bad pmd entry [%p]:%08lx\n", pmd, pmd_val(*pmd)); |
pmd | 90 | arch/i386/kernel/vm86.c | pmd_clear(pmd); |
pmd | 93 | arch/i386/kernel/vm86.c | pte = pte_offset(pmd, 0xA0000); |
pmd | 526 | fs/proc/array.c | static inline void statm_pte_range(pmd_t * pmd, unsigned long address, unsigned long size, |
pmd | 532 | fs/proc/array.c | if (pmd_none(*pmd)) |
pmd | 534 | fs/proc/array.c | if (pmd_bad(*pmd)) { |
pmd | 535 | fs/proc/array.c | printk("statm_pte_range: bad pmd (%08lx)\n", pmd_val(*pmd)); |
pmd | 536 | fs/proc/array.c | pmd_clear(pmd); |
pmd | 539 | fs/proc/array.c | pte = pte_offset(pmd, address); |
pmd | 567 | fs/proc/array.c | pmd_t * pmd; |
pmd | 577 | fs/proc/array.c | pmd = pmd_offset(pgd, address); |
pmd | 583 | fs/proc/array.c | statm_pte_range(pmd, address, end - address, pages, shared, dirty, total); |
pmd | 585 | fs/proc/array.c | pmd++; |
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 | 155 | include/asm-alpha/pgtable.h | extern inline unsigned long pmd_page(pmd_t pmd) |
pmd | 156 | include/asm-alpha/pgtable.h | { return PAGE_OFFSET + ((pmd_val(pmd) & _PFN_MASK) >> (32-PAGE_SHIFT)); } |
pmd | 171 | include/asm-alpha/pgtable.h | extern inline int pmd_none(pmd_t pmd) { return !pmd_val(pmd); } |
pmd | 172 | 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 | 173 | include/asm-alpha/pgtable.h | extern inline int pmd_present(pmd_t pmd) { return pmd_val(pmd) & _PAGE_VALID; } |
pmd | 258 | include/asm-alpha/pgtable.h | extern inline pte_t * pte_alloc_kernel(pmd_t *pmd, unsigned long address) |
pmd | 261 | include/asm-alpha/pgtable.h | if (pmd_none(*pmd)) { |
pmd | 263 | include/asm-alpha/pgtable.h | if (pmd_none(*pmd)) { |
pmd | 265 | include/asm-alpha/pgtable.h | pmd_set(pmd, page); |
pmd | 269 | include/asm-alpha/pgtable.h | pmd_set(pmd, (pte_t *) BAD_PAGETABLE); |
pmd | 274 | include/asm-alpha/pgtable.h | if (pmd_bad(*pmd)) { |
pmd | 275 | include/asm-alpha/pgtable.h | printk("Bad pmd in pte_alloc: %08lx\n", pmd_val(*pmd)); |
pmd | 276 | include/asm-alpha/pgtable.h | pmd_set(pmd, (pte_t *) BAD_PAGETABLE); |
pmd | 279 | include/asm-alpha/pgtable.h | return (pte_t *) pmd_page(*pmd) + address; |
pmd | 282 | include/asm-alpha/pgtable.h | extern inline void pmd_free_kernel(pmd_t * pmd) |
pmd | 284 | include/asm-alpha/pgtable.h | mem_map[MAP_NR(pmd)] = 1; |
pmd | 285 | include/asm-alpha/pgtable.h | free_page((unsigned long) pmd); |
pmd | 317 | include/asm-alpha/pgtable.h | extern inline pte_t * pte_alloc(pmd_t *pmd, unsigned long address) |
pmd | 320 | include/asm-alpha/pgtable.h | if (pmd_none(*pmd)) { |
pmd | 322 | include/asm-alpha/pgtable.h | if (pmd_none(*pmd)) { |
pmd | 324 | include/asm-alpha/pgtable.h | pmd_set(pmd, page); |
pmd | 327 | include/asm-alpha/pgtable.h | pmd_set(pmd, (pte_t *) BAD_PAGETABLE); |
pmd | 332 | include/asm-alpha/pgtable.h | if (pmd_bad(*pmd)) { |
pmd | 333 | include/asm-alpha/pgtable.h | printk("Bad pmd in pte_alloc: %08lx\n", pmd_val(*pmd)); |
pmd | 334 | include/asm-alpha/pgtable.h | pmd_set(pmd, (pte_t *) BAD_PAGETABLE); |
pmd | 337 | include/asm-alpha/pgtable.h | return (pte_t *) pmd_page(*pmd) + address; |
pmd | 340 | include/asm-alpha/pgtable.h | extern inline void pmd_free(pmd_t * pmd) |
pmd | 342 | 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 | 142 | include/asm-i386/pgtable.h | extern inline int pmd_none(pmd_t pmd) { return !pmd_val(pmd); } |
pmd | 143 | 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 | 144 | include/asm-i386/pgtable.h | extern inline int pmd_present(pmd_t pmd) { return pmd_val(pmd) & _PAGE_PRESENT; } |
pmd | 202 | include/asm-i386/pgtable.h | extern inline unsigned long pmd_page(pmd_t pmd) |
pmd | 203 | include/asm-i386/pgtable.h | { return pmd_val(pmd) & PAGE_MASK; } |
pmd | 234 | include/asm-i386/pgtable.h | extern inline pte_t * pte_alloc_kernel(pmd_t * pmd, unsigned long address) |
pmd | 237 | include/asm-i386/pgtable.h | if (pmd_none(*pmd)) { |
pmd | 239 | include/asm-i386/pgtable.h | if (pmd_none(*pmd)) { |
pmd | 241 | include/asm-i386/pgtable.h | pmd_val(*pmd) = _PAGE_TABLE | (unsigned long) page; |
pmd | 245 | include/asm-i386/pgtable.h | pmd_val(*pmd) = _PAGE_TABLE | (unsigned long) BAD_PAGETABLE; |
pmd | 250 | include/asm-i386/pgtable.h | if (pmd_bad(*pmd)) { |
pmd | 251 | include/asm-i386/pgtable.h | printk("Bad pmd in pte_alloc: %08lx\n", pmd_val(*pmd)); |
pmd | 252 | include/asm-i386/pgtable.h | pmd_val(*pmd) = _PAGE_TABLE | (unsigned long) BAD_PAGETABLE; |
pmd | 255 | include/asm-i386/pgtable.h | return (pte_t *) pmd_page(*pmd) + address; |
pmd | 262 | include/asm-i386/pgtable.h | extern inline void pmd_free_kernel(pmd_t * pmd) |
pmd | 276 | include/asm-i386/pgtable.h | extern inline pte_t * pte_alloc(pmd_t * pmd, unsigned long address) |
pmd | 279 | include/asm-i386/pgtable.h | if (pmd_none(*pmd)) { |
pmd | 281 | include/asm-i386/pgtable.h | if (pmd_none(*pmd)) { |
pmd | 283 | include/asm-i386/pgtable.h | pmd_val(*pmd) = _PAGE_TABLE | (unsigned long) page; |
pmd | 286 | include/asm-i386/pgtable.h | pmd_val(*pmd) = _PAGE_TABLE | (unsigned long) BAD_PAGETABLE; |
pmd | 291 | include/asm-i386/pgtable.h | if (pmd_bad(*pmd)) { |
pmd | 292 | include/asm-i386/pgtable.h | printk("Bad pmd in pte_alloc: %08lx\n", pmd_val(*pmd)); |
pmd | 293 | include/asm-i386/pgtable.h | pmd_val(*pmd) = _PAGE_TABLE | (unsigned long) BAD_PAGETABLE; |
pmd | 296 | include/asm-i386/pgtable.h | return (pte_t *) pmd_page(*pmd) + address; |
pmd | 303 | include/asm-i386/pgtable.h | extern inline void pmd_free(pmd_t * pmd) |
pmd | 43 | include/asm-sparc/page.h | typedef struct { unsigned long pmd; } pmd_t; |
pmd | 48 | include/asm-sparc/page.h | #define pmd_val(x) ((x).pmd) |
pmd | 158 | include/asm-sparc/pgtable.h | extern inline int pmd_none(pmd_t pmd) { return !pmd_val(pmd); } |
pmd | 159 | 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 | 160 | include/asm-sparc/pgtable.h | extern inline int pmd_present(pmd_t pmd) { return pmd_val(pmd) & _PAGE_VALID; } |
pmd | 212 | include/asm-sparc/pgtable.h | extern inline unsigned long pmd_page(pmd_t pmd) { return pmd_val(pmd) & PAGE_MASK; } |
pmd | 253 | include/asm-sparc/pgtable.h | extern inline pte_t * pte_alloc_kernel(pmd_t * pmd, unsigned long address) |
pmd | 256 | include/asm-sparc/pgtable.h | if (pmd_none(*pmd)) { |
pmd | 258 | include/asm-sparc/pgtable.h | if (pmd_none(*pmd)) { |
pmd | 260 | include/asm-sparc/pgtable.h | pmd_val(*pmd) = _PAGE_TABLE | (unsigned long) page; |
pmd | 264 | include/asm-sparc/pgtable.h | pmd_val(*pmd) = _PAGE_TABLE | (unsigned long) BAD_PAGETABLE; |
pmd | 269 | include/asm-sparc/pgtable.h | if (pmd_bad(*pmd)) { |
pmd | 270 | include/asm-sparc/pgtable.h | printk("Bad pmd in pte_alloc: %08lx\n", pmd_val(*pmd)); |
pmd | 271 | include/asm-sparc/pgtable.h | pmd_val(*pmd) = _PAGE_TABLE | (unsigned long) BAD_PAGETABLE; |
pmd | 274 | include/asm-sparc/pgtable.h | return (pte_t *) pmd_page(*pmd) + address; |
pmd | 281 | include/asm-sparc/pgtable.h | extern inline void pmd_free_kernel(pmd_t * pmd) |
pmd | 295 | include/asm-sparc/pgtable.h | extern inline pte_t * pte_alloc(pmd_t * pmd, unsigned long address) |
pmd | 298 | include/asm-sparc/pgtable.h | if (pmd_none(*pmd)) { |
pmd | 300 | include/asm-sparc/pgtable.h | if (pmd_none(*pmd)) { |
pmd | 302 | include/asm-sparc/pgtable.h | pmd_val(*pmd) = _PAGE_TABLE | (unsigned long) page; |
pmd | 305 | include/asm-sparc/pgtable.h | pmd_val(*pmd) = _PAGE_TABLE | (unsigned long) BAD_PAGETABLE; |
pmd | 310 | include/asm-sparc/pgtable.h | if (pmd_bad(*pmd)) { |
pmd | 311 | include/asm-sparc/pgtable.h | printk("Bad pmd in pte_alloc: %08lx\n", pmd_val(*pmd)); |
pmd | 312 | include/asm-sparc/pgtable.h | pmd_val(*pmd) = _PAGE_TABLE | (unsigned long) BAD_PAGETABLE; |
pmd | 315 | include/asm-sparc/pgtable.h | return (pte_t *) pmd_page(*pmd) + address; |
pmd | 322 | include/asm-sparc/pgtable.h | extern inline void pmd_free(pmd_t * pmd) |
pmd | 106 | mm/filemap.c | static inline void filemap_sync_pte_range(pmd_t * pmd, |
pmd | 113 | mm/filemap.c | if (pmd_none(*pmd)) |
pmd | 115 | mm/filemap.c | if (pmd_bad(*pmd)) { |
pmd | 116 | mm/filemap.c | printk("filemap_sync_pte_range: bad pmd (%08lx)\n", pmd_val(*pmd)); |
pmd | 117 | mm/filemap.c | pmd_clear(pmd); |
pmd | 120 | mm/filemap.c | pte = pte_offset(pmd, address); |
pmd | 137 | mm/filemap.c | pmd_t * pmd; |
pmd | 147 | mm/filemap.c | pmd = pmd_offset(pgd, address); |
pmd | 154 | mm/filemap.c | filemap_sync_pte_range(pmd, address, end - address, vma, offset, flags); |
pmd | 156 | mm/filemap.c | pmd++; |
pmd | 123 | mm/memory.c | pmd_t * pmd; |
pmd | 132 | mm/memory.c | pmd = pmd_offset(dir, 0); |
pmd | 134 | mm/memory.c | if (pmd_inuse(pmd)) { |
pmd | 135 | mm/memory.c | pmd_free(pmd); |
pmd | 139 | mm/memory.c | free_one_pmd(pmd+j); |
pmd | 140 | mm/memory.c | pmd_free(pmd); |
pmd | 360 | mm/memory.c | static inline void unmap_pte_range(pmd_t * pmd, unsigned long address, unsigned long size) |
pmd | 365 | mm/memory.c | if (pmd_none(*pmd)) |
pmd | 367 | mm/memory.c | if (pmd_bad(*pmd)) { |
pmd | 368 | mm/memory.c | printk("unmap_pte_range: bad pmd (%08lx)\n", pmd_val(*pmd)); |
pmd | 369 | mm/memory.c | pmd_clear(pmd); |
pmd | 372 | mm/memory.c | pte = pte_offset(pmd, address); |
pmd | 388 | mm/memory.c | pmd_t * pmd; |
pmd | 398 | mm/memory.c | pmd = pmd_offset(dir, address); |
pmd | 404 | mm/memory.c | unmap_pte_range(pmd, address, end - address); |
pmd | 406 | mm/memory.c | pmd++; |
pmd | 446 | mm/memory.c | static inline int zeromap_pmd_range(pmd_t * pmd, unsigned long address, unsigned long size, pte_t zero_pte) |
pmd | 455 | mm/memory.c | pte_t * pte = pte_alloc(pmd, address); |
pmd | 460 | mm/memory.c | pmd++; |
pmd | 475 | mm/memory.c | pmd_t *pmd = pmd_alloc(dir, address); |
pmd | 477 | mm/memory.c | if (!pmd) |
pmd | 479 | mm/memory.c | error = zeromap_pmd_range(pmd, address, end - address, zero_pte); |
pmd | 519 | mm/memory.c | static inline int remap_pmd_range(pmd_t * pmd, unsigned long address, unsigned long size, |
pmd | 530 | mm/memory.c | pte_t * pte = pte_alloc(pmd, address); |
pmd | 535 | mm/memory.c | pmd++; |
pmd | 549 | mm/memory.c | pmd_t *pmd = pmd_alloc(dir, from); |
pmd | 551 | mm/memory.c | if (!pmd) |
pmd | 553 | mm/memory.c | error = remap_pmd_range(pmd, from, end - from, offset + from, prot); |
pmd | 584 | mm/memory.c | pmd_t * pmd; |
pmd | 592 | mm/memory.c | pmd = pmd_alloc(pgd, address); |
pmd | 593 | mm/memory.c | if (!pmd) { |
pmd | 598 | mm/memory.c | pte = pte_alloc(pmd, address); |
pmd | 973 | mm/memory.c | pmd_t *pmd; |
pmd | 977 | mm/memory.c | pmd = pmd_alloc(pgd, address); |
pmd | 978 | mm/memory.c | if (!pmd) { |
pmd | 982 | mm/memory.c | pte = pte_alloc(pmd, address); |
pmd | 1118 | mm/memory.c | pmd_t *pmd; |
pmd | 1122 | mm/memory.c | pmd = pmd_alloc(pgd, address); |
pmd | 1123 | mm/memory.c | if (!pmd) |
pmd | 1125 | mm/memory.c | pte = pte_alloc(pmd, address); |
pmd | 21 | mm/mprotect.c | static inline void change_pte_range(pmd_t * pmd, unsigned long address, |
pmd | 27 | mm/mprotect.c | if (pmd_none(*pmd)) |
pmd | 29 | mm/mprotect.c | if (pmd_bad(*pmd)) { |
pmd | 30 | mm/mprotect.c | printk("change_pte_range: bad pmd (%08lx)\n", pmd_val(*pmd)); |
pmd | 31 | mm/mprotect.c | pmd_clear(pmd); |
pmd | 34 | mm/mprotect.c | pte = pte_offset(pmd, address); |
pmd | 51 | mm/mprotect.c | pmd_t * pmd; |
pmd | 61 | mm/mprotect.c | pmd = pmd_offset(pgd, address); |
pmd | 67 | mm/mprotect.c | change_pte_range(pmd, address, end - address, newprot); |
pmd | 69 | mm/mprotect.c | pmd++; |
pmd | 439 | mm/swap.c | pmd_t * pmd; |
pmd | 450 | mm/swap.c | pmd = pmd_offset(dir, address); |
pmd | 457 | mm/swap.c | int result = swap_out_pmd(vma, pmd, address, end); |
pmd | 461 | mm/swap.c | pmd++; |
pmd | 898 | mm/swap.c | pmd_t * pmd; |
pmd | 908 | mm/swap.c | pmd = pmd_offset(dir, address); |
pmd | 915 | mm/swap.c | if (unuse_pmd(vma, pmd, address, end - address, offset, type, page)) |
pmd | 918 | mm/swap.c | pmd++; |
pmd | 39 | mm/vmalloc.c | static inline void free_area_pte(pmd_t * pmd, unsigned long address, unsigned long size) |
pmd | 44 | mm/vmalloc.c | if (pmd_none(*pmd)) |
pmd | 46 | mm/vmalloc.c | if (pmd_bad(*pmd)) { |
pmd | 47 | mm/vmalloc.c | printk("free_area_pte: bad pmd (%08lx)\n", pmd_val(*pmd)); |
pmd | 48 | mm/vmalloc.c | pmd_clear(pmd); |
pmd | 51 | mm/vmalloc.c | pte = pte_offset(pmd, address); |
pmd | 73 | mm/vmalloc.c | pmd_t * pmd; |
pmd | 83 | mm/vmalloc.c | pmd = pmd_offset(dir, address); |
pmd | 89 | mm/vmalloc.c | free_area_pte(pmd, address, end - address); |
pmd | 91 | mm/vmalloc.c | pmd++; |
pmd | 131 | mm/vmalloc.c | static inline int alloc_area_pmd(pmd_t * pmd, unsigned long address, unsigned long size) |
pmd | 140 | mm/vmalloc.c | pte_t * pte = pte_alloc_kernel(pmd, address); |
pmd | 146 | mm/vmalloc.c | pmd++; |
pmd | 158 | mm/vmalloc.c | pmd_t *pmd = pmd_alloc_kernel(dir, address); |
pmd | 159 | mm/vmalloc.c | if (!pmd) |
pmd | 161 | mm/vmalloc.c | if (alloc_area_pmd(pmd, address, end - address)) |