Home
last modified time | relevance | path

Searched refs:fnv_32_buf (Results 1 – 25 of 27) sorted by relevance

12

/freebsd/sys/kern/
H A Duipc_mbufhash.c63 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 Dvfs_cache.c885 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 Dip6_gre.c85 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 Din6_gif.c98 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 Din6_var.h533 return (fnv_32_buf(&x, sizeof(x), FNV1_32_INIT)); in in6_addrhash()
/freebsd/sys/netinet/
H A Din_gif.c93 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 Dip_gre.c94 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 Din_var.h123 #define INADDR_HASHVAL(x) fnv_32_buf((&(x)), sizeof(x), FNV1_32_INIT)
/freebsd/sys/sys/
H A Dfnv_hash.h21 fnv_32_buf(const void *buf, size_t len, Fnv32_t hval) in fnv_32_buf() function
/freebsd/sys/fs/fuse/
H A Dfuse_node.h171 return (fnv_32_buf(&id, sizeof(id), FNV1_32_INIT)); in fuse_vnode_hash()
/freebsd/sys/net/
H A Dif_me.c104 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 Dif_ipsec.c128 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 Dt4_tom_l2t.c95 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 Dt4_listen.c398 return (fnv_32_buf(&key, sizeof(key), FNV1_32_INIT) & mask); in listen_hashfn()
/freebsd/sys/dev/cxgbe/
H A Dt4_filter.c91 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 Dt4_clip.c120 return (fnv_32_buf(addr, sizeof(*addr), FNV1_32_INIT) & clip_db_mask); in clip_hashfn()
/freebsd/sys/fs/nfsclient/
H A Dnfs_clnode.c110 hash = fnv_32_buf(fhp, fhsize, FNV1_32_INIT); in ncl_nget()
H A Dnfs_clport.c153 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 Dsmbfs_node.c64 return (fnv_32_buf(name, nmlen, FNV1_32_INIT)); in smbfs_hash()
/freebsd/sys/ufs/ufs/
H A Dufs_dirhash.c1043 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 Dp9fs_vfsops.c270 hash = fnv_32_buf(&fid->qid.path, sizeof(uint64_t), FNV1_32_INIT); in p9fs_vget_common()
/freebsd/sys/fs/nfs/
H A Dnfsport.h1150 #define ncl_hash(f, l) (fnv_32_buf((f), (l), FNV1_32_INIT))
/freebsd/usr.bin/vtfontcvt/
H A Dvtfontcvt.c264 hash = fnv_32_buf(bytes, wbytes * height, FNV1_32_INIT) % FONTCVT_NHASH; in add_glyph()
/freebsd/sys/netipsec/
H A Dkey.c292 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 Dtmpfs_subr.c855 hash = fnv_32_buf(name, len, FNV1_32_INIT + len) & TMPFS_DIRCOOKIE_MASK; in tmpfs_dirent_hash()

12