Home
last modified time | relevance | path

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

/arch/powerpc/include/asm/book3s/64/
Dmmu-hash.h734 #define vsid_scramble(protovsid, size) \
735 ((((protovsid) * VSID_MULTIPLIER_##size) % VSID_MODULUS_##size))
738 #define vsid_scramble(protovsid, size) \
741 x = (protovsid) * VSID_MULTIPLIER_##size; \
747 static inline unsigned long vsid_scramble(unsigned long protovsid, in vsid_scramble() argument
755 vsid = protovsid * vsid_multiplier; in vsid_scramble()
776 unsigned long protovsid; in get_vsid() local
789 protovsid = (context << ESID_BITS) | in get_vsid()
791 return vsid_scramble(protovsid, VSID_MULTIPLIER_256M, vsid_bits); in get_vsid()
795 protovsid = (context << ESID_BITS_1T) | in get_vsid()
[all …]
/arch/powerpc/platforms/pseries/
Dlpar.c1931 unsigned long protovsid; in vsid_unscramble() local
1967 protovsid = (((vsid * max_mod_inv) % vsid_modulus) * tmp_modinv) % vsid_modulus; in vsid_unscramble()
1968 protovsid = (protovsid + vsid * modinv) % vsid_modulus; in vsid_unscramble()
1970 return protovsid; in vsid_unscramble()
1975 unsigned long protovsid; in reserve_vrma_context_id() local
1984 protovsid = vsid_unscramble(VRMA_VSID, MMU_SEGSIZE_1T); in reserve_vrma_context_id()
1985 hash__reserve_context_id(protovsid >> ESID_BITS_1T); in reserve_vrma_context_id()