Lines Matching refs:pud
148 #define pud_access_permitted(pud, write) \ argument
149 (pte_access_permitted(pud_pte(pud), (write)))
373 static inline pte_t pud_pte(pud_t pud) in pud_pte() argument
375 return __pte(pud_val(pud)); in pud_pte()
383 static inline pmd_t pud_pmd(pud_t pud) in pud_pmd() argument
385 return __pmd(pud_val(pud)); in pud_pmd()
480 #define pud_young(pud) pte_young(pud_pte(pud)) argument
481 #define pud_mkyoung(pud) pte_pud(pte_mkyoung(pud_pte(pud))) argument
482 #define pud_write(pud) pte_write(pud_pte(pud)) argument
484 #define pud_mkhuge(pud) (__pud(pud_val(pud) & ~PUD_TABLE_BIT)) argument
486 #define __pud_to_phys(pud) __pte_to_phys(pud_pte(pud)) argument
488 #define pud_pfn(pud) ((__pud_to_phys(pud) & PUD_MASK) >> PAGE_SHIFT) argument
496 #define set_pud_at(mm, addr, pudp, pud) set_pte_at(mm, addr, (pte_t *)pudp, pud_pte(pud)) argument
562 static inline bool pud_sect(pud_t pud) { return false; } in pud_sect() argument
563 static inline bool pud_table(pud_t pud) { return true; } in pud_table() argument
565 #define pud_sect(pud) ((pud_val(pud) & PUD_TYPE_MASK) == \ argument
567 #define pud_table(pud) ((pud_val(pud) & PUD_TYPE_MASK) == \ argument
642 #define pud_none(pud) (!pud_val(pud)) argument
643 #define pud_bad(pud) (!pud_table(pud)) argument
644 #define pud_present(pud) pte_present(pud_pte(pud)) argument
645 #define pud_leaf(pud) (pud_present(pud) && !pud_table(pud)) argument
646 #define pud_valid(pud) pte_valid(pud_pte(pud)) argument
648 static inline void set_pud(pud_t *pudp, pud_t pud) in set_pud() argument
652 set_swapper_pgd((pgd_t *)pudp, __pgd(pud_val(pud))); in set_pud()
657 WRITE_ONCE(*pudp, pud); in set_pud()
659 if (pud_valid(pud)) { in set_pud()
670 static inline phys_addr_t pud_page_paddr(pud_t pud) in pud_page_paddr() argument
672 return __pud_to_phys(pud); in pud_page_paddr()
675 static inline pmd_t *pud_pgtable(pud_t pud) in pud_pgtable() argument
677 return (pmd_t *)__va(pud_page_paddr(pud)); in pud_pgtable()
684 #define pmd_set_fixmap_offset(pud, addr) pmd_set_fixmap(pmd_offset_phys(pud, addr)) argument
687 #define pud_page(pud) phys_to_page(__pud_to_phys(pud)) argument
694 #define pud_page_paddr(pud) ({ BUILD_BUG(); 0; }) argument
814 static inline int pud_devmap(pud_t pud) in pud_devmap() argument