Lines Matching full:hpd
18 static inline pte_t *hugepd_page(hugepd_t hpd) in hugepd_page() argument
20 BUG_ON(!hugepd_ok(hpd)); in hugepd_page()
25 return __va(hpd_val(hpd) & HUGEPD_ADDR_MASK); in hugepd_page()
28 static inline unsigned int hugepd_mmu_psize(hugepd_t hpd) in hugepd_mmu_psize() argument
30 return (hpd_val(hpd) & HUGEPD_SHIFT_MASK) >> 2; in hugepd_mmu_psize()
33 static inline unsigned int hugepd_shift(hugepd_t hpd) in hugepd_shift() argument
35 return mmu_psize_to_shift(hugepd_mmu_psize(hpd)); in hugepd_shift()
46 static inline pte_t *hugepd_page(hugepd_t hpd) in hugepd_page() argument
48 BUG_ON(!hugepd_ok(hpd)); in hugepd_page()
50 return (pte_t *)__va(hpd_val(hpd) & ~HUGEPD_SHIFT_MASK); in hugepd_page()
52 return (pte_t *)((hpd_val(hpd) & in hugepd_page()
57 static inline unsigned int hugepd_shift(hugepd_t hpd) in hugepd_shift() argument
60 return ((hpd_val(hpd) & _PMD_PAGE_MASK) >> 1) + 17; in hugepd_shift()
62 return hpd_val(hpd) & HUGEPD_SHIFT_MASK; in hugepd_shift()
69 static inline pte_t *hugepte_offset(hugepd_t hpd, unsigned long addr, in hugepte_offset() argument
79 pte_t *dir = hugepd_page(hpd); in hugepte_offset()
81 idx = (addr & ((1UL << pdshift) - 1)) >> hugepd_shift(hpd); in hugepte_offset()
186 static inline pte_t *hugepte_offset(hugepd_t hpd, unsigned long addr, in hugepte_offset() argument