/arch/powerpc/include/asm/nohash/64/ |
D | pgtable-4k.h | 56 #define pgd_none(pgd) (!pgd_val(pgd)) 57 #define pgd_bad(pgd) (pgd_val(pgd) == 0) 58 #define pgd_present(pgd) (pgd_val(pgd) != 0) 59 #define pgd_page_vaddr(pgd) (pgd_val(pgd) & ~PGD_MASKED_BITS) 70 return __pte(pgd_val(pgd)); in pgd_pte()
|
/arch/alpha/include/asm/ |
D | pgtable.h | 230 { pgd_val(*pgdp) = _PAGE_TABLE | ((((unsigned long) pmdp) - PAGE_OFFSET) << (32-PAGE_SHIFT)); } in pgd_set() 241 #define pgd_page(pgd) (mem_map + ((pgd_val(pgd) & _PFN_MASK) >> 32)) 245 { return PAGE_OFFSET + ((pgd_val(pgd) & _PFN_MASK) >> (32-PAGE_SHIFT)); } in pgd_page_vaddr() 259 extern inline int pgd_none(pgd_t pgd) { return !pgd_val(pgd); } in pgd_none() 260 extern inline int pgd_bad(pgd_t pgd) { return (pgd_val(pgd) & ~_PFN_MASK) != _PAGE_TABLE; } in pgd_bad() 261 extern inline int pgd_present(pgd_t pgd) { return pgd_val(pgd) & _PAGE_VALID; } in pgd_present() 262 extern inline void pgd_clear(pgd_t * pgdp) { pgd_val(*pgdp) = 0; } in pgd_clear() 356 printk("%s:%d: bad pgd %016lx.\n", __FILE__, __LINE__, pgd_val(e))
|
D | page.h | 38 #define pgd_val(x) ((x).pgd) macro 57 #define pgd_val(x) (x) macro
|
/arch/m68k/include/asm/ |
D | motorola_pgtable.h | 122 pgd_val(*pgdp) = _PAGE_TABLE | _PAGE_ACCESSED | __pa(pmdp); in pgd_set() 127 #define __pgd_page(pgd) ((unsigned long)__va(pgd_val(pgd) & _TABLE_MASK)) 150 #define pgd_none(pgd) (!pgd_val(pgd)) 151 #define pgd_bad(pgd) ((pgd_val(pgd) & _DESCTYPE_MASK) != _PAGE_TABLE) 152 #define pgd_present(pgd) (pgd_val(pgd) & _PAGE_TABLE) 153 #define pgd_clear(pgdp) ({ pgd_val(*pgdp) = 0; }) 154 #define pgd_page(pgd) (mem_map + ((unsigned long)(__va(pgd_val(pgd)) - PAGE_OFFSET) >> PAGE_SHIFT)) 161 printk("%s:%d: bad pgd %08lx.\n", __FILE__, __LINE__, pgd_val(e))
|
D | page.h | 32 #define pgd_val(x) ((x).pgd) macro
|
/arch/mips/include/asm/ |
D | pgtable-64.h | 172 printk("%s:%d: bad pgd %016lx.\n", __FILE__, __LINE__, pgd_val(e)) 193 return pgd_val(pgd) == (unsigned long)invalid_pud_table; in pgd_none() 198 if (unlikely(pgd_val(pgd) & ~PAGE_MASK)) in pgd_bad() 206 return pgd_val(pgd) != (unsigned long)invalid_pud_table; in pgd_present() 211 pgd_val(*pgdp) = (unsigned long)invalid_pud_table; in pgd_clear() 218 return pgd_val(pgd); in pgd_page_vaddr() 221 #define pgd_phys(pgd) virt_to_phys((void *)pgd_val(pgd))
|
/arch/um/include/asm/ |
D | pgtable-3level.h | 55 pgd_val(e)) 71 return(pgd_val(pgd) & _PAGE_NEWPAGE); in pgd_newpage() 74 static inline void pgd_mkuptodate(pgd_t pgd) { pgd_val(pgd) &= ~_PAGE_NEWPAGE; } in pgd_mkuptodate()
|
D | pgtable-2level.h | 34 pgd_val(e))
|
/arch/arm/include/asm/ |
D | pgtable-2level-types.h | 28 #define pgd_val(x) ((x).pgd[0]) macro 46 #define pgd_val(x) ((x)[0]) macro
|
D | pgtable-3level-types.h | 31 #define pgd_val(x) ((x).pgd) macro 48 #define pgd_val(x) (x) macro
|
D | page-nommu.h | 27 #define pgd_val(x) ((x)[0]) macro
|
/arch/unicore32/include/asm/ |
D | page.h | 39 #define pgd_val(x) ((x).pgd) macro 55 #define pgd_val(x) (x) macro
|
/arch/alpha/mm/ |
D | init.c | 53 pgd_val(ret[PTRS_PER_PGD-2]) = pgd_val(init[PTRS_PER_PGD-2]); in pgd_alloc() 57 pgd_val(ret[PTRS_PER_PGD-1]) in pgd_alloc() 111 pgd_val(swapper_pg_dir[1023]) = in switch_to_system_map()
|
D | fault.c | 246 pgd_val(*pgd) = pgd_val(*pgd_k); in do_page_fault()
|
/arch/arc/include/asm/ |
D | page.h | 45 #define pgd_val(x) ((x).pgd) macro 65 #define pgd_val(x) (x) macro
|
/arch/sparc/include/asm/ |
D | pgtable_32.h | 137 if (srmmu_device_memory(pgd_val(pgd))) { in pgd_page_vaddr() 140 unsigned long v = pgd_val(pgd) & SRMMU_PTD_PMASK; in pgd_page_vaddr() 189 return !(pgd_val(pgd) & 0xFFFFFFF); in pgd_none() 194 return (pgd_val(pgd) & SRMMU_ET_MASK) != SRMMU_ET_PTD; in pgd_bad() 199 return ((pgd_val(pgd) & SRMMU_ET_MASK) == SRMMU_ET_PTD); in pgd_present()
|
D | page_32.h | 66 #define pgd_val(x) ((x).pgd) macro 94 #define pgd_val(x) (x) macro
|
D | page_64.h | 80 #define pgd_val(x) ((x).pgd) macro 103 #define pgd_val(x) (x) macro
|
/arch/ia64/include/asm/ |
D | pgtable.h | 183 #define pgd_ERROR(e) printk("%s:%d: bad pgd %016lx.\n", __FILE__, __LINE__, pgd_val(e)) 286 #define pgd_none(pgd) (!pgd_val(pgd)) 287 #define pgd_bad(pgd) (!ia64_phys_addr_valid(pgd_val(pgd))) 288 #define pgd_present(pgd) (pgd_val(pgd) != 0UL) 289 #define pgd_clear(pgdp) (pgd_val(*(pgdp)) = 0UL) 290 #define pgd_page_vaddr(pgd) ((unsigned long) __va(pgd_val(pgd) & _PFN_MASK)) 291 #define pgd_page(pgd) virt_to_page((pgd_val(pgd) + PAGE_OFFSET))
|
D | page.h | 190 # define pgd_val(x) ((x).pgd) macro 211 # define pgd_val(x) (x) macro
|
/arch/s390/include/asm/ |
D | pgtable.h | 77 printk("%s:%d: bad pgd %p.\n", __FILE__, __LINE__, (void *) pgd_val(e)) 600 return (pgd_val(pgd) & _REGION_ENTRY_TYPE_MASK) < _REGION_ENTRY_TYPE_R1; in pgd_folded() 607 return (pgd_val(pgd) & _REGION_ENTRY_ORIGIN) != 0UL; in pgd_present() 614 return (pgd_val(pgd) & _REGION_ENTRY_INVALID) != 0UL; in pgd_none() 619 if ((pgd_val(pgd) & _REGION_ENTRY_TYPE_MASK) < _REGION_ENTRY_TYPE_R1) in pgd_bad() 621 return (pgd_val(pgd) & ~_REGION_ENTRY_BITS) != 0; in pgd_bad() 629 return (pgd_val(pgd) & origin_mask) >> PAGE_SHIFT; in pgd_pfn() 886 if ((pgd_val(*pgd) & _REGION_ENTRY_TYPE_MASK) == _REGION_ENTRY_TYPE_R1) in pgd_clear() 887 pgd_val(*pgd) = _REGION1_ENTRY_EMPTY; in pgd_clear() 1216 #define pgd_deref(pgd) (pgd_val(pgd) & _REGION_ENTRY_ORIGIN) [all …]
|
/arch/parisc/include/asm/ |
D | page.h | 52 #define pgd_val(x) ((x).pgd + 0) macro 74 #define pgd_val(x) (x) macro
|
/arch/arm64/include/asm/ |
D | pgtable-types.h | 39 #define pgd_val(x) ((x).pgd) macro
|
/arch/microblaze/include/asm/ |
D | page.h | 107 # define pgd_val(x) ((x).pgd) macro 111 # define pgd_val(x) ((x).pge[0]) macro
|
/arch/nds32/include/asm/ |
D | page.h | 50 #define pgd_val(x) (x) macro
|