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 | 87 | arch/ppc/mm/fault.c | printk("beforefault: pgd[0] = %x[%x]\n",current->mm->pgd,*(current->mm->pgd)); |
pgd | 91 | arch/ppc/mm/fault.c | printk("handled: pgd[0] = %x[%x]\n",current->mm->pgd,*(current->mm->pgd)); |
pgd | 135 | arch/ppc/mm/fault.c | current->mm, current->mm->pgd, |
pgd | 136 | arch/ppc/mm/fault.c | current->mm->pgd+((regs->dar&PAGE_MASK) >> PGDIR_SHIFT)); |
pgd | 142 | arch/ppc/mm/fault.c | current->mm->pgd,dir,*dir,pmd,*pmd,pte); |
pgd | 725 | arch/ppc/mm/init.c | pgd_t *pgd; |
pgd | 730 | arch/ppc/mm/init.c | pgd = pgd_offset(current->mm, 0); |
pgd | 731 | arch/ppc/mm/init.c | if (!pgd) return; /* No map? */ |
pgd | 735 | arch/ppc/mm/init.c | if (*(long *)pgd) |
pgd | 738 | arch/ppc/mm/init.c | _pte = pte_offset(pmd_offset(pgd,0),0); |
pgd | 759 | arch/ppc/mm/init.c | pgd++; |
pgd | 191 | arch/sparc/mm/fault.c | (unsigned long) current->mm->pgd); |
pgd | 118 | arch/sparc/mm/srmmu.c | static unsigned long srmmu_pgd_page(pgd_t pgd) |
pgd | 119 | arch/sparc/mm/srmmu.c | { return PAGE_OFFSET + ((pgd_val(pgd) & SRMMU_PTD_PMASK) << 4); } |
pgd | 158 | arch/sparc/mm/srmmu.c | static int srmmu_pgd_none(pgd_t pgd) { return !pgd_val(pgd); } |
pgd | 159 | arch/sparc/mm/srmmu.c | static int srmmu_pgd_bad(pgd_t pgd) |
pgd | 160 | arch/sparc/mm/srmmu.c | { return (pgd_val(pgd) & SRMMU_ET_MASK) != SRMMU_ET_PTD; } |
pgd | 162 | arch/sparc/mm/srmmu.c | static int srmmu_pgd_present(pgd_t pgd) |
pgd | 163 | arch/sparc/mm/srmmu.c | { return ((pgd_val(pgd) & SRMMU_ET_MASK) == SRMMU_ET_PTD); } |
pgd | 209 | arch/sparc/mm/srmmu.c | return mm->pgd + ((address >> SRMMU_PGDIR_SHIFT) & (SRMMU_PTRS_PER_PGD - 1)); |
pgd | 272 | arch/sparc/mm/srmmu.c | static pmd_t *srmmu_pmd_alloc_kernel(pgd_t *pgd, unsigned long address) |
pgd | 275 | arch/sparc/mm/srmmu.c | if(srmmu_pgd_none(*pgd)) { |
pgd | 277 | arch/sparc/mm/srmmu.c | if(srmmu_pgd_none(*pgd)) { |
pgd | 279 | arch/sparc/mm/srmmu.c | srmmu_pgd_set(pgd, page); |
pgd | 283 | arch/sparc/mm/srmmu.c | srmmu_pgd_set(pgd, (pmd_t *) BAD_PAGETABLE); |
pgd | 288 | arch/sparc/mm/srmmu.c | if(srmmu_pgd_bad(*pgd)) { |
pgd | 289 | arch/sparc/mm/srmmu.c | printk("Bad pgd in pmd_alloc: %08lx\n", pgd_val(*pgd)); |
pgd | 290 | arch/sparc/mm/srmmu.c | srmmu_pgd_set(pgd, (pmd_t *) BAD_PAGETABLE); |
pgd | 293 | arch/sparc/mm/srmmu.c | return (pmd_t *) pgd_page(*pgd) + address; |
pgd | 330 | arch/sparc/mm/srmmu.c | static pmd_t *srmmu_pmd_alloc(pgd_t * pgd, unsigned long address) |
pgd | 333 | arch/sparc/mm/srmmu.c | if(srmmu_pgd_none(*pgd)) { |
pgd | 335 | arch/sparc/mm/srmmu.c | if(srmmu_pgd_none(*pgd)) { |
pgd | 337 | arch/sparc/mm/srmmu.c | srmmu_pgd_set(pgd, page); |
pgd | 340 | arch/sparc/mm/srmmu.c | srmmu_pgd_set(pgd, (pmd_t *) BAD_PAGETABLE); |
pgd | 345 | arch/sparc/mm/srmmu.c | if(srmmu_pgd_bad(*pgd)) { |
pgd | 346 | arch/sparc/mm/srmmu.c | printk("Bad pgd in pmd_alloc: %08lx\n", pgd_val(*pgd)); |
pgd | 347 | arch/sparc/mm/srmmu.c | srmmu_pgd_set(pgd, (pmd_t *) BAD_PAGETABLE); |
pgd | 350 | arch/sparc/mm/srmmu.c | return (pmd_t *) srmmu_pgd_page(*pgd) + address; |
pgd | 353 | arch/sparc/mm/srmmu.c | static void srmmu_pgd_free(pgd_t *pgd) |
pgd | 355 | arch/sparc/mm/srmmu.c | free_page((unsigned long) pgd); |
pgd | 705 | arch/sparc/mm/srmmu.c | srmmu_ctxd_set(&srmmu_context_table[tsk->mm->context], tsk->mm->pgd); |
pgd | 1149 | arch/sparc/mm/srmmu.c | srmmu_ctxd_set(&srmmu_context_table[current->mm->context], current->mm->pgd); |
pgd | 1136 | arch/sparc/mm/sun4c.c | static int sun4c_pgd_none(pgd_t pgd) { return 0; } |
pgd | 1137 | arch/sparc/mm/sun4c.c | static int sun4c_pgd_bad(pgd_t pgd) { return 0; } |
pgd | 1138 | arch/sparc/mm/sun4c.c | static int sun4c_pgd_present(pgd_t pgd) { return 1; } |
pgd | 1189 | arch/sparc/mm/sun4c.c | return mm->pgd + (address >> SUN4C_PGDIR_SHIFT); |
pgd | 1252 | arch/sparc/mm/sun4c.c | static pmd_t *sun4c_pmd_alloc_kernel(pgd_t *pgd, unsigned long address) |
pgd | 1254 | arch/sparc/mm/sun4c.c | return (pmd_t *) pgd; |
pgd | 1294 | arch/sparc/mm/sun4c.c | static pmd_t *sun4c_pmd_alloc(pgd_t * pgd, unsigned long address) |
pgd | 1296 | arch/sparc/mm/sun4c.c | return (pmd_t *) pgd; |
pgd | 1299 | arch/sparc/mm/sun4c.c | static void sun4c_pgd_free(pgd_t *pgd) |
pgd | 1301 | arch/sparc/mm/sun4c.c | free_page((unsigned long) pgd); |
pgd | 769 | fs/proc/array.c | static inline void statm_pmd_range(pgd_t * pgd, unsigned long address, unsigned long size, |
pgd | 775 | fs/proc/array.c | if (pgd_none(*pgd)) |
pgd | 777 | fs/proc/array.c | if (pgd_bad(*pgd)) { |
pgd | 778 | fs/proc/array.c | printk("statm_pmd_range: bad pgd (%08lx)\n", pgd_val(*pgd)); |
pgd | 779 | fs/proc/array.c | pgd_clear(pgd); |
pgd | 782 | fs/proc/array.c | pmd = pmd_offset(pgd, address); |
pgd | 794 | fs/proc/array.c | static void statm_pgd_range(pgd_t * pgd, unsigned long address, unsigned long end, |
pgd | 798 | fs/proc/array.c | statm_pmd_range(pgd, address, end - address, pages, shared, dirty, total); |
pgd | 800 | fs/proc/array.c | pgd++; |
pgd | 815 | fs/proc/array.c | pgd_t *pgd = pgd_offset(tsk->mm, vma->vm_start); |
pgd | 818 | fs/proc/array.c | statm_pgd_range(pgd, vma->vm_start, vma->vm_end, &pages, &shared, &dirty, &total); |
pgd | 34 | fs/umsdos/check.c | struct pgd * pg_dir; |
pgd | 46 | 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 | 236 | include/asm-alpha/pgtable.h | extern inline unsigned long pgd_page(pgd_t pgd) |
pgd | 237 | include/asm-alpha/pgtable.h | { return PAGE_OFFSET + ((pgd_val(pgd) & _PFN_MASK) >> (32-PAGE_SHIFT)); } |
pgd | 248 | include/asm-alpha/pgtable.h | extern inline int pgd_none(pgd_t pgd) { return !pgd_val(pgd); } |
pgd | 249 | 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 | 250 | include/asm-alpha/pgtable.h | extern inline int pgd_present(pgd_t pgd) { return pgd_val(pgd) & _PAGE_VALID; } |
pgd | 300 | include/asm-alpha/pgtable.h | return mm->pgd + ((address >> PGDIR_SHIFT) & (PTRS_PER_PAGE - 1)); |
pgd | 353 | include/asm-alpha/pgtable.h | extern inline pmd_t * pmd_alloc_kernel(pgd_t *pgd, unsigned long address) |
pgd | 356 | include/asm-alpha/pgtable.h | if (pgd_none(*pgd)) { |
pgd | 358 | include/asm-alpha/pgtable.h | if (pgd_none(*pgd)) { |
pgd | 360 | include/asm-alpha/pgtable.h | pgd_set(pgd, page); |
pgd | 363 | include/asm-alpha/pgtable.h | pgd_set(pgd, BAD_PAGETABLE); |
pgd | 368 | include/asm-alpha/pgtable.h | if (pgd_bad(*pgd)) { |
pgd | 369 | include/asm-alpha/pgtable.h | printk("Bad pgd in pmd_alloc: %08lx\n", pgd_val(*pgd)); |
pgd | 370 | include/asm-alpha/pgtable.h | pgd_set(pgd, BAD_PAGETABLE); |
pgd | 373 | include/asm-alpha/pgtable.h | return (pmd_t *) pgd_page(*pgd) + address; |
pgd | 409 | include/asm-alpha/pgtable.h | extern inline pmd_t * pmd_alloc(pgd_t *pgd, unsigned long address) |
pgd | 412 | include/asm-alpha/pgtable.h | if (pgd_none(*pgd)) { |
pgd | 414 | include/asm-alpha/pgtable.h | if (pgd_none(*pgd)) { |
pgd | 416 | include/asm-alpha/pgtable.h | pgd_set(pgd, page); |
pgd | 419 | include/asm-alpha/pgtable.h | pgd_set(pgd, BAD_PAGETABLE); |
pgd | 424 | include/asm-alpha/pgtable.h | if (pgd_bad(*pgd)) { |
pgd | 425 | include/asm-alpha/pgtable.h | printk("Bad pgd in pmd_alloc: %08lx\n", pgd_val(*pgd)); |
pgd | 426 | include/asm-alpha/pgtable.h | pgd_set(pgd, BAD_PAGETABLE); |
pgd | 429 | include/asm-alpha/pgtable.h | return (pmd_t *) pgd_page(*pgd) + address; |
pgd | 432 | include/asm-alpha/pgtable.h | extern inline void pgd_free(pgd_t * pgd) |
pgd | 434 | 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 | 303 | include/asm-i386/pgtable.h | extern inline int pgd_none(pgd_t pgd) { return 0; } |
pgd | 304 | include/asm-i386/pgtable.h | extern inline int pgd_bad(pgd_t pgd) { return 0; } |
pgd | 305 | include/asm-i386/pgtable.h | extern inline int pgd_present(pgd_t pgd) { return 1; } |
pgd | 348 | include/asm-i386/pgtable.h | return mm->pgd + (address >> PGDIR_SHIFT); |
pgd | 405 | include/asm-i386/pgtable.h | extern inline pmd_t * pmd_alloc_kernel(pgd_t * pgd, unsigned long address) |
pgd | 407 | include/asm-i386/pgtable.h | return (pmd_t *) pgd; |
pgd | 447 | include/asm-i386/pgtable.h | extern inline pmd_t * pmd_alloc(pgd_t * pgd, unsigned long address) |
pgd | 449 | include/asm-i386/pgtable.h | return (pmd_t *) pgd; |
pgd | 452 | include/asm-i386/pgtable.h | extern inline void pgd_free(pgd_t * pgd) |
pgd | 454 | 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 | 55 | include/asm-sparc/page.h | typedef struct { unsigned long pgd; } pgd_t; |
pgd | 63 | include/asm-sparc/page.h | #define pgd_val(x) ((x).pgd) |
pgd | 144 | include/linux/sched.h | pgd_t * pgd; |
pgd | 118 | kernel/fork.c | SET_PAGE_DIR(tsk, current->mm->pgd); |
pgd | 670 | mm/filemap.c | static inline int filemap_sync_pmd_range(pgd_t * pgd, |
pgd | 678 | mm/filemap.c | if (pgd_none(*pgd)) |
pgd | 680 | mm/filemap.c | if (pgd_bad(*pgd)) { |
pgd | 681 | mm/filemap.c | printk("filemap_sync_pmd_range: bad pgd (%08lx)\n", pgd_val(*pgd)); |
pgd | 682 | mm/filemap.c | pgd_clear(pgd); |
pgd | 685 | mm/filemap.c | pmd = pmd_offset(pgd, address); |
pgd | 133 | mm/memory.c | page_dir = tsk->mm->pgd; |
pgd | 154 | mm/memory.c | page_dir = tsk->mm->pgd; |
pgd | 161 | mm/memory.c | tsk->mm->pgd = swapper_pg_dir; /* or else... */ |
pgd | 178 | mm/memory.c | tsk->mm->pgd = new_pg; |
pgd | 537 | mm/memory.c | pgd_t * pgd; |
pgd | 545 | mm/memory.c | pgd = pgd_offset(tsk->mm,address); |
pgd | 546 | mm/memory.c | pmd = pmd_alloc(pgd, address); |
pgd | 838 | mm/memory.c | pgd_t *pgd; |
pgd | 842 | mm/memory.c | pgd = pgd_offset(tsk->mm, address); |
pgd | 843 | mm/memory.c | pmd = pmd_alloc(pgd, address); |
pgd | 971 | mm/memory.c | pgd_t *pgd; |
pgd | 975 | mm/memory.c | pgd = pgd_offset(vma->vm_mm, address); |
pgd | 976 | 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 | 24 | mm/mremap.c | pgd_t * pgd; |
pgd | 28 | mm/mremap.c | pgd = pgd_offset(mm, addr); |
pgd | 29 | mm/mremap.c | if (pgd_none(*pgd)) |
pgd | 31 | mm/mremap.c | if (pgd_bad(*pgd)) { |
pgd | 32 | mm/mremap.c | printk("move_one_page: bad source pgd (%08lx)\n", pgd_val(*pgd)); |
pgd | 33 | mm/mremap.c | pgd_clear(pgd); |
pgd | 37 | mm/mremap.c | pmd = pmd_offset(pgd, addr); |
pgd | 277 | mm/swapfile.c | pgd_t * pgd = pgd_offset(mm, vma->vm_start); |
pgd | 278 | mm/swapfile.c | if (unuse_vma(vma, pgd, vma->vm_start, vma->vm_end, type, page)) |