Searched refs:protovsid (Results 1 – 2 of 2) sorted by relevance
741 #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() argument762 vsid = protovsid * vsid_multiplier; in vsid_scramble()783 unsigned long protovsid; in get_vsid() local796 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 …]
1932 unsigned long protovsid; in vsid_unscramble() local1968 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() local1985 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()