Lines Matching refs:pgd
343 static inline void set_pgd(pgd_t *pgdp, pgd_t pgd) in set_pgd() argument
346 WRITE_ONCE(*pgdp, pgd); in set_pgd()
348 set_p4d((p4d_t *)pgdp, (p4d_t){ pgd_val(pgd) }); in set_pgd()
351 static inline int pgd_none(pgd_t pgd) in pgd_none() argument
354 return (pgd_val(pgd) == 0); in pgd_none()
359 static inline int pgd_present(pgd_t pgd) in pgd_present() argument
362 return (pgd_val(pgd) & _PAGE_PRESENT); in pgd_present()
367 static inline int pgd_bad(pgd_t pgd) in pgd_bad() argument
370 return !pgd_present(pgd); in pgd_bad()
375 static inline void pgd_clear(pgd_t *pgd) in pgd_clear() argument
378 set_pgd(pgd, __pgd(0)); in pgd_clear()
381 static inline p4d_t *pgd_pgtable(pgd_t pgd) in pgd_pgtable() argument
384 return (p4d_t *)pfn_to_virt(__page_val_to_pfn(pgd_val(pgd))); in pgd_pgtable()
386 return (p4d_t *)p4d_pgtable((p4d_t) { pgd_val(pgd) }); in pgd_pgtable()
388 #define pgd_page_vaddr(pgd) ((unsigned long)pgd_pgtable(pgd)) argument
390 static inline struct page *pgd_page(pgd_t pgd) in pgd_page() argument
392 return pfn_to_page(__page_val_to_pfn(pgd_val(pgd))); in pgd_page()
394 #define pgd_page(pgd) pgd_page(pgd) argument
399 p4d_t *p4d_offset(pgd_t *pgd, unsigned long address);
415 static inline int pgd_devmap(pgd_t pgd) in pgd_devmap() argument