/titanic_41/usr/src/lib/libsqlite/src/ |
H A D | hash.c | 43 new->htsize = 0; in sqliteHashInit() 59 pH->htsize = 0; in sqliteHashClear() 179 pH->htsize = new_size; in rehash() 273 assert( (pH->htsize & (pH->htsize-1))==0 ); in sqliteHashFind() 274 elem = findElementGivenHash(pH,pKey,nKey, h & (pH->htsize-1)); in sqliteHashFind() 304 assert( (pH->htsize & (pH->htsize-1))==0 ); in sqliteHashInsert() 305 h = hraw & (pH->htsize-1); in sqliteHashInsert() 331 if( pH->htsize==0 ) rehash(pH,8); in sqliteHashInsert() 332 if( pH->htsize==0 ){ in sqliteHashInsert() 337 if( pH->count > pH->htsize ){ in sqliteHashInsert() [all …]
|
H A D | hash.h | 40 int htsize; /* Number of buckets in the hash table */ member
|
/titanic_41/usr/src/uts/common/fs/lofs/ |
H A D | lofs_subr.c | 155 uint_t htsize; in table_lock_enter() local 159 htsize = li->li_htsize; in table_lock_enter() 162 hash = ltablehash(vp, htsize); in table_lock_enter() 164 if (li->li_hashtable == chain && li->li_htsize == htsize) in table_lock_enter() 191 lsetup(struct loinfo *li, uint_t htsize) in lsetup() argument 195 if (htsize == 0) in lsetup() 196 htsize = LOFS_DEFAULT_HTSIZE; in lsetup() 197 li->li_htsize = htsize; in lsetup() 198 li->li_hashtable = kmem_zalloc(htsize * sizeof (*li->li_hashtable), in lsetup() 211 uint_t i, htsize; in ldestroy() local [all …]
|
/titanic_41/usr/src/cmd/mdb/common/modules/lofs/ |
H A D | lofs.c | 59 uint_t htsize; in lnode_walk_init() local 93 htsize = 0; in lnode_walk_init() 104 if (htsize + loinfo.li_htsize > lwp->lw_tabsz) { in lnode_walk_init() 112 (void) mdb_vread(lwp->lw_table + htsize, in lnode_walk_init() 115 htsize += loinfo.li_htsize; in lnode_walk_init()
|
/titanic_41/usr/src/cmd/nscd/ |
H A D | getnode.c | 99 ipaddr_gethash(nss_XbyY_key_t *key, int htsize) { in ipaddr_gethash() argument 101 key->hostaddr.len, htsize)); in ipaddr_gethash() 139 ipname_gethash(nss_XbyY_key_t *key, int htsize) { in ipname_gethash() argument 140 return (cis_gethash(key->ipnode.name, htsize)); in ipname_gethash()
|
H A D | getserv.c | 103 servname_gethash(nss_XbyY_key_t *key, int htsize) { in servname_gethash() argument 104 return (ces_gethash(key->serv.serv.name, htsize)); in servname_gethash() 146 servport_gethash(nss_XbyY_key_t *key, int htsize) { in servport_gethash() argument 148 sizeof (key->serv.serv.port), htsize)); in servport_gethash()
|
H A D | cache.c | 332 #define _NSC_ELF_STR_GETHASH(func, str, htsize, hval) \ argument 341 hval %= htsize; 348 cis_gethash(const char *key, int htsize) { in cis_gethash() argument 352 _NSC_ELF_STR_GETHASH(tolower, key, htsize, hval); in cis_gethash() 361 ces_gethash(const char *key, int htsize) { in ces_gethash() argument 365 _NSC_ELF_STR_GETHASH(, key, htsize, hval); in ces_gethash() 374 db_gethash(const void *key, int len, int htsize) { in db_gethash() argument 389 return (hval % htsize); in db_gethash() 397 nsc_db_cis_key_gethash(nss_XbyY_key_t *key, int htsize) { in nsc_db_cis_key_gethash() argument 398 return (cis_gethash(key->name, htsize)); in nsc_db_cis_key_gethash() [all …]
|
H A D | getgr.c | 77 grgid_gethash(nss_XbyY_key_t *key, int htsize) { in grgid_gethash() argument 78 return ((uint_t)key->gid % htsize); in grgid_gethash()
|
H A D | getproject.c | 73 projid_gethash(nss_XbyY_key_t *key, int htsize) { in projid_gethash() argument 74 return (db_gethash(&key->projid, sizeof (key->projid), htsize)); in projid_gethash()
|
H A D | getpw.c | 75 pwuid_gethash(nss_XbyY_key_t *key, int htsize) { in pwuid_gethash() argument 76 return ((uint_t)key->uid % htsize); in pwuid_gethash()
|
H A D | getether.c | 83 ether_gethash(nss_XbyY_key_t *key, int htsize) { in ether_gethash() argument 85 htsize)); in ether_gethash()
|
H A D | gettnrhdb.c | 90 tsol_rh_gethash(nss_XbyY_key_t *key, int htsize) { in tsol_rh_gethash() argument 92 strlen(key->hostaddr.addr), htsize)); in tsol_rh_gethash()
|
H A D | gethost.c | 98 hostaddr_gethash(nss_XbyY_key_t *key, int htsize) { in hostaddr_gethash() argument 100 key->hostaddr.len, htsize)); in hostaddr_gethash()
|
H A D | getnet.c | 117 netaddr_gethash(nss_XbyY_key_t *key, int htsize) { in netaddr_gethash() argument 119 sizeof (key->netaddr.net), htsize)); in netaddr_gethash()
|
H A D | getexec.c | 107 execattr_gethash(nss_XbyY_key_t *key, int htsize) { in execattr_gethash() argument 116 return (db_gethash(keys, len, htsize)); in execattr_gethash()
|
H A D | cache.h | 251 int htsize; member
|
/titanic_41/usr/src/cmd/idmap/idmapd/ |
H A D | dbutils.c | 3257 gethash(const char *str, uint32_t num, uint_t htsize) in gethash() argument 3276 return (hval % htsize); in gethash() 3285 uint_t htsize = state->sid_history_size; in get_from_sid_history() local 3288 next = gethash(prefix, rid, htsize); in get_from_sid_history() 3289 while (next != htsize) { in get_from_sid_history() 3291 if (key == htsize) in get_from_sid_history() 3310 uint_t htsize = state->sid_history_size; in add_to_sid_history() local 3312 hash = next = gethash(prefix, rid, htsize); in add_to_sid_history() 3313 while (state->sid_history[next].key != htsize) { in add_to_sid_history() 3315 next %= htsize; in add_to_sid_history()
|
/titanic_41/usr/src/uts/common/io/mac/ |
H A D | mac_flow.c | 1601 flow_l2_addrhash(uint8_t *addr, size_t addrlen, size_t htsize) in flow_l2_addrhash() argument 1608 return (hash % htsize); in flow_l2_addrhash()
|