Home
last modified time | relevance | path

Searched refs:pgd_val (Results 1 – 25 of 107) sorted by relevance

12345

/arch/powerpc/include/asm/nohash/64/
Dpgtable-4k.h56 #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/
Dpgtable.h230 { 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))
Dpage.h38 #define pgd_val(x) ((x).pgd) macro
57 #define pgd_val(x) (x) macro
/arch/m68k/include/asm/
Dmotorola_pgtable.h122 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))
Dpage.h32 #define pgd_val(x) ((x).pgd) macro
/arch/mips/include/asm/
Dpgtable-64.h172 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/
Dpgtable-3level.h55 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()
Dpgtable-2level.h34 pgd_val(e))
/arch/arm/include/asm/
Dpgtable-2level-types.h28 #define pgd_val(x) ((x).pgd[0]) macro
46 #define pgd_val(x) ((x)[0]) macro
Dpgtable-3level-types.h31 #define pgd_val(x) ((x).pgd) macro
48 #define pgd_val(x) (x) macro
Dpage-nommu.h27 #define pgd_val(x) ((x)[0]) macro
/arch/unicore32/include/asm/
Dpage.h39 #define pgd_val(x) ((x).pgd) macro
55 #define pgd_val(x) (x) macro
/arch/alpha/mm/
Dinit.c53 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()
Dfault.c246 pgd_val(*pgd) = pgd_val(*pgd_k); in do_page_fault()
/arch/arc/include/asm/
Dpage.h45 #define pgd_val(x) ((x).pgd) macro
65 #define pgd_val(x) (x) macro
/arch/sparc/include/asm/
Dpgtable_32.h137 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()
Dpage_32.h66 #define pgd_val(x) ((x).pgd) macro
94 #define pgd_val(x) (x) macro
Dpage_64.h80 #define pgd_val(x) ((x).pgd) macro
103 #define pgd_val(x) (x) macro
/arch/ia64/include/asm/
Dpgtable.h183 #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))
Dpage.h190 # define pgd_val(x) ((x).pgd) macro
211 # define pgd_val(x) (x) macro
/arch/s390/include/asm/
Dpgtable.h77 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/
Dpage.h52 #define pgd_val(x) ((x).pgd + 0) macro
74 #define pgd_val(x) (x) macro
/arch/arm64/include/asm/
Dpgtable-types.h39 #define pgd_val(x) ((x).pgd) macro
/arch/microblaze/include/asm/
Dpage.h107 # define pgd_val(x) ((x).pgd) macro
111 # define pgd_val(x) ((x).pge[0]) macro
/arch/nds32/include/asm/
Dpage.h50 #define pgd_val(x) (x) macro

12345