Home
last modified time | relevance | path

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

/freebsd/sys/sys/
H A Dfnv_hash.h26 hval *= FNV_32_PRIME; in fnv_32_buf()
27 hval ^= *s++; in fnv_32_buf()
29 return hval; in fnv_32_buf()
39 hval *= FNV_32_PRIME; in fnv_32_str()
40 hval ^= c; in fnv_32_str()
42 return hval; in fnv_32_str()
51 hval *= FNV_64_PRIME; in fnv_64_buf()
52 hval ^= *s++; in fnv_64_buf()
54 return hval; in fnv_64_buf()
65 hval ^= c; in fnv_64_str()
[all …]
/freebsd/sbin/hastd/
H A Dlzf.c130 unsigned int hval; in lzf_compress() local
146 hval = FRST (ip); in lzf_compress()
149 hval = NEXT (hval, ip); in lzf_compress()
150 hslot = htab + IDX (hval); in lzf_compress()
240 hval = FRST (ip); in lzf_compress()
242 hval = NEXT (hval, ip); in lzf_compress()
243 htab[IDX (hval)] = ip; in lzf_compress()
247 hval = NEXT (hval, ip); in lzf_compress()
248 htab[IDX (hval)] = ip; in lzf_compress()
256 hval = NEXT (hval, ip); in lzf_compress()
[all …]
/freebsd/sys/dev/cxgbe/cudbg/
H A Dfastlz.c192 unsigned int hval; in FASTLZ_COMPRESSOR() local
242 HASH_FUNCTION(hval, ip); in FASTLZ_COMPRESSOR()
243 hslot = htab + hval; in FASTLZ_COMPRESSOR()
244 ref = htab[hval]; in FASTLZ_COMPRESSOR()
384 HASH_FUNCTION(hval, ip); in FASTLZ_COMPRESSOR()
385 htab[hval] = ip++; in FASTLZ_COMPRESSOR()
386 HASH_FUNCTION(hval, ip); in FASTLZ_COMPRESSOR()
387 htab[hval] = ip++; in FASTLZ_COMPRESSOR()
/freebsd/sys/netpfil/ipfw/nat64/
H A Dnat64lsn.c382 state->hval = hval; in nat64lsn_get_state6to4()
1008 uint32_t hval, data[2]; in nat64lsn_alloc_host() local
1044 host->hval = ji->src6_hval; in nat64lsn_alloc_host()
1053 hval = ALIASLINK_HVAL(cfg, &ji->f_id); in nat64lsn_alloc_host()
1054 link->alias = &ALIAS_BYHASH(cfg, hval); in nat64lsn_alloc_host()
1422 ji->src6_hval = hval; in nat64lsn_request_host()
1445 ji->state_hval = hval; in nat64lsn_request_pg()
1492 uint32_t addr, hval, data[2]; in nat64lsn_translate6() local
1541 hval = HOST_HVAL(cfg, &f_id->src_ip6); in nat64lsn_translate6()
1550 hval, addr, port, proto)); in nat64lsn_translate6()
[all …]
H A Dnat64lsn.h52 uint32_t hval; member
165 uint32_t hval; member
/freebsd/usr.bin/mkstr/
H A Dmkstr.c258 long hval; member
281 if (hp->hval == hashval) { in hashit()
295 hp->hval = hashval; in hashit()
/freebsd/sys/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.c1287 u_int hval; in hash_expand() local
1305 hval = UMA_HASH(newhash, slab->uhs_data); in hash_expand()
1306 LIST_INSERT_HEAD(&newhash->uh_slab_hash[hval], in hash_expand()
/freebsd/sys/net/
H A Dif_ipsec.c135 uint32_t hval; in ipsec_srchash() local
140 hval = fnv_32_buf( in ipsec_srchash()
143 return (&V_ipsec4_srchtbl[hval & (IPSEC_HASH_SIZE - 1)]); in ipsec_srchash()
147 hval = fnv_32_buf( in ipsec_srchash()
150 return (&V_ipsec6_srchtbl[hval & (IPSEC_HASH_SIZE - 1)]); in ipsec_srchash()
/freebsd/sys/dev/bhnd/nvram/
H A Dbhnd_nvram_data_bcm.c668 union bhnd_nvram_bcm_hvar_value hval; in bhnd_nvram_bcm_init() local
685 hval_len = sizeof(hval); in bhnd_nvram_bcm_init()
687 BHND_NVRAM_TYPE_STRING, &hval, &hval_len, in bhnd_nvram_bcm_init()
697 } else if (memcmp(&hval, &hvar->value, hval_len) != 0) { in bhnd_nvram_bcm_init()
/freebsd/contrib/ntp/ntpq/
H A Dntpq.c3669 sockaddr_u hval; in cookedprint() local
3703 if (!value || !decodenetnum(value, &hval)) { in cookedprint()
3706 output(fp, name, nntohost(&hval)); in cookedprint()
3708 output(fp, name, stoa(&hval)); in cookedprint()
3715 } else if (decodenetnum(value, &hval)) { in cookedprint()
3716 if (datatype == TYPE_CLOCK && IS_IPV4(&hval)) { in cookedprint()
3723 unsigned char *str = (unsigned char *)&(hval.sa4).sin_addr; in cookedprint()
3729 } else if (ISREFCLOCKADR(&hval)) { in cookedprint()
3730 output(fp, name, refnumtoa(&hval)); in cookedprint()
3733 output(fp, name, stoa(&hval)); in cookedprint()
[all …]
/freebsd/sys/cddl/contrib/opensolaris/uts/common/dtrace/
H A Dfasttrap.c282 uint_t hval = 0; in fasttrap_hash_str() local
285 hval = (hval << 4) + *p++; in fasttrap_hash_str()
286 if ((g = (hval & 0xf0000000)) != 0) in fasttrap_hash_str()
287 hval ^= g >> 24; in fasttrap_hash_str()
288 hval &= ~g; in fasttrap_hash_str()
290 return (hval); in fasttrap_hash_str()
H A Ddtrace.c8027 uint_t hval = 0; local
8030 hval = (hval << 4) + *p++;
8031 if ((g = (hval & 0xf0000000)) != 0)
8032 hval ^= g >> 24;
8033 hval &= ~g;
8035 return (hval);
8321 if (dtrace_errhash[hval].dter_msg == str) {
8322 dtrace_errhash[hval].dter_count++;
8327 hval = (hval + 1) % DTRACE_ERRHASHSZ;
8331 dtrace_errhash[hval].dter_msg = str;
[all …]
/freebsd/sys/dev/e1000/
H A De1000_nvm.c1288 u8 q, hval, rem, result; in e1000_get_fw_version() local
1371 hval = q * NVM_HEX_TENS; in e1000_get_fw_version()
1373 result = hval + rem; in e1000_get_fw_version()
/freebsd/sys/contrib/openzfs/module/nvpair/
H A Dnvpair.c300 uint32_t g, hval = 0; in nvt_hash() local
303 hval = (hval << 4) + *p++; in nvt_hash()
304 if ((g = (hval & 0xf0000000)) != 0) in nvt_hash()
305 hval ^= g >> 24; in nvt_hash()
306 hval &= ~g; in nvt_hash()
308 return (hval); in nvt_hash()
/freebsd/sys/netipsec/
H A Dkey.c270 uint32_t hval; in key_addrprotohash() local
272 hval = fnv_32_buf(proto, sizeof(*proto), in key_addrprotohash()
277 hval = fnv_32_buf(&src->sin.sin_addr, in key_addrprotohash()
278 sizeof(in_addr_t), hval); in key_addrprotohash()
279 hval = fnv_32_buf(&dst->sin.sin_addr, in key_addrprotohash()
280 sizeof(in_addr_t), hval); in key_addrprotohash()
285 hval = fnv_32_buf(&src->sin6.sin6_addr, in key_addrprotohash()
286 sizeof(struct in6_addr), hval); in key_addrprotohash()
288 sizeof(struct in6_addr), hval); in key_addrprotohash()
292 hval = 0; in key_addrprotohash()
[all …]
/freebsd/sys/netpfil/ipfw/
H A Dip_fw_dynamic.c2670 #define DYN_RELINK_STATES(s, hval, i, head, ohead) do { \ in dyn_grow_hashtable() argument
2673 CK_SLIST_INSERT_HEAD(&head[DYN_BUCKET(s->hval, new)], \ in dyn_grow_hashtable()