Home
last modified time | relevance | path

Searched refs:hval (Results 1 – 13 of 13) sorted by relevance

/f-stack/freebsd/sys/
H A Dfnv_hash.h28 hval *= FNV_32_PRIME; in fnv_32_buf()
29 hval ^= *s++; in fnv_32_buf()
31 return hval; in fnv_32_buf()
41 hval *= FNV_32_PRIME; in fnv_32_str()
42 hval ^= c; in fnv_32_str()
44 return hval; in fnv_32_str()
53 hval *= FNV_64_PRIME; in fnv_64_buf()
54 hval ^= *s++; in fnv_64_buf()
56 return hval; in fnv_64_buf()
67 hval ^= c; in fnv_64_str()
[all …]
/f-stack/app/redis-5.0.5/src/
H A Dlzf_c.c127 unsigned int hval; in lzf_compress() local
139 hval = FRST (ip); in lzf_compress()
144 hval = NEXT (hval, ip); in lzf_compress()
145 hslot = htab + IDX (hval); in lzf_compress()
233 hval = FRST (ip); in lzf_compress()
235 hval = NEXT (hval, ip); in lzf_compress()
236 htab[IDX (hval)] = ip - LZF_HSLOT_BIAS; in lzf_compress()
240 hval = NEXT (hval, ip); in lzf_compress()
241 htab[IDX (hval)] = ip - LZF_HSLOT_BIAS; in lzf_compress()
249 hval = NEXT (hval, ip); in lzf_compress()
[all …]
/f-stack/freebsd/netpfil/ipfw/nat64/
H A Dnat64lsn.c385 state->hval = hval; in nat64lsn_get_state6to4()
1011 uint32_t hval, data[2]; in nat64lsn_alloc_host() local
1047 host->hval = ji->src6_hval; in nat64lsn_alloc_host()
1056 hval = ALIASLINK_HVAL(cfg, &ji->f_id); in nat64lsn_alloc_host()
1057 link->alias = &ALIAS_BYHASH(cfg, hval); in nat64lsn_alloc_host()
1425 ji->src6_hval = hval; in nat64lsn_request_host()
1448 ji->state_hval = hval; in nat64lsn_request_pg()
1495 uint32_t addr, hval, data[2]; in nat64lsn_translate6() local
1544 hval = HOST_HVAL(cfg, &f_id->src_ip6); in nat64lsn_translate6()
1553 hval, addr, port, proto)); in nat64lsn_translate6()
[all …]
H A Dnat64lsn.h54 uint32_t hval; member
167 uint32_t hval; member
/f-stack/tools/compat/include/vm/
H A Duma_int.h606 u_int hval; in hash_sfind() local
608 hval = UMA_HASH(hash, data); in hash_sfind()
610 LIST_FOREACH(slab, &hash->uh_slab_hash[hval], uhs_hlink) { in hash_sfind()
/f-stack/freebsd/vm/
H A Duma_int.h607 u_int hval; in hash_sfind() local
609 hval = UMA_HASH(hash, data); in hash_sfind()
611 LIST_FOREACH(slab, &hash->uh_slab_hash[hval], uhs_hlink) { in hash_sfind()
H A Duma_core.c1087 u_int hval; in hash_expand() local
1105 hval = UMA_HASH(newhash, slab->uhs_data); in hash_expand()
1106 LIST_INSERT_HEAD(&newhash->uh_slab_hash[hval], in hash_expand()
/f-stack/freebsd/net/
H A Dif_ipsec.c136 uint32_t hval; in ipsec_srchash() local
141 hval = fnv_32_buf( in ipsec_srchash()
144 return (&V_ipsec4_srchtbl[hval & (IPSEC_HASH_SIZE - 1)]); in ipsec_srchash()
148 hval = fnv_32_buf( in ipsec_srchash()
151 return (&V_ipsec6_srchtbl[hval & (IPSEC_HASH_SIZE - 1)]); in ipsec_srchash()
/f-stack/dpdk/drivers/net/e1000/base/
H A De1000_nvm.c1262 u8 q, hval, rem, result; in e1000_get_fw_version() local
1345 hval = q * NVM_HEX_TENS; in e1000_get_fw_version()
1347 result = hval + rem; in e1000_get_fw_version()
/f-stack/dpdk/drivers/net/igc/base/
H A Digc_nvm.c1253 u8 q, hval, rem, result; in igc_get_fw_version() local
1308 hval = q * NVM_HEX_TENS; in igc_get_fw_version()
1310 result = hval + rem; in igc_get_fw_version()
/f-stack/freebsd/contrib/openzfs/module/nvpair/
H A Dnvpair.c299 uint32_t g, hval = 0; in nvt_hash() local
302 hval = (hval << 4) + *p++; in nvt_hash()
303 if ((g = (hval & 0xf0000000)) != 0) in nvt_hash()
304 hval ^= g >> 24; in nvt_hash()
305 hval &= ~g; in nvt_hash()
307 return (hval); in nvt_hash()
/f-stack/freebsd/netipsec/
H A Dkey.c265 uint32_t hval; in key_addrprotohash() local
267 hval = fnv_32_buf(proto, sizeof(*proto), in key_addrprotohash()
272 hval = fnv_32_buf(&src->sin.sin_addr, in key_addrprotohash()
273 sizeof(in_addr_t), hval); in key_addrprotohash()
274 hval = fnv_32_buf(&dst->sin.sin_addr, in key_addrprotohash()
275 sizeof(in_addr_t), hval); in key_addrprotohash()
280 hval = fnv_32_buf(&src->sin6.sin6_addr, in key_addrprotohash()
281 sizeof(struct in6_addr), hval); in key_addrprotohash()
283 sizeof(struct in6_addr), hval); in key_addrprotohash()
287 hval = 0; in key_addrprotohash()
[all …]
/f-stack/freebsd/netpfil/ipfw/
H A Dip_fw_dynamic.c2639 #define DYN_RELINK_STATES(s, hval, i, head, ohead) do { \ in dyn_grow_hashtable() argument
2642 CK_SLIST_INSERT_HEAD(&head[DYN_BUCKET(s->hval, new)], \ in dyn_grow_hashtable()