Home
last modified time | relevance | path

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

12

/illumos-gate/usr/src/cmd/boot/common/
H A Dbblk_einfo.c232 if (einfo->hash_off + einfo->hash_size > bufsize) { in print_einfo()
259 (void) fprintf(stdout, "\thash size: %d\n", einfo->hash_size); in print_einfo()
276 for (i = 0; i < einfo->hash_size; i++) { in print_einfo()
297 uint16_t hash_size; in prepare_and_write_einfo() local
308 hash_size = hashinfo->size; in prepare_and_write_einfo()
311 if (hash_off + hash_size > maxsize) { in prepare_and_write_einfo()
322 einfo->hash_size = bblk_no_hash.size; in prepare_and_write_einfo()
325 einfo->hash_size = hashinfo->size; in prepare_and_write_einfo()
332 einfo->hash_size = hash_size; in prepare_and_write_einfo()
333 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
/illumos-gate/usr/src/cmd/msgfmt/
H A Dgnu_msgs.c65 unsigned int hash_size; in output_all_gnu_mo_files() local
103 hash_size = find_prime(p->nmsg); in output_all_gnu_mo_files()
104 hash_tbl = (unsigned int *)Xcalloc(hash_size, in output_all_gnu_mo_files()
115 header.sz_hashtbl = hash_size; in output_all_gnu_mo_files()
136 sizeof (unsigned int) * hash_size; in output_all_gnu_mo_files()
142 idx = get_hash_index(hash_tbl, m[i].hash, hash_size); in output_all_gnu_mo_files()
177 hash_size, out); in output_all_gnu_mo_files()
H A Dgnu_msgs_rev.c75 unsigned int hash_size, off_msgstr_tbl, off_hashtbl; in output_all_gnu_mo_files() local
104 hash_size = find_prime(p->nmsg); in output_all_gnu_mo_files()
105 hash_tbl = (unsigned int *)Xcalloc(hash_size, in output_all_gnu_mo_files()
121 header.sz_hashtbl = doswap(hash_size); in output_all_gnu_mo_files()
141 sizeof (unsigned int) * hash_size; in output_all_gnu_mo_files()
147 idx = get_hash_index(hash_tbl, m[i].hash, hash_size); in output_all_gnu_mo_files()
182 hash_size, out); in output_all_gnu_mo_files()
H A Dgnu_hash.c142 unsigned int hash_size) in get_hash_index() argument
146 idx = hash_value % hash_size; in get_hash_index()
147 inc = 1 + (hash_value % (hash_size - 2)); in get_hash_index()
152 idx = (idx + inc) % hash_size; in get_hash_index()
H A Dgnu_msgfmt.h101 unsigned int hash_size; /* hash table size */ member
/illumos-gate/usr/src/lib/libc/port/i18n/
H A Dgettext_gnu.c389 hash_size = gmnp->hash_size; in gnu_msgsearch()
429 hash_idx = hash_id % hash_size; in gnu_msgsearch()
430 hash_inc = 1 + (hash_id % (hash_size - 2)); in gnu_msgsearch()
458 hash_idx = (hash_idx + hash_inc) % hash_size; in gnu_msgsearch()
1097 uint32_t idx, hash_value, hash_size; in build_rev1_info() local
1114 hash_size = p->hash_size; in build_rev1_info()
1140 for (i = 0; i < hash_size; i++) { in build_rev1_info()
1236 p->hash_table = p->hash_size <= 2 ? NULL : in gnu_setmsg()
1284 idx = hash_value % hash_size; in get_hash_index()
1285 inc = 1 + (hash_value % (hash_size - 2)); in get_hash_index()
[all …]
H A Dgettext_util.c289 uint32_t hash_size, num_of_str, i, idx, inc; in search_msg() local
293 hash_size = p->hash_size; in search_msg()
294 idx = hash_val % hash_size; in search_msg()
295 inc = 1 + (hash_val % (hash_size - 2)); in search_msg()
305 idx = (idx + inc) % hash_size; in search_msg()
334 for (x = 0; x < p->hash_size; x++) { in print_rev1_info()
509 gprintf(level, " hash_size: %u\n", gmnp->hash_size); in printgnumsg()
H A Dgettext.h102 uint32_t hash_size; /* hash table size */ member
/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) 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))
/illumos-gate/usr/src/cmd/geniconvtbl/
H A Dhash.h43 hash(const char *ptr, itm_size_t size, itm_size_t hash_size) in hash() argument
53 return (value % hash_size); in hash()
/illumos-gate/usr/src/cmd/rcm_daemon/common/
H A Dfilesys_rcm.c80 uint32_t hash_size; member
236 for (index = 0; index < mnt_cache->hash_size; index++) { in mnt_unregister()
726 cache->hash_size = size; in cache_create()
795 for (index = 0; index < (*cachep)->hash_size; index++) { in free_cache()
902 for (index = 0; index < new_cache->hash_size; index++) { in cache_sync()
923 for (index = 0; index < old_cache->hash_size; index++) { in cache_sync()
979 index = hash(cache->hash_size, mt->mnt_special); in cache_insert()
1057 index = hash(cache->hash_size, rsrc); in cache_lookup()
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/
H A Demlxs_dhchap.c5027 uint32_t hash_size; in emlxs_hash_vrf() local
5059 hash_size = MD5_LEN; in emlxs_hash_vrf()
5128 hash_size = MD5_LEN; in emlxs_hash_vrf()
5239 uint32_t hash_size; in emlxs_hash_rsp() local
5275 hash_size = MD5_LEN; in emlxs_hash_rsp()
5363 hash_size = MD5_LEN; in emlxs_hash_rsp()
5445 uint32_t hash_size; in emlxs_interm_hash() local
5458 hash_size = MD5_LEN; in emlxs_interm_hash()
5532 uint32_t hash_size, in emlxs_BIGNUM_get_pubkey() argument
6208 uint32_t hash_size; in emlxs_hash_verification() local
[all …]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftKeysUtil.c838 CK_ULONG hash_size; in soft_derivekey() local
906 hash_size = SHA1_HASH_SIZE; in soft_derivekey()
911 hash_size = MD5_HASH_SIZE; in soft_derivekey()
916 hash_size = SHA256_DIGEST_LENGTH; in soft_derivekey()
921 hash_size = SHA384_DIGEST_LENGTH; in soft_derivekey()
926 hash_size = SHA512_DIGEST_LENGTH; in soft_derivekey()
931 hash_size = SHA512_224_DIGEST_LENGTH; in soft_derivekey()
936 hash_size = SHA512_256_DIGEST_LENGTH; in soft_derivekey()
959 rv = soft_key_derive_check_length(secret_key, hash_size); in soft_derivekey()
/illumos-gate/usr/src/lib/libc_db/common/
H A Dthread_db.c64 int hash_size; member
124 uint_t hash_size; in td_read_hash_size() local
132 return (ta_p->hash_size); in td_read_hash_size()
136 addr = ta_p->uberdata_addr + offsetof(uberdata_t, hash_size); in td_read_hash_size()
144 if (ps_pdread(ta_p->ph_p, addr, &hash_size, sizeof (hash_size)) in td_read_hash_size()
147 return (hash_size); in td_read_hash_size()
168 ta_p->hash_size = uberdata.hash_size; in td_read_uberdata()
186 ta_p->hash_size = uberdata.hash_size; in td_read_uberdata()
219 if (ta_p->hash_size != 1) { /* multi-threaded */ in td_read_uberdata()
2791 < ta_p->hash_size * sizeof (thr_hash_table_t)) in __td_sync_get_stats()
[all …]
/illumos-gate/usr/src/cmd/picl/plugins/common/devtree/
H A Dpicldevtree.h73 int hash_size; member
/illumos-gate/usr/src/contrib/zlib/
H A Ddeflate.c192 s->head[s->hash_size-1] = NIL; \
194 (unsigned)(s->hash_size-1)*sizeof(*s->head)); \
209 n = s->hash_size;
313 s->hash_size = 1 << s->hash_bits;
314 s->hash_mask = s->hash_size - 1;
319 s->head = (Posf *) ZALLOC(strm, s->hash_size, sizeof(Pos));
1170 ds->head = (Posf *) ZALLOC(dest, ds->hash_size, sizeof(Pos));
1181 zmemcpy((voidpf)ds->head, (voidpf)ss->head, ds->hash_size * sizeof(Pos));
H A Ddeflate.h141 uInt hash_size; /* number of elements in hash table */ member
/illumos-gate/usr/src/lib/libpicltree/
H A Dptree_impl.h96 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()
/illumos-gate/usr/src/lib/libc/port/threads/
H A Dthr.c581 if (udp->hash_size == 1) in _thrp_create()
1396 ASSERT(udp->hash_size == 1); in libc_init()
1579 ASSERT(udp->hash_size == 1); in finish_init()
1601 udp->hash_size = HASHTBLSZ; in finish_init()
1665 for (i = 0; i < udp->hash_size; i++) in postfork1_child()
/illumos-gate/usr/src/uts/common/io/sfe/
H A Dsfe.c741 int hash_size; in sfe_set_rx_filter_sis900() local
760 hash_size = (1 << (32 - hash_shift)) / 16; in sfe_set_rx_filter_sis900()
769 dp->mc_count > hash_size*16/2) { in sfe_set_rx_filter_sis900()
797 for (i = 0; i < hash_size; i++) { in sfe_set_rx_filter_sis900()
/illumos-gate/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;

12