Home
last modified time | relevance | path

Searched refs:hash (Results 26 – 50 of 462) sorted by relevance

12345678910>>...19

/illumos-gate/usr/src/uts/common/io/sfxge/
H A Dsfxge_hash.c54 uint32_t hash = 0; in toeplitz_hash() local
56 hash ^= cache[pos * (UINT8_MAX + 1) + *input]; in toeplitz_hash()
59 return (hash); in toeplitz_hash()
66 uint32_t hash = 0; in sfxge_toeplitz_hash() local
69 hash ^= toeplitz_hash(sp->s_toeplitz_cache, src_addr, pos, addr_size); in sfxge_toeplitz_hash()
71 hash ^= toeplitz_hash(sp->s_toeplitz_cache, dst_addr, pos, addr_size); in sfxge_toeplitz_hash()
74 hash ^= toeplitz_hash(sp->s_toeplitz_cache, in sfxge_toeplitz_hash()
77 hash ^= toeplitz_hash(sp->s_toeplitz_cache, in sfxge_toeplitz_hash()
80 return (hash); in sfxge_toeplitz_hash()
/illumos-gate/usr/src/lib/libdtrace_jni/java/src/org/opensolaris/os/dtrace/
H A DProbeDescription.java441 int hash = id; in hashCode() local
442 if (hash != ID_NONE) { in hashCode()
443 return hash; in hashCode()
446 hash = 17; in hashCode()
447 hash = (37 * hash) + provider.hashCode(); in hashCode()
448 hash = (37 * hash) + module.hashCode(); in hashCode()
449 hash = (37 * hash) + function.hashCode(); in hashCode()
450 hash = (37 * hash) + name.hashCode(); in hashCode()
451 return hash; in hashCode()
H A DProgramInfo.java208 int hash = 17; in hashCode() local
209 hash = (37 * hash) + minimumProbeAttributes.hashCode(); in hashCode()
210 hash = (37 * hash) + minimumStatementAttributes.hashCode(); in hashCode()
211 hash = (37 * hash) + matchingProbeCount; in hashCode()
212 return hash; in hashCode()
H A DInterfaceAttributes.java485 int hash = 17; in hashCode() local
486 hash = (37 * hash) + nameStability.hashCode(); in hashCode()
487 hash = (37 * hash) + dataStability.hashCode(); in hashCode()
488 hash = (37 * hash) + dependencyClass.hashCode(); in hashCode()
489 return hash; in hashCode()
/illumos-gate/usr/src/cmd/ldmad/
H A Dmdesc_lib.c51 hash = (hash >> 27) | (hash << 5) | bp[i]; in md_byte_hash()
54 return (hash); in md_byte_hash()
61 uint32_t hash; in md_find_string() local
66 *hashp = hash; in md_find_string()
69 if (msp->hash == hash && strcmp(msp->strp, strp) == 0) in md_find_string()
80 uint32_t hash; in md_new_string() local
93 msp->hash = hash; in md_new_string()
107 uint32_t hash; in md_find_data_block() local
116 dbp->hash == hash && bcmp(dbp->datap, datap, len) == 0) in md_find_data_block()
127 uint32_t hash; in md_new_data_block() local
[all …]
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Dtlan.h487 u8 hash; in TLan_HashFunc() local
489 hash = (a[0] ^ a[3]); /* & 077 */ in TLan_HashFunc()
496 return (hash & 077); in TLan_HashFunc()
511 u32 hash; in TLan_HashFunc() local
513 hash = in TLan_HashFunc()
516 hash |= in TLan_HashFunc()
519 hash |= in TLan_HashFunc()
522 hash |= in TLan_HashFunc()
525 hash |= in TLan_HashFunc()
528 hash |= in TLan_HashFunc()
[all …]
/illumos-gate/usr/src/cmd/fs.d/nfs/statd/
H A Dsm_proc.c420 unsigned int hash; in insert_mon() local
491 mon_table[hash].sm_monhdp = new; in insert_mon()
574 unsigned int hash; in delete_mon() local
578 SMHASH(mon_name, hash); in delete_mon()
583 for (hash = 0; hash < MAX_HASHSIZE; hash++) { in delete_mon()
651 unsigned int hash; in send_notice() local
655 SMHASH(mon_name, hash); in send_notice()
859 int hash; in pr_mon() local
866 for (hash = 0; hash < MAX_HASHSIZE; hash++) { in pr_mon()
885 SMHASH(name, hash); in pr_mon()
[all …]
/illumos-gate/usr/src/cmd/sgs/common/
H A Dstrhash.c39 uint_t hash = 5381; in sgs_str_hash() local
43 hash = ((hash << 5) + hash) + c; /* hash * 33 + c */ in sgs_str_hash()
44 return (hash); in sgs_str_hash()
/illumos-gate/usr/src/tools/smatch/src/
H A Dcse.c40 unsigned long hash; in cse_collect() local
45 hash += hashval(insn->src3); in cse_collect()
73 hash += hashval(insn->src2); in cse_collect()
80 hash += hashval(insn->src1); in cse_collect()
84 hash += hashval(insn->val); in cse_collect()
88 hash += hashval(insn->fvalue); in cse_collect()
97 hash += hashval(insn->src); in cse_collect()
111 hash += hashval(def->src1); in cse_collect()
112 hash += hashval(def->bb); in cse_collect()
124 hash += hash >> 16; in cse_collect()
[all …]
H A Dtokenize.c297 uint32_t hash = 0; in hash_stream() local
301 hash = (hash + (c << 4) + (c >> 4)) * 11; in hash_stream()
303 hash *= HASH_PRIME; in hash_stream()
330 *hash = stream; in init_stream()
797 #define ident_hash_end(hash) ((((hash) >> IDENT_HASH_BITS) + (hash)) & IDENT_HASH_MASK) argument
855 p = &hash_table[hash]; in create_hashed_ident()
878 unsigned long hash; in hash_name() local
884 hash = ident_hash_add(hash, i); in hash_name()
915 unsigned long hash; in get_one_identifier() local
928 hash = ident_hash_add(hash, next); in get_one_identifier()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/hash/
H A Dhashscan.c72 b->hash &= ~HASH_HIDDEN; in hashscan()
110 …if (!(b->hash & HASH_DELETED) && (!(pos->tab->flags & HASH_VALUE) || b->value) && (!pos->flags || … in hashnext()
111 if (b->hash & HASH_HIDES) in hashnext()
115 if (!(h->hash & HASH_HIDDEN)) in hashnext()
117 h->hash |= HASH_HIDDEN; in hashnext()
118 if (!(b->hash & HASH_DELETED)) break; in hashnext()
121 else b->hash &= ~HASH_HIDDEN; in hashnext()
H A Dhashdump.c67 if (!(b->hash & HASH_DELETED) && (!(tab->flags & HASH_VALUE) || b->value)) in dumpbucket()
73 if (!(b->hash & HASH_DELETED) && (!(tab->flags & HASH_VALUE) || b->value)) in dumpbucket()
83 if (b->hash & HASH_FLAGS) in dumpbucket()
86 if (b->hash & HASH_HIDES) sfprintf(sfstderr, "hides|"); in dumpbucket()
87 if (b->hash & HASH_HIDDEN) sfprintf(sfstderr, "hidden|"); in dumpbucket()
88 if (b->hash & HASH_KEEP) sfprintf(sfstderr, "keep|"); in dumpbucket()
89 if (b->hash & HASH_OPAQUED) sfprintf(sfstderr, "opaque|"); in dumpbucket()
146 if (root->local->hash) sfprintf(sfstderr, "hash=0x%08lx ", (unsigned long)root->local->hash); in dumproot()
/illumos-gate/usr/src/lib/libpool/common/
H A Ddict.c202 uint64_t hash = HASH_64_INIT; in hash_buf() local
205 hash *= HASH_64_PRIME; in hash_buf()
206 hash ^= (uint64_t)*start++; in hash_buf()
209 return (hash); in hash_buf()
222 uint64_t hash = HASH_64_INIT; in hash_str() local
225 hash *= HASH_64_PRIME; in hash_str()
226 hash ^= (uint64_t)*p++; in hash_str()
229 return (hash); in hash_str()
269 uint64_t (*hash)(const void *)) in dict_new()
282 hdl->dh_hash = hash ? hash : hash_addr; in dict_new()
/illumos-gate/usr/src/cmd/truss/
H A Dhtbl.c99 uint_t hash = 0; in hash_str() local
105 hash = (hash << 4) + *p; in hash_str()
106 if ((g = (hash & 0xf0000000)) != 0) { in hash_str()
107 hash ^= (g >> 24); in hash_str()
108 hash ^= g; in hash_str()
112 return (hash & (sz - 1)); in hash_str()
221 htbl_t *hash; in iter_next() local
229 hash = itr->table; in iter_next()
234 for (i = i + 1; i < hash->size; i++) { in iter_next()
235 cur = &hash->tbl[i]; in iter_next()
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dldi.c49 struct ldi_handle **hash; /* current bucket pointer */ member
59 struct ldi_ident **hash; /* current bucket pointer */ member
86 lhwp->hash = (struct ldi_handle **)(uintptr_t)sym.st_value; in ldi_handle_walk_init()
91 (uintptr_t)lhwp->hash)) == -1) { in ldi_handle_walk_init()
92 mdb_warn("couldn't read ldi handle hash at %p", lhwp->hash); in ldi_handle_walk_init()
117 (uintptr_t)(lhwp->hash + lhwp->index))) == -1) { in ldi_handle_walk_step()
119 (uintptr_t)lhwp->hash + lhwp->index); in ldi_handle_walk_step()
154 liwp->hash = (struct ldi_ident **)(uintptr_t)sym.st_value; in ldi_ident_walk_init()
159 (uintptr_t)liwp->hash)) == -1) { in ldi_ident_walk_init()
185 (uintptr_t)(liwp->hash + liwp->index))) == -1) { in ldi_ident_walk_step()
[all …]
/illumos-gate/usr/src/lib/libtecla/common/
H A Dhash.h131 HashTable *_del_HashTable(HashTable *hash);
135 Symbol *_new_HashSymbol(HashTable *hash, const char *key, int code,
140 int _clear_HashTable(HashTable *hash);
144 Symbol *_del_HashSymbol(HashTable *hash, const char *key);
148 Symbol *_find_HashSymbol(HashTable *hash, const char *key);
155 int _scan_HashTable(HashTable *hash, HASH_SCAN_FN(*scan_fn), void *context);
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/dk/
H A Ddk_encrypt.c47 const struct krb5_hash_provider *hash, in krb5_dk_encrypt_length() argument
53 hashsize = hash->hashsize; in krb5_dk_encrypt_length()
60 const struct krb5_hash_provider *hash, in krb5_dk_encrypt() argument
90 krb5_dk_encrypt_length(enc, hash, input->length, &enclen); in krb5_dk_encrypt()
143 if ((ret = krb5_hmac(context, hash, derived_hmac_key, in krb5_dk_encrypt()
167 krb5int_aes_encrypt_length(enc, hash, inputlen, length) in krb5int_aes_encrypt_length() argument
169 const struct krb5_hash_provider *hash;
186 const struct krb5_hash_provider *hash, in trunc_hmac() argument
195 hashsize = hash->hashsize; in trunc_hmac()
205 ret = krb5_hmac(context, hash, ki, num, input, &tmphash); in trunc_hmac()
[all …]
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/old/
H A Dold_encrypt.c38 const struct krb5_hash_provider *hash, in krb5_old_encrypt_length() argument
45 hashsize = hash->hashsize; in krb5_old_encrypt_length()
54 const struct krb5_hash_provider *hash, in krb5_old_encrypt() argument
67 hashsize = hash->hashsize; in krb5_old_encrypt()
69 krb5_old_encrypt_length(enc, hash, input->length, &enclen); in krb5_old_encrypt()
92 if ((ret = ((*(hash->hash))(context, 1, output, &datain)))) in krb5_old_encrypt()
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/include/
H A Ddk.h31 const struct krb5_hash_provider *hash,
38 const struct krb5_hash_provider *hash,
46 krb5_const struct krb5_hash_provider *hash,
59 krb5_const struct krb5_hash_provider *hash,
76 const struct krb5_hash_provider *hash,
82 const struct krb5_hash_provider *hash,
90 const struct krb5_hash_provider *hash,
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dlzjb.c57 int mlen, offset, hash; in lzjb_compress() local
73 hash = (src[0] << 16) + (src[1] << 8) + src[2]; in lzjb_compress()
74 hash += hash >> 9; in lzjb_compress()
75 hash += hash >> 5; in lzjb_compress()
76 hp = &lempel[hash & (LEMPEL_SIZE - 1)]; in lzjb_compress()
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dmech_sha.c65 CK_BYTE hash[SHA1_DIGEST_LENGTH]; in sha1_hmac_sign() local
118 hash_len = sizeof (hash); in sha1_hmac_sign()
120 attr->pValue, attr->ulValueLen, hash, &hash_len); in sha1_hmac_sign()
130 k_ipad[i] = hash[i] ^ 0x36; in sha1_hmac_sign()
131 k_opad[i] = hash[i] ^ 0x5C; in sha1_hmac_sign()
170 hash_len = sizeof (hash); in sha1_hmac_sign()
171 rc = digest_mgr_digest_final(sess, &digest_ctx, hash, &hash_len); in sha1_hmac_sign()
193 rc = digest_mgr_digest_update(sess, &digest_ctx, hash, hash_len); in sha1_hmac_sign()
199 hash_len = sizeof (hash); in sha1_hmac_sign()
200 rc = digest_mgr_digest_final(sess, &digest_ctx, hash, &hash_len); in sha1_hmac_sign()
[all …]
/illumos-gate/usr/src/cmd/fs.d/nfs/mountd/
H A Drmtab.c276 mntentry_str_hash(char *s, uint_t hash) in mntentry_str_hash() argument
281 hash = (hash << 4) + *s; in mntentry_str_hash()
282 if ((g = (hash & 0xf0000000)) != 0) { in mntentry_str_hash()
283 hash ^= (g >> 24); in mntentry_str_hash()
284 hash ^= g; in mntentry_str_hash()
288 return (hash); in mntentry_str_hash()
295 uint_t hash; in mntentry_hash() local
297 hash = mntentry_str_hash(m->m_host, 0); in mntentry_hash()
298 hash = mntentry_str_hash(m->m_path, hash); in mntentry_hash()
300 return (hash); in mntentry_hash()
/illumos-gate/usr/src/uts/common/fs/
H A Ddnlc.c287 hash = (hash << 4) + hash + Xc; \
442 int hash; in dnlc_enter() local
464 ncp->hash = hash; in dnlc_enter()
509 int hash; in dnlc_update() local
538 ncp->hash = hash; in dnlc_update()
671 int hash; in dnlc_remove() local
938 if (ncp->hash == hash && in dnlc_search()
1107 int hash; in dnlc_dir_lookup() local
1248 int hash; in dnlc_dir_add_entry() local
1549 int hash; in dnlc_dir_rem_entry() local
[all …]
/illumos-gate/usr/src/uts/common/inet/ilb/
H A Dilb_alg_hash.c38 #define HASH_IP_V4(hash, addr, size) \ argument
41 (hash) %= (size); \
43 #define HASH_IP_V6(hash, addr, size) \ argument
44 HASH_IP_V4((hash), (addr)->s6_addr32[3], (size))
46 #define HASH_IP_PORT_V4(hash, addr, port, size) \ argument
49 CRC32((hash), &val, sizeof (uint32_t), -1U, crc32_table); \
50 (hash) %= (size); \
52 #define HASH_IP_PORT_V6(hash, addr, port, size) \ argument
55 #define HASH_IP_VIP_V4(hash, saddr, daddr, size) \ argument
59 (hash) %= (size); \
[all …]
/illumos-gate/usr/src/cmd/sgs/link_audit/common/
H A Dhash.c34 hash *
37 hash *ptr; in make_hash()
48 hash *
51 hash *ptr; in make_ihash()
63 get_hash(hash *tbl, char *key) in get_hash()
114 find_hash(hash *tbl, const char *key) in find_hash()
137 del_hash(hash *tbl, const char *key) in del_hash()
201 operate_hash(hash *tbl, void (*ptr)(), const char *usr_arg) in operate_hash()
215 operate_hash_addr(hash *tbl, void (*ptr)(), const char *usr_arg) in operate_hash_addr()
229 destroy_hash(hash *tbl, int (*ptr)(), const char *usr_arg) in destroy_hash()

12345678910>>...19