Home
last modified time | relevance | path

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

/linux-6.6.21/arch/powerpc/include/asm/book3s/64/
Dmmu-hash.h741 #define vsid_scramble(protovsid, size) \
742 ((((protovsid) * VSID_MULTIPLIER_##size) % VSID_MODULUS_##size))
745 #define vsid_scramble(protovsid, size) \
748 x = (protovsid) * VSID_MULTIPLIER_##size; \
754 static inline unsigned long vsid_scramble(unsigned long protovsid, in vsid_scramble() argument
762 vsid = protovsid * vsid_multiplier; in vsid_scramble()
783 unsigned long protovsid; in get_vsid() local
796 protovsid = (context << ESID_BITS) | in get_vsid()
798 return vsid_scramble(protovsid, VSID_MULTIPLIER_256M, vsid_bits); in get_vsid()
802 protovsid = (context << ESID_BITS_1T) | in get_vsid()
[all …]
/linux-6.6.21/arch/powerpc/platforms/pseries/
Dlpar.c1932 unsigned long protovsid; in vsid_unscramble() local
1968 protovsid = (((vsid * max_mod_inv) % vsid_modulus) * tmp_modinv) % vsid_modulus; in vsid_unscramble()
1969 protovsid = (protovsid + vsid * modinv) % vsid_modulus; in vsid_unscramble()
1971 return protovsid; in vsid_unscramble()
1976 unsigned long protovsid; in reserve_vrma_context_id() local
1985 protovsid = vsid_unscramble(VRMA_VSID, MMU_SEGSIZE_1T); in reserve_vrma_context_id()
1986 hash__reserve_context_id(protovsid >> ESID_BITS_1T); in reserve_vrma_context_id()