Lines Matching refs:h
89 unsigned int h = family ^ reqid; in __xfrm_dst_hash() local
92 h ^= __xfrm4_daddr_saddr_hash(daddr, saddr); in __xfrm_dst_hash()
95 h ^= __xfrm6_daddr_saddr_hash(daddr, saddr); in __xfrm_dst_hash()
98 return (h ^ (h >> 16)) & hmask; in __xfrm_dst_hash()
106 unsigned int h = family; in __xfrm_src_hash() local
109 h ^= __xfrm4_daddr_saddr_hash(daddr, saddr); in __xfrm_src_hash()
112 h ^= __xfrm6_daddr_saddr_hash(daddr, saddr); in __xfrm_src_hash()
115 return (h ^ (h >> 16)) & hmask; in __xfrm_src_hash()
122 unsigned int h = (__force u32)spi ^ proto; in __xfrm_spi_hash() local
125 h ^= __xfrm4_addr_hash(daddr); in __xfrm_spi_hash()
128 h ^= __xfrm6_addr_hash(daddr); in __xfrm_spi_hash()
131 return (h ^ (h >> 10) ^ (h >> 20)) & hmask; in __xfrm_spi_hash()
137 unsigned int h = seq; in __xfrm_seq_hash() local
138 return (h ^ (h >> 10) ^ (h >> 20)) & hmask; in __xfrm_seq_hash()
152 unsigned int h = 0; in __sel_hash() local
160 h = __xfrm4_dpref_spref_hash(daddr, saddr, dbits, sbits); in __sel_hash()
168 h = __xfrm6_dpref_spref_hash(daddr, saddr, dbits, sbits); in __sel_hash()
171 h ^= (h >> 16); in __sel_hash()
172 return h & hmask; in __sel_hash()
181 unsigned int h = 0; in __addr_hash() local
185 h = __xfrm4_dpref_spref_hash(daddr, saddr, dbits, sbits); in __addr_hash()
189 h = __xfrm6_dpref_spref_hash(daddr, saddr, dbits, sbits); in __addr_hash()
192 h ^= (h >> 16); in __addr_hash()
193 return h & hmask; in __addr_hash()