Lines Matching refs:hpd
15 static inline pte_t *hugepd_page(hugepd_t hpd) in hugepd_page() argument
17 BUG_ON(!hugepd_ok(hpd)); in hugepd_page()
22 return (pte_t *)(hpd.pd & ~HUGEPD_SHIFT_MASK); in hugepd_page()
25 static inline unsigned int hugepd_mmu_psize(hugepd_t hpd) in hugepd_mmu_psize() argument
27 return (hpd.pd & HUGEPD_SHIFT_MASK) >> 2; in hugepd_mmu_psize()
30 static inline unsigned int hugepd_shift(hugepd_t hpd) in hugepd_shift() argument
32 return mmu_psize_to_shift(hugepd_mmu_psize(hpd)); in hugepd_shift()
37 static inline pte_t *hugepd_page(hugepd_t hpd) in hugepd_page() argument
39 BUG_ON(!hugepd_ok(hpd)); in hugepd_page()
40 return (pte_t *)((hpd.pd & ~HUGEPD_SHIFT_MASK) | PD_HUGE); in hugepd_page()
43 static inline unsigned int hugepd_shift(hugepd_t hpd) in hugepd_shift() argument
45 return hpd.pd & HUGEPD_SHIFT_MASK; in hugepd_shift()
51 static inline pte_t *hugepte_offset(hugepd_t hpd, unsigned long addr, in hugepte_offset() argument
61 pte_t *dir = hugepd_page(hpd); in hugepte_offset()
63 idx = (addr & ((1UL << pdshift) - 1)) >> hugepd_shift(hpd); in hugepte_offset()
196 static inline pte_t *hugepte_offset(hugepd_t hpd, unsigned long addr, in hugepte_offset() argument