Home
last modified time | relevance | path

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

1234

/arch/powerpc/include/asm/
Dpgtable-ppc64-4k.h55 #define pgd_none(pgd) (!pgd_val(pgd))
56 #define pgd_bad(pgd) (pgd_val(pgd) == 0)
57 #define pgd_present(pgd) (pgd_val(pgd) != 0)
58 #define pgd_clear(pgdp) (pgd_val(*(pgdp)) = 0)
59 #define pgd_page_vaddr(pgd) (pgd_val(pgd) & ~PGD_MASKED_BITS)
/arch/m32r/include/asm/
Dpgtable-2level.h26 printk("%s:%d: bad pgd %08lx.\n", __FILE__, __LINE__, pgd_val(e))
54 ((unsigned long) __va(pgd_val(pgd) & PAGE_MASK))
57 #define pgd_page(pgd) (mem_map + ((pgd_val(pgd) >> PAGE_SHIFT) - PFN_BASE))
/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.h31 #define pgd_val(x) ((x).pgd) macro
/arch/arm/include/asm/
Dpgtable-2level-types.h40 #define pgd_val(x) ((x).pgd[0]) macro
58 #define pgd_val(x) ((x)[0]) macro
Dpgtable-3level-types.h43 #define pgd_val(x) ((x).pgd) macro
60 #define pgd_val(x) (x) macro
Dpage-nommu.h39 #define pgd_val(x) ((x)[0]) macro
/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()
365 printk("%s:%d: bad pgd %016lx.\n", __FILE__, __LINE__, pgd_val(e))
Dpage.h37 #define pgd_val(x) ((x).pgd) macro
56 #define pgd_val(x) (x) macro
/arch/unicore32/include/asm/
Dpage.h42 #define pgd_val(x) ((x).pgd) macro
58 #define pgd_val(x) (x) macro
/arch/um/include/asm/
Dpgtable-3level.h54 pgd_val(e))
70 return(pgd_val(pgd) & _PAGE_NEWPAGE); in pgd_newpage()
73 static inline void pgd_mkuptodate(pgd_t pgd) { pgd_val(pgd) &= ~_PAGE_NEWPAGE; } in pgd_mkuptodate()
Dpgtable-2level.h33 pgd_val(e))
/arch/alpha/mm/
Dinit.c51 pgd_val(ret[PTRS_PER_PGD-2]) = pgd_val(init[PTRS_PER_PGD-2]); in pgd_alloc()
55 pgd_val(ret[PTRS_PER_PGD-1]) in pgd_alloc()
109 pgd_val(swapper_pg_dir[1023]) = in switch_to_system_map()
Dfault.c227 pgd_val(*pgd) = pgd_val(*pgd_k); in do_page_fault()
/arch/ia64/include/asm/
Dpgtable.h185 #define pgd_ERROR(e) printk("%s:%d: bad pgd %016lx.\n", __FILE__, __LINE__, pgd_val(e))
288 #define pgd_none(pgd) (!pgd_val(pgd))
289 #define pgd_bad(pgd) (!ia64_phys_addr_valid(pgd_val(pgd)))
290 #define pgd_present(pgd) (pgd_val(pgd) != 0UL)
291 #define pgd_clear(pgdp) (pgd_val(*(pgdp)) = 0UL)
292 #define pgd_page_vaddr(pgd) ((unsigned long) __va(pgd_val(pgd) & _PFN_MASK))
293 #define pgd_page(pgd) virt_to_page((pgd_val(pgd) + PAGE_OFFSET))
Dpage.h188 # define pgd_val(x) ((x).pgd) macro
209 # define pgd_val(x) (x) macro
/arch/s390/include/asm/
Dpgtable.h123 printk("%s:%d: bad pgd %p.\n", __FILE__, __LINE__, (void *) pgd_val(e))
445 if ((pgd_val(pgd) & _REGION_ENTRY_TYPE_MASK) < _REGION_ENTRY_TYPE_R2) in pgd_present()
447 return (pgd_val(pgd) & _REGION_ENTRY_ORIGIN) != 0UL; in pgd_present()
452 if ((pgd_val(pgd) & _REGION_ENTRY_TYPE_MASK) < _REGION_ENTRY_TYPE_R2) in pgd_none()
454 return (pgd_val(pgd) & _REGION_ENTRY_INV) != 0UL; in pgd_none()
467 return (pgd_val(pgd) & mask) != 0; in pgd_bad()
749 if ((pgd_val(*pgd) & _REGION_ENTRY_TYPE_MASK) == _REGION_ENTRY_TYPE_R2) in pgd_clear()
750 pgd_val(*pgd) = _REGION2_ENTRY_EMPTY; in pgd_clear()
1136 #define pgd_deref(pgd) (pgd_val(pgd) & _REGION_ENTRY_ORIGIN)
1141 if ((pgd_val(*pgd) & _REGION_ENTRY_TYPE_MASK) == _REGION_ENTRY_TYPE_R2) in pud_offset()
/arch/sparc/include/asm/
Dpage_64.h70 #define pgd_val(x) ((x).pgd) macro
90 #define pgd_val(x) (x) macro
Dpage_32.h73 #define pgd_val(x) ((x).pgd) macro
101 #define pgd_val(x) (x) macro
/arch/x86/mm/
Ddump_pagetables.c294 #define walk_pud_level(m,s,a,p) walk_pmd_level(m,s,__pud(pgd_val(a)),p)
295 #define pgd_large(a) pud_large(__pud(pgd_val(a)))
296 #define pgd_none(a) pud_none(__pud(pgd_val(a)))
314 pgprotval_t prot = pgd_val(*start) & PTE_FLAGS_MASK; in walk_pgd_level()
/arch/avr32/include/asm/
Dpgtable-2level.h25 printk("%s:%d: bad pgd %08lx.\n", __FILE__, __LINE__, pgd_val(e))
/arch/parisc/include/asm/
Dpage.h50 #define pgd_val(x) ((x).pgd + 0) macro
72 #define pgd_val(x) (x) macro
/arch/xtensa/mm/
Dfault.c190 pgd_val(*pgd) = pgd_val(*pgd_k); in do_page_fault()
/arch/microblaze/include/asm/
Dpage.h107 # define pgd_val(x) ((x).pgd) macro
111 # define pgd_val(x) ((x).pge[0]) macro
/arch/m68k/mm/
Dsun3mmu.c73 pgd_val(*pg_dir) = (unsigned long) pg_table; in paging_init()

1234