Lines Matching +defs:src +defs:hash

8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
112 dup_packed_buffer(void *src, void *dst) {
113 nsc_lookup_args_t *s = (nsc_lookup_args_t *)src;
345 * cis hash function
358 * ces hash function
371 * one-at-a-time hash function
421 * Find entry in the hash table
425 * return entry in the hash location without checking the keys
429 hash_find(nsc_db_t *nscdb, nsc_entry_t *entry, uint_t *hash,
435 *hash = nscdb->gethash(&entry->key, nscdb->htsize);
439 hashentry = nscdb->htable[*hash];
450 #define HASH_REMOVE(nscdb, entry, hash, cmp) \
452 if (entry == hash_find(nscdb, entry, &hash, cmp)) \
453 nscdb->htable[hash] = NULL; \
457 #define HASH_INSERT(nscdb, entry, hash, cmp) \
459 (void) hash_find(nscdb, entry, &hash, cmp); \
460 nscdb->htable[hash] = entry; \
564 (void) fprintf(stdout, "hash[%d]:\n", i);
746 /* The AVL tree based cache uses a hash table for quick access */
748 /* Determine hash table size based on type */
763 /* Create the hash table */
2054 uint_t hash;
2057 HASH_REMOVE(nscdb, entry, hash, nscd_false);
2076 uint_t hash;
2088 /* lookup the hash table ==> O(1) */
2090 *entry = hash_find(nscdb, &find_entry, &hash, nscd_true);
2101 /* move it to the hash table */
2103 if (nscdb->htable[hash] == NULL ||
2105 nscdb->htable[hash]->stats.hits) {
2106 nscdb->htable[hash] = *entry;
2150 nscdb->htable[hash] = *entry;
2309 * Dynamic adjustment of hash table size.
2333 (me, "%s: resizing hash table from %d to %d\n",