Home
last modified time | relevance | path

Searched refs:vsid_modulus (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/arch/powerpc/platforms/pseries/
Dlpar.c1954 unsigned long modinv, vsid_modulus; in vsid_unscramble() local
1962 vsid_modulus = ((1UL << (va_bits - SID_SHIFT)) - 1); in vsid_unscramble()
1965 vsid_modulus = ((1UL << (va_bits - SID_SHIFT_1T)) - 1); in vsid_unscramble()
1971 if (vsid >= vsid_modulus) in vsid_unscramble()
1983 return (vsid * modinv) % vsid_modulus; in vsid_unscramble()
1988 protovsid = (((vsid * max_mod_inv) % vsid_modulus) * tmp_modinv) % vsid_modulus; in vsid_unscramble()
1989 protovsid = (protovsid + vsid * modinv) % vsid_modulus; in vsid_unscramble()
/linux-6.1.9/arch/powerpc/include/asm/book3s/64/
Dmmu-hash.h758 unsigned long vsid_modulus = ((1UL << vsid_bits) - 1); in vsid_scramble() local
763 vsid = (vsid >> vsid_bits) + (vsid & vsid_modulus); in vsid_scramble()
764 return (vsid + ((vsid + 1) >> vsid_bits)) & vsid_modulus; in vsid_scramble()