/illumos-gate/usr/src/cmd/boot/common/ |
H A D | bblk_einfo.c | 232 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 D | bblk_einfo.h | 51 uint16_t hash_size; member
|
/illumos-gate/usr/src/cmd/msgfmt/ |
H A D | gnu_msgs.c | 65 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 D | gnu_msgs_rev.c | 75 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 D | gnu_hash.c | 142 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 D | gnu_msgfmt.h | 101 unsigned int hash_size; /* hash table size */ member
|
/illumos-gate/usr/src/lib/libc/port/i18n/ |
H A D | gettext_gnu.c | 372 uint32_t hash_size, hash_val, hash_id, hash_inc, hash_idx; in gnu_msgsearch() local 389 hash_size = gmnp->hash_size; in gnu_msgsearch() 393 (hash_table == NULL || (hash_size <= 2))) { 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() 1117 hash_mem_size = hash_size * sizeof (uint32_t); in build_rev1_info() 1140 for (i = 0; i < hash_size; i++) { in build_rev1_info() [all …]
|
H A D | gettext_util.c | 289 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 D | gettext.h | 102 uint32_t hash_size; /* hash table size */ member
|
/illumos-gate/usr/src/uts/common/inet/ilb/ |
H A D | ilb_alg_hash.c | 158 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 D | ilb_nat.c | 49 #define ILB_NAT_SRC_HASH(hash, key1, key2, hash_size) \ argument 53 (hash) %= (hash_size); \
|
H A D | ilb_conn.c | 66 #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 D | hash.h | 43 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 D | filesys_rcm.c | 80 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 D | emlxs_dhchap.c | 120 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 …]
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softKeysUtil.c | 838 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 D | thread_db.c | 64 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() 139 addr = ta_p->uberdata_addr + offsetof(uberdata32_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() [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/common/devtree/ |
H A D | picldevtree.h | 73 int hash_size; member
|
/illumos-gate/usr/src/contrib/zlib/ |
H A D | deflate.c | 192 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 D | deflate.h | 141 uInt hash_size; /* number of elements in hash table */ member
|
/illumos-gate/usr/src/lib/libpicltree/ |
H A D | ptree_impl.h | 96 int hash_size; member
|
H A D | picltree.c | 460 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 D | thr.c | 581 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 D | sfe.c | 742 int hash_size; in sfe_set_rx_filter_sis900() local 761 hash_size = (1 << (32 - hash_shift)) / 16; in sfe_set_rx_filter_sis900() 770 dp->mc_count > hash_size*16/2) { in sfe_set_rx_filter_sis900() 798 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 D | zlib.c | 258 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;
|