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 | 38 | arch/ppc/mm/fault.c | pmd_t *pmd; |
pmd | 67 | arch/ppc/mm/fault.c | pmd = pmd_offset(dir, regs->dar & PAGE_MASK); |
pmd | 68 | arch/ppc/mm/fault.c | if (pmd && pmd_present(*pmd)) |
pmd | 70 | arch/ppc/mm/fault.c | pte = pte_offset(pmd, regs->dar & PAGE_MASK); |
pmd | 100 | arch/ppc/mm/fault.c | pmd_t *pmd; |
pmd | 126 | arch/ppc/mm/fault.c | pmd = pmd_offset(dir, regs->dar & PAGE_MASK); |
pmd | 127 | arch/ppc/mm/fault.c | if (pmd && pmd_present(*pmd)) |
pmd | 129 | arch/ppc/mm/fault.c | pte = pte_offset(pmd, regs->dar & PAGE_MASK); |
pmd | 142 | arch/ppc/mm/fault.c | current->mm->pgd,dir,*dir,pmd,*pmd,pte); |
pmd | 307 | arch/ppc/mm/fault.c | pmd_t *pmd; |
pmd | 312 | arch/ppc/mm/fault.c | pmd = pmd_offset(dir, address & PAGE_MASK); |
pmd | 313 | arch/ppc/mm/fault.c | if (pmd && pmd_present(*pmd)) |
pmd | 315 | arch/ppc/mm/fault.c | pte = pte_offset(pmd, address & PAGE_MASK); |
pmd | 121 | arch/sparc/mm/srmmu.c | static unsigned long srmmu_pmd_page(pmd_t pmd) |
pmd | 122 | arch/sparc/mm/srmmu.c | { return PAGE_OFFSET + ((pmd_val(pmd) & SRMMU_PTD_PMASK) << 4); } |
pmd | 141 | arch/sparc/mm/srmmu.c | static int srmmu_pmd_none(pmd_t pmd) { return !pmd_val(pmd); } |
pmd | 142 | arch/sparc/mm/srmmu.c | static int srmmu_pmd_bad(pmd_t pmd) |
pmd | 143 | arch/sparc/mm/srmmu.c | { return (pmd_val(pmd) & SRMMU_ET_MASK) != SRMMU_ET_PTD; } |
pmd | 145 | arch/sparc/mm/srmmu.c | static int srmmu_pmd_present(pmd_t pmd) |
pmd | 146 | arch/sparc/mm/srmmu.c | { return ((pmd_val(pmd) & SRMMU_ET_MASK) == SRMMU_ET_PTD); } |
pmd | 242 | arch/sparc/mm/srmmu.c | static pte_t *srmmu_pte_alloc_kernel(pmd_t *pmd, unsigned long address) |
pmd | 245 | arch/sparc/mm/srmmu.c | if(srmmu_pmd_none(*pmd)) { |
pmd | 247 | arch/sparc/mm/srmmu.c | if(srmmu_pmd_none(*pmd)) { |
pmd | 249 | arch/sparc/mm/srmmu.c | srmmu_pmd_set(pmd, page); |
pmd | 253 | arch/sparc/mm/srmmu.c | srmmu_pmd_set(pmd, (pte_t *) BAD_PAGETABLE); |
pmd | 258 | arch/sparc/mm/srmmu.c | if(srmmu_pmd_bad(*pmd)) { |
pmd | 259 | arch/sparc/mm/srmmu.c | printk("Bad pmd in pte_alloc: %08lx\n", pmd_val(*pmd)); |
pmd | 260 | arch/sparc/mm/srmmu.c | srmmu_pmd_set(pmd, (pte_t *) BAD_PAGETABLE); |
pmd | 263 | arch/sparc/mm/srmmu.c | return (pte_t *) srmmu_pmd_page(*pmd) + address; |
pmd | 266 | arch/sparc/mm/srmmu.c | static void srmmu_pmd_free_kernel(pmd_t *pmd) |
pmd | 268 | arch/sparc/mm/srmmu.c | mem_map[MAP_NR(pmd)].reserved = 0; |
pmd | 269 | arch/sparc/mm/srmmu.c | free_page((unsigned long) pmd); |
pmd | 301 | arch/sparc/mm/srmmu.c | static pte_t *srmmu_pte_alloc(pmd_t * pmd, unsigned long address) |
pmd | 304 | arch/sparc/mm/srmmu.c | if(srmmu_pmd_none(*pmd)) { |
pmd | 306 | arch/sparc/mm/srmmu.c | if(srmmu_pmd_none(*pmd)) { |
pmd | 308 | arch/sparc/mm/srmmu.c | srmmu_pmd_set(pmd, page); |
pmd | 311 | arch/sparc/mm/srmmu.c | srmmu_pmd_set(pmd, (pte_t *) BAD_PAGETABLE); |
pmd | 316 | arch/sparc/mm/srmmu.c | if(srmmu_pmd_bad(*pmd)) { |
pmd | 317 | arch/sparc/mm/srmmu.c | printk("Bad pmd in pte_alloc: %08lx\n", pmd_val(*pmd)); |
pmd | 318 | arch/sparc/mm/srmmu.c | srmmu_pmd_set(pmd, (pte_t *) BAD_PAGETABLE); |
pmd | 321 | arch/sparc/mm/srmmu.c | return (pte_t *) pmd_page(*pmd) + address; |
pmd | 325 | arch/sparc/mm/srmmu.c | static void srmmu_pmd_free(pmd_t * pmd) |
pmd | 327 | arch/sparc/mm/srmmu.c | free_page((unsigned long) pmd); |
pmd | 1125 | arch/sparc/mm/sun4c.c | static int sun4c_pmd_none(pmd_t pmd) { return !pmd_val(pmd); } |
pmd | 1126 | arch/sparc/mm/sun4c.c | static int sun4c_pmd_bad(pmd_t pmd) |
pmd | 1128 | arch/sparc/mm/sun4c.c | return (pmd_val(pmd) & ~PAGE_MASK) != PGD_TABLE || pmd_val(pmd) > high_memory; |
pmd | 1131 | arch/sparc/mm/sun4c.c | static int sun4c_pmd_present(pmd_t pmd) { return pmd_val(pmd) & PGD_PRESENT; } |
pmd | 1181 | arch/sparc/mm/sun4c.c | static unsigned long sun4c_pmd_page(pmd_t pmd) |
pmd | 1183 | arch/sparc/mm/sun4c.c | return (pmd_val(pmd) & PAGE_MASK); |
pmd | 1219 | arch/sparc/mm/sun4c.c | static pte_t *sun4c_pte_alloc_kernel(pmd_t *pmd, unsigned long address) |
pmd | 1222 | arch/sparc/mm/sun4c.c | if (sun4c_pmd_none(*pmd)) { |
pmd | 1224 | arch/sparc/mm/sun4c.c | if (sun4c_pmd_none(*pmd)) { |
pmd | 1226 | arch/sparc/mm/sun4c.c | pmd_val(*pmd) = PGD_TABLE | (unsigned long) page; |
pmd | 1230 | arch/sparc/mm/sun4c.c | pmd_val(*pmd) = PGD_TABLE | (unsigned long) BAD_PAGETABLE; |
pmd | 1235 | arch/sparc/mm/sun4c.c | if (sun4c_pmd_bad(*pmd)) { |
pmd | 1236 | arch/sparc/mm/sun4c.c | printk("Bad pmd in pte_alloc_kernel: %08lx\n", pmd_val(*pmd)); |
pmd | 1237 | arch/sparc/mm/sun4c.c | pmd_val(*pmd) = PGD_TABLE | (unsigned long) BAD_PAGETABLE; |
pmd | 1240 | arch/sparc/mm/sun4c.c | return (pte_t *) sun4c_pmd_page(*pmd) + address; |
pmd | 1247 | arch/sparc/mm/sun4c.c | static void sun4c_pmd_free_kernel(pmd_t *pmd) |
pmd | 1249 | arch/sparc/mm/sun4c.c | pmd_val(*pmd) = 0; |
pmd | 1262 | arch/sparc/mm/sun4c.c | static pte_t *sun4c_pte_alloc(pmd_t * pmd, unsigned long address) |
pmd | 1265 | arch/sparc/mm/sun4c.c | if (sun4c_pmd_none(*pmd)) { |
pmd | 1267 | arch/sparc/mm/sun4c.c | if (sun4c_pmd_none(*pmd)) { |
pmd | 1269 | arch/sparc/mm/sun4c.c | pmd_val(*pmd) = PGD_TABLE | (unsigned long) page; |
pmd | 1272 | arch/sparc/mm/sun4c.c | pmd_val(*pmd) = PGD_TABLE | (unsigned long) BAD_PAGETABLE; |
pmd | 1277 | arch/sparc/mm/sun4c.c | if (sun4c_pmd_bad(*pmd)) { |
pmd | 1278 | arch/sparc/mm/sun4c.c | printk("Bad pmd in pte_alloc: %08lx\n", pmd_val(*pmd)); |
pmd | 1279 | arch/sparc/mm/sun4c.c | pmd_val(*pmd) = PGD_TABLE | (unsigned long) BAD_PAGETABLE; |
pmd | 1282 | arch/sparc/mm/sun4c.c | return (pte_t *) sun4c_pmd_page(*pmd) + address; |
pmd | 1289 | arch/sparc/mm/sun4c.c | static void sun4c_pmd_free(pmd_t * pmd) |
pmd | 1291 | arch/sparc/mm/sun4c.c | pmd_val(*pmd) = 0; |
pmd | 728 | fs/proc/array.c | static inline void statm_pte_range(pmd_t * pmd, unsigned long address, unsigned long size, |
pmd | 734 | fs/proc/array.c | if (pmd_none(*pmd)) |
pmd | 736 | fs/proc/array.c | if (pmd_bad(*pmd)) { |
pmd | 737 | fs/proc/array.c | printk("statm_pte_range: bad pmd (%08lx)\n", pmd_val(*pmd)); |
pmd | 738 | fs/proc/array.c | pmd_clear(pmd); |
pmd | 741 | fs/proc/array.c | pte = pte_offset(pmd, address); |
pmd | 769 | fs/proc/array.c | pmd_t * pmd; |
pmd | 779 | fs/proc/array.c | pmd = pmd_offset(pgd, address); |
pmd | 785 | fs/proc/array.c | statm_pte_range(pmd, address, end - address, pages, shared, dirty, total); |
pmd | 787 | 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 | 240 | include/asm-alpha/pgtable.h | extern inline unsigned long pmd_page(pmd_t pmd) |
pmd | 241 | include/asm-alpha/pgtable.h | { return PAGE_OFFSET + ((pmd_val(pmd) & _PFN_MASK) >> (32-PAGE_SHIFT)); } |
pmd | 250 | include/asm-alpha/pgtable.h | extern inline int pmd_none(pmd_t pmd) { return !pmd_val(pmd); } |
pmd | 251 | 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 | 252 | include/asm-alpha/pgtable.h | extern inline int pmd_present(pmd_t pmd) { return pmd_val(pmd) & _PAGE_VALID; } |
pmd | 332 | include/asm-alpha/pgtable.h | extern inline pte_t * pte_alloc_kernel(pmd_t *pmd, unsigned long address) |
pmd | 335 | include/asm-alpha/pgtable.h | if (pmd_none(*pmd)) { |
pmd | 337 | include/asm-alpha/pgtable.h | if (pmd_none(*pmd)) { |
pmd | 339 | include/asm-alpha/pgtable.h | pmd_set(pmd, page); |
pmd | 342 | include/asm-alpha/pgtable.h | pmd_set(pmd, (pte_t *) BAD_PAGETABLE); |
pmd | 347 | include/asm-alpha/pgtable.h | if (pmd_bad(*pmd)) { |
pmd | 348 | include/asm-alpha/pgtable.h | printk("Bad pmd in pte_alloc: %08lx\n", pmd_val(*pmd)); |
pmd | 349 | include/asm-alpha/pgtable.h | pmd_set(pmd, (pte_t *) BAD_PAGETABLE); |
pmd | 352 | include/asm-alpha/pgtable.h | return (pte_t *) pmd_page(*pmd) + address; |
pmd | 355 | include/asm-alpha/pgtable.h | extern inline void pmd_free_kernel(pmd_t * pmd) |
pmd | 357 | include/asm-alpha/pgtable.h | free_page((unsigned long) pmd); |
pmd | 388 | include/asm-alpha/pgtable.h | extern inline pte_t * pte_alloc(pmd_t *pmd, unsigned long address) |
pmd | 391 | include/asm-alpha/pgtable.h | if (pmd_none(*pmd)) { |
pmd | 393 | include/asm-alpha/pgtable.h | if (pmd_none(*pmd)) { |
pmd | 395 | include/asm-alpha/pgtable.h | pmd_set(pmd, page); |
pmd | 398 | include/asm-alpha/pgtable.h | pmd_set(pmd, (pte_t *) BAD_PAGETABLE); |
pmd | 403 | include/asm-alpha/pgtable.h | if (pmd_bad(*pmd)) { |
pmd | 404 | include/asm-alpha/pgtable.h | printk("Bad pmd in pte_alloc: %08lx\n", pmd_val(*pmd)); |
pmd | 405 | include/asm-alpha/pgtable.h | pmd_set(pmd, (pte_t *) BAD_PAGETABLE); |
pmd | 408 | include/asm-alpha/pgtable.h | return (pte_t *) pmd_page(*pmd) + address; |
pmd | 411 | include/asm-alpha/pgtable.h | extern inline void pmd_free(pmd_t * pmd) |
pmd | 413 | 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 | 300 | include/asm-i386/pgtable.h | extern inline int pmd_none(pmd_t pmd) { return !pmd_val(pmd); } |
pmd | 301 | 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 | 302 | include/asm-i386/pgtable.h | extern inline int pmd_present(pmd_t pmd) { return pmd_val(pmd) & _PAGE_PRESENT; } |
pmd | 349 | include/asm-i386/pgtable.h | extern inline unsigned long pmd_page(pmd_t pmd) |
pmd | 350 | include/asm-i386/pgtable.h | { return pmd_val(pmd) & PAGE_MASK; } |
pmd | 380 | include/asm-i386/pgtable.h | extern inline pte_t * pte_alloc_kernel(pmd_t * pmd, unsigned long address) |
pmd | 383 | include/asm-i386/pgtable.h | if (pmd_none(*pmd)) { |
pmd | 385 | include/asm-i386/pgtable.h | if (pmd_none(*pmd)) { |
pmd | 387 | include/asm-i386/pgtable.h | pmd_val(*pmd) = _PAGE_TABLE | (unsigned long) page; |
pmd | 390 | include/asm-i386/pgtable.h | pmd_val(*pmd) = _PAGE_TABLE | (unsigned long) BAD_PAGETABLE; |
pmd | 395 | include/asm-i386/pgtable.h | if (pmd_bad(*pmd)) { |
pmd | 396 | include/asm-i386/pgtable.h | printk("Bad pmd in pte_alloc: %08lx\n", pmd_val(*pmd)); |
pmd | 397 | include/asm-i386/pgtable.h | pmd_val(*pmd) = _PAGE_TABLE | (unsigned long) BAD_PAGETABLE; |
pmd | 400 | include/asm-i386/pgtable.h | return (pte_t *) pmd_page(*pmd) + address; |
pmd | 407 | include/asm-i386/pgtable.h | extern inline void pmd_free_kernel(pmd_t * pmd) |
pmd | 409 | include/asm-i386/pgtable.h | pmd_val(*pmd) = 0; |
pmd | 422 | include/asm-i386/pgtable.h | extern inline pte_t * pte_alloc(pmd_t * pmd, unsigned long address) |
pmd | 425 | include/asm-i386/pgtable.h | if (pmd_none(*pmd)) { |
pmd | 427 | include/asm-i386/pgtable.h | if (pmd_none(*pmd)) { |
pmd | 429 | include/asm-i386/pgtable.h | pmd_val(*pmd) = _PAGE_TABLE | (unsigned long) page; |
pmd | 432 | include/asm-i386/pgtable.h | pmd_val(*pmd) = _PAGE_TABLE | (unsigned long) BAD_PAGETABLE; |
pmd | 437 | include/asm-i386/pgtable.h | if (pmd_bad(*pmd)) { |
pmd | 438 | include/asm-i386/pgtable.h | printk("Bad pmd in pte_alloc: %08lx\n", pmd_val(*pmd)); |
pmd | 439 | include/asm-i386/pgtable.h | pmd_val(*pmd) = _PAGE_TABLE | (unsigned long) BAD_PAGETABLE; |
pmd | 442 | include/asm-i386/pgtable.h | return (pte_t *) pmd_page(*pmd) + address; |
pmd | 449 | include/asm-i386/pgtable.h | extern inline void pmd_free(pmd_t * pmd) |
pmd | 451 | include/asm-i386/pgtable.h | pmd_val(*pmd) = 0; |
pmd | 20 | include/asm-mips/page.h | typedef struct { unsigned long pmd; } pmd_t; |
pmd | 25 | include/asm-mips/page.h | #define pmd_val(x) ((x).pmd) |
pmd | 218 | include/asm-mips/pgtable.h | extern inline unsigned long pmd_page(pmd_t pmd) |
pmd | 219 | include/asm-mips/pgtable.h | { return PAGE_OFFSET + (pmd_val(pmd) & PAGE_MASK); } |
pmd | 237 | include/asm-mips/pgtable.h | extern inline int pmd_none(pmd_t pmd) { return (pmd_val(pmd) & PAGE_MASK) == ((unsigned long) invalid_pte_table - PAGE_OFFSET); } |
pmd | 239 | include/asm-mips/pgtable.h | extern inline int pmd_bad(pmd_t pmd) |
pmd | 241 | include/asm-mips/pgtable.h | return (pmd_val(pmd) & ~PAGE_MASK) != _PAGE_TABLE || |
pmd | 242 | include/asm-mips/pgtable.h | pmd_page(pmd) > high_memory || |
pmd | 243 | include/asm-mips/pgtable.h | pmd_page(pmd) < PAGE_OFFSET; |
pmd | 245 | include/asm-mips/pgtable.h | extern inline int pmd_present(pmd_t pmd) { return pmd_val(pmd) & _PAGE_PRESENT; } |
pmd | 378 | include/asm-mips/pgtable.h | extern inline pte_t * pte_alloc_kernel(pmd_t *pmd, unsigned long address) |
pmd | 381 | include/asm-mips/pgtable.h | if (pmd_none(*pmd)) { |
pmd | 383 | include/asm-mips/pgtable.h | if (pmd_none(*pmd)) { |
pmd | 390 | include/asm-mips/pgtable.h | pmd_set(pmd, (pte_t *)page); |
pmd | 393 | include/asm-mips/pgtable.h | pmd_set(pmd, (pte_t *) BAD_PAGETABLE); |
pmd | 398 | include/asm-mips/pgtable.h | if (pmd_bad(*pmd)) { |
pmd | 399 | include/asm-mips/pgtable.h | printk("Bad pmd in pte_alloc_kernel: %08lx\n", pmd_val(*pmd)); |
pmd | 400 | include/asm-mips/pgtable.h | pmd_set(pmd, (pte_t *) BAD_PAGETABLE); |
pmd | 403 | include/asm-mips/pgtable.h | return (pte_t *) (pmd_page(*pmd) + (PT_OFFSET - PAGE_OFFSET)) + address; |
pmd | 410 | include/asm-mips/pgtable.h | extern inline void pmd_free_kernel(pmd_t * pmd) |
pmd | 429 | include/asm-mips/pgtable.h | extern inline pte_t * pte_alloc(pmd_t * pmd, unsigned long address) |
pmd | 432 | include/asm-mips/pgtable.h | if (pmd_none(*pmd)) { |
pmd | 434 | include/asm-mips/pgtable.h | if (pmd_none(*pmd)) { |
pmd | 440 | include/asm-mips/pgtable.h | pmd_set(pmd, (pte_t *)page); |
pmd | 443 | include/asm-mips/pgtable.h | pmd_set(pmd, (pte_t *) BAD_PAGETABLE); |
pmd | 448 | include/asm-mips/pgtable.h | if (pmd_bad(*pmd)) { |
pmd | 449 | include/asm-mips/pgtable.h | printk("Bad pmd in pte_alloc: %08lx\n", pmd_val(*pmd)); |
pmd | 450 | include/asm-mips/pgtable.h | pmd_set(pmd, (pte_t *) BAD_PAGETABLE); |
pmd | 453 | include/asm-mips/pgtable.h | return (pte_t *) (pmd_page(*pmd) + (PT_OFFSET - PAGE_OFFSET)) + address; |
pmd | 460 | include/asm-mips/pgtable.h | extern inline void pmd_free(pmd_t * pmd) |
pmd | 20 | include/asm-ppc/page.h | typedef struct { unsigned long pmd; } pmd_t; |
pmd | 25 | include/asm-ppc/page.h | #define pmd_val(x) ((x).pmd) |
pmd | 216 | include/asm-ppc/pgtable.h | extern inline int pmd_none(pmd_t pmd) { return !pmd_val(pmd); } |
pmd | 217 | include/asm-ppc/pgtable.h | extern inline int pmd_bad(pmd_t pmd) { return (pmd_val(pmd) & ~PAGE_MASK) != _PAGE_TABLE; } |
pmd | 218 | include/asm-ppc/pgtable.h | extern inline int pmd_present(pmd_t pmd) { return pmd_val(pmd) & _PAGE_PRESENT; } |
pmd | 283 | include/asm-ppc/pgtable.h | extern inline unsigned long pmd_page(pmd_t pmd) |
pmd | 284 | include/asm-ppc/pgtable.h | { return pmd_val(pmd) & PAGE_MASK; } |
pmd | 385 | include/asm-ppc/pgtable.h | extern inline pte_t * pte_alloc_kernel(pmd_t * pmd, unsigned long address) |
pmd | 388 | include/asm-ppc/pgtable.h | if (pmd_none(*pmd)) { |
pmd | 390 | include/asm-ppc/pgtable.h | if (pmd_none(*pmd)) { |
pmd | 393 | include/asm-ppc/pgtable.h | pmd_val(*pmd) = _PAGE_TABLE | (unsigned long) page; |
pmd | 398 | include/asm-ppc/pgtable.h | pmd_val(*pmd) = _PAGE_TABLE | (unsigned long) BAD_PAGETABLE; |
pmd | 403 | include/asm-ppc/pgtable.h | if (pmd_bad(*pmd)) { |
pmd | 404 | include/asm-ppc/pgtable.h | printk("Bad pmd in pte_alloc: %08lx\n", pmd_val(*pmd)); |
pmd | 406 | include/asm-ppc/pgtable.h | pmd_val(*pmd) = _PAGE_TABLE | (unsigned long) BAD_PAGETABLE; |
pmd | 409 | include/asm-ppc/pgtable.h | return (pte_t *) pmd_page(*pmd) + address; |
pmd | 416 | include/asm-ppc/pgtable.h | extern inline void pmd_free_kernel(pmd_t * pmd) |
pmd | 430 | include/asm-ppc/pgtable.h | extern inline pte_t * pte_alloc(pmd_t * pmd, unsigned long address) |
pmd | 433 | include/asm-ppc/pgtable.h | if (pmd_none(*pmd)) { |
pmd | 435 | include/asm-ppc/pgtable.h | if (pmd_none(*pmd)) { |
pmd | 437 | include/asm-ppc/pgtable.h | pmd_val(*pmd) = _PAGE_TABLE | (unsigned long) page; |
pmd | 440 | include/asm-ppc/pgtable.h | pmd_val(*pmd) = _PAGE_TABLE | (unsigned long) BAD_PAGETABLE; |
pmd | 445 | include/asm-ppc/pgtable.h | if (pmd_bad(*pmd)) { |
pmd | 446 | include/asm-ppc/pgtable.h | printk("Bad pmd in pte_alloc: %08lx\n", pmd_val(*pmd)); |
pmd | 447 | include/asm-ppc/pgtable.h | pmd_val(*pmd) = _PAGE_TABLE | (unsigned long) BAD_PAGETABLE; |
pmd | 450 | include/asm-ppc/pgtable.h | return (pte_t *) pmd_page(*pmd) + address; |
pmd | 457 | include/asm-ppc/pgtable.h | extern inline void pmd_free(pmd_t * pmd) |
pmd | 54 | include/asm-sparc/page.h | typedef struct { unsigned long pmd; } pmd_t; |
pmd | 62 | include/asm-sparc/page.h | #define pmd_val(x) ((x).pmd) |
pmd | 804 | mm/filemap.c | static inline int filemap_sync_pte_range(pmd_t * pmd, |
pmd | 812 | mm/filemap.c | if (pmd_none(*pmd)) |
pmd | 814 | mm/filemap.c | if (pmd_bad(*pmd)) { |
pmd | 815 | mm/filemap.c | printk("filemap_sync_pte_range: bad pmd (%08lx)\n", pmd_val(*pmd)); |
pmd | 816 | mm/filemap.c | pmd_clear(pmd); |
pmd | 819 | mm/filemap.c | pte = pte_offset(pmd, address); |
pmd | 838 | mm/filemap.c | pmd_t * pmd; |
pmd | 849 | mm/filemap.c | pmd = pmd_offset(pgd, address); |
pmd | 857 | mm/filemap.c | error |= filemap_sync_pte_range(pmd, address, end - address, vma, offset, flags); |
pmd | 859 | mm/filemap.c | pmd++; |
pmd | 108 | mm/memory.c | pmd_t * pmd; |
pmd | 117 | mm/memory.c | pmd = pmd_offset(dir, 0); |
pmd | 120 | mm/memory.c | free_one_pmd(pmd+j); |
pmd | 121 | mm/memory.c | pmd_free(pmd); |
pmd | 322 | mm/memory.c | static inline void zap_pte_range(pmd_t * pmd, unsigned long address, unsigned long size) |
pmd | 327 | mm/memory.c | if (pmd_none(*pmd)) |
pmd | 329 | mm/memory.c | if (pmd_bad(*pmd)) { |
pmd | 330 | mm/memory.c | printk("zap_pte_range: bad pmd (%08lx)\n", pmd_val(*pmd)); |
pmd | 331 | mm/memory.c | pmd_clear(pmd); |
pmd | 334 | mm/memory.c | pte = pte_offset(pmd, address); |
pmd | 350 | mm/memory.c | pmd_t * pmd; |
pmd | 360 | mm/memory.c | pmd = pmd_offset(dir, address); |
pmd | 366 | mm/memory.c | zap_pte_range(pmd, address, end - address); |
pmd | 368 | mm/memory.c | pmd++; |
pmd | 408 | mm/memory.c | static inline int zeromap_pmd_range(pmd_t * pmd, unsigned long address, unsigned long size, pte_t zero_pte) |
pmd | 417 | mm/memory.c | pte_t * pte = pte_alloc(pmd, address); |
pmd | 422 | mm/memory.c | pmd++; |
pmd | 439 | mm/memory.c | pmd_t *pmd = pmd_alloc(dir, address); |
pmd | 441 | mm/memory.c | if (!pmd) |
pmd | 443 | mm/memory.c | error = zeromap_pmd_range(pmd, address, end - address, zero_pte); |
pmd | 479 | mm/memory.c | static inline int remap_pmd_range(pmd_t * pmd, unsigned long address, unsigned long size, |
pmd | 490 | mm/memory.c | pte_t * pte = pte_alloc(pmd, address); |
pmd | 495 | mm/memory.c | pmd++; |
pmd | 511 | mm/memory.c | pmd_t *pmd = pmd_alloc(dir, from); |
pmd | 513 | mm/memory.c | if (!pmd) |
pmd | 515 | mm/memory.c | error = remap_pmd_range(pmd, from, end - from, offset + from, prot); |
pmd | 546 | mm/memory.c | pmd_t * pmd; |
pmd | 554 | mm/memory.c | pmd = pmd_alloc(pgd, address); |
pmd | 555 | mm/memory.c | if (!pmd) { |
pmd | 560 | mm/memory.c | pte = pte_alloc(pmd, address); |
pmd | 854 | mm/memory.c | pmd_t *pmd; |
pmd | 858 | mm/memory.c | pmd = pmd_alloc(pgd, address); |
pmd | 859 | mm/memory.c | if (!pmd) { |
pmd | 863 | mm/memory.c | pte = pte_alloc(pmd, address); |
pmd | 992 | mm/memory.c | pmd_t *pmd; |
pmd | 996 | mm/memory.c | pmd = pmd_alloc(pgd, address); |
pmd | 997 | mm/memory.c | if (!pmd) |
pmd | 999 | mm/memory.c | pte = pte_alloc(pmd, address); |
pmd | 20 | mm/mprotect.c | static inline void change_pte_range(pmd_t * pmd, unsigned long address, |
pmd | 26 | mm/mprotect.c | if (pmd_none(*pmd)) |
pmd | 28 | mm/mprotect.c | if (pmd_bad(*pmd)) { |
pmd | 29 | mm/mprotect.c | printk("change_pte_range: bad pmd (%08lx)\n", pmd_val(*pmd)); |
pmd | 30 | mm/mprotect.c | pmd_clear(pmd); |
pmd | 33 | mm/mprotect.c | pte = pte_offset(pmd, address); |
pmd | 50 | mm/mprotect.c | pmd_t * pmd; |
pmd | 60 | mm/mprotect.c | pmd = pmd_offset(pgd, address); |
pmd | 66 | mm/mprotect.c | change_pte_range(pmd, address, end - address, newprot); |
pmd | 68 | mm/mprotect.c | pmd++; |
pmd | 25 | mm/mremap.c | pmd_t * pmd; |
pmd | 37 | mm/mremap.c | pmd = pmd_offset(pgd, addr); |
pmd | 38 | mm/mremap.c | if (pmd_none(*pmd)) |
pmd | 40 | mm/mremap.c | if (pmd_bad(*pmd)) { |
pmd | 41 | mm/mremap.c | printk("move_one_page: bad source pmd (%08lx)\n", pmd_val(*pmd)); |
pmd | 42 | mm/mremap.c | pmd_clear(pmd); |
pmd | 46 | mm/mremap.c | pte = pte_offset(pmd, addr); |
pmd | 55 | mm/mremap.c | pmd_t * pmd; |
pmd | 58 | mm/mremap.c | pmd = pmd_alloc(pgd_offset(mm, addr), addr); |
pmd | 59 | mm/mremap.c | if (pmd) |
pmd | 60 | mm/mremap.c | pte = pte_alloc(pmd, addr); |
pmd | 228 | mm/swapfile.c | pmd_t * pmd; |
pmd | 238 | mm/swapfile.c | pmd = pmd_offset(dir, address); |
pmd | 245 | mm/swapfile.c | if (unuse_pmd(vma, pmd, address, end - address, offset, type, page)) |
pmd | 248 | mm/swapfile.c | pmd++; |
pmd | 41 | mm/vmalloc.c | static inline void free_area_pte(pmd_t * pmd, unsigned long address, unsigned long size) |
pmd | 46 | mm/vmalloc.c | if (pmd_none(*pmd)) |
pmd | 48 | mm/vmalloc.c | if (pmd_bad(*pmd)) { |
pmd | 49 | mm/vmalloc.c | printk("free_area_pte: bad pmd (%08lx)\n", pmd_val(*pmd)); |
pmd | 50 | mm/vmalloc.c | pmd_clear(pmd); |
pmd | 53 | mm/vmalloc.c | pte = pte_offset(pmd, address); |
pmd | 75 | mm/vmalloc.c | pmd_t * pmd; |
pmd | 85 | mm/vmalloc.c | pmd = pmd_offset(dir, address); |
pmd | 91 | mm/vmalloc.c | free_area_pte(pmd, address, end - address); |
pmd | 93 | mm/vmalloc.c | pmd++; |
pmd | 134 | mm/vmalloc.c | static inline int alloc_area_pmd(pmd_t * pmd, unsigned long address, unsigned long size) |
pmd | 143 | mm/vmalloc.c | pte_t * pte = pte_alloc_kernel(pmd, address); |
pmd | 149 | mm/vmalloc.c | pmd++; |
pmd | 162 | mm/vmalloc.c | pmd_t *pmd = pmd_alloc_kernel(dir, address); |
pmd | 163 | mm/vmalloc.c | if (!pmd) |
pmd | 165 | mm/vmalloc.c | if (alloc_area_pmd(pmd, address, end - address)) |
pmd | 194 | mm/vmalloc.c | static inline int remap_area_pmd(pmd_t * pmd, unsigned long address, unsigned long size, |
pmd | 205 | mm/vmalloc.c | pte_t * pte = pte_alloc_kernel(pmd, address); |
pmd | 210 | mm/vmalloc.c | pmd++; |
pmd | 224 | mm/vmalloc.c | pmd_t *pmd = pmd_alloc_kernel(dir, address); |
pmd | 225 | mm/vmalloc.c | if (!pmd) |
pmd | 227 | mm/vmalloc.c | if (remap_area_pmd(pmd, address, end - address, offset + address)) |
pmd | 194 | mm/vmscan.c | pmd_t * pmd; |
pmd | 205 | mm/vmscan.c | pmd = pmd_offset(dir, address); |
pmd | 212 | mm/vmscan.c | int result = swap_out_pmd(tsk, vma, pmd, address, end, dma, wait); |
pmd | 216 | mm/vmscan.c | pmd++; |