/freebsd-10.1-release/sys/kern/ |
H A D | subr_hash.c | 51 long hashsize; local 60 for (hashsize = 1; hashsize <= elements; hashsize <<= 1) 62 hashsize >>= 1; 65 hashtbl = malloc((u_long)hashsize * sizeof(*hashtbl), 68 hashtbl = malloc((u_long)hashsize * sizeof(*hashtbl), 72 for (i = 0; i < hashsize; i++) 74 *hashmask = hashsize - 1; 111 long hashsize; local [all...] |
/freebsd-10.1-release/lib/libc/iconv/ |
H A D | citrus_hash.c | 44 _citrus_string_hash_func(const char *key, int hashsize) argument 50 return ((int)(_db_hash_std(&r) % (uint32_t)hashsize));
|
H A D | citrus_hash.h | 34 #define _CITRUS_HASH_HEAD(headname, type, hashsize) \ 36 LIST_HEAD(, type) chh_table[hashsize]; \ 38 #define _CITRUS_HASH_INIT(head, hashsize) \ 42 for (_ch_loop = 0; _ch_loop < hashsize; _ch_loop++) \
|
/freebsd-10.1-release/sys/netinet/ |
H A D | tcp_hostcache.h | 72 u_int hashsize; member in struct:tcp_hostcache
|
H A D | tcp_hostcache.c | 128 SYSCTL_VNET_UINT(_net_inet_tcp_hostcache, OID_AUTO, hashsize, CTLFLAG_RDTUN, 129 &VNET_NAME(tcp_hostcache.hashsize), 0, 184 V_tcp_hostcache.hashsize = TCP_HOSTCACHE_HASHSIZE; 189 TUNABLE_INT_FETCH("net.inet.tcp.hostcache.hashsize", 190 &V_tcp_hostcache.hashsize); 191 if (!powerof2(V_tcp_hostcache.hashsize)) { 193 V_tcp_hostcache.hashsize = TCP_HOSTCACHE_HASHSIZE; /* default */ 195 V_tcp_hostcache.hashmask = V_tcp_hostcache.hashsize - 1; 200 cache_limit = V_tcp_hostcache.hashsize * V_tcp_hostcache.bucket_limit; 211 malloc(V_tcp_hostcache.hashsize * sizeo [all...] |
H A D | tcp_syncache.h | 116 u_int hashsize; member in struct:tcp_syncache
|
H A D | tcp_subr.c | 295 int hashsize; local 301 hashsize = 1 << fls(size); 303 if (hashsize < size) { 304 hashsize = 1 << (fls(size) - 1); 306 return (hashsize); 313 int hashsize; local 324 hashsize = TCBHASHSIZE; 325 TUNABLE_INT_FETCH(tcbhash_tuneable, &hashsize); 326 if (hashsize == 0) { 330 * (hashsize [all...] |
H A D | tcp_syncache.c | 175 SYSCTL_VNET_UINT(_net_inet_tcp_syncache, OID_AUTO, hashsize, CTLFLAG_RDTUN, 176 &VNET_NAME(tcp_syncache.hashsize), 0, 238 V_tcp_syncache.hashsize = TCP_SYNCACHE_HASHSIZE; 243 TUNABLE_INT_FETCH("net.inet.tcp.syncache.hashsize", 244 &V_tcp_syncache.hashsize); 247 if (!powerof2(V_tcp_syncache.hashsize) || 248 V_tcp_syncache.hashsize == 0) { 250 V_tcp_syncache.hashsize = TCP_SYNCACHE_HASHSIZE; 252 V_tcp_syncache.hashmask = V_tcp_syncache.hashsize - 1; 256 V_tcp_syncache.hashsize * V_tcp_syncach [all...] |
/freebsd-10.1-release/contrib/ofed/management/libibcommon/src/ |
H A D | hash.c | 45 #define hashsize(n) ((uint32)1<<(n)) macro 46 #define hashmask(n) (hashsize(n)-1) 102 In which case, the hash table should have hashsize(10) elements.
|
/freebsd-10.1-release/sys/dev/glxsb/ |
H A D | glxsb_hash.c | 99 axf->Update(&ctx, hash, axf->hashsize); 104 ses->ses_mlen == 0 ? axf->hashsize : ses->ses_mlen, hash);
|
/freebsd-10.1-release/sys/opencrypto/ |
H A D | xform.h | 38 u_int16_t hashsize; member in struct:auth_hash
|
H A D | cryptodev.c | 678 cse->uio.uio_iov[0].iov_len += cse->thash->hashsize; 679 cse->uio.uio_resid += cse->thash->hashsize; 803 cop->mac, cse->thash->hashsize)))
|
H A D | cryptosoft.c | 549 axf->Update(&ctx, aalg, axf->hashsize); 577 sw->sw_mlen == 0 ? axf->hashsize : sw->sw_mlen, aalg);
|
/freebsd-10.1-release/contrib/gcclibs/libcpp/ |
H A D | pch.c | 109 size_t hashsize; member in struct:cpp_savedstate 207 /* Calculate the 'hashsize' field of the saved state. */ 232 ss->hashsize += NODE_LEN (hn) + 1; 309 ss->hashsize = 0; 319 definedstrs = ss->definedstrs = XNEWVEC (unsigned char, ss->hashsize); 328 z.definition_length = ss->hashsize; 330 || fwrite (ss->definedstrs, ss->hashsize, 1, f) != 1)
|
/freebsd-10.1-release/sys/crypto/via/ |
H A D | padlock_hash.c | 302 axf->Update(&ctx, hash, axf->hashsize); 307 ses->ses_mlen == 0 ? axf->hashsize : ses->ses_mlen, hash);
|
/freebsd-10.1-release/contrib/ncurses/ncurses/tinfo/ |
H A D | comp_hash.c | 45 #include <hashsize.h>
|
/freebsd-10.1-release/sys/netipsec/ |
H A D | xform_esp.c | 310 alen = esph->hashsize/2; 522 alen = esph->hashsize/2; 716 alen = esph->hashsize/2; 989 alen = esph->hashsize/2;
|
/freebsd-10.1-release/crypto/openssl/ssl/ |
H A D | t1_enc.c | 944 int hashsize = EVP_MD_size(md); local 946 if (!hdgst || hashsize < 0 947 || hashsize > (int)(sizeof buf - (size_t)(q - buf))) { 955 (i != (unsigned int)hashsize)) 957 q += hashsize;
|
/freebsd-10.1-release/lib/ncurses/ncurses/ |
H A D | Makefile | 76 hashsize.h \ 359 hashsize.h: MKhashsize.sh Caps 392 make_hash: comp_hash.c hashsize.h ncurses_def.h ${HEADERS}
|
/freebsd-10.1-release/contrib/unbound/util/storage/ |
H A D | lookup3.c | 105 #define hashsize(n) ((uint32_t)1<<(n)) macro 106 #define hashmask(n) (hashsize(n)-1) 311 In which case, the hash table should have hashsize(10) elements.
|
/freebsd-10.1-release/contrib/binutils/bfd/ |
H A D | ecoff.c | 3012 unsigned int hashsize, hashlog; 3030 hashsize = 1 << hashlog; 3032 symdefsize = hashsize * 8; 3086 H_PUT_32 (abfd, hashsize, temp); 3115 hash = ecoff_armap_hash (*map[i].name, &rehash, hashsize, hashlog); 3121 for (srch = (hash + rehash) & (hashsize - 1); 3123 srch = (srch + rehash) & (hashsize - 1)) 3004 unsigned int hashsize, hashlog; local
|
H A D | elflink.c | 3323 size_t hashsize = 0; 3721 hashsize = extsymcount * sizeof (struct elf_link_hash_entry *); 3722 old_tab = bfd_malloc (tabsize + entsize + hashsize); 3742 old_ent = (char *) old_hash + hashsize; 3744 memcpy (old_hash, sym_hash, hashsize); 4407 old_ent = (char *) old_hash + hashsize; 4413 memcpy (sym_hash, old_hash, hashsize); 3314 size_t hashsize = 0; local
|
/freebsd-10.1-release/sys/cddl/contrib/opensolaris/uts/common/dtrace/ |
H A D | dtrace.c | 2411 uintptr_t hashsize = (buf->dtb_size >> 3) / sizeof (uintptr_t); local 2413 if ((uintptr_t)agb - hashsize * sizeof (dtrace_aggkey_t *) < 2414 (uintptr_t)tomax || hashsize == 0) { 2427 if (hashsize > (DTRACE_AGGHASHSIZE_SLEW << 3)) 2428 hashsize -= DTRACE_AGGHASHSIZE_SLEW; 2430 agb->dtagb_hashsize = hashsize; 13916 size_t hashsize, maxper, min, chunksize = dstate->dtds_chunksize; 13941 hashsize = size / (dstate->dtds_chunksize + sizeof (dtrace_dynhash_t)); 13943 if (hashsize != 1 && (hashsize [all...] |
/freebsd-10.1-release/contrib/ncurses/ncurses/ |
H A D | llib-lncurses | 3237 #include <hashsize.h>
|
H A D | llib-lncursest | 3328 #include <hashsize.h>
|