Lines Matching refs:sz
55 unsigned long addr, unsigned long sz) in huge_pte_alloc() argument
60 addr &= -sz; /* Mask off any low bits in the address. */ in huge_pte_alloc()
66 if (sz >= PGDIR_SIZE) { in huge_pte_alloc()
67 BUG_ON(sz != PGDIR_SIZE && in huge_pte_alloc()
68 sz != PGDIR_SIZE << huge_shift[HUGE_SHIFT_PGDIR]); in huge_pte_alloc()
72 if (sz >= PMD_SIZE) { in huge_pte_alloc()
73 BUG_ON(sz != PMD_SIZE && in huge_pte_alloc()
74 sz != (PMD_SIZE << huge_shift[HUGE_SHIFT_PMD])); in huge_pte_alloc()
78 if (sz != PAGE_SIZE << huge_shift[HUGE_SHIFT_PAGE]) in huge_pte_alloc()
79 panic("Unexpected page size %#lx\n", sz); in huge_pte_alloc()
84 BUG_ON(sz != PMD_SIZE); in huge_pte_alloc()