Lines Matching refs:hash
152 #define VSID_MAKE(sr, hash) ((sr) | (((hash) & 0xfffff) << 4))
442 u_int hash;
444 hash = (sr & SR_VSID_MASK) ^ (((u_int)addr & ADDR_PIDX) >>
446 return (hash & moea_pteg_mask);
1657 u_int hash, n;
1662 * VSID more random so that the PT hash function collides
1667 hash = moea_vsidcontext & (NPMAPS - 1);
1668 if (hash == 0) /* 0 is special, avoid it */
1670 n = hash >> 5;
1671 mask = 1 << (hash & (VSID_NBPW - 1));
1672 hash = (moea_vsidcontext & 0xfffff);
1681 hash &= 0xfffff & ~(VSID_NBPW - 1);
1682 hash |= i;
1685 ("Allocating in-use VSID group %#x\n", hash));
1688 pmap->pm_sr[i] = VSID_MAKE(i, hash);
2198 * Have to substitute some entry. Use the primary hash for this.
2336 * First try primary hash.
2347 * Now try secondary hash.