/freebsd/sys/kern/ |
H A D | uipc_mbufhash.c | 63 return (fnv_32_buf(&seed, sizeof(seed), FNV1_32_INIT)); in m_ether_tcpip_hash_init() 72 return (fnv_32_buf(&seed, sizeof(seed), FNV1_32_INIT)); in m_infiniband_tcpip_hash_init() 103 p = fnv_32_buf(&ip->ip_src, sizeof(struct in_addr), p); in m_tcpip_hash() 104 p = fnv_32_buf(&ip->ip_dst, sizeof(struct in_addr), p); in m_tcpip_hash() 122 p = fnv_32_buf(ports, sizeof(*ports), p); in m_tcpip_hash() 136 p = fnv_32_buf(&ip6->ip6_src, sizeof(struct in6_addr), p); in m_tcpip_hash() 137 p = fnv_32_buf(&ip6->ip6_dst, sizeof(struct in6_addr), p); in m_tcpip_hash() 144 p = fnv_32_buf(&flow, sizeof(flow), p); in m_tcpip_hash() 172 p = fnv_32_buf(&eh->ether_shost, ETHER_ADDR_LEN, p); in m_ether_tcpip_hash() 173 p = fnv_32_buf(&eh->ether_dhost, ETHER_ADDR_LEN, p); in m_ether_tcpip_hash() [all …]
|
H A D | vfs_cache.c | 885 vp->v_nchash = fnv_32_buf(&vp, sizeof(vp), FNV1_32_INIT); in cache_prehash() 892 return (fnv_32_buf(name, len, dvp->v_nchash)); in cache_get_hash() 906 return (fnv_32_buf(&c, 1, hash)); in cache_get_hash_iter()
|
/freebsd/sys/netinet6/ |
H A D | ip6_gre.c | 85 fnv_32_buf((src), sizeof(*src), FNV1_32_INIT) & (GRE_HASH_SIZE - 1)]) 87 fnv_32_buf((src), sizeof(*src), FNV1_32_INIT) & (GRE_HASH_SIZE - 1)]) 96 ret = fnv_32_buf(src, sizeof(*src), FNV1_32_INIT); in in6_gre_hashval() 97 return (fnv_32_buf(dst, sizeof(*dst), ret)); in in6_gre_hashval()
|
H A D | in6_gif.c | 98 fnv_32_buf((src), sizeof(*src), FNV1_32_INIT) & (GIF_HASH_SIZE - 1)]) 106 ret = fnv_32_buf(src, sizeof(*src), FNV1_32_INIT); in in6_gif_hashval() 107 return (fnv_32_buf(dst, sizeof(*dst), ret)); in in6_gif_hashval()
|
H A D | in6_var.h | 533 return (fnv_32_buf(&x, sizeof(x), FNV1_32_INIT)); in in6_addrhash()
|
/freebsd/sys/netinet/ |
H A D | in_gif.c | 93 fnv_32_buf(&(src), sizeof(src), FNV1_32_INIT) & (GIF_HASH_SIZE - 1)]) 101 ret = fnv_32_buf(&src, sizeof(src), FNV1_32_INIT); in in_gif_hashval() 102 return (fnv_32_buf(&dst, sizeof(dst), ret)); in in_gif_hashval()
|
H A D | ip_gre.c | 94 fnv_32_buf(&(src), sizeof(src), FNV1_32_INIT) & (GRE_HASH_SIZE - 1)]) 96 fnv_32_buf(&(src), sizeof(src), FNV1_32_INIT) & (GRE_HASH_SIZE - 1)]) 105 ret = fnv_32_buf(&src, sizeof(src), FNV1_32_INIT); in in_gre_hashval() 106 return (fnv_32_buf(&dst, sizeof(dst), ret)); in in_gre_hashval()
|
H A D | in_var.h | 123 #define INADDR_HASHVAL(x) fnv_32_buf((&(x)), sizeof(x), FNV1_32_INIT)
|
/freebsd/sys/sys/ |
H A D | fnv_hash.h | 21 fnv_32_buf(const void *buf, size_t len, Fnv32_t hval) in fnv_32_buf() function
|
/freebsd/sys/fs/fuse/ |
H A D | fuse_node.h | 171 return (fnv_32_buf(&id, sizeof(id), FNV1_32_INIT)); in fuse_vnode_hash()
|
/freebsd/sys/net/ |
H A D | if_me.c | 104 fnv_32_buf(&(src), sizeof(src), FNV1_32_INIT) & (ME_HASH_SIZE - 1)]) 144 ret = fnv_32_buf(&src, sizeof(src), FNV1_32_INIT); in me_hashval() 145 return (fnv_32_buf(&dst, sizeof(dst), ret)); in me_hashval()
|
H A D | if_ipsec.c | 128 return (&V_ipsec_idhtbl[fnv_32_buf(&id, sizeof(id), in ipsec_idhash() 140 hval = fnv_32_buf( in ipsec_srchash() 147 hval = fnv_32_buf( in ipsec_srchash()
|
/freebsd/sys/dev/cxgbe/tom/ |
H A D | t4_tom_l2t.c | 95 hash = fnv_32_buf(key, len, FNV1_32_INIT); in l2_hash() 96 hash = fnv_32_buf(&ifindex, sizeof(ifindex), hash); in l2_hash()
|
H A D | t4_listen.c | 398 return (fnv_32_buf(&key, sizeof(key), FNV1_32_INIT) & mask); in listen_hashfn()
|
/freebsd/sys/dev/cxgbe/ |
H A D | t4_filter.c | 91 hash = fnv_32_buf(&ft->sip[0], 16, FNV1_32_INIT); in hf_hashfn_4t() 92 hash = fnv_32_buf(&ft->dip[0], 16, hash); in hf_hashfn_4t() 94 hash = fnv_32_buf(&ft->sip[0], 4, FNV1_32_INIT); in hf_hashfn_4t() 95 hash = fnv_32_buf(&ft->dip[0], 4, hash); in hf_hashfn_4t() 97 hash = fnv_32_buf(&ft->sport, sizeof(ft->sport), hash); in hf_hashfn_4t() 98 hash = fnv_32_buf(&ft->dport, sizeof(ft->dport), hash); in hf_hashfn_4t() 107 return (fnv_32_buf(&tid, sizeof(tid), FNV1_32_INIT)); in hf_hashfn_tid()
|
H A D | t4_clip.c | 120 return (fnv_32_buf(addr, sizeof(*addr), FNV1_32_INIT) & clip_db_mask); in clip_hashfn()
|
/freebsd/sys/fs/nfsclient/ |
H A D | nfs_clnode.c | 110 hash = fnv_32_buf(fhp, fhsize, FNV1_32_INIT); in ncl_nget()
|
H A D | nfs_clport.c | 153 hash = fnv_32_buf(nfhp->nfh_fh, nfhp->nfh_len, FNV1_32_INIT); in nfscl_nget() 343 hash = fnv_32_buf(fhp, fhsize, FNV1_32_INIT); in nfscl_ngetreopen()
|
/freebsd/sys/fs/smbfs/ |
H A D | smbfs_node.c | 64 return (fnv_32_buf(name, nmlen, FNV1_32_INIT)); in smbfs_hash()
|
/freebsd/sys/ufs/ufs/ |
H A D | ufs_dirhash.c | 1043 hash = fnv_32_buf(name, namelen, FNV1_32_INIT); in ufsdirhash_hash() 1044 hash = fnv_32_buf(&dh, sizeof(dh), hash); in ufsdirhash_hash()
|
/freebsd/sys/fs/p9fs/ |
H A D | p9fs_vfsops.c | 270 hash = fnv_32_buf(&fid->qid.path, sizeof(uint64_t), FNV1_32_INIT); in p9fs_vget_common()
|
/freebsd/sys/fs/nfs/ |
H A D | nfsport.h | 1150 #define ncl_hash(f, l) (fnv_32_buf((f), (l), FNV1_32_INIT))
|
/freebsd/usr.bin/vtfontcvt/ |
H A D | vtfontcvt.c | 264 hash = fnv_32_buf(bytes, wbytes * height, FNV1_32_INIT) % FONTCVT_NHASH; in add_glyph()
|
/freebsd/sys/netipsec/ |
H A D | key.c | 292 hval = fnv_32_buf(proto, sizeof(*proto), in key_addrprotohash() 297 hval = fnv_32_buf(&src->sin.sin_addr, in key_addrprotohash() 299 hval = fnv_32_buf(&dst->sin.sin_addr, in key_addrprotohash() 305 hval = fnv_32_buf(&src->sin6.sin6_addr, in key_addrprotohash() 307 hval = fnv_32_buf(&dst->sin6.sin6_addr, in key_addrprotohash() 323 return (fnv_32_buf(&val, sizeof(val), FNV1_32_INIT)); in key_u32hash()
|
/freebsd/sys/fs/tmpfs/ |
H A D | tmpfs_subr.c | 855 hash = fnv_32_buf(name, len, FNV1_32_INIT + len) & TMPFS_DIRCOOKIE_MASK; in tmpfs_dirent_hash()
|