Lines Matching refs:hash
111 unsigned int hash, mix = net_hash_mix(net); in udp6_portaddr_hash() local
114 hash = jhash_1word(0, mix); in udp6_portaddr_hash()
116 hash = jhash_1word((__force u32)addr6->s6_addr32[3], mix); in udp6_portaddr_hash()
118 hash = jhash2((__force u32 *)addr6->s6_addr32, 4, mix); in udp6_portaddr_hash()
120 return hash ^ port; in udp6_portaddr_hash()
243 u32 hash = 0; in udp6_lib_lookup2() local
256 hash = udp6_ehashfn(net, daddr, hnum, in udp6_lib_lookup2()
262 if (reciprocal_scale(hash, matches) == 0) in udp6_lib_lookup2()
264 hash = next_pseudo_random32(hash); in udp6_lib_lookup2()
296 struct udp_hslot *hslot2, *hslot = &udptable->hash[slot]; in __udp6_lib_lookup()
298 u32 hash = 0; in __udp6_lib_lookup() local
335 hash = udp6_ehashfn(net, daddr, hnum, in __udp6_lib_lookup()
341 if (reciprocal_scale(hash, matches) == 0) in __udp6_lib_lookup()
343 hash = next_pseudo_random32(hash); in __udp6_lib_lookup()
1536 .hash = udp_lib_hash,