tag | line | file | source code |
pgd | 72 | arch/i386/kernel/vm86.c | pgd_t *pgd; |
pgd | 77 | arch/i386/kernel/vm86.c | pgd = pgd_offset(tsk->mm, 0xA0000); |
pgd | 78 | arch/i386/kernel/vm86.c | if (pgd_none(*pgd)) |
pgd | 80 | arch/i386/kernel/vm86.c | if (pgd_bad(*pgd)) { |
pgd | 81 | arch/i386/kernel/vm86.c | printk("vm86: bad pgd entry [%p]:%08lx\n", pgd, pgd_val(*pgd)); |
pgd | 82 | arch/i386/kernel/vm86.c | pgd_clear(pgd); |
pgd | 85 | arch/i386/kernel/vm86.c | pmd = pmd_offset(pgd, 0xA0000); |
pgd | 729 | arch/ppc/mm/init.c | pgd_t *pgd; |
pgd | 734 | arch/ppc/mm/init.c | pgd = pgd_offset(current->mm, 0); |
pgd | 735 | arch/ppc/mm/init.c | if (!pgd) return; /* No map? */ |
pgd | 739 | arch/ppc/mm/init.c | if (*(long *)pgd) |
pgd | 742 | arch/ppc/mm/init.c | _pte = pte_offset(pmd_offset(pgd,0),0); |
pgd | 763 | arch/ppc/mm/init.c | pgd++; |
pgd | 40 | arch/sparc/mm/srmmu.c | srmmu_pgd_page(pgd_t pgd) |
pgd | 44 | arch/sparc/mm/srmmu.c | page = (pgd_val(pgd) & (SRMMU_PTD_PTP_MASK)) << SRMMU_PTD_PTP_PADDR_SHIFT; |
pgd | 83 | arch/sparc/mm/srmmu.c | int srmmu_pgd_none(pgd_t pgd) { return !pgd_val(pgd); } |
pgd | 84 | arch/sparc/mm/srmmu.c | int srmmu_pgd_bad(pgd_t pgd) |
pgd | 86 | arch/sparc/mm/srmmu.c | return ((pgd_val(pgd)&SRMMU_ET_PTDBAD)==SRMMU_ET_PTDBAD) || |
pgd | 87 | arch/sparc/mm/srmmu.c | (srmmu_pgd_page(pgd) > high_memory); |
pgd | 89 | arch/sparc/mm/srmmu.c | int srmmu_pgd_present(pgd_t pgd) { return pgd_val(pgd) & SRMMU_ET_PTD; } |
pgd | 172 | arch/sparc/mm/srmmu.c | return mm->pgd + ((address >> SRMMU_PGDIR_SHIFT) & (SRMMU_PTRS_PER_PGD - 1)); |
pgd | 258 | arch/sparc/mm/srmmu.c | srmmu_pmd_alloc_kernel(pgd_t *pgd, unsigned long address) |
pgd | 263 | arch/sparc/mm/srmmu.c | if (srmmu_pgd_none(*pgd)) { |
pgd | 265 | arch/sparc/mm/srmmu.c | if (srmmu_pgd_none(*pgd)) { |
pgd | 267 | arch/sparc/mm/srmmu.c | srmmu_pgd_set(pgd, page); |
pgd | 271 | arch/sparc/mm/srmmu.c | srmmu_pgd_set(pgd, (pmd_t *) SRMMU_ET_PTDBAD); |
pgd | 276 | arch/sparc/mm/srmmu.c | if (srmmu_pgd_bad(*pgd)) { |
pgd | 277 | arch/sparc/mm/srmmu.c | printk("Bad pgd in pmd_alloc_kernel: %08lx\n", pgd_val(*pgd)); |
pgd | 278 | arch/sparc/mm/srmmu.c | srmmu_pgd_set(pgd, (pmd_t *) SRMMU_ET_PTDBAD); |
pgd | 281 | arch/sparc/mm/srmmu.c | return (pmd_t *) srmmu_pgd_page(*pgd) + address; |
pgd | 327 | arch/sparc/mm/srmmu.c | srmmu_pmd_alloc(pgd_t * pgd, unsigned long address) |
pgd | 332 | arch/sparc/mm/srmmu.c | if (srmmu_pgd_none(*pgd)) { |
pgd | 334 | arch/sparc/mm/srmmu.c | if (srmmu_pgd_none(*pgd)) { |
pgd | 336 | arch/sparc/mm/srmmu.c | srmmu_pgd_set(pgd, page); |
pgd | 339 | arch/sparc/mm/srmmu.c | srmmu_pgd_set(pgd, (pmd_t *) SRMMU_ET_PTDBAD); |
pgd | 344 | arch/sparc/mm/srmmu.c | if (srmmu_pgd_bad(*pgd)) { |
pgd | 345 | arch/sparc/mm/srmmu.c | printk("Bad pgd in pmd_alloc_kernel: %08lx\n", pgd_val(*pgd)); |
pgd | 346 | arch/sparc/mm/srmmu.c | srmmu_pgd_set(pgd, (pmd_t *) SRMMU_ET_PTDBAD); |
pgd | 349 | arch/sparc/mm/srmmu.c | return (pmd_t *) srmmu_pgd_page(*pgd) + address; |
pgd | 353 | arch/sparc/mm/srmmu.c | srmmu_pgd_free(pgd_t *pgd) |
pgd | 355 | arch/sparc/mm/srmmu.c | free_page((unsigned long) pgd); |
pgd | 87 | arch/sparc/mm/sun4c.c | int sun4c_pgd_none(pgd_t pgd) { return 0; } |
pgd | 88 | arch/sparc/mm/sun4c.c | int sun4c_pgd_bad(pgd_t pgd) { return 0; } |
pgd | 89 | arch/sparc/mm/sun4c.c | int sun4c_pgd_present(pgd_t pgd) { return 1; } |
pgd | 144 | arch/sparc/mm/sun4c.c | return mm->pgd + (address >> SUN4C_PGDIR_SHIFT); |
pgd | 414 | arch/sparc/mm/sun4c.c | pmd_t *sun4c_pmd_alloc_kernel(pgd_t *pgd, unsigned long address) |
pgd | 416 | arch/sparc/mm/sun4c.c | return (pmd_t *) pgd; |
pgd | 456 | arch/sparc/mm/sun4c.c | pmd_t *sun4c_pmd_alloc(pgd_t * pgd, unsigned long address) |
pgd | 458 | arch/sparc/mm/sun4c.c | return (pmd_t *) pgd; |
pgd | 461 | arch/sparc/mm/sun4c.c | void sun4c_pgd_free(pgd_t *pgd) |
pgd | 463 | arch/sparc/mm/sun4c.c | free_page((unsigned long) pgd); |
pgd | 582 | fs/proc/array.c | static inline void statm_pmd_range(pgd_t * pgd, unsigned long address, unsigned long size, |
pgd | 588 | fs/proc/array.c | if (pgd_none(*pgd)) |
pgd | 590 | fs/proc/array.c | if (pgd_bad(*pgd)) { |
pgd | 591 | fs/proc/array.c | printk("statm_pmd_range: bad pgd (%08lx)\n", pgd_val(*pgd)); |
pgd | 592 | fs/proc/array.c | pgd_clear(pgd); |
pgd | 595 | fs/proc/array.c | pmd = pmd_offset(pgd, address); |
pgd | 607 | fs/proc/array.c | static void statm_pgd_range(pgd_t * pgd, unsigned long address, unsigned long end, |
pgd | 611 | fs/proc/array.c | statm_pmd_range(pgd, address, end - address, pages, shared, dirty, total); |
pgd | 613 | fs/proc/array.c | pgd++; |
pgd | 628 | fs/proc/array.c | pgd_t *pgd = pgd_offset(tsk->mm, vma->vm_start); |
pgd | 631 | fs/proc/array.c | statm_pgd_range(pgd, vma->vm_start, vma->vm_end, &pages, &shared, &dirty, &total); |
pgd | 35 | fs/umsdos/check.c | struct pgd * pg_dir; |
pgd | 47 | fs/umsdos/check.c | printk ("|%d:%08lx| ",i, page_dir->pgd); |
pgd | 19 | include/asm-alpha/page.h | typedef struct { unsigned long pgd; } pgd_t; |
pgd | 24 | include/asm-alpha/page.h | #define pgd_val(x) ((x).pgd) |
pgd | 232 | include/asm-alpha/pgtable.h | extern inline unsigned long pgd_page(pgd_t pgd) |
pgd | 233 | include/asm-alpha/pgtable.h | { return PAGE_OFFSET + ((pgd_val(pgd) & _PFN_MASK) >> (32-PAGE_SHIFT)); } |
pgd | 256 | include/asm-alpha/pgtable.h | extern inline int pgd_none(pgd_t pgd) { return !pgd_val(pgd); } |
pgd | 257 | include/asm-alpha/pgtable.h | extern inline int pgd_bad(pgd_t pgd) { return (pgd_val(pgd) & ~_PFN_MASK) != _PAGE_TABLE || pgd_page(pgd) > high_memory; } |
pgd | 258 | include/asm-alpha/pgtable.h | extern inline int pgd_present(pgd_t pgd) { return pgd_val(pgd) & _PAGE_VALID; } |
pgd | 312 | include/asm-alpha/pgtable.h | return mm->pgd + ((address >> PGDIR_SHIFT) & (PTRS_PER_PAGE - 1)); |
pgd | 368 | include/asm-alpha/pgtable.h | extern inline pmd_t * pmd_alloc_kernel(pgd_t *pgd, unsigned long address) |
pgd | 371 | include/asm-alpha/pgtable.h | if (pgd_none(*pgd)) { |
pgd | 373 | include/asm-alpha/pgtable.h | if (pgd_none(*pgd)) { |
pgd | 375 | include/asm-alpha/pgtable.h | pgd_set(pgd, page); |
pgd | 379 | include/asm-alpha/pgtable.h | pgd_set(pgd, BAD_PAGETABLE); |
pgd | 384 | include/asm-alpha/pgtable.h | if (pgd_bad(*pgd)) { |
pgd | 385 | include/asm-alpha/pgtable.h | printk("Bad pgd in pmd_alloc: %08lx\n", pgd_val(*pgd)); |
pgd | 386 | include/asm-alpha/pgtable.h | pgd_set(pgd, BAD_PAGETABLE); |
pgd | 389 | include/asm-alpha/pgtable.h | return (pmd_t *) pgd_page(*pgd) + address; |
pgd | 425 | include/asm-alpha/pgtable.h | extern inline pmd_t * pmd_alloc(pgd_t *pgd, unsigned long address) |
pgd | 428 | include/asm-alpha/pgtable.h | if (pgd_none(*pgd)) { |
pgd | 430 | include/asm-alpha/pgtable.h | if (pgd_none(*pgd)) { |
pgd | 432 | include/asm-alpha/pgtable.h | pgd_set(pgd, page); |
pgd | 435 | include/asm-alpha/pgtable.h | pgd_set(pgd, BAD_PAGETABLE); |
pgd | 440 | include/asm-alpha/pgtable.h | if (pgd_bad(*pgd)) { |
pgd | 441 | include/asm-alpha/pgtable.h | printk("Bad pgd in pmd_alloc: %08lx\n", pgd_val(*pgd)); |
pgd | 442 | include/asm-alpha/pgtable.h | pgd_set(pgd, BAD_PAGETABLE); |
pgd | 445 | include/asm-alpha/pgtable.h | return (pmd_t *) pgd_page(*pgd) + address; |
pgd | 448 | include/asm-alpha/pgtable.h | extern inline void pgd_free(pgd_t * pgd) |
pgd | 450 | include/asm-alpha/pgtable.h | free_page((unsigned long) pgd); |
pgd | 19 | include/asm-i386/page.h | typedef struct { unsigned long pgd; } pgd_t; |
pgd | 24 | include/asm-i386/page.h | #define pgd_val(x) ((x).pgd) |
pgd | 263 | include/asm-i386/pgtable.h | extern inline int pgd_none(pgd_t pgd) { return 0; } |
pgd | 264 | include/asm-i386/pgtable.h | extern inline int pgd_bad(pgd_t pgd) { return 0; } |
pgd | 265 | include/asm-i386/pgtable.h | extern inline int pgd_present(pgd_t pgd) { return 1; } |
pgd | 312 | include/asm-i386/pgtable.h | return mm->pgd + (address >> PGDIR_SHIFT); |
pgd | 371 | include/asm-i386/pgtable.h | extern inline pmd_t * pmd_alloc_kernel(pgd_t * pgd, unsigned long address) |
pgd | 373 | include/asm-i386/pgtable.h | return (pmd_t *) pgd; |
pgd | 413 | include/asm-i386/pgtable.h | extern inline pmd_t * pmd_alloc(pgd_t * pgd, unsigned long address) |
pgd | 415 | include/asm-i386/pgtable.h | return (pmd_t *) pgd; |
pgd | 418 | include/asm-i386/pgtable.h | extern inline void pgd_free(pgd_t * pgd) |
pgd | 420 | include/asm-i386/pgtable.h | free_page((unsigned long) pgd); |
pgd | 21 | include/asm-mips/page.h | typedef struct { unsigned long pgd; } pgd_t; |
pgd | 26 | include/asm-mips/page.h | #define pgd_val(x) ((x).pgd) |
pgd | 255 | include/asm-mips/pgtable.h | extern inline int pgd_none(pgd_t pgd) { return 0; } |
pgd | 256 | include/asm-mips/pgtable.h | extern inline int pgd_bad(pgd_t pgd) { return 0; } |
pgd | 257 | include/asm-mips/pgtable.h | extern inline int pgd_present(pgd_t pgd) { return 1; } |
pgd | 346 | include/asm-mips/pgtable.h | return mm->pgd + (address >> PGDIR_SHIFT); |
pgd | 414 | include/asm-mips/pgtable.h | extern inline pmd_t * pmd_alloc_kernel(pgd_t * pgd, unsigned long address) |
pgd | 416 | include/asm-mips/pgtable.h | return (pmd_t *) pgd; |
pgd | 464 | include/asm-mips/pgtable.h | extern inline pmd_t * pmd_alloc(pgd_t * pgd, unsigned long address) |
pgd | 466 | include/asm-mips/pgtable.h | return (pmd_t *) pgd; |
pgd | 469 | include/asm-mips/pgtable.h | extern inline void pgd_free(pgd_t * pgd) |
pgd | 471 | include/asm-mips/pgtable.h | unsigned long page = (unsigned long) pgd; |
pgd | 21 | include/asm-ppc/page.h | typedef struct { unsigned long pgd; } pgd_t; |
pgd | 26 | include/asm-ppc/page.h | #define pgd_val(x) ((x).pgd) |
pgd | 228 | include/asm-ppc/pgtable.h | extern inline int pgd_none(pgd_t pgd) { return 0; } |
pgd | 229 | include/asm-ppc/pgtable.h | extern inline int pgd_bad(pgd_t pgd) { return 0; } |
pgd | 230 | include/asm-ppc/pgtable.h | extern inline int pgd_present(pgd_t pgd) { return 1; } |
pgd | 290 | include/asm-ppc/pgtable.h | return mm->pgd + (address >> PGDIR_SHIFT); |
pgd | 420 | include/asm-ppc/pgtable.h | extern inline pmd_t * pmd_alloc_kernel(pgd_t * pgd, unsigned long address) |
pgd | 422 | include/asm-ppc/pgtable.h | return (pmd_t *) pgd; |
pgd | 461 | include/asm-ppc/pgtable.h | extern inline pmd_t * pmd_alloc(pgd_t * pgd, unsigned long address) |
pgd | 463 | include/asm-ppc/pgtable.h | return (pmd_t *) pgd; |
pgd | 466 | include/asm-ppc/pgtable.h | extern inline void pgd_free(pgd_t * pgd) |
pgd | 468 | include/asm-ppc/pgtable.h | free_page((unsigned long) pgd); |
pgd | 52 | include/asm-sparc/page.h | typedef struct { unsigned long pgd; } pgd_t; |
pgd | 57 | include/asm-sparc/page.h | #define pgd_val(x) ((x).pgd) |
pgd | 135 | include/linux/sched.h | pgd_t * pgd; |
pgd | 117 | kernel/fork.c | SET_PAGE_DIR(tsk, current->mm->pgd); |
pgd | 236 | mm/filemap.c | static inline int filemap_sync_pmd_range(pgd_t * pgd, |
pgd | 244 | mm/filemap.c | if (pgd_none(*pgd)) |
pgd | 246 | mm/filemap.c | if (pgd_bad(*pgd)) { |
pgd | 247 | mm/filemap.c | printk("filemap_sync_pmd_range: bad pgd (%08lx)\n", pgd_val(*pgd)); |
pgd | 248 | mm/filemap.c | pgd_clear(pgd); |
pgd | 251 | mm/filemap.c | pmd = pmd_offset(pgd, address); |
pgd | 142 | mm/memory.c | page_dir = tsk->mm->pgd; |
pgd | 163 | mm/memory.c | page_dir = tsk->mm->pgd; |
pgd | 170 | mm/memory.c | tsk->mm->pgd = swapper_pg_dir; /* or else... */ |
pgd | 188 | mm/memory.c | tsk->mm->pgd = new_pg; |
pgd | 541 | mm/memory.c | pgd_t * pgd; |
pgd | 549 | mm/memory.c | pgd = pgd_offset(tsk->mm,address); |
pgd | 550 | mm/memory.c | pmd = pmd_alloc(pgd, address); |
pgd | 1030 | mm/memory.c | pgd_t *pgd; |
pgd | 1034 | mm/memory.c | pgd = pgd_offset(tsk->mm, address); |
pgd | 1035 | mm/memory.c | pmd = pmd_alloc(pgd, address); |
pgd | 1176 | mm/memory.c | pgd_t *pgd; |
pgd | 1180 | mm/memory.c | pgd = pgd_offset(vma->vm_mm, address); |
pgd | 1181 | mm/memory.c | pmd = pmd_alloc(pgd, address); |
pgd | 47 | mm/mprotect.c | static inline void change_pmd_range(pgd_t * pgd, unsigned long address, |
pgd | 53 | mm/mprotect.c | if (pgd_none(*pgd)) |
pgd | 55 | mm/mprotect.c | if (pgd_bad(*pgd)) { |
pgd | 56 | mm/mprotect.c | printk("change_pmd_range: bad pgd (%08lx)\n", pgd_val(*pgd)); |
pgd | 57 | mm/mprotect.c | pgd_clear(pgd); |
pgd | 60 | mm/mprotect.c | pmd = pmd_offset(pgd, address); |
pgd | 1010 | mm/swap.c | if (!p->mm || pgd_inuse(p->mm->pgd)) |
pgd | 1014 | mm/swap.c | pgd_t * pgd = pgd_offset(p->mm, vma->vm_start); |
pgd | 1015 | mm/swap.c | if (unuse_vma(vma, pgd, vma->vm_start, vma->vm_end, type, page)) |