Lines Matching defs:shift
141 .shift = 12,
156 .shift = 12,
163 .shift = 24,
352 unsigned int step, shift;
355 shift = mmu_psize_defs[psize].shift;
356 step = 1 << shift;
398 hash = hpt_hash(vpn, shift, ssize);
438 unsigned int step, shift;
442 shift = mmu_psize_defs[psize].shift;
443 step = 1 << shift;
549 static int __init get_idx_from_shift(unsigned int shift)
553 switch (shift) {
610 def->shift = base_shift;
626 unsigned int shift = be32_to_cpu(prop[0]);
632 idx = get_idx_from_shift(shift);
638 "shift=%d\n", base_shift, shift);
641 pr_info("base_shift=%d: shift=%d, sllp=0x%04lx,"
643 base_shift, shift, def->sllp,
780 long int shift, penc;
783 if (!mmu_psize_defs[bp].shift)
787 if (penc == -1 || !mmu_psize_defs[ap].shift)
789 shift = mmu_psize_defs[ap].shift - LP_SHIFT;
790 if (shift <= 0)
799 penc += 1 << shift;
817 if (mmu_psize_defs[MMU_PAGE_16M].shift)
822 if (mmu_psize_defs[MMU_PAGE_16M].shift && aligned)
824 else if (mmu_psize_defs[MMU_PAGE_1M].shift)
838 if (mmu_psize_defs[MMU_PAGE_64K].shift) {
861 if (mmu_psize_defs[MMU_PAGE_16M].shift &&
874 mmu_psize_defs[mmu_linear_psize].shift,
875 mmu_psize_defs[mmu_virtual_psize].shift,
876 mmu_psize_defs[mmu_io_psize].shift
878 ,mmu_psize_defs[mmu_vmemmap_psize].shift
906 unsigned pshift = mmu_psize_defs[mmu_virtual_psize].shift;
952 * shift exceeds the current shift, but we won't attempt to
953 * reduce unless the target shift is at least 2 below the
954 * current shift
1531 ea &= ~((1ul << mmu_psize_defs[psize].shift) - 1);
1909 unsigned long pte_get_hash_gslot(unsigned long vpn, unsigned long shift,
1914 hash = hpt_hash(vpn, shift, ssize);
1926 unsigned long index, shift, gslot;
1930 pte_iterate_hashed_subpages(pte, psize, vpn, index, shift) {
1931 gslot = pte_get_hash_gslot(vpn, shift, ssize, pte, index);
1952 unsigned long hidx, shift, vpn, hash, slot;
1973 shift = mmu_psize_defs[psize].shift;
1974 max_hpte_count = HPAGE_PMD_SIZE >> shift;
1986 addr = s_addr + (i * (1ul << shift));
1988 hash = hpt_hash(vpn, shift, ssize);