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()
313 static void free_hugepd_range(struct mmu_gather *tlb, hugepd_t *hpdp, int pdshift, in free_hugepd_range() argument
320 unsigned long pdmask = ~((1UL << pdshift) - 1); in free_hugepd_range()
325 if (shift > pdshift) in free_hugepd_range()
326 num_hugepd = 1 << (shift - pdshift); in free_hugepd_range()
334 if (shift >= pdshift) in free_hugepd_range()
338 get_hugepd_cache_index(pdshift - shift)); in free_hugepd_range()
505 int flags, int pdshift) in follow_huge_pd() argument
522 ptep = hugepte_offset(hpd, address, pdshift); in follow_huge_pd()
614 unsigned pdshift; in hugetlbpage_init() local
625 pdshift = PGDIR_SHIFT; in hugetlbpage_init()
627 pdshift = PUD_SHIFT; in hugetlbpage_init()
629 pdshift = PMD_SHIFT; in hugetlbpage_init()
632 pdshift = PMD_SHIFT; in hugetlbpage_init()
634 pdshift = PUD_SHIFT; in hugetlbpage_init()
636 pdshift = PGDIR_SHIFT; in hugetlbpage_init()
645 if (pdshift > shift) { in hugetlbpage_init()
647 pgtable_cache_add(pdshift - shift); in hugetlbpage_init()