Lines Matching refs:pud

156 #define pud_access_permitted(pud, write) \  argument
157 (pte_access_permitted(pud_pte(pud), (write)))
389 static inline pte_t pud_pte(pud_t pud) in pud_pte() argument
391 return __pte(pud_val(pud)); in pud_pte()
399 static inline pmd_t pud_pmd(pud_t pud) in pud_pmd() argument
401 return __pmd(pud_val(pud)); in pud_pmd()
523 #define pud_young(pud) pte_young(pud_pte(pud)) argument
524 #define pud_mkyoung(pud) pte_pud(pte_mkyoung(pud_pte(pud))) argument
525 #define pud_write(pud) pte_write(pud_pte(pud)) argument
527 #define pud_mkhuge(pud) (__pud(pud_val(pud) & ~PUD_TABLE_BIT)) argument
529 #define __pud_to_phys(pud) __pte_to_phys(pud_pte(pud)) argument
531 #define pud_pfn(pud) ((__pud_to_phys(pud) & PUD_MASK) >> PAGE_SHIFT) argument
542 pud_t *pudp, pud_t pud) in set_pud_at() argument
544 page_table_check_pud_set(mm, addr, pudp, pud); in set_pud_at()
545 return __set_pte_at(mm, addr, (pte_t *)pudp, pud_pte(pud)); in set_pud_at()
602 static inline bool pud_sect(pud_t pud) { return false; } in pud_sect() argument
603 static inline bool pud_table(pud_t pud) { return true; } in pud_table() argument
605 #define pud_sect(pud) ((pud_val(pud) & PUD_TYPE_MASK) == \ argument
607 #define pud_table(pud) ((pud_val(pud) & PUD_TYPE_MASK) == \ argument
681 #define pud_none(pud) (!pud_val(pud)) argument
682 #define pud_bad(pud) (!pud_table(pud)) argument
683 #define pud_present(pud) pte_present(pud_pte(pud)) argument
684 #define pud_leaf(pud) (pud_present(pud) && !pud_table(pud)) argument
685 #define pud_valid(pud) pte_valid(pud_pte(pud)) argument
686 #define pud_user(pud) pte_user(pud_pte(pud)) argument
687 #define pud_user_exec(pud) pte_user_exec(pud_pte(pud)) argument
689 static inline void set_pud(pud_t *pudp, pud_t pud) in set_pud() argument
693 set_swapper_pgd((pgd_t *)pudp, __pgd(pud_val(pud))); in set_pud()
698 WRITE_ONCE(*pudp, pud); in set_pud()
700 if (pud_valid(pud)) { in set_pud()
711 static inline phys_addr_t pud_page_paddr(pud_t pud) in pud_page_paddr() argument
713 return __pud_to_phys(pud); in pud_page_paddr()
716 static inline pmd_t *pud_pgtable(pud_t pud) in pud_pgtable() argument
718 return (pmd_t *)__va(pud_page_paddr(pud)); in pud_pgtable()
725 #define pmd_set_fixmap_offset(pud, addr) pmd_set_fixmap(pmd_offset_phys(pud, addr)) argument
728 #define pud_page(pud) phys_to_page(__pud_to_phys(pud)) argument
735 #define pud_page_paddr(pud) ({ BUILD_BUG(); 0; }) argument
736 #define pud_user_exec(pud) pud_user(pud) /* Always 0 with folding */ argument
850 static inline int pud_devmap(pud_t pud) in pud_devmap() argument
872 static inline bool pud_user_accessible_page(pud_t pud) in pud_user_accessible_page() argument
874 return pud_leaf(pud) && (pud_user(pud) || pud_user_exec(pud)); in pud_user_accessible_page()