Searched refs:hashsize (Results 1 - 25 of 27) sorted by relevance

12

/freebsd-10-stable/sys/kern/
H A Dsubr_hash.c51 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-stable/lib/libc/iconv/
H A Dcitrus_hash.c44 _citrus_string_hash_func(const char *key, int hashsize) argument
50 return ((int)(_db_hash_std(&r) % (uint32_t)hashsize));
H A Dcitrus_hash.h34 #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-stable/sys/netinet/
H A Dtcp_hostcache.h72 u_int hashsize; member in struct:tcp_hostcache
H A Dtcp_hostcache.c129 SYSCTL_VNET_UINT(_net_inet_tcp_hostcache, OID_AUTO, hashsize, CTLFLAG_RDTUN,
130 &VNET_NAME(tcp_hostcache.hashsize), 0,
185 V_tcp_hostcache.hashsize = TCP_HOSTCACHE_HASHSIZE;
190 TUNABLE_INT_FETCH("net.inet.tcp.hostcache.hashsize",
191 &V_tcp_hostcache.hashsize);
192 if (!powerof2(V_tcp_hostcache.hashsize)) {
194 V_tcp_hostcache.hashsize = TCP_HOSTCACHE_HASHSIZE; /* default */
196 V_tcp_hostcache.hashmask = V_tcp_hostcache.hashsize - 1;
201 cache_limit = V_tcp_hostcache.hashsize * V_tcp_hostcache.bucket_limit;
212 malloc(V_tcp_hostcache.hashsize * sizeo
[all...]
H A Dtcp_syncache.h119 u_int hashsize; member in struct:tcp_syncache
H A Dtcp_subr.c299 int hashsize; local
305 hashsize = 1 << fls(size);
307 if (hashsize < size) {
308 hashsize = 1 << (fls(size) - 1);
310 return (hashsize);
317 int hashsize; local
328 hashsize = TCBHASHSIZE;
329 TUNABLE_INT_FETCH(tcbhash_tuneable, &hashsize);
330 if (hashsize == 0) {
334 * (hashsize
[all...]
H A Dtcp_syncache.c178 SYSCTL_VNET_UINT(_net_inet_tcp_syncache, OID_AUTO, hashsize, CTLFLAG_RDTUN,
179 &VNET_NAME(tcp_syncache.hashsize), 0,
241 V_tcp_syncache.hashsize = TCP_SYNCACHE_HASHSIZE;
246 TUNABLE_INT_FETCH("net.inet.tcp.syncache.hashsize",
247 &V_tcp_syncache.hashsize);
250 if (!powerof2(V_tcp_syncache.hashsize) ||
251 V_tcp_syncache.hashsize == 0) {
253 V_tcp_syncache.hashsize = TCP_SYNCACHE_HASHSIZE;
255 V_tcp_syncache.hashmask = V_tcp_syncache.hashsize - 1;
259 V_tcp_syncache.hashsize * V_tcp_syncach
[all...]
/freebsd-10-stable/contrib/ofed/management/libibcommon/src/
H A Dhash.c45 #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-stable/sys/dev/glxsb/
H A Dglxsb_hash.c99 axf->Update(&ctx, hash, axf->hashsize);
104 ses->ses_mlen == 0 ? axf->hashsize : ses->ses_mlen, hash);
/freebsd-10-stable/sys/opencrypto/
H A Dxform.h40 u_int16_t hashsize; member in struct:auth_hash
H A Dcryptodev.c678 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 Dcryptosoft.c549 axf->Update(&ctx, aalg, axf->hashsize);
577 sw->sw_mlen == 0 ? axf->hashsize : sw->sw_mlen, aalg);
/freebsd-10-stable/contrib/gcclibs/libcpp/
H A Dpch.c109 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-stable/sys/crypto/via/
H A Dpadlock_hash.c302 axf->Update(&ctx, hash, axf->hashsize);
307 ses->ses_mlen == 0 ? axf->hashsize : ses->ses_mlen, hash);
/freebsd-10-stable/contrib/ncurses/ncurses/tinfo/
H A Dcomp_hash.c45 #include <hashsize.h>
/freebsd-10-stable/sys/netipsec/
H A Dxform_esp.c309 alen = esph->hashsize/2;
521 alen = esph->hashsize/2;
715 alen = esph->hashsize/2;
988 alen = esph->hashsize/2;
/freebsd-10-stable/crypto/openssl/ssl/
H A Dt1_enc.c955 int hashsize = EVP_MD_size(md); local
957 if (!hdgst || hashsize < 0
958 || hashsize > (int)(sizeof buf - (size_t)(q - buf))) {
966 (i != (unsigned int)hashsize))
968 q += hashsize;
/freebsd-10-stable/lib/ncurses/ncurses/
H A DMakefile76 hashsize.h \
359 hashsize.h: MKhashsize.sh Caps
392 make_hash: comp_hash.c hashsize.h ncurses_def.h ${HEADERS}
/freebsd-10-stable/contrib/unbound/util/storage/
H A Dlookup3.c106 #define hashsize(n) ((uint32_t)1<<(n)) macro
107 #define hashmask(n) (hashsize(n)-1)
312 In which case, the hash table should have hashsize(10) elements.
/freebsd-10-stable/contrib/binutils/bfd/
H A Decoff.c3012 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 Delflink.c3323 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);
4436 old_ent = (char *) old_hash + hashsize;
4442 memcpy (sym_hash, old_hash, hashsize);
3314 size_t hashsize = 0; local
/freebsd-10-stable/sys/cddl/contrib/opensolaris/uts/common/dtrace/
H A Ddtrace.c2440 uintptr_t hashsize = (buf->dtb_size >> 3) / sizeof (uintptr_t); local
2442 if ((uintptr_t)agb - hashsize * sizeof (dtrace_aggkey_t *) <
2443 (uintptr_t)tomax || hashsize == 0) {
2456 if (hashsize > (DTRACE_AGGHASHSIZE_SLEW << 3))
2457 hashsize -= DTRACE_AGGHASHSIZE_SLEW;
2459 agb->dtagb_hashsize = hashsize;
13978 size_t hashsize, maxper, min, chunksize = dstate->dtds_chunksize;
14005 hashsize = size / (dstate->dtds_chunksize + sizeof (dtrace_dynhash_t));
14007 if (hashsize != 1 && (hashsize
[all...]
/freebsd-10-stable/contrib/ncurses/ncurses/
H A Dllib-lncurses3237 #include <hashsize.h>
H A Dllib-lncursest3328 #include <hashsize.h>

Completed in 433 milliseconds

12