Home
last modified time | relevance | path

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

/Linux-v5.10/arch/powerpc/include/asm/book3s/64/
Dmmu-hash.h729 #define vsid_scramble(protovsid, size) \
730 ((((protovsid) * VSID_MULTIPLIER_##size) % VSID_MODULUS_##size))
733 #define vsid_scramble(protovsid, size) \
736 x = (protovsid) * VSID_MULTIPLIER_##size; \
742 static inline unsigned long vsid_scramble(unsigned long protovsid, in vsid_scramble() argument
750 vsid = protovsid * vsid_multiplier; in vsid_scramble()
771 unsigned long protovsid; in get_vsid() local
784 protovsid = (context << ESID_BITS) | in get_vsid()
786 return vsid_scramble(protovsid, VSID_MULTIPLIER_256M, vsid_bits); in get_vsid()
790 protovsid = (context << ESID_BITS_1T) | in get_vsid()
[all …]
/Linux-v5.10/arch/powerpc/platforms/pseries/
Dlpar.c1935 unsigned long protovsid; in vsid_unscramble() local
1971 protovsid = (((vsid * max_mod_inv) % vsid_modulus) * tmp_modinv) % vsid_modulus; in vsid_unscramble()
1972 protovsid = (protovsid + vsid * modinv) % vsid_modulus; in vsid_unscramble()
1974 return protovsid; in vsid_unscramble()
1979 unsigned long protovsid; in reserve_vrma_context_id() local
1988 protovsid = vsid_unscramble(VRMA_VSID, MMU_SEGSIZE_1T); in reserve_vrma_context_id()
1989 hash__reserve_context_id(protovsid >> ESID_BITS_1T); in reserve_vrma_context_id()