Searched refs:hash_size (Results 1 - 25 of 34) sorted by relevance

12

/illumos-gate/usr/src/cmd/msgfmt/
H A Dgnu_hash.c144 unsigned int hash_size)
148 idx = hash_value % hash_size;
149 inc = 1 + (hash_value % (hash_size - 2));
154 idx = (idx + inc) % hash_size;
143 get_hash_index(unsigned int *hash_tbl, unsigned int hash_value, unsigned int hash_size) argument
H A Dgnu_msgs.c67 unsigned int hash_size; local
105 hash_size = find_prime(p->nmsg);
106 hash_tbl = (unsigned int *)Xcalloc(hash_size,
117 header.sz_hashtbl = hash_size;
138 sizeof (unsigned int) * hash_size;
144 idx = get_hash_index(hash_tbl, m[i].hash, hash_size);
179 hash_size, out);
H A Dgnu_msgs_rev.c77 unsigned int hash_size, off_msgstr_tbl, off_hashtbl; local
106 hash_size = find_prime(p->nmsg);
107 hash_tbl = (unsigned int *)Xcalloc(hash_size,
123 header.sz_hashtbl = doswap(hash_size);
143 sizeof (unsigned int) * hash_size;
149 idx = get_hash_index(hash_tbl, m[i].hash, hash_size);
184 hash_size, out);
H A Dgnu_msgfmt.h103 unsigned int hash_size; /* hash table size */ member in struct:catalog
/illumos-gate/usr/src/cmd/geniconvtbl/
H A Dhash.h46 hash(const char *ptr, itm_size_t size, itm_size_t hash_size) argument
56 return (value % hash_size);
/illumos-gate/usr/src/cmd/boot/common/
H A Dbblk_einfo.c203 if (einfo->hash_off + einfo->hash_size > bufsize) {
230 (void) fprintf(stdout, "\thash size: %d\n", einfo->hash_size);
247 for (i = 0; i < einfo->hash_size; i++) {
268 uint16_t hash_size; local
279 hash_size = hashinfo->size;
282 if (hash_off + hash_size > maxsize) {
293 einfo->hash_size = bblk_no_hash.size;
296 einfo->hash_size = hashinfo->size;
303 einfo->hash_size = hash_size;
[all...]
H A Dbblk_einfo.h51 uint16_t hash_size; member in struct:_extended_info
/illumos-gate/usr/src/lib/libc/port/i18n/
H A Dgettext_gnu.c378 uint32_t hash_size, hash_val, hash_id, hash_inc, hash_idx; local
395 hash_size = gmnp->hash_size;
399 (hash_table == NULL || (hash_size <= 2))) {
435 hash_idx = hash_id % hash_size;
436 hash_inc = 1 + (hash_id % (hash_size - 2));
464 hash_idx = (hash_idx + hash_inc) % hash_size;
1103 uint32_t idx, hash_value, hash_size; local
1120 hash_size = p->hash_size;
1286 get_hash_index(uint32_t *hash_tbl, uint32_t hash_value, uint32_t hash_size) argument
[all...]
H A Dgettext_util.c289 uint32_t hash_size, num_of_str, i, idx, inc; local
293 hash_size = p->hash_size;
294 idx = hash_val % hash_size;
295 inc = 1 + (hash_val % (hash_size - 2));
305 idx = (idx + inc) % hash_size;
334 for (x = 0; x < p->hash_size; x++) {
509 gprintf(level, " hash_size: %u\n", gmnp->hash_size);
H A Dgettext.h102 uint32_t hash_size; /* hash table size */ member in struct:__anon124
/illumos-gate/usr/src/uts/common/inet/ilb/
H A Dilb_alg_hash.c158 del_server(hash_server_t *tbl, size_t hash_size, ilb_server_t *host) argument
162 for (i = 0; i < hash_size; i++) {
164 if (i == hash_size - 1)
166 for (j = i; j < hash_size - 1; j++)
172 if (i == hash_size)
174 tbl[hash_size - 1].server = NULL;
175 tbl[hash_size - 1].enabled = B_FALSE;
H A Dilb_nat.c49 #define ILB_NAT_SRC_HASH(hash, key1, key2, hash_size) \
53 (hash) %= (hash_size); \
H A Dilb_conn.c66 #define ILB_CONN_HASH(saddr, sport, daddr, dport, hash_size) \
71 ((hash_size) - 1))
85 #define ILB_STICKY_HASH(saddr, rule, hash_size) \
89 (*(saddr) ^ (rule))) & ((hash_size) - 1))
/illumos-gate/usr/src/cmd/picl/plugins/common/devtree/
H A Dpicldevtree.h75 int hash_size; member in struct:__anon1060
/illumos-gate/usr/src/cmd/rcm_daemon/common/
H A Dfilesys_rcm.c82 uint32_t hash_size; member in struct:__anon1301
238 for (index = 0; index < mnt_cache->hash_size; index++) {
728 cache->hash_size = size;
797 for (index = 0; index < (*cachep)->hash_size; index++) {
904 for (index = 0; index < new_cache->hash_size; index++) {
925 for (index = 0; index < old_cache->hash_size; index++) {
981 index = hash(cache->hash_size, mt->mnt_special);
1059 index = hash(cache->hash_size, rsrc);
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/
H A Demlxs_dhchap.c120 uint32_t hash_size, uint32_t dhgp_id);
5027 uint32_t hash_size; local
5059 hash_size = MD5_LEN;
5075 hash_val = (uint32_t *)kmem_alloc(hash_size,
5090 hash_size = SHA1_LEN;
5108 hash_val = (uint32_t *)kmem_alloc(hash_size,
5128 hash_size = MD5_LEN;
5159 hash_val = (uint32_t *)kmem_alloc(hash_size,
5170 hash_size = SHA1_LEN;
5201 hash_val = (uint32_t *)kmem_alloc(hash_size,
5239 uint32_t hash_size; local
5445 uint32_t hash_size; local
5526 emlxs_BIGNUM_get_pubkey( emlxs_port_t *port, emlxs_port_dhc_t *port_dhc, NODELIST *ndlp, uint8_t *dhval, uint32_t *dhvallen, uint32_t hash_size, uint32_t dhgp_id) argument
6208 uint32_t hash_size; local
6503 uint32_t hash_size; local
[all...]
/illumos-gate/usr/src/lib/libpicltree/
H A Dptree_impl.h98 int hash_size; member in struct:__anon3761
H A Dpicltree.c460 htbl->hash_size = HASH_TBL_SIZE;
464 for (i = 0; i < htbl->hash_size; ++i)
482 indx = HASH_INDEX(htbl->hash_size, hash_val);
500 indx = HASH_INDEX(htbl->hash_size, picl_val);
518 i = HASH_INDEX(htbl->hash_size, hash_val);
553 i = HASH_INDEX(htbl->hash_size, hash_val);
571 i = HASH_INDEX(htbl->hash_size, hash_val);
/illumos-gate/usr/src/lib/libc_db/common/
H A Dthread_db.c63 int hash_size; member in struct:td_thragent
123 uint_t hash_size; local
131 return (ta_p->hash_size);
135 addr = ta_p->uberdata_addr + offsetof(uberdata_t, hash_size);
138 addr = ta_p->uberdata_addr + offsetof(uberdata32_t, hash_size);
143 if (ps_pdread(ta_p->ph_p, addr, &hash_size, sizeof (hash_size))
146 return (hash_size);
167 ta_p->hash_size = uberdata.hash_size;
[all...]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftKeysUtil.c860 CK_ULONG hash_size; local
928 hash_size = SHA1_HASH_SIZE;
933 hash_size = MD5_HASH_SIZE;
938 hash_size = SHA256_DIGEST_LENGTH;
943 hash_size = SHA384_DIGEST_LENGTH;
948 hash_size = SHA512_DIGEST_LENGTH;
971 rv = soft_key_derive_check_length(secret_key, hash_size);
/illumos-gate/usr/src/uts/common/zmod/
H A Ddeflate.c205 s->head[s->hash_size-1] = NIL; \
207 (unsigned)(s->hash_size-1)*sizeof(*s->head));
289 s->hash_size = 1 << s->hash_bits;
290 s->hash_mask = s->hash_size - 1;
295 s->head = (Posf *) ZALLOC(strm, s->hash_size, sizeof(Pos));
928 ds->head = (Posf *) ZALLOC(dest, ds->hash_size, sizeof(Pos));
940 zmemcpy(ds->head, ss->head, ds->hash_size * sizeof(Pos));
1313 n = s->hash_size;
H A Ddeflate.h137 uInt hash_size; /* number of elements in hash table */ member in struct:internal_state
138 uInt hash_bits; /* log2(hash_size) */
139 uInt hash_mask; /* hash_size-1 */
/illumos-gate/usr/src/boot/lib/libz/
H A Ddeflate.c197 s->head[s->hash_size-1] = NIL; \
198 zmemzero((Bytef *)s->head, (unsigned)(s->hash_size-1)*sizeof(*s->head));
289 s->hash_size = 1 << s->hash_bits;
290 s->hash_mask = s->hash_size - 1;
295 s->head = (Posf *) ZALLOC(strm, s->hash_size, sizeof(Pos));
1042 ds->head = (Posf *) ZALLOC(dest, ds->hash_size, sizeof(Pos));
1054 zmemcpy((voidpf)ds->head, (voidpf)ss->head, ds->hash_size * sizeof(Pos));
1432 n = s->hash_size;
H A Ddeflate.h140 uInt hash_size; /* number of elements in hash table */ member in struct:internal_state
141 uInt hash_bits; /* log2(hash_size) */
142 uInt hash_mask; /* hash_size-1 */
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppdump/
H A Dzlib.c258 uInt hash_size; /* number of elements in hash table */ member in struct:deflate_state
259 uInt hash_bits; /* log2(hash_size) */
260 uInt hash_mask; /* hash_size-1 */
575 s->head[s->hash_size-1] = NIL; \
576 zmemzero((charf *)s->head, (unsigned)(s->hash_size-1)*sizeof(*s->head));
629 s->hash_size = 1 << s->hash_bits;
630 s->hash_mask = s->hash_size - 1;
635 s->head = (Posf *) ZALLOC(strm, s->hash_size, sizeof(Pos));
863 TRY_FREE(strm, state->head, state->hash_size * sizeof(Pos));
1147 n = s->hash_size;
[all...]

Completed in 123 milliseconds

12