Lines Matching refs:pdshift
45 unsigned long address, unsigned int pdshift, in __hugepte_alloc() argument
53 if (pshift >= pdshift) { in __hugepte_alloc()
55 num_hugepd = 1 << (pshift - pdshift); in __hugepte_alloc()
57 cachep = PGT_CACHE(pdshift - pshift); in __hugepte_alloc()
118 unsigned pdshift = PGDIR_SHIFT; in huge_pte_alloc() local
136 pdshift = PUD_SHIFT; in huge_pte_alloc()
146 pdshift = PMD_SHIFT; in huge_pte_alloc()
164 pdshift = PUD_SHIFT; in huge_pte_alloc()
172 pdshift = PMD_SHIFT; in huge_pte_alloc()
190 pdshift, pshift, ptl)) in huge_pte_alloc()
193 return hugepte_offset(*hpdp, addr, pdshift); in huge_pte_alloc()
298 static void free_hugepd_range(struct mmu_gather *tlb, hugepd_t *hpdp, int pdshift, in free_hugepd_range() argument
305 unsigned long pdmask = ~((1UL << pdshift) - 1); in free_hugepd_range()
310 if (shift > pdshift) in free_hugepd_range()
311 num_hugepd = 1 << (shift - pdshift); in free_hugepd_range()
327 if (shift >= pdshift) in free_hugepd_range()
331 get_hugepd_cache_index(pdshift - shift)); in free_hugepd_range()
523 int flags, int pdshift) in follow_huge_pd() argument
540 ptep = hugepte_offset(hpd, address, pdshift); in follow_huge_pd()
632 unsigned pdshift; in hugetlbpage_init() local
643 pdshift = PGDIR_SHIFT; in hugetlbpage_init()
645 pdshift = PUD_SHIFT; in hugetlbpage_init()
647 pdshift = PMD_SHIFT; in hugetlbpage_init()
650 pdshift = PMD_SHIFT; in hugetlbpage_init()
652 pdshift = PUD_SHIFT; in hugetlbpage_init()
654 pdshift = PGDIR_SHIFT; in hugetlbpage_init()
663 if (pdshift > shift) { in hugetlbpage_init()
665 pgtable_cache_add(pdshift - shift); in hugetlbpage_init()