Home
last modified time | relevance | path

Searched refs:hash_size (Results 1 – 25 of 32) sorted by relevance

12

/titanic_44/usr/src/cmd/boot/common/
H A Dbblk_einfo.c203 if (einfo->hash_off + einfo->hash_size > bufsize) { in print_einfo()
230 (void) fprintf(stdout, "\thash size: %d\n", einfo->hash_size); in print_einfo()
247 for (i = 0; i < einfo->hash_size; i++) { in print_einfo()
268 uint16_t hash_size; in prepare_and_write_einfo() local
279 hash_size = hashinfo->size; in prepare_and_write_einfo()
282 if (hash_off + hash_size > maxsize) { in prepare_and_write_einfo()
293 einfo->hash_size = bblk_no_hash.size; in prepare_and_write_einfo()
296 einfo->hash_size = hashinfo->size; in prepare_and_write_einfo()
303 einfo->hash_size = hash_size; in prepare_and_write_einfo()
304 einfo->str_off = einfo->hash_off + einfo->hash_size + 1; in prepare_and_write_einfo()
[all …]
H A Dbblk_einfo.h51 uint16_t hash_size; member
/titanic_44/usr/src/cmd/msgfmt/
H A Dgnu_msgs.c67 unsigned int hash_size; in output_all_gnu_mo_files() local
105 hash_size = find_prime(p->nmsg); in output_all_gnu_mo_files()
106 hash_tbl = (unsigned int *)Xcalloc(hash_size, in output_all_gnu_mo_files()
117 header.sz_hashtbl = hash_size; in output_all_gnu_mo_files()
138 sizeof (unsigned int) * hash_size; in output_all_gnu_mo_files()
144 idx = get_hash_index(hash_tbl, m[i].hash, hash_size); in output_all_gnu_mo_files()
179 hash_size, out); in output_all_gnu_mo_files()
H A Dgnu_msgs_rev.c77 unsigned int hash_size, off_msgstr_tbl, off_hashtbl; in output_all_gnu_mo_files() local
106 hash_size = find_prime(p->nmsg); in output_all_gnu_mo_files()
107 hash_tbl = (unsigned int *)Xcalloc(hash_size, in output_all_gnu_mo_files()
123 header.sz_hashtbl = doswap(hash_size); in output_all_gnu_mo_files()
143 sizeof (unsigned int) * hash_size; in output_all_gnu_mo_files()
149 idx = get_hash_index(hash_tbl, m[i].hash, hash_size); in output_all_gnu_mo_files()
184 hash_size, out); in output_all_gnu_mo_files()
H A Dgnu_hash.c144 unsigned int hash_size) in get_hash_index() argument
148 idx = hash_value % hash_size; in get_hash_index()
149 inc = 1 + (hash_value % (hash_size - 2)); in get_hash_index()
154 idx = (idx + inc) % hash_size; in get_hash_index()
H A Dgnu_msgfmt.h103 unsigned int hash_size; /* hash table size */ member
/titanic_44/usr/src/lib/libc/port/i18n/
H A Dgettext_gnu.c378 uint32_t hash_size, hash_val, hash_id, hash_inc, hash_idx; in gnu_msgsearch() local
395 hash_size = gmnp->hash_size; in gnu_msgsearch()
399 (hash_table == NULL || (hash_size <= 2))) { in gnu_msgsearch()
435 hash_idx = hash_id % hash_size; in gnu_msgsearch()
436 hash_inc = 1 + (hash_id % (hash_size - 2)); in gnu_msgsearch()
464 hash_idx = (hash_idx + hash_inc) % hash_size; in gnu_msgsearch()
1103 uint32_t idx, hash_value, hash_size; in build_rev1_info() local
1120 hash_size = p->hash_size; in build_rev1_info()
1123 hash_mem_size = hash_size * sizeof (uint32_t); in build_rev1_info()
1146 for (i = 0; i < hash_size; i++) { in build_rev1_info()
[all …]
H A Dgettext_util.c290 uint32_t hash_size, num_of_str, i, idx, inc; in search_msg() local
294 hash_size = p->hash_size; in search_msg()
295 idx = hash_val % hash_size; in search_msg()
296 inc = 1 + (hash_val % (hash_size - 2)); in search_msg()
306 idx = (idx + inc) % hash_size; in search_msg()
335 for (x = 0; x < p->hash_size; x++) { in print_rev1_info()
510 gprintf(level, " hash_size: %u\n", gmnp->hash_size); in printgnumsg()
H A Dgettext.h104 uint32_t hash_size; /* hash table size */ member
/titanic_44/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) in del_server() argument
162 for (i = 0; i < hash_size; i++) { in del_server()
164 if (i == hash_size - 1) in del_server()
166 for (j = i; j < hash_size - 1; j++) in del_server()
172 if (i == hash_size) in del_server()
174 tbl[hash_size - 1].server = NULL; in del_server()
175 tbl[hash_size - 1].enabled = B_FALSE; in del_server()
H A Dilb_nat.c49 #define ILB_NAT_SRC_HASH(hash, key1, key2, hash_size) \ argument
53 (hash) %= (hash_size); \
H A Dilb_conn.c66 #define ILB_CONN_HASH(saddr, sport, daddr, dport, hash_size) \ argument
71 ((hash_size) - 1))
85 #define ILB_STICKY_HASH(saddr, rule, hash_size) \ argument
89 (*(saddr) ^ (rule))) & ((hash_size) - 1))
/titanic_44/usr/src/cmd/geniconvtbl/
H A Dhash.h46 hash(const char *ptr, itm_size_t size, itm_size_t hash_size) in hash() argument
56 return (value % hash_size); in hash()
/titanic_44/usr/src/cmd/rcm_daemon/common/
H A Dfilesys_rcm.c82 uint32_t hash_size; member
238 for (index = 0; index < mnt_cache->hash_size; index++) { in mnt_unregister()
728 cache->hash_size = size; in cache_create()
797 for (index = 0; index < (*cachep)->hash_size; index++) { in free_cache()
904 for (index = 0; index < new_cache->hash_size; index++) { in cache_sync()
925 for (index = 0; index < old_cache->hash_size; index++) { in cache_sync()
981 index = hash(cache->hash_size, mt->mnt_special); in cache_insert()
1059 index = hash(cache->hash_size, rsrc); in cache_lookup()
/titanic_44/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; in emlxs_hash_vrf() local
5059 hash_size = MD5_LEN; in emlxs_hash_vrf()
5075 hash_val = (uint32_t *)kmem_alloc(hash_size, in emlxs_hash_vrf()
5090 hash_size = SHA1_LEN; in emlxs_hash_vrf()
5108 hash_val = (uint32_t *)kmem_alloc(hash_size, in emlxs_hash_vrf()
5128 hash_size = MD5_LEN; in emlxs_hash_vrf()
5159 hash_val = (uint32_t *)kmem_alloc(hash_size, in emlxs_hash_vrf()
5170 hash_size = SHA1_LEN; in emlxs_hash_vrf()
5201 hash_val = (uint32_t *)kmem_alloc(hash_size, in emlxs_hash_vrf()
[all …]
/titanic_44/usr/src/lib/libc_db/common/
H A Dthread_db.c59 int hash_size; member
119 uint_t hash_size; in td_read_hash_size() local
127 return (ta_p->hash_size); in td_read_hash_size()
131 addr = ta_p->uberdata_addr + offsetof(uberdata_t, hash_size); in td_read_hash_size()
134 addr = ta_p->uberdata_addr + offsetof(uberdata32_t, hash_size); in td_read_hash_size()
139 if (ps_pdread(ta_p->ph_p, addr, &hash_size, sizeof (hash_size)) in td_read_hash_size()
142 return (hash_size); in td_read_hash_size()
162 ta_p->hash_size = uberdata.hash_size; in td_read_uberdata()
182 ta_p->hash_size = uberdata.hash_size; in td_read_uberdata()
192 if (ta_p->hash_size != 1) { /* multi-threaded */ in td_read_uberdata()
[all …]
/titanic_44/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftKeysUtil.c860 CK_ULONG hash_size; in soft_derivekey() local
928 hash_size = SHA1_HASH_SIZE; in soft_derivekey()
933 hash_size = MD5_HASH_SIZE; in soft_derivekey()
938 hash_size = SHA256_DIGEST_LENGTH; in soft_derivekey()
943 hash_size = SHA384_DIGEST_LENGTH; in soft_derivekey()
948 hash_size = SHA512_DIGEST_LENGTH; in soft_derivekey()
971 rv = soft_key_derive_check_length(secret_key, hash_size); in soft_derivekey()
/titanic_44/usr/src/cmd/picl/plugins/common/devtree/
H A Dpicldevtree.h75 int hash_size; member
/titanic_44/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
/titanic_44/usr/src/lib/libpicltree/
H A Dptree_impl.h98 int hash_size; member
H A Dpicltree.c460 htbl->hash_size = HASH_TBL_SIZE; in hash_init()
464 for (i = 0; i < htbl->hash_size; ++i) in hash_init()
482 indx = HASH_INDEX(htbl->hash_size, hash_val); in hash_add_newobj()
500 indx = HASH_INDEX(htbl->hash_size, picl_val); in hash_add_newhdl()
518 i = HASH_INDEX(htbl->hash_size, hash_val); in hash_remove()
553 i = HASH_INDEX(htbl->hash_size, hash_val); in hash_lookup_obj()
571 i = HASH_INDEX(htbl->hash_size, hash_val); in hash_lookup_hdl()
/titanic_44/usr/src/lib/libc/port/threads/
H A Dthr.c580 if (udp->hash_size == 1) in _thrp_create()
1391 ASSERT(udp->hash_size == 1); in libc_init()
1578 ASSERT(udp->hash_size == 1); in finish_init()
1600 udp->hash_size = HASHTBLSZ; in finish_init()
1664 for (i = 0; i < udp->hash_size; i++) in postfork1_child()
/titanic_44/usr/src/cmd/cmd-inet/usr.bin/pppdump/
H A Dzlib.c258 uInt hash_size; /* number of elements in hash table */ member
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;
/titanic_44/usr/src/uts/common/io/ppp/spppcomp/
H A Dzlib.c411 uInt hash_size; /* number of elements in hash table */ member
832 s->head[s->hash_size-1] = NIL; \
833 zmemzero((Bytef *)s->head, (unsigned)(s->hash_size-1)*sizeof (*s->head));
914 s->hash_size = 1 << s->hash_bits;
915 s->hash_mask = s->hash_size - 1;
920 s->head = (Posf *) ZALLOC(strm, s->hash_size, sizeof (Pos));
1332 ds->head = (Posf *) ZALLOC(dest, ds->hash_size, sizeof (Pos));
1345 zmemcpy(ds->head, ss->head, ds->hash_size * sizeof (Pos));
1770 n = s->hash_size;

12